LBIBCell
|
a spring froce between 2 nodes More...
#include <ForceStructs.hpp>
Public Member Functions | |
ForceType0 (unsigned int id1, unsigned int id2, double k, double l0) | |
the constructor of this force More... | |
void | calculateForce (const std::map< unsigned int, std::shared_ptr< nodes::GeometryNode > > &nodes) |
calculates the force on the geometry nodes More... | |
void | writeForceStruct (std::ofstream *const stream) const |
writes the force struct to the ostream More... | |
unsigned int | getType () const |
Returns the force type. More... | |
unsigned int | getPartnerGeometryNode (void) const |
getPartnerGeometryNode More... | |
Public Member Functions inherited from LbmLib::solver::AbstractForceStruct | |
virtual | ~AbstractForceStruct () |
Destructor. | |
a spring froce between 2 nodes
Definition at line 49 of file ForceStructs.hpp.
|
inline |
the constructor of this force
id1 | the id of the first node |
id2 | the id of the second node |
k | the spring constant |
l0 | the default distance |
Definition at line 57 of file ForceStructs.hpp.
|
inlinevirtual |
calculates the force on the geometry nodes
nodes | the nodes where the force is applied |
Implements LbmLib::solver::AbstractForceStruct.
Definition at line 67 of file ForceStructs.hpp.
|
inlinevirtual |
getPartnerGeometryNode
Implements LbmLib::solver::AbstractForceStruct.
Definition at line 93 of file ForceStructs.hpp.
|
inlinevirtual |
Returns the force type.
Implements LbmLib::solver::AbstractForceStruct.
Definition at line 89 of file ForceStructs.hpp.
|
inlinevirtual |
writes the force struct to the ostream
stream | the output stream |
Implements LbmLib::solver::AbstractForceStruct.
Definition at line 84 of file ForceStructs.hpp.