![]() |
Chaste Commit::675f9facbe008c5eacb9006feaeb6423206579ea
|
#include <UniformSourceParabolicPde.hpp>
Inheritance diagram for UniformSourceParabolicPde< DIM >:
Collaboration diagram for UniformSourceParabolicPde< DIM >:Public Member Functions | |
| UniformSourceParabolicPde (double constantSourceCoefficient=0.0, double linearSourceCoefficient=0.0, double diffusionCoefficient=1.0, double duDtCoefficient=1.0) | |
| double | GetConstantCoefficient () const |
| double | GetLinearCoefficient () const |
| double | GetDiffusionCoefficient () const |
| double | GetDuDtCoefficient () const |
| double | ComputeSourceTerm (const ChastePoint< DIM > &rX, double u, Element< DIM, DIM > *pElement=nullptr) override |
| c_matrix< double, DIM, DIM > | ComputeDiffusionTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement=nullptr) override |
| double | ComputeDuDtCoefficientFunction (const ChastePoint< DIM > &rX) override |
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)=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 | mConstantSourceCoefficient |
| double | mLinearSourceCoefficient |
| double | mDiffusionCoefficient |
| double | mDuDtCoefficient |
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
c*du/dt = D Grad.(Grad(u)) + a*u + b,
where the scalars c, a, b and D are specified by the members mDuDtCoefficient, mConstantSourceCoefficient, mLinearSourceCoefficient, and mDiffusionCoefficient respectively whose values 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 | constantSourceCoefficient = 0.0, |
| double | linearSourceCoefficient = 0.0, |
||
| double | diffusionCoefficient = 1.0, |
||
| double | duDtCoefficient = 1.0 |
||
| ) |
Constructor.
| 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) |
| duDtCoefficient | rate of reaction (defaults to 1.0) |
Definition at line 39 of file UniformSourceParabolicPde.cpp.
|
override |
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 81 of file UniformSourceParabolicPde.cpp.
|
override |
Overridden ComputeDuDtCoefficientFunction() method.
| rX | the point in space at which the function c is computed |
Definition at line 87 of file UniformSourceParabolicPde.cpp.
|
override |
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 75 of file UniformSourceParabolicPde.cpp.
| double UniformSourceParabolicPde< DIM >::GetConstantCoefficient | ( | ) | const |
Definition at line 51 of file UniformSourceParabolicPde.cpp.
| double UniformSourceParabolicPde< DIM >::GetDiffusionCoefficient | ( | ) | const |
Definition at line 63 of file UniformSourceParabolicPde.cpp.
| double UniformSourceParabolicPde< DIM >::GetDuDtCoefficient | ( | ) | const |
Definition at line 69 of file UniformSourceParabolicPde.cpp.
| double UniformSourceParabolicPde< DIM >::GetLinearCoefficient | ( | ) | const |
Definition at line 57 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 >::mConstantSourceCoefficient, UniformSourceParabolicPde< DIM >::mDiffusionCoefficient, UniformSourceParabolicPde< DIM >::mDuDtCoefficient, and UniformSourceParabolicPde< DIM >::mLinearSourceCoefficient.
|
friend |
Needed for serialization.
Definition at line 67 of file UniformSourceParabolicPde.hpp.
|
friend |
Definition at line 62 of file UniformSourceParabolicPde.hpp.
|
private |
Coefficient of constant source term.
Definition at line 85 of file UniformSourceParabolicPde.hpp.
Referenced by UniformSourceParabolicPde< DIM >::serialize().
|
private |
Diffusion coefficient.
Definition at line 91 of file UniformSourceParabolicPde.hpp.
Referenced by UniformSourceParabolicPde< DIM >::serialize().
|
private |
Coefficient of rate of change term.
Definition at line 94 of file UniformSourceParabolicPde.hpp.
Referenced by UniformSourceParabolicPde< DIM >::serialize().
|
private |
Coefficient of linear source term.
Definition at line 88 of file UniformSourceParabolicPde.hpp.
Referenced by UniformSourceParabolicPde< DIM >::serialize().