#include <VertexCryptBoundaryForce.hpp>
Public Member Functions | |
VertexCryptBoundaryForce (double forceStrength=1.0) | |
~VertexCryptBoundaryForce () | |
void | AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractCellPopulation< DIM > &rCellPopulation) |
double | GetForceStrength () const |
void | OutputForceParameters (out_stream &rParamsFile) |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mForceStrength |
Friends | |
class | TestVertexCryptBoundaryForce |
class | boost::serialization::access |
The boundary force is taken to be zero for y>0, and proportional to y^2 for y<0 (hence is continuously differentiable at y=0). The constant of proportionality is given by the parameter mForceStrength, whose value is set in the constructor.
Definition at line 49 of file VertexCryptBoundaryForce.hpp.
VertexCryptBoundaryForce< DIM >::VertexCryptBoundaryForce | ( | double | forceStrength = 1.0 |
) | [inline] |
Constructor.
forceStrength | the force strength |
Definition at line 33 of file VertexCryptBoundaryForce.cpp.
References VertexCryptBoundaryForce< DIM >::mForceStrength.
VertexCryptBoundaryForce< DIM >::~VertexCryptBoundaryForce | ( | ) | [inline] |
Destructor.
Definition at line 42 of file VertexCryptBoundaryForce.cpp.
void VertexCryptBoundaryForce< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the object and its member variables.
Serialization of singleton objects must be done with care. Before the object is serialized via a pointer, it *MUST* be serialized directly, or an assertion will trip when a second instance of the class is created on de-serialization.
archive | the archive | |
version | the current version of this class |
Reimplemented from AbstractForce< DIM >.
Definition at line 60 of file VertexCryptBoundaryForce.hpp.
References VertexCryptBoundaryForce< DIM >::mForceStrength.
void VertexCryptBoundaryForce< DIM >::AddForceContribution | ( | std::vector< c_vector< double, DIM > > & | rForces, | |
AbstractCellPopulation< DIM > & | rCellPopulation | |||
) | [inline, virtual] |
Overridden AddForceContribution() method.
Calculates the boundary force on each node in the vertex-based cell population.
rForces | reference to vector of forces on nodes | |
rCellPopulation | reference to the cell population |
Implements AbstractForce< DIM >.
Definition at line 47 of file VertexCryptBoundaryForce.cpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorBegin(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorEnd(), VertexCryptBoundaryForce< DIM >::mForceStrength, and VertexBasedCellPopulation< DIM >::rGetMesh().
double VertexCryptBoundaryForce< DIM >::GetForceStrength | ( | ) | const [inline] |
Definition at line 72 of file VertexCryptBoundaryForce.cpp.
References VertexCryptBoundaryForce< DIM >::mForceStrength.
void VertexCryptBoundaryForce< DIM >::OutputForceParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Outputs force parameters to file
As this method is pure virtual, it must be overridden in subclasses.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractForce< DIM >.
Definition at line 78 of file VertexCryptBoundaryForce.cpp.
References VertexCryptBoundaryForce< DIM >::mForceStrength, and AbstractForce< DIM >::OutputForceParameters().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractForce< DIM >.
Definition at line 58 of file VertexCryptBoundaryForce.hpp.
double VertexCryptBoundaryForce< DIM >::mForceStrength [private] |
Parameter determining the strength of the force acting on nodes below y=0.
Definition at line 56 of file VertexCryptBoundaryForce.hpp.
Referenced by VertexCryptBoundaryForce< DIM >::AddForceContribution(), VertexCryptBoundaryForce< DIM >::GetForceStrength(), VertexCryptBoundaryForce< DIM >::OutputForceParameters(), VertexCryptBoundaryForce< DIM >::serialize(), and VertexCryptBoundaryForce< DIM >::VertexCryptBoundaryForce().