Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <CellwiseSourceEllipticPde.hpp>
Public Member Functions | |
CellwiseSourceEllipticPde (AbstractCellPopulation< DIM, DIM > &rCellPopulation, double sourceCoefficient=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) |
Public Member Functions inherited from AbstractLinearPde< ELEMENT_DIM, SPACE_DIM > | |
AbstractLinearPde () | |
virtual | ~AbstractLinearPde () |
Protected Attributes | |
AbstractCellPopulation< DIM, DIM > & | mrCellPopulation |
double | mSourceCoefficient |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | TestCellBasedEllipticPdes |
class | boost::serialization::access |
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*u*rho(x) = 0,
where the scalar k is specified by the member mSourceCoefficient, whose value must be set in the constructor.
For a node of the finite element mesh with location x, the function rho(x) equals one if there is a non-apoptotic cell associated with x, and zero otherwise. Here, 'associated with' takes a different meaning for each cell population class, and is encoded in the method IsPdeNodeAssociatedWithNonApoptoticCell().
Definition at line 64 of file CellwiseSourceEllipticPde.hpp.
CellwiseSourceEllipticPde< DIM >::CellwiseSourceEllipticPde | ( | AbstractCellPopulation< DIM, DIM > & | rCellPopulation, |
double | sourceCoefficient = 0.0 |
||
) |
Constructor.
rCellPopulation | reference to the cell population |
sourceCoefficient | the source term coefficient (defaults to 0.0) |
Definition at line 39 of file CellwiseSourceEllipticPde.cpp.
|
virtual |
Overridden ComputeConstantInUSourceTerm() method.
rX | The point in space |
pElement | The element |
Definition at line 58 of file CellwiseSourceEllipticPde.cpp.
|
virtual |
Overridden ComputeDiffusionTerm() method.
rX | The point in space at which the diffusion term is computed |
Definition at line 86 of file CellwiseSourceEllipticPde.cpp.
|
virtual |
Overridden ComputeLinearInUCoeffInSourceTerm() method.
rX | The point in space |
pElement | the element |
Definition at line 65 of file CellwiseSourceEllipticPde.cpp.
References NEVER_REACHED.
|
virtual |
Overridden ComputeLinearInUCoeffInSourceTermAtNode() method.
rNode | reference to the node |
Definition at line 73 of file CellwiseSourceEllipticPde.cpp.
References Node< SPACE_DIM >::GetIndex().
double CellwiseSourceEllipticPde< DIM >::GetCoefficient | ( | ) | const |
Definition at line 52 of file CellwiseSourceEllipticPde.cpp.
const AbstractCellPopulation< DIM, DIM > & CellwiseSourceEllipticPde< DIM >::rGetCellPopulation | ( | ) | const |
Definition at line 46 of file CellwiseSourceEllipticPde.cpp.
|
inlineprivate |
Serialize the PDE and its member variables.
archive | the archive |
version | the current version of this class |
Definition at line 79 of file CellwiseSourceEllipticPde.hpp.
References CellwiseSourceEllipticPde< DIM >::mSourceCoefficient.
|
friend |
Needed for serialization.
Definition at line 71 of file CellwiseSourceEllipticPde.hpp.
|
friend |
Definition at line 66 of file CellwiseSourceEllipticPde.hpp.
|
protected |
The cell population member.
Definition at line 88 of file CellwiseSourceEllipticPde.hpp.
|
protected |
Coefficient of the source term.
Definition at line 91 of file CellwiseSourceEllipticPde.hpp.
Referenced by CellwiseSourceEllipticPde< DIM >::serialize().