Chaste  Release::3.4
CellwiseSourcePde< DIM > Class Template Reference

#include <CellwiseSourcePde.hpp>

+ Inheritance diagram for CellwiseSourcePde< DIM >:
+ Collaboration diagram for CellwiseSourcePde< DIM >:

Public Member Functions

 CellwiseSourcePde (AbstractCellPopulation< DIM, DIM > &rCellPopulation, double coefficient=0.0)
 
const AbstractCellPopulation
< DIM > & 
rGetCellPopulation () const
 
double GetCoefficient () const
 
virtual double ComputeConstantInUSourceTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
 
virtual double ComputeLinearInUCoeffInSourceTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
 
virtual double ComputeLinearInUCoeffInSourceTermAtNode (const Node< DIM > &rNode)
 
virtual c_matrix< double, DIM,
DIM > 
ComputeDiffusionTerm (const ChastePoint< DIM > &rX)
 
- Public Member Functions inherited from AbstractLinearEllipticPde< DIM, DIM >
 AbstractLinearEllipticPde ()
 
virtual ~AbstractLinearEllipticPde ()
 
virtual double ComputeConstantInUSourceTerm (const ChastePoint< SPACE_DIM > &rX, Element< ELEMENT_DIM, SPACE_DIM > *pElement)=0
 
virtual double ComputeLinearInUCoeffInSourceTerm (const ChastePoint< SPACE_DIM > &rX, Element< ELEMENT_DIM, SPACE_DIM > *pElement)=0
 
virtual c_matrix< double,
SPACE_DIM, SPACE_DIM > 
ComputeDiffusionTerm (const ChastePoint< SPACE_DIM > &rX)=0
 
virtual double ComputeConstantInUSourceTermAtNode (const Node< SPACE_DIM > &rNode)
 
virtual double ComputeLinearInUCoeffInSourceTermAtNode (const Node< SPACE_DIM > &rNode)
 

Protected Attributes

AbstractCellPopulation< DIM,
DIM > & 
mrCellPopulation
 
double mCoefficient
 

Private Member Functions

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

Friends

class TestCellBasedPdes
 
class boost::serialization::access
 

Detailed Description

template<unsigned DIM>
class CellwiseSourcePde< DIM >

A PDE which has a source at each non-apoptotic cell.

Definition at line 49 of file CellwiseSourcePde.hpp.

Constructor & Destructor Documentation

template<unsigned DIM>
CellwiseSourcePde< DIM >::CellwiseSourcePde ( AbstractCellPopulation< DIM, DIM > &  rCellPopulation,
double  coefficient = 0.0 
)

Constructor.

Parameters
rCellPopulationreference to the cell population
coefficientthe coefficient of consumption of nutrient by cells (defaults to 0.0)

Definition at line 41 of file CellwiseSourcePde.cpp.

Member Function Documentation

template<unsigned DIM>
double CellwiseSourcePde< DIM >::ComputeConstantInUSourceTerm ( const ChastePoint< DIM > &  rX,
Element< DIM, DIM > *  pElement 
)
virtual

Overridden ComputeConstantInUSourceTerm() method.

Parameters
rXThe point in space
pElementThe element
Returns
the constant in u part of the source term, i.e g(x) in Div(D Grad u) + f(x)u + g(x) = 0.

Definition at line 60 of file CellwiseSourcePde.cpp.

template<unsigned DIM>
c_matrix< double, DIM, DIM > CellwiseSourcePde< DIM >::ComputeDiffusionTerm ( const ChastePoint< DIM > &  rX)
virtual

Overridden ComputeDiffusionTerm() method.

Parameters
rXThe point in space at which the diffusion term is computed
Returns
a matrix.

Definition at line 93 of file CellwiseSourcePde.cpp.

template<unsigned DIM>
double CellwiseSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm ( const ChastePoint< DIM > &  rX,
Element< DIM, DIM > *  pElement 
)
virtual

Overridden ComputeLinearInUCoeffInSourceTerm() method.

Parameters
rXThe point in space
pElementthe element
Returns
the coefficient of u in the linear part of the source term, i.e f(x) in Div(D Grad u) + f(x)u + g(x) = 0.

Definition at line 66 of file CellwiseSourcePde.cpp.

References NEVER_REACHED.

template<unsigned DIM>
double CellwiseSourcePde< DIM >::ComputeLinearInUCoeffInSourceTermAtNode ( const Node< DIM > &  rNode)
virtual

Overridden ComputeLinearInUCoeffInSourceTermAtNode() method.

Parameters
rNodereference to the node
Returns
the coefficient of u in the linear part of the source term, i.e f(x) in Div(D Grad u) + f(x)u + g(x) = 0.

Definition at line 73 of file CellwiseSourcePde.cpp.

References Node< SPACE_DIM >::GetIndex().

template<unsigned DIM>
double CellwiseSourcePde< DIM >::GetCoefficient ( ) const
Returns
mCoefficient (used in archiving).

Definition at line 54 of file CellwiseSourcePde.cpp.

template<unsigned DIM>
const AbstractCellPopulation< DIM, DIM > & CellwiseSourcePde< DIM >::rGetCellPopulation ( ) const
Returns
const reference to the cell population (used in archiving).

Definition at line 48 of file CellwiseSourcePde.cpp.

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

Serialize the PDE and its member variables.

Parameters
archivethe archive
versionthe current version of this class

Definition at line 64 of file CellwiseSourcePde.hpp.

References CellwiseSourcePde< DIM >::mCoefficient.

Friends And Related Function Documentation

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

Needed for serialization.

Definition at line 56 of file CellwiseSourcePde.hpp.

Member Data Documentation

template<unsigned DIM>
double CellwiseSourcePde< DIM >::mCoefficient
protected

Coefficient of consumption of nutrient by cells.

Definition at line 76 of file CellwiseSourcePde.hpp.

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

template<unsigned DIM>
AbstractCellPopulation<DIM, DIM>& CellwiseSourcePde< DIM >::mrCellPopulation
protected

The cell population member.

Definition at line 73 of file CellwiseSourcePde.hpp.


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