Chaste  Release::2018.1
UniformSourceEllipticPde< DIM > Class Template Reference

#include <UniformSourceEllipticPde.hpp>

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

Public Member Functions

 UniformSourceEllipticPde (double sourceCoefficient=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)
 
- Public Member Functions inherited from AbstractLinearPde< ELEMENT_DIM, SPACE_DIM >
 AbstractLinearPde ()
 
virtual ~AbstractLinearPde ()
 

Private Member Functions

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

Private Attributes

double mSourceCoefficient
 

Friends

class TestCellBasedEllipticPdes
 
class boost::serialization::access
 

Detailed Description

template<unsigned DIM>
class UniformSourceEllipticPde< DIM >

An elliptic PDE to be solved numerically using the finite element method, for coupling to a cell-based simulation.

The PDE takes the form

Grad.(Grad(u)) + k = 0,

where the scalar k is specified by the member mSourceCoefficient, whose value must be set in the constructor.

Thus, there is no direct coupling between the cell-based simulation and the terms of the PDE; here, the cell population just defines the spatial domain on which to solve the PDE.

Definition at line 60 of file UniformSourceEllipticPde.hpp.

Constructor & Destructor Documentation

template<unsigned DIM>
UniformSourceEllipticPde< DIM >::UniformSourceEllipticPde ( double  sourceCoefficient = 0.0)

Constructor.

Parameters
sourceCoefficientthe source term coefficient (defaults to 0.0)

Definition at line 39 of file UniformSourceEllipticPde.cpp.

Member Function Documentation

template<unsigned DIM>
double UniformSourceEllipticPde< 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 UniformSourceEllipticPde.cpp.

template<unsigned DIM>
c_matrix< double, DIM, DIM > UniformSourceEllipticPde< 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 UniformSourceEllipticPde.cpp.

template<unsigned DIM>
double UniformSourceEllipticPde< 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 UniformSourceEllipticPde.cpp.

template<unsigned DIM>
double UniformSourceEllipticPde< DIM >::GetCoefficient ( ) const
Returns
mSourceCoefficient

Definition at line 45 of file UniformSourceEllipticPde.cpp.

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

References UniformSourceEllipticPde< DIM >::mSourceCoefficient.

Friends And Related Function Documentation

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

Needed for serialization.

Definition at line 67 of file UniformSourceEllipticPde.hpp.

Member Data Documentation

template<unsigned DIM>
double UniformSourceEllipticPde< DIM >::mSourceCoefficient
private

Coefficient of source term.

Definition at line 82 of file UniformSourceEllipticPde.hpp.

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


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