22 #include <LbmLib/include/reportHandler/CellTypeReporter.hpp>
23 #include <UtilLib/include/Exception.hpp>
24 #include <LbmLib/include/nodes/PhysicalNode.hpp>
25 #include <LbmLib/include/solver/CDESolver/CDEAbstractSolver.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 std::map<unsigned int, double> sums;
43 for (
auto i : physicalNodes_) {
45 oStream << pt->getXPos() <<
"\t" << pt->getYPos() <<
"\t" <<
46 pt->getCellType() <<
"\n";
const std::string filename_
filename_ Stores the filename of this functor
virtual void operator()(unsigned int time) const
operator() Writes the report