22 #include <LbmLib/include/reportHandler/MatixAbsVelocityReporter.hpp>
23 #include <UtilLib/include/Exception.hpp>
24 #include <LbmLib/include/nodes/PhysicalNode.hpp>
25 #include <LbmLib/include/solver/FluidSolver/FluidSolver.hpp>
31 namespace reportHandler {
33 std::stringstream filename;
34 filename <<
filename_ <<
"_" << time <<
".txt";
35 std::ofstream oStream(filename.str().c_str());
36 if (!oStream.is_open()) {
39 for (
auto i : physicalNodes_) {
42 pt->getFluidSolver().getVelocity().x * pt->getFluidSolver().getVelocity().x + pt->getFluidSolver().getVelocity().y *
43 pt->getFluidSolver().getVelocity().y);
44 oStream << std::setprecision(6) << v <<
"\t";
virtual void operator()(unsigned int time) const
operator() Writes the report
const std::string filename_
filename_ Stores the filename of this functor