#include <FarhadifarForce.hpp>
Inherits AbstractForce< DIM >.
A force class for use in Vertex-based simulations. This force is based on the Energy function proposed by Farhadifar et al in Curr. Biol., 2007, 17, 2095-2104.
Definition at line 55 of file FarhadifarForce.hpp.
FarhadifarForce< DIM >::FarhadifarForce | ( | ) | [inline] |
Constructor.
Definition at line 39 of file FarhadifarForce.cpp.
FarhadifarForce< DIM >::~FarhadifarForce | ( | ) | [inline, virtual] |
Destructor.
Definition at line 49 of file FarhadifarForce.cpp.
void FarhadifarForce< DIM >::AddForceContribution | ( | AbstractCellPopulation< DIM > & | rCellPopulation | ) | [inline, virtual] |
Overridden AddForceContribution() method.
Calculates the force on each node in the vertex-based cell population based on the energy function Farhadifar's model.
rCellPopulation | reference to the cell population |
Definition at line 54 of file FarhadifarForce.cpp.
References EXCEPTION, FarhadifarForce< DIM >::GetAreaElasticityParameter(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetAreaGradientOfElementAtNode(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::GetCellUsingLocationIndex(), VertexBasedCellPopulation< DIM >::GetElement(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorBegin(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorEnd(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetIndex(), FarhadifarForce< DIM >::GetLineTensionParameter(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNextEdgeGradientOfElementAtNode(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNode(), VertexBasedCellPopulation< DIM >::GetNode(), MutableElement< ELEMENT_DIM, SPACE_DIM >::GetNodeLocalIndex(), VertexBasedCellPopulation< DIM >::GetNumElements(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), VertexBasedCellPopulation< DIM >::GetNumNodes(), FarhadifarForce< DIM >::GetPerimeterContractilityParameter(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetSurfaceAreaOfElement(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetVolumeOfElement(), and VertexBasedCellPopulation< DIM >::rGetMesh().
double FarhadifarForce< DIM >::GetAreaElasticityParameter | ( | ) | [inline] |
Definition at line 201 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mAreaElasticityParameter.
Referenced by FarhadifarForce< DIM >::AddForceContribution().
double FarhadifarForce< DIM >::GetBoundaryLineTensionParameter | ( | ) | [inline] |
Definition at line 219 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mBoundaryLineTensionParameter.
Referenced by FarhadifarForce< DIM >::GetLineTensionParameter().
double FarhadifarForce< DIM >::GetLineTensionParameter | ( | ) | [inline] |
Definition at line 213 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mLineTensionParameter.
Referenced by FarhadifarForce< DIM >::AddForceContribution(), and FarhadifarForce< DIM >::GetLineTensionParameter().
double FarhadifarForce< DIM >::GetLineTensionParameter | ( | Node< DIM > * | pNodeA, | |
Node< DIM > * | pNodeB, | |||
VertexBasedCellPopulation< DIM > & | rVertexCellPopulation | |||
) | [inline, virtual] |
Get the line tension parameter for the edge between two given nodes.
pNodeA | one node | |
pNodeB | the other node | |
rVertexCellPopulation | reference to the cell population |
Definition at line 170 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::GetBoundaryLineTensionParameter(), FarhadifarForce< DIM >::GetLineTensionParameter(), and Node< SPACE_DIM >::rGetContainingElementIndices().
double FarhadifarForce< DIM >::GetPerimeterContractilityParameter | ( | ) | [inline] |
Definition at line 207 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mPerimeterContractilityParameter.
Referenced by FarhadifarForce< DIM >::AddForceContribution().
void FarhadifarForce< DIM >::OutputForceParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Overridden OutputForceParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractForce< DIM >.
Definition at line 250 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mAreaElasticityParameter, FarhadifarForce< DIM >::mBoundaryLineTensionParameter, FarhadifarForce< DIM >::mLineTensionParameter, and FarhadifarForce< DIM >::mPerimeterContractilityParameter.
void FarhadifarForce< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Boost Serialization method for archiving/checkpointing. Archives the object and its member variables.
archive | The boost archive. | |
version | The current version of this class. |
Reimplemented from AbstractForce< DIM >.
Definition at line 70 of file FarhadifarForce.hpp.
References FarhadifarForce< DIM >::mAreaElasticityParameter, FarhadifarForce< DIM >::mBoundaryLineTensionParameter, FarhadifarForce< DIM >::mLineTensionParameter, and FarhadifarForce< DIM >::mPerimeterContractilityParameter.
void FarhadifarForce< DIM >::SetAreaElasticityParameter | ( | double | areaElasticityParameter | ) | [inline] |
Set mAreaElasticityParameter.
areaElasticityParameter | the new value of mAreaElasticityParameter |
Definition at line 225 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mAreaElasticityParameter.
void FarhadifarForce< DIM >::SetBoundaryLineTensionParameter | ( | double | boundaryLineTensionParameter | ) | [inline] |
Set mBoundaryLineTensionParameter.
boundaryLineTensionParameter | the new value of mBoundaryLineTensionParameter |
Definition at line 243 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mBoundaryLineTensionParameter.
void FarhadifarForce< DIM >::SetLineTensionParameter | ( | double | lineTensionParameter | ) | [inline] |
Set mLineTensionParameter.
lineTensionParameter | the new value of mLineTensionParameter |
Definition at line 237 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mLineTensionParameter.
void FarhadifarForce< DIM >::SetPerimeterContractilityParameter | ( | double | perimeterContractilityParameter | ) | [inline] |
Set mPerimeterContractilityParameter.
perimeterContractilityParameter | the new value of perimterContractilityParameter |
Definition at line 231 of file FarhadifarForce.cpp.
References FarhadifarForce< DIM >::mPerimeterContractilityParameter.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractForce< DIM >.
Definition at line 61 of file FarhadifarForce.hpp.
double FarhadifarForce< DIM >::mAreaElasticityParameter [protected] |
The strength of the area term in the model. Corresponds to K_alpha in Farhadifar's paper.
Definition at line 84 of file FarhadifarForce.hpp.
Referenced by FarhadifarForce< DIM >::GetAreaElasticityParameter(), FarhadifarForce< DIM >::OutputForceParameters(), FarhadifarForce< DIM >::serialize(), and FarhadifarForce< DIM >::SetAreaElasticityParameter().
double FarhadifarForce< DIM >::mBoundaryLineTensionParameter [protected] |
The strength of the line tension at the boundary. This term does correspond to Lambda_{i,j} in Farhadifar's paper.
Definition at line 99 of file FarhadifarForce.hpp.
Referenced by FarhadifarForce< DIM >::GetBoundaryLineTensionParameter(), FarhadifarForce< DIM >::OutputForceParameters(), FarhadifarForce< DIM >::serialize(), and FarhadifarForce< DIM >::SetBoundaryLineTensionParameter().
double FarhadifarForce< DIM >::mLineTensionParameter [protected] |
The strength of the line tension term in the model. Lambda_{i,j} in Farhadifar's paper.
Definition at line 94 of file FarhadifarForce.hpp.
Referenced by FarhadifarForce< DIM >::GetLineTensionParameter(), FarhadifarForce< DIM >::OutputForceParameters(), FarhadifarForce< DIM >::serialize(), and FarhadifarForce< DIM >::SetLineTensionParameter().
double FarhadifarForce< DIM >::mPerimeterContractilityParameter [protected] |
The strength of the perimeter term in the model. Corresponds to Gamma_alpha in Farhadifar's paper.
Definition at line 89 of file FarhadifarForce.hpp.
Referenced by FarhadifarForce< DIM >::GetPerimeterContractilityParameter(), FarhadifarForce< DIM >::OutputForceParameters(), FarhadifarForce< DIM >::serialize(), and FarhadifarForce< DIM >::SetPerimeterContractilityParameter().