Chaste Release::3.1
|
#include <ChemotacticForce.hpp>
Public Member Functions | |
ChemotacticForce () | |
~ChemotacticForce () | |
void | AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractCellPopulation< DIM > &rCellPopulation) |
void | OutputForceParameters (out_stream &rParamsFile) |
Private Member Functions | |
double | GetChemotacticForceMagnitude (const double concentration, const double concentrationGradientMagnitude) |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | TestForces |
class | boost::serialization::access |
A chemotactic force class.
Definition at line 51 of file ChemotacticForce.hpp.
ChemotacticForce< DIM >::ChemotacticForce | ( | ) |
Constructor.
Definition at line 40 of file ChemotacticForce.cpp.
ChemotacticForce< DIM >::~ChemotacticForce | ( | ) |
Destructor.
Definition at line 46 of file ChemotacticForce.cpp.
void ChemotacticForce< DIM >::AddForceContribution | ( | std::vector< c_vector< double, DIM > > & | rForces, |
AbstractCellPopulation< DIM > & | rCellPopulation | ||
) |
Overridden AddForceContribution() method.
rForces | reference to vector of forces on nodes |
rCellPopulation | reference to the cell population |
Fc = chi(C,|gradC|) gradC/|gradC| (if |gradC|>0, else Fc = 0)
Definition at line 58 of file ChemotacticForce.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Begin(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::End(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetLocationIndexUsingCell(), CellwiseDataGradient< DIM >::rGetGradient(), and CellwiseDataGradient< DIM >::SetupGradients().
double ChemotacticForce< DIM >::GetChemotacticForceMagnitude | ( | const double | concentration, |
const double | concentrationGradientMagnitude | ||
) | [private] |
Get the magnitude of the chemotactic force.
concentration | the local nutrient concentration |
concentrationGradientMagnitude | the magnitude of the local nutrient concentration gradient |
Definition at line 51 of file ChemotacticForce.cpp.
void ChemotacticForce< DIM >::OutputForceParameters | ( | out_stream & | rParamsFile | ) | [virtual] |
Overridden OutputForceParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractForce< DIM >.
Definition at line 90 of file ChemotacticForce.cpp.
References AbstractForce< ELEMENT_DIM, SPACE_DIM >::OutputForceParameters().
void ChemotacticForce< DIM >::serialize | ( | Archive & | archive, |
const unsigned int | version | ||
) | [inline, private] |
Serialize the object.
archive | the archive |
version | the current version of this class |
Reimplemented from AbstractForce< DIM >.
Definition at line 67 of file ChemotacticForce.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractForce< DIM >.
Definition at line 65 of file ChemotacticForce.hpp.