Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <ImmersedBoundaryLinearMembraneForce.hpp>
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
template<unsigned ELEMENT_DIM> | |
void | CalculateForcesOnElement (ImmersedBoundaryElement< ELEMENT_DIM, DIM > &rElement, ImmersedBoundaryCellPopulation< DIM > &rCellPopulation, double intrinsicSpacingSquared) |
Private Attributes | |
double | mElementSpringConst |
double | mElementRestLength |
double | mLaminaSpringConst |
double | mLaminaRestLength |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractImmersedBoundaryForce< DIM > | |
void | AddNormalNoiseToNodes (ImmersedBoundaryCellPopulation< DIM > &rCellPopulation) |
Protected Attributes inherited from AbstractImmersedBoundaryForce< DIM > | |
bool | mAdditiveNormalNoise |
double | mNormalNoiseMean |
double | mNormalNoiseStdDev |
A force class for use in immersed boundary simulations. This force implements elastic links between adjacent nodes in each immersed boundary.
Definition at line 50 of file ImmersedBoundaryLinearMembraneForce.hpp.
ImmersedBoundaryLinearMembraneForce< DIM >::ImmersedBoundaryLinearMembraneForce | ( | ) |
Constructor
Definition at line 39 of file ImmersedBoundaryLinearMembraneForce.cpp.
|
virtual |
Destructor
Definition at line 49 of file ImmersedBoundaryLinearMembraneForce.cpp.
|
virtual |
Overridden AddImmersedBoundaryForceContribution() method. Calculates basic elasticity in the membrane of each immersed boundary as a result of interactions.
rNodePairs | reference to a vector set of node pairs between which to contribute the force |
rCellPopulation | reference to the cell population |
Implements AbstractImmersedBoundaryForce< DIM >.
Definition at line 54 of file ImmersedBoundaryLinearMembraneForce.cpp.
References ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorBegin(), ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorEnd(), ImmersedBoundaryCellPopulation< DIM >::GetIntrinsicSpacing(), ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetLaminaIteratorBegin(), ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetLaminaIteratorEnd(), and ImmersedBoundaryCellPopulation< DIM >::rGetMesh().
|
private |
Helper method for AddImmersedBoundaryForceContribution. Calculates forces, and can accept either an element or a lamina
ELEMENT_DIM | either DIM or DIM-1 depending on whether receiving an element or a lamina |
rElement | the element or lamina add forces to |
rCellPopulation | the immersed boundary cell population |
intrinsicSpacingSquared | the intrinsic node spacing |
Definition at line 85 of file ImmersedBoundaryLinearMembraneForce.cpp.
References ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetAverageNodeSpacingOfElement(), ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetAverageNodeSpacingOfLamina(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetIndex(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNode(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeLocation(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetVectorFromAtoB(), and ImmersedBoundaryCellPopulation< DIM >::rGetMesh().
double ImmersedBoundaryLinearMembraneForce< DIM >::GetElementRestLength | ( | ) | const |
Definition at line 185 of file ImmersedBoundaryLinearMembraneForce.cpp.
double ImmersedBoundaryLinearMembraneForce< DIM >::GetElementSpringConst | ( | ) | const |
Definition at line 172 of file ImmersedBoundaryLinearMembraneForce.cpp.
double ImmersedBoundaryLinearMembraneForce< DIM >::GetLaminaRestLength | ( | ) | const |
Definition at line 211 of file ImmersedBoundaryLinearMembraneForce.cpp.
double ImmersedBoundaryLinearMembraneForce< DIM >::GetLaminaSpringConst | ( | ) | const |
Definition at line 198 of file ImmersedBoundaryLinearMembraneForce.cpp.
|
virtual |
Overridden OutputImmersedBoundaryForceParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractImmersedBoundaryForce< DIM >.
Definition at line 159 of file ImmersedBoundaryLinearMembraneForce.cpp.
References AbstractImmersedBoundaryForce< DIM >::OutputImmersedBoundaryForceParameters().
|
inlineprivate |
Boost Serialization method for archiving/checkpointing. Archives the object and its member variables.
archive | The boost archive. |
version | The current version of this class. |
Definition at line 62 of file ImmersedBoundaryLinearMembraneForce.hpp.
References ImmersedBoundaryLinearMembraneForce< DIM >::mElementRestLength, ImmersedBoundaryLinearMembraneForce< DIM >::mElementSpringConst, ImmersedBoundaryLinearMembraneForce< DIM >::mLaminaRestLength, and ImmersedBoundaryLinearMembraneForce< DIM >::mLaminaSpringConst.
void ImmersedBoundaryLinearMembraneForce< DIM >::SetElementRestLength | ( | double | elementRestLength | ) |
Set mElementRestLength
elementRestLength | the new value of mElementRestLength |
Definition at line 191 of file ImmersedBoundaryLinearMembraneForce.cpp.
void ImmersedBoundaryLinearMembraneForce< DIM >::SetElementSpringConst | ( | double | elementSpringConst | ) |
Set mElementSpringConst.
elementSpringConst | the new value of mElementSpringConst |
Definition at line 178 of file ImmersedBoundaryLinearMembraneForce.cpp.
void ImmersedBoundaryLinearMembraneForce< DIM >::SetLaminaRestLength | ( | double | laminaRestLength | ) |
Set mLaminaRestLength.
laminaRestLength | the new value of mLaminaRestLength |
Definition at line 217 of file ImmersedBoundaryLinearMembraneForce.cpp.
void ImmersedBoundaryLinearMembraneForce< DIM >::SetLaminaSpringConst | ( | double | laminaSpringConst | ) |
Set mLaminaSpringConst.
laminaSpringConst | the new value of mLaminaSpringConst |
Definition at line 204 of file ImmersedBoundaryLinearMembraneForce.cpp.
|
friend |
Definition at line 53 of file ImmersedBoundaryLinearMembraneForce.hpp.
|
private |
The rest length associated with each element as a fraction of the average node spacing. Initialised to 0.5 in constructor.
Definition at line 81 of file ImmersedBoundaryLinearMembraneForce.hpp.
Referenced by ImmersedBoundaryLinearMembraneForce< DIM >::serialize().
|
private |
The spring constant associated with each element. Initialised to 1e6 in constructor.
Definition at line 75 of file ImmersedBoundaryLinearMembraneForce.hpp.
Referenced by ImmersedBoundaryLinearMembraneForce< DIM >::serialize().
|
private |
The rest length associated with each lamina as a fraction of the average node spacing. Initialised to 0.5 in constructor.
Definition at line 93 of file ImmersedBoundaryLinearMembraneForce.hpp.
Referenced by ImmersedBoundaryLinearMembraneForce< DIM >::serialize().
|
private |
The spring constant associated with each lamina. Initialised to 1e6 in constructor.
Definition at line 87 of file ImmersedBoundaryLinearMembraneForce.hpp.
Referenced by ImmersedBoundaryLinearMembraneForce< DIM >::serialize().