22 #ifndef FORCESOLVER_HPP
23 #define FORCESOLVER_HPP
25 #include <LbmLib/include/solver/AbstractForceStruct.hpp>
37 typedef std::shared_ptr< AbstractForceStruct> shptr_forcestruct;
38 typedef std::vector< shptr_forcestruct > vec_shptr_forcestruct;
39 typedef std::map< unsigned int, vec_shptr_forcestruct > map_forcestruct;
50 std::shared_ptr<nodes::GeometryNode> >& nodes);
67 void addForce(std::stringstream*
const forcedescriptor);
92 vec_shptr_forcestruct
getForcesOfNode(vec_shptr_forcestruct &forcevector,
93 const unsigned int nodeid);
111 vec_shptr_forcestruct forces_;
116 map_forcestruct forcemap_;
121 #endif // FORCESOLVER_HPP
void deleteForceType(const unsigned int forcetype)
reset all forces
~ForceSolver()
The destructor.
vec_shptr_forcestruct getForcesOfNode(vec_shptr_forcestruct &forcevector, const unsigned int nodeid)
get all forces of nodeid
ForceSolver()
The constructor.
void writeForceSolver(const std::string &filename) const
writes the forces to the file
void addForce(std::stringstream *const forcedescriptor)
add a force
const map_forcestruct getAllForces() const
getAllForces returns the entire map {nodeid, AbstractForceStruct}
void loadForceFile(const std::string &filename)
loading of the force solver
void deleteAllForces()
reset all forces
void calculateForce(const std::map< unsigned int, std::shared_ptr< nodes::GeometryNode > > &nodes)
calculates the Force