22 #include <LbmLib/include/reportHandler/GridReporter.hpp>
23 #include <UtilLib/include/Exception.hpp>
24 #include <LbmLib/include/nodes/PhysicalNode.hpp>
25 #include <LbmLib/include/nodes/BoundaryNode.hpp>
26 #include <LbmLib/include/nodes/GeometryNode.hpp>
27 #include <LbmLib/include/geometry/GeometryHandler.hpp>
28 #include <LbmLib/include/solver/FluidSolver/FluidSolver.hpp>
34 namespace reportHandler {
36 std::stringstream filename;
37 filename <<
filename_ <<
"_" << time <<
".txt";
38 std::ofstream oStream(filename.str().c_str());
39 if (!oStream.is_open()) {
45 oStream << pt->getXPos() <<
"\t" << pt->getYPos() <<
"\t" <<
46 pt->getType() <<
"\n";
50 oStream << pt->getXPos() <<
"\t" << pt->getYPos() <<
"\t" <<
51 pt->getType() <<
"\n";
54 oStream << pt.second->getXPos() <<
"\t" << pt.second->getYPos() <<
55 "\t" << pt.second->getType() <<
"\n";
const std::map< unsigned int, std::shared_ptr< nodes::GeometryNode > > & getGeometryNodes() const
Getter for the geometry nodes.
virtual void operator()(unsigned int time) const
operator() Writes the report
const Geometry & getGeometry() const
getter for the geometry
const std::unordered_set< nodes::BoundaryNode * > & getBoundaryNodes() const
Getter for the Boundary nodes.
const std::string filename_
filename_ Stores the filename of this functor
const std::vector< std::vector< nodes::PhysicalNode * > > & getPhysicalNodes() const
getPhysicalNodes Getter method for the physical node grid