![]() |
Chaste Commit::30a3e656d4b131f8c595cc6eb2becd297337570f
|
#include <CellwiseSourceEllipticPde.hpp>
Public Member Functions | |
CellwiseSourceEllipticPde (AbstractCellPopulation< DIM, DIM > &rCellPopulation, double constantSourceCoefficient=0.0, double linearSourceCoefficient=0.0, double diffusionCoefficient=1.0, bool scaleByCellVolume=false) | |
const AbstractCellPopulation< DIM > & | rGetCellPopulation () const |
double | GetConstantCoefficient () const |
double | GetLinearCoefficient () const |
double | GetDiffusionCoefficient () const |
bool | GetScaleByCellVolume () const |
double | ComputeConstantInUSourceTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement) override |
double | ComputeLinearInUCoeffInSourceTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement) override |
double | ComputeLinearInUCoeffInSourceTermAtNode (const Node< DIM > &rNode) override |
double | ComputeConstantInUSourceTermAtNode (const Node< DIM > &rNode) override |
c_matrix< double, DIM, DIM > | ComputeDiffusionTerm (const ChastePoint< DIM > &rX) override |
![]() | |
AbstractLinearEllipticPde () | |
~AbstractLinearEllipticPde () override=default | |
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) |
![]() | |
AbstractLinearPde () | |
virtual | ~AbstractLinearPde () |
Protected Attributes | |
AbstractCellPopulation< DIM, DIM > & | mrCellPopulation |
double | mConstantSourceCoefficient |
double | mLinearSourceCoefficient |
double | mDiffusionCoefficient |
bool | mScaleByCellVolume |
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.(D Grad(u)) + a*u*rho(x) + b*rho(x) = 0,
where the scalars a and b are specified by the members mLinearSourceCoefficient, and mConstantSourceCoefficient respectively, 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 65 of file CellwiseSourceEllipticPde.hpp.
CellwiseSourceEllipticPde< DIM >::CellwiseSourceEllipticPde | ( | AbstractCellPopulation< DIM, DIM > & | rCellPopulation, |
double | constantSourceCoefficient = 0.0 , |
||
double | linearSourceCoefficient = 0.0 , |
||
double | diffusionCoefficient = 1.0 , |
||
bool | scaleByCellVolume = false |
||
) |
Constructor.
rCellPopulation | reference to the cell population |
constantSourceCoefficient | the constant source term coefficient (defaults to 0.0) |
linearSourceCoefficient | the linear source term coefficient (defaults to 0.0) |
diffusionCoefficient | the rate of diffusion (defaults to 1.0) |
scaleByCellVolume | whether to scale by cell volume (defaults to) |
Definition at line 39 of file CellwiseSourceEllipticPde.cpp.
|
override |
Overridden ComputeConstantInUSourceTerm() method.
rX | The point in space |
pElement | The element |
Definition at line 84 of file CellwiseSourceEllipticPde.cpp.
References NEVER_REACHED.
|
override |
Overridden ComputeConstantInUCoeffInSourceTermAtNode() method.
rNode | reference to the node |
Definition at line 128 of file CellwiseSourceEllipticPde.cpp.
References EXCEPTION, and Node< SPACE_DIM >::GetIndex().
|
override |
Overridden ComputeDiffusionTerm() method.
rX | The point in space at which the diffusion term is computed |
Definition at line 158 of file CellwiseSourceEllipticPde.cpp.
|
override |
Overridden ComputeLinearInUCoeffInSourceTerm() method.
rX | The point in space |
pElement | the element |
Definition at line 90 of file CellwiseSourceEllipticPde.cpp.
References NEVER_REACHED.
|
override |
Overridden ComputeLinearInUCoeffInSourceTermAtNode() method.
rNode | reference to the node |
Definition at line 97 of file CellwiseSourceEllipticPde.cpp.
References EXCEPTION, and Node< SPACE_DIM >::GetIndex().
double CellwiseSourceEllipticPde< DIM >::GetConstantCoefficient | ( | ) | const |
Definition at line 59 of file CellwiseSourceEllipticPde.cpp.
double CellwiseSourceEllipticPde< DIM >::GetDiffusionCoefficient | ( | ) | const |
Definition at line 71 of file CellwiseSourceEllipticPde.cpp.
double CellwiseSourceEllipticPde< DIM >::GetLinearCoefficient | ( | ) | const |
Definition at line 65 of file CellwiseSourceEllipticPde.cpp.
bool CellwiseSourceEllipticPde< DIM >::GetScaleByCellVolume | ( | ) | const |
Definition at line 77 of file CellwiseSourceEllipticPde.cpp.
const AbstractCellPopulation< DIM > & CellwiseSourceEllipticPde< DIM >::rGetCellPopulation | ( | ) | const |
Definition at line 53 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 80 of file CellwiseSourceEllipticPde.hpp.
References CellwiseSourceEllipticPde< DIM >::mConstantSourceCoefficient, CellwiseSourceEllipticPde< DIM >::mDiffusionCoefficient, CellwiseSourceEllipticPde< DIM >::mLinearSourceCoefficient, and CellwiseSourceEllipticPde< DIM >::mScaleByCellVolume.
|
friend |
Needed for serialization.
Definition at line 72 of file CellwiseSourceEllipticPde.hpp.
|
friend |
Definition at line 67 of file CellwiseSourceEllipticPde.hpp.
|
protected |
Coefficient of constant source term.
Definition at line 95 of file CellwiseSourceEllipticPde.hpp.
Referenced by CellwiseSourceEllipticPde< DIM >::serialize().
|
protected |
Diffusion coefficient.
Definition at line 101 of file CellwiseSourceEllipticPde.hpp.
Referenced by CellwiseSourceEllipticPde< DIM >::serialize().
|
protected |
Coefficient of linear source term.
Definition at line 98 of file CellwiseSourceEllipticPde.hpp.
Referenced by CellwiseSourceEllipticPde< DIM >::serialize().
|
protected |
The cell population member.
Definition at line 92 of file CellwiseSourceEllipticPde.hpp.
|
protected |
Whether to scale terms by cell volume.
Definition at line 104 of file CellwiseSourceEllipticPde.hpp.
Referenced by CellwiseSourceEllipticPde< DIM >::serialize().