Chaste
Release::2018.1
|
#include <DiffusionForce.hpp>
Public Member Functions | |
DiffusionForce () | |
~DiffusionForce () | |
void | SetAbsoluteTemperature (double absoluteTemperature) |
void | SetViscosity (double viscosity) |
double | GetAbsoluteTemperature () |
double | GetViscosity () |
double | GetDiffusionScalingConstant () |
void | AddForceContribution (AbstractCellPopulation< DIM > &rCellPopulation) |
void | OutputForceParameters (out_stream &rParamsFile) |
Public Member Functions inherited from AbstractForce< DIM > | |
AbstractForce () | |
virtual | ~AbstractForce () |
virtual void | AddForceContribution (AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM > &rCellPopulation)=0 |
void | OutputForceInfo (out_stream &rParamsFile) |
virtual void | WriteDataToVisualizerSetupFile (out_stream &pVizSetupFile) |
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) |
Private Attributes | |
double | mAbsoluteTemperature |
double | mViscosity |
Static Private Attributes | |
static const double | msBoltzmannConstant = 4.97033568e-7 |
Friends | |
class | boost::serialization::access |
A 'diffusion force' class to model the random movement of nodes.
This class works with all off-lattice cell populations.
Definition at line 52 of file DiffusionForce.hpp.
DiffusionForce< DIM >::DiffusionForce | ( | ) |
Constructor.
Definition at line 44 of file DiffusionForce.cpp.
DiffusionForce< DIM >::~DiffusionForce | ( | ) |
Destructor.
Definition at line 52 of file DiffusionForce.cpp.
void DiffusionForce< DIM >::AddForceContribution | ( | AbstractCellPopulation< DIM > & | rCellPopulation | ) |
Overridden AddForceContribution() method. Note that this method requires cell/node radii to be set.
rCellPopulation | reference to the tissue |
Definition at line 89 of file DiffusionForce.cpp.
References EXCEPTION, AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorBegin(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorEnd(), SimulationTime::GetTimeStep(), SimulationTime::Instance(), RandomNumberGenerator::Instance(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::rGetMesh(), and RandomNumberGenerator::StandardNormalRandomDeviate().
double DiffusionForce< DIM >::GetAbsoluteTemperature | ( | ) |
Get the absolute temperature.
Definition at line 64 of file DiffusionForce.cpp.
double DiffusionForce< DIM >::GetDiffusionScalingConstant | ( | ) |
Calculate the scaling of the diffusion constant
Definition at line 83 of file DiffusionForce.cpp.
double DiffusionForce< DIM >::GetViscosity | ( | ) |
|
virtual |
Overridden OutputForceParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractForce< DIM >.
Definition at line 143 of file DiffusionForce.cpp.
References AbstractForce< ELEMENT_DIM, SPACE_DIM >::OutputForceParameters().
|
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 86 of file DiffusionForce.hpp.
References DiffusionForce< DIM >::mAbsoluteTemperature, and DiffusionForce< DIM >::mViscosity.
void DiffusionForce< DIM >::SetAbsoluteTemperature | ( | double | absoluteTemperature | ) |
Set the absolute temperature, which affects the diffusion constant.
absoluteTemperature | the temperature in Kelvin |
Definition at line 57 of file DiffusionForce.cpp.
void DiffusionForce< DIM >::SetViscosity | ( | double | viscosity | ) |
Set the media viscosity (dynamic), which affects the diffusion constant.
viscosity | the viscosity |
Definition at line 70 of file DiffusionForce.cpp.
|
friend |
Archiving.
Definition at line 77 of file DiffusionForce.hpp.
|
private |
Absolute temperature (in Kelvin).
Definition at line 59 of file DiffusionForce.hpp.
Referenced by DiffusionForce< DIM >::serialize().
|
staticprivate |
The Boltzmann constant, which takes the value 4.97033568e-7 (10 microns)^2 kg h^(-2) K^(-1).
Definition at line 72 of file DiffusionForce.hpp.
|
private |
Viscosity of media. We assume that this is measured in units of kg (10 microns)^(-1) h^(-1), and that cell diameters are scaled with a characteristic length of 10 microns.
Definition at line 66 of file DiffusionForce.hpp.
Referenced by DiffusionForce< DIM >::serialize().