22 #ifndef SIMULATIONRUNNER_HPP
23 #define SIMULATIONRUNNER_HPP
25 #include <LbmLib/include/geometry/GeometryHandler.hpp>
26 #include <LbmLib/include/solver/ForceSolver.hpp>
27 #include <LbmLib/include/solver/MassSolver/MassAbstractSolver.hpp>
28 #include <LbmLib/include/solver/BioSolver/BioAbstractSolver.hpp>
30 #include <unordered_set>
34 class GeometryHandler;
36 namespace reportHandler {
73 const std::string& forceFileName,
74 const std::string& geometryFileName,
75 const std::string& parameterFileName,
76 const std::string& solverFileName)
const;
129 const std::string& name=
"");
135 void addCDESolver(
const std::string& name);
140 void calculateForce();
145 void collectVelocity();
150 void distributeForce();
160 void remeshBoundary();
165 void coarsenBoundary(
void);
170 void checkLatticeIntegrity();
175 void checkBoundaryIntegrity();
200 void applyMassSolvers();
205 void applyBioSolvers();
215 std::vector<solver::MassAbstractSolver*> massSolvers_;
220 std::vector<solver::BioAbstractSolver*> bioSolvers_;
234 #endif // SIMULATIONRUNNER_HPP
void addMassSolver(const std::string &name)
adds a mass solver to the simulation
~SimulationRunner()
Destructor.
SimulationRunner(const geometry::GeometryHandler &geometry, const reportHandler::ReportHandler &reportHandler)
constructor
void initSolvers()
initSolvers Initialises the solvers
void runSimulation()
runSimulation Runs the main Simulation loop
void addBioSolver(const std::string &name)
Adds a BioSolver.
the main simulation class
const solver::ForceSolver & getForceSolver(void)
getForceSolver Returns a reference to the solver::ForceSolver
void writeSimulation(const std::string &forceFileName, const std::string &geometryFileName, const std::string ¶meterFileName, const std::string &solverFileName) const
writes the simulation to the files
void initForceSolver(const std::string &fileName)
Inits the Force solver to calculate the forces on the geometry nodes.
the report handler which stores the reporters
class responsible for generating the internal geometry representation