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

#include <SimpleUniformSourcePde.hpp>

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

Public Member Functions

 SimpleUniformSourcePde (double coefficient=0.0)
 
double GetCoefficient () const
 
double ComputeConstantInUSourceTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
 
double ComputeLinearInUCoeffInSourceTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
 
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)
 

Private Member Functions

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

Private Attributes

double mCoefficient
 

Friends

class TestCellBasedPdes
 
class boost::serialization::access
 

Detailed Description

template<unsigned DIM>
class SimpleUniformSourcePde< DIM >

A simple nutrient PDE which is not directly coupled to the cell population.

Definition at line 48 of file SimpleUniformSourcePde.hpp.

Constructor & Destructor Documentation

template<unsigned DIM>
SimpleUniformSourcePde< DIM >::SimpleUniformSourcePde ( double  coefficient = 0.0)

Constructor.

Parameters
coefficientthe coefficient of consumption of nutrient by cells (defaults to 0.0)

Definition at line 39 of file SimpleUniformSourcePde.cpp.

Member Function Documentation

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

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 51 of file SimpleUniformSourcePde.cpp.

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

Overridden ComputeDiffusionTerm() method.

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

Definition at line 63 of file SimpleUniformSourcePde.cpp.

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

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 57 of file SimpleUniformSourcePde.cpp.

template<unsigned DIM>
double SimpleUniformSourcePde< DIM >::GetCoefficient ( ) const
Returns
mCoefficient

Definition at line 45 of file SimpleUniformSourcePde.cpp.

template<unsigned DIM>
template<class Archive >
void SimpleUniformSourcePde< 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 63 of file SimpleUniformSourcePde.hpp.

References SimpleUniformSourcePde< DIM >::mCoefficient.

Friends And Related Function Documentation

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

Needed for serialization.

Definition at line 55 of file SimpleUniformSourcePde.hpp.

Member Data Documentation

template<unsigned DIM>
double SimpleUniformSourcePde< DIM >::mCoefficient
private

Coefficient of consumption of nutrient by cells.

Definition at line 70 of file SimpleUniformSourcePde.hpp.

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


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