#include <WelikyOsterForce.hpp>
Public Member Functions | |
WelikyOsterForce () | |
~WelikyOsterForce () | |
void | AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractCellPopulation< DIM > &rCellPopulation) |
double | GetWelikyOsterAreaParameter () |
double | GetWelikyOsterPerimeterParameter () |
void | SetWelikyOsterAreaParameter (double welikyOsterAreaParameter) |
void | SetWelikyOsterPerimeterParameter (double welikyOsterPerimeterParameter) |
void | OutputForceParameters (out_stream &rParamsFile) |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mWelikyOsterAreaParameter |
double | mWelikyOsterPerimeterParameter |
Friends | |
class | TestForces |
class | boost::serialization::access |
The default values for the two model parameter member variables are our own best estimates, since they are not given in the Weliky & Oster paper.
Definition at line 48 of file WelikyOsterForce.hpp.
WelikyOsterForce< DIM >::WelikyOsterForce | ( | ) | [inline] |
Constructor.
Definition at line 31 of file WelikyOsterForce.cpp.
WelikyOsterForce< DIM >::~WelikyOsterForce | ( | ) | [inline] |
Destructor.
Definition at line 39 of file WelikyOsterForce.cpp.
void WelikyOsterForce< 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 66 of file WelikyOsterForce.hpp.
References WelikyOsterForce< DIM >::mWelikyOsterAreaParameter, and WelikyOsterForce< DIM >::mWelikyOsterPerimeterParameter.
void WelikyOsterForce< DIM >::AddForceContribution | ( | std::vector< c_vector< double, DIM > > & | rForces, | |
AbstractCellPopulation< DIM > & | rCellPopulation | |||
) | [inline, virtual] |
Overridden AddForceContribution() method.
Calculates the force on each node in the vertex-based cell population based on the Weliky Oster model.
rForces | reference to vector of forces on nodes | |
rCellPopulation | reference to the cell population |
Implements AbstractForce< DIM >.
Definition at line 44 of file WelikyOsterForce.cpp.
References EXCEPTION, VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorBegin(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorEnd(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetSurfaceAreaOfElement(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetVectorFromAtoB(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetVolumeOfElement(), WelikyOsterForce< DIM >::GetWelikyOsterAreaParameter(), WelikyOsterForce< DIM >::GetWelikyOsterPerimeterParameter(), and VertexBasedCellPopulation< DIM >::rGetMesh().
double WelikyOsterForce< DIM >::GetWelikyOsterAreaParameter | ( | ) | [inline] |
Definition at line 120 of file WelikyOsterForce.cpp.
References WelikyOsterForce< DIM >::mWelikyOsterAreaParameter.
Referenced by WelikyOsterForce< DIM >::AddForceContribution().
double WelikyOsterForce< DIM >::GetWelikyOsterPerimeterParameter | ( | ) | [inline] |
Definition at line 126 of file WelikyOsterForce.cpp.
References WelikyOsterForce< DIM >::mWelikyOsterPerimeterParameter.
Referenced by WelikyOsterForce< DIM >::AddForceContribution().
void WelikyOsterForce< DIM >::SetWelikyOsterAreaParameter | ( | double | welikyOsterAreaParameter | ) | [inline] |
Set mWelikyOsterAreaParameter.
welikyOsterAreaParameter | the new value of mWelikyOsterAreaParameter |
Definition at line 132 of file WelikyOsterForce.cpp.
References WelikyOsterForce< DIM >::mWelikyOsterAreaParameter.
void WelikyOsterForce< DIM >::SetWelikyOsterPerimeterParameter | ( | double | welikyOsterPerimeterParameter | ) | [inline] |
Set mWelikyOsterPerimeterParameter.
welikyOsterPerimeterParameter | the new value of mWlikyOsterPerimeterParameter |
Definition at line 138 of file WelikyOsterForce.cpp.
References WelikyOsterForce< DIM >::mWelikyOsterPerimeterParameter.
void WelikyOsterForce< 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 144 of file WelikyOsterForce.cpp.
References WelikyOsterForce< DIM >::mWelikyOsterAreaParameter, WelikyOsterForce< DIM >::mWelikyOsterPerimeterParameter, and AbstractForce< DIM >::OutputForceParameters().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractForce< DIM >.
Definition at line 64 of file WelikyOsterForce.hpp.
double WelikyOsterForce< DIM >::mWelikyOsterAreaParameter [private] |
Area parameter. Has units of kg (cell size at equilibrium rest length)^2 s^-2.
Definition at line 57 of file WelikyOsterForce.hpp.
Referenced by WelikyOsterForce< DIM >::GetWelikyOsterAreaParameter(), WelikyOsterForce< DIM >::OutputForceParameters(), WelikyOsterForce< DIM >::serialize(), and WelikyOsterForce< DIM >::SetWelikyOsterAreaParameter().
double WelikyOsterForce< DIM >::mWelikyOsterPerimeterParameter [private] |
Perimeter parameter. Has units of kg s^-2 (cell size at equilibrium rest length)^-1.
Definition at line 62 of file WelikyOsterForce.hpp.
Referenced by WelikyOsterForce< DIM >::GetWelikyOsterPerimeterParameter(), WelikyOsterForce< DIM >::OutputForceParameters(), WelikyOsterForce< DIM >::serialize(), and WelikyOsterForce< DIM >::SetWelikyOsterPerimeterParameter().