22 #include <LbmLib/include/solver/BioSolver/BioSolverMembraneTension.hpp>
23 #include <LbmLib/include/geometry/GeometryHandler.hpp>
24 #include <LbmLib/include/solver/ForceSolver.hpp>
25 #include <LbmLib/include/GlobalSimulationParameters.hpp>
34 const unsigned int FREQUENCY = 10;
35 const double FORCE = 0.02;
39 BioSolverMembraneTension::BioSolverMembraneTension() : BioBaseSolver()
46 std::stringstream forcedescriptor;
49 if (Parameters.getCurrentIteration()%FREQUENCY != 0) {
56 #pragma omp parallel for schedule(static) private(forcedescriptor)
58 j<tempconnectionmap.size();
60 forcedescriptor.str( std::string() );
61 forcedescriptor.clear();
62 forcedescriptor <<
"6\t"
63 << tempconnectionmap[j]->getGeometryNodes().first->getId() <<
"\t"
64 << tempconnectionmap[j]->getGeometryNodes().second->getId() <<
"\t"
66 forcesolver.
addForce(&forcedescriptor);
68 forcedescriptor.str( std::string() );
69 forcedescriptor.clear();
70 forcedescriptor <<
"6\t"
71 << tempconnectionmap[j]->getGeometryNodes().second->getId() <<
"\t"
72 << tempconnectionmap[j]->getGeometryNodes().first->getId() <<
"\t"
74 forcesolver.
addForce(&forcedescriptor);
78 const std::string BioSolverMembraneTension::name =
"BioSolverMembraneTension";
void deleteForceType(const unsigned int forcetype)
reset all forces
virtual void applyBioProcess(geometry::GeometryHandler &geometryhandler, solver::ForceSolver &forcesolver)
Applies biological processes.
const Geometry & getGeometry() const
getter for the geometry
const std::vector< std::shared_ptr< Connection > > & getConnections() const
getConnections Getter for connections
void addForce(std::stringstream *const forcedescriptor)
add a force
class responsible for generating the internal geometry representation