Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <ImmersedBoundaryKinematicFeedbackForce.hpp>
Public Member Functions | |
ImmersedBoundaryKinematicFeedbackForce () | |
virtual | ~ImmersedBoundaryKinematicFeedbackForce ()=default |
void | AddImmersedBoundaryForceContribution (std::vector< std::pair< Node< DIM > *, Node< DIM > * > > &rNodePairs, ImmersedBoundaryCellPopulation< DIM > &rCellPopulation) |
void | OutputImmersedBoundaryForceParameters (out_stream &rParamsFile) |
double | GetSpringConst () const |
void | SetSpringConst (double springConst) |
Public Member Functions inherited from AbstractImmersedBoundaryForce< DIM > | |
AbstractImmersedBoundaryForce () | |
virtual | ~AbstractImmersedBoundaryForce () |
bool | GetAdditiveNormalNoise () const |
void | SetAdditiveNormalNoise (bool additiveNormalNoise) |
double | GetNormalNoiseMean () const |
void | SetNormalNoiseMean (double normalNoiseMean) |
double | GetNormalNoiseStdDev () const |
void | SetNormalNoiseStdDev (double normalNoiseStdDev) |
Public Member Functions inherited from Identifiable | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
void | UpdatePreviousLocations (ImmersedBoundaryCellPopulation< DIM > &rCellPopulation) |
double | CalculateRelativeVelocityComponent (const c_vector< double, DIM > &rPreviousDisp, const c_vector< double, DIM > &rCurrentDisp, c_vector< double, DIM > &rUnitPerp) |
Private Attributes | |
double | mSpringConst |
std::vector< c_vector< double, DIM > > | mPreviousLocations |
Friends | |
class | TestImmersedBoundaryForces |
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 kinematic feedback; amplification of relative motion of cells sliding past one another.
Definition at line 54 of file ImmersedBoundaryKinematicFeedbackForce.hpp.
ImmersedBoundaryKinematicFeedbackForce< DIM >::ImmersedBoundaryKinematicFeedbackForce | ( | ) |
Constructor.
Definition at line 41 of file ImmersedBoundaryKinematicFeedbackForce.cpp.
|
virtualdefault |
Destructor.
|
virtual |
Overridden AddImmersedBoundaryForceContribution() method. Calculates the force on each node in the immersed boundary cell population as a result of kinematic feedback.
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 49 of file ImmersedBoundaryKinematicFeedbackForce.cpp.
References Node< SPACE_DIM >::AddAppliedForceContribution(), Node< SPACE_DIM >::ContainingElementsBegin(), ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetAverageNodeSpacingOfElement(), Node< SPACE_DIM >::GetIndex(), ImmersedBoundaryCellPopulation< DIM >::GetInteractionDistance(), ImmersedBoundaryCellPopulation< DIM >::GetIntrinsicSpacing(), ImmersedBoundaryCellPopulation< DIM >::GetNumNodes(), ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetVectorFromAtoB(), Node< SPACE_DIM >::rGetLocation(), and ImmersedBoundaryCellPopulation< DIM >::rGetMesh().
|
private |
Helper function for AddImmersedBoundaryForceContribution(). Calculates the component of their relative velocity in the direction perpendicular to the line joining the two nodes at the previous time step.
This relative velocity is a measure of shear between two boundaries, which this force class amplifies.
rPreviousDisp | displacement between a pair of interacting nodes at the previous time step |
rCurrentDisp | displacement between the same pair of interacting nodes at the current time step |
rUnitPerp | filled in as a unit vector perpendicular to previousDisp |
Definition at line 132 of file ImmersedBoundaryKinematicFeedbackForce.cpp.
References SimulationTime::Instance().
double ImmersedBoundaryKinematicFeedbackForce< DIM >::GetSpringConst | ( | ) | const |
Definition at line 178 of file ImmersedBoundaryKinematicFeedbackForce.cpp.
|
virtual |
Overridden OutputImmersedBoundaryForceParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractImmersedBoundaryForce< DIM >.
Definition at line 168 of file ImmersedBoundaryKinematicFeedbackForce.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 69 of file ImmersedBoundaryKinematicFeedbackForce.hpp.
References ImmersedBoundaryKinematicFeedbackForce< DIM >::mSpringConst.
void ImmersedBoundaryKinematicFeedbackForce< DIM >::SetSpringConst | ( | double | springConst | ) |
Set mSpringConst.
springConst | the new value of mSpringConst |
Definition at line 184 of file ImmersedBoundaryKinematicFeedbackForce.cpp.
|
private |
Helper function for AddImmersedBoundaryForceContribution(). Repopulate mPreviousLocations with new values.
rCellPopulation | the cell population |
Definition at line 146 of file ImmersedBoundaryKinematicFeedbackForce.cpp.
References ImmersedBoundaryCellPopulation< DIM >::rGetMesh(), and ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::rGetNodes().
|
friend |
Definition at line 60 of file ImmersedBoundaryKinematicFeedbackForce.hpp.
|
friend |
Definition at line 58 of file ImmersedBoundaryKinematicFeedbackForce.hpp.
|
private |
Vector to contain the location of each node at the previous time step.
Definition at line 84 of file ImmersedBoundaryKinematicFeedbackForce.hpp.
|
private |
The basic spring constant associated with interactions. Initialised to 1e3 in constructor.
Definition at line 79 of file ImmersedBoundaryKinematicFeedbackForce.hpp.
Referenced by ImmersedBoundaryKinematicFeedbackForce< DIM >::serialize().