Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <UniformSourceParabolicPde.hpp>
Public Member Functions | |
UniformSourceParabolicPde (double sourceCoefficient=0.0) | |
double | GetCoefficient () const |
double | ComputeSourceTerm (const ChastePoint< DIM > &rX, double u, Element< DIM, DIM > *pElement=NULL) |
c_matrix< double, DIM, DIM > | ComputeDiffusionTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement=NULL) |
double | ComputeDuDtCoefficientFunction (const ChastePoint< DIM > &rX) |
Public Member Functions inherited from AbstractLinearParabolicPde< DIM, DIM > | |
AbstractLinearParabolicPde () | |
virtual | ~AbstractLinearParabolicPde () |
virtual double | ComputeDuDtCoefficientFunction (const ChastePoint< SPACE_DIM > &rX)=0 |
virtual double | ComputeSourceTerm (const ChastePoint< SPACE_DIM > &rX, double u, Element< ELEMENT_DIM, SPACE_DIM > *pElement=nullptr)=0 |
virtual double | ComputeSourceTermAtNode (const Node< SPACE_DIM > &rNode, double u) |
virtual c_matrix< double, SPACE_DIM, SPACE_DIM > | ComputeDiffusionTerm (const ChastePoint< SPACE_DIM > &rX, Element< ELEMENT_DIM, SPACE_DIM > *pElement=NULL)=0 |
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 | TestCellBasedParabolicPdes |
class | boost::serialization::access |
A parabolic PDE to be solved numerically using the finite element method, for coupling to a cell-based simulation.
The PDE takes the form
du/dt = Grad.(Grad(u)) + k,
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 UniformSourceParabolicPde.hpp.
UniformSourceParabolicPde< DIM >::UniformSourceParabolicPde | ( | double | sourceCoefficient = 0.0 | ) |
Constructor.
sourceCoefficient | the source term coefficient (defaults to 0.0) |
Definition at line 39 of file UniformSourceParabolicPde.cpp.
c_matrix< double, DIM, DIM > UniformSourceParabolicPde< DIM >::ComputeDiffusionTerm | ( | const ChastePoint< DIM > & | rX, |
Element< DIM, DIM > * | pElement = NULL |
||
) |
Overridden ComputeDiffusionTerm() method.
rX | the point in space at which the diffusion term is computed |
pElement | the mesh element that x is contained in (optional; defaults to NULL). |
Definition at line 57 of file UniformSourceParabolicPde.cpp.
double UniformSourceParabolicPde< DIM >::ComputeDuDtCoefficientFunction | ( | const ChastePoint< DIM > & | rX | ) |
Overridden ComputeDuDtCoefficientFunction() method.
rX | the point in space at which the function c is computed |
Definition at line 63 of file UniformSourceParabolicPde.cpp.
double UniformSourceParabolicPde< DIM >::ComputeSourceTerm | ( | const ChastePoint< DIM > & | rX, |
double | u, | ||
Element< DIM, DIM > * | pElement = NULL |
||
) |
Overridden ComputeSourceTerm() method.
rX | the point in space at which the nonlinear source term is computed |
u | the value of the dependent variable at the point |
pElement | The element |
Definition at line 51 of file UniformSourceParabolicPde.cpp.
double UniformSourceParabolicPde< DIM >::GetCoefficient | ( | ) | const |
Definition at line 45 of file UniformSourceParabolicPde.cpp.
|
inlineprivate |
Serialize the PDE and its member variables.
archive | the archive |
version | the current version of this class |
Definition at line 75 of file UniformSourceParabolicPde.hpp.
References UniformSourceParabolicPde< DIM >::mSourceCoefficient.
|
friend |
Needed for serialization.
Definition at line 67 of file UniformSourceParabolicPde.hpp.
|
friend |
Definition at line 62 of file UniformSourceParabolicPde.hpp.
|
private |
Constant source term (rate of production) of the dependent variable.
Definition at line 82 of file UniformSourceParabolicPde.hpp.
Referenced by UniformSourceParabolicPde< DIM >::serialize().