22 #include <LbmLib/include/reportHandler/ConnectionReporter.hpp>
23 #include <UtilLib/include/Exception.hpp>
24 #include <LbmLib/include/nodes/GeometryNode.hpp>
25 #include <LbmLib/include/geometry/Connection.hpp>
26 #include <LbmLib/include/solver/FluidSolver/FluidSolver.hpp>
33 namespace reportHandler {
35 std::stringstream filename;
36 filename <<
filename_ <<
"_" << time <<
".txt";
37 std::ofstream oStream(filename.str().c_str());
38 if (!oStream.is_open()) {
42 for (
auto c : connections_) {
43 std::pair<std::shared_ptr<nodes::GeometryNode>
const,
44 std::shared_ptr<nodes::GeometryNode>
const> pts =
45 c->getGeometryNodes();
46 oStream << pts.first->getXPos() <<
"\t" << pts.second->getXPos() <<
47 "\t" << pts.first->getYPos() <<
"\t" << pts.second->getYPos() <<
48 "\t" << c->getDomainIdentifier() <<
const std::string filename_
filename_ Stores the filename of this functor
virtual void operator()(unsigned int time) const
operator() Writes the report