Chaste Release::3.1
DiffusionForce< DIM > Class Template Reference

#include <DiffusionForce.hpp>

Inheritance diagram for DiffusionForce< DIM >:
Collaboration diagram for DiffusionForce< DIM >:

List of all members.

Public Member Functions

 DiffusionForce ()
 ~DiffusionForce ()
void SetDiffusionConstant (double diffusionConstant)
void SetAbsoluteTemperature (double absoluteTemperature)
void SetViscosity (double viscosity)
void SetCutOffLength (double cutOffLength)
double GetDiffusionConstant ()
double GetAbsoluteTemperature ()
double GetViscosity ()
double GetCutOffLength ()
void AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractCellPopulation< DIM > &rCellPopulation)
void OutputForceParameters (out_stream &rParamsFile)

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)

Private Attributes

double mDiffusionConstant
double mAbsoluteTemperature
double mViscosity
double mMechanicsCutOffLength

Friends

class boost::serialization::access

Detailed Description

template<unsigned DIM>
class DiffusionForce< DIM >

A force class to model diffusion.

Definition at line 50 of file DiffusionForce.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
DiffusionForce< DIM >::DiffusionForce ( )

Constructor.

Definition at line 40 of file DiffusionForce.cpp.

template<unsigned DIM>
DiffusionForce< DIM >::~DiffusionForce ( )

Destructor.

Definition at line 50 of file DiffusionForce.cpp.


Member Function Documentation

template<unsigned DIM>
void DiffusionForce< DIM >::AddForceContribution ( std::vector< c_vector< double, DIM > > &  rForces,
AbstractCellPopulation< DIM > &  rCellPopulation 
)
template<unsigned DIM>
double DiffusionForce< DIM >::GetAbsoluteTemperature ( )

Get the absolute temperature.

Returns:
mAbsoluteTemperature

Definition at line 89 of file DiffusionForce.cpp.

template<unsigned DIM>
double DiffusionForce< DIM >::GetCutOffLength ( )

Get the cutoff length.

Returns:
mCutOffLenght

Definition at line 63 of file DiffusionForce.cpp.

template<unsigned DIM>
double DiffusionForce< DIM >::GetDiffusionConstant ( )

Get the diffusion coefficient.

Returns:
mDiffusionConstant

Definition at line 76 of file DiffusionForce.cpp.

template<unsigned DIM>
double DiffusionForce< DIM >::GetViscosity ( )

Get the viscosity.

Returns:
mViscosity

Definition at line 102 of file DiffusionForce.cpp.

template<unsigned DIM>
void DiffusionForce< DIM >::OutputForceParameters ( out_stream &  rParamsFile) [virtual]

Overridden OutputForceParameters() method.

Parameters:
rParamsFilethe file stream to which the parameters are output

Implements AbstractForce< DIM >.

Definition at line 156 of file DiffusionForce.cpp.

References AbstractForce< ELEMENT_DIM, SPACE_DIM >::OutputForceParameters().

template<unsigned DIM>
template<class Archive >
void DiffusionForce< DIM >::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]

Serialize the object.

Parameters:
archivethe archive
versionthe current version of this class

Reimplemented from AbstractForce< DIM >.

Definition at line 81 of file DiffusionForce.hpp.

References DiffusionForce< DIM >::mAbsoluteTemperature, DiffusionForce< DIM >::mDiffusionConstant, DiffusionForce< DIM >::mMechanicsCutOffLength, and DiffusionForce< DIM >::mViscosity.

template<unsigned DIM>
void DiffusionForce< DIM >::SetAbsoluteTemperature ( double  absoluteTemperature)

Set the absolute temperature, which affects the diffusion constant.

Parameters:
absoluteTemperaturethe temperature in Kelvin

Definition at line 82 of file DiffusionForce.cpp.

template<unsigned DIM>
void DiffusionForce< DIM >::SetCutOffLength ( double  cutOffLength)

Use a cutoff point, i.e. specify zero force if two cells are greater than the cutoff distance apart.

Parameters:
cutOffLengththe cutoff to use

Definition at line 55 of file DiffusionForce.cpp.

template<unsigned DIM>
void DiffusionForce< DIM >::SetDiffusionConstant ( double  diffusionConstant)

Set the diffusion constant for the cells.

Parameters:
diffusionConstantthe diffusion constant to use

Definition at line 69 of file DiffusionForce.cpp.

template<unsigned DIM>
void DiffusionForce< DIM >::SetViscosity ( double  viscosity)

Set the media viscosity (dynamic), which affects the diffusion constant.

Parameters:
viscositythe viscosity

Definition at line 95 of file DiffusionForce.cpp.


Friends And Related Function Documentation

template<unsigned DIM>
friend class boost::serialization::access [friend]

Archiving.

Reimplemented from AbstractForce< DIM >.

Definition at line 79 of file DiffusionForce.hpp.


Member Data Documentation

template<unsigned DIM>
double DiffusionForce< DIM >::mAbsoluteTemperature [private]

Absolute temperature (in Kelvin).

Definition at line 62 of file DiffusionForce.hpp.

Referenced by DiffusionForce< DIM >::serialize().

template<unsigned DIM>
double DiffusionForce< DIM >::mDiffusionConstant [private]

Diffusion constant.

Definition at line 57 of file DiffusionForce.hpp.

Referenced by DiffusionForce< DIM >::serialize().

template<unsigned DIM>
double DiffusionForce< DIM >::mMechanicsCutOffLength [private]

Mechanics cut off length.

Definition at line 74 of file DiffusionForce.hpp.

Referenced by DiffusionForce< DIM >::serialize().

template<unsigned DIM>
double DiffusionForce< DIM >::mViscosity [private]

Viscosity of media. We assume that this is measured in units of kg microns^(-1) h^(-1), and that cell diameters are scaled with a characteristic length of 1 micron.

Definition at line 69 of file DiffusionForce.hpp.

Referenced by DiffusionForce< DIM >::serialize().


The documentation for this class was generated from the following files: