LBIBCell
|
The actual force solver. More...
#include <ForceSolver.hpp>
Public Member Functions | |
void | calculateForce (const std::map< unsigned int, std::shared_ptr< nodes::GeometryNode > > &nodes) |
calculates the Force More... | |
ForceSolver () | |
The constructor. | |
void | loadForceFile (const std::string &filename) |
loading of the force solver More... | |
void | addForce (std::stringstream *const forcedescriptor) |
add a force More... | |
void | writeForceSolver (const std::string &filename) const |
writes the forces to the file More... | |
void | deleteAllForces () |
reset all forces | |
void | deleteForceType (const unsigned int forcetype) |
reset all forces More... | |
vec_shptr_forcestruct | getForcesOfNode (vec_shptr_forcestruct &forcevector, const unsigned int nodeid) |
get all forces of nodeid More... | |
const map_forcestruct | getAllForces () const |
getAllForces returns the entire map {nodeid, AbstractForceStruct} More... | |
~ForceSolver () | |
The destructor. | |
The actual force solver.
Definition at line 43 of file ForceSolver.hpp.
void LbmLib::solver::ForceSolver::addForce | ( | std::stringstream *const | forcedescriptor | ) |
add a force
forcedescriptor | as read from the force file |
Definition at line 107 of file ForceSolver.cpp.
void LbmLib::solver::ForceSolver::calculateForce | ( | const std::map< unsigned int, std::shared_ptr< nodes::GeometryNode > > & | nodes | ) |
calculates the Force
nodes | A map containing the GeometryNodes on which the forces are applied to. |
Definition at line 42 of file ForceSolver.cpp.
void LbmLib::solver::ForceSolver::deleteForceType | ( | const unsigned int | forcetype | ) |
reset all forces
forcetype | Delete only force of type. |
Definition at line 168 of file ForceSolver.cpp.
const map_forcestruct LbmLib::solver::ForceSolver::getAllForces | ( | ) | const |
getAllForces returns the entire map {nodeid, AbstractForceStruct}
Definition at line 223 of file ForceSolver.cpp.
std::vector< std::shared_ptr< AbstractForceStruct > > LbmLib::solver::ForceSolver::getForcesOfNode | ( | vec_shptr_forcestruct & | forcevector, |
const unsigned int | nodeid | ||
) |
get all forces of nodeid
forcevector | a vector to store the ForceStructs in |
nodeid | the id of the GeometryNode |
Definition at line 206 of file ForceSolver.cpp.
void LbmLib::solver::ForceSolver::loadForceFile | ( | const std::string & | filename | ) |
loading of the force solver
filename | the file where the forces are stored |
Definition at line 89 of file ForceSolver.cpp.
void LbmLib::solver::ForceSolver::writeForceSolver | ( | const std::string & | filename | ) | const |
writes the forces to the file
filename | the file where the forces are stored |
Definition at line 141 of file ForceSolver.cpp.