#include <AveragedSourcePde.hpp>
Inherits AbstractLinearEllipticPde< DIM, DIM >.
Inherited by VolumeDependentAveragedSourcePde< DIM >.
Public Member Functions | |
AveragedSourcePde (AbstractCellPopulation< DIM > &rCellPopulation, double coefficient=0.0) | |
const AbstractCellPopulation < DIM > & | rGetCellPopulation () const |
double | GetCoefficient () const |
virtual void | SetupSourceTerms (TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=NULL) |
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) |
double | GetUptakeRateForElement (unsigned elementIndex) |
Protected Attributes | |
AbstractCellPopulation< DIM > & | mrCellPopulation |
double | mCoefficient |
std::vector< double > | mCellDensityOnCoarseElements |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | TestCellBasedPdes |
class | boost::serialization::access |
A PDE which calculates the source term by adding the number of cells in the element containing that point and scaling by the element area.
Definition at line 45 of file AveragedSourcePde.hpp.
AveragedSourcePde< DIM >::AveragedSourcePde | ( | AbstractCellPopulation< DIM > & | rCellPopulation, | |
double | coefficient = 0.0 | |||
) | [inline] |
Constructor.
rCellPopulation | reference to the cell population | |
coefficient | the coefficient of consumption of nutrient by cells (defaults to 0.0) |
Definition at line 34 of file AveragedSourcePde.cpp.
double AveragedSourcePde< DIM >::ComputeConstantInUSourceTerm | ( | const ChastePoint< DIM > & | rX, | |
Element< DIM, DIM > * | pElement | |||
) | [inline] |
Overridden ComputeConstantInUSourceTerm() method.
rX | The point in space | |
pElement | the element |
Definition at line 99 of file AveragedSourcePde.cpp.
c_matrix< double, DIM, DIM > AveragedSourcePde< DIM >::ComputeDiffusionTerm | ( | const ChastePoint< DIM > & | rX | ) | [inline] |
Overridden ComputeDiffusionTerm() method.
rX | The point in space at which the diffusion term is computed |
Definition at line 112 of file AveragedSourcePde.cpp.
double AveragedSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm | ( | const ChastePoint< DIM > & | rX, | |
Element< DIM, DIM > * | pElement | |||
) | [inline] |
Overridden ComputeLinearInUCoeffInSourceTerm() method.
rX | The point in space | |
pElement | the element |
Definition at line 105 of file AveragedSourcePde.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetIndex(), AveragedSourcePde< DIM >::mCellDensityOnCoarseElements, and AveragedSourcePde< DIM >::mCoefficient.
double AveragedSourcePde< DIM >::GetCoefficient | ( | ) | const [inline] |
Definition at line 47 of file AveragedSourcePde.cpp.
References AveragedSourcePde< DIM >::mCoefficient.
double AveragedSourcePde< DIM >::GetUptakeRateForElement | ( | unsigned | elementIndex | ) | [inline] |
Returns the uptake rate.
elementIndex | the element we wish to return the uptake rate for |
Definition at line 118 of file AveragedSourcePde.cpp.
References AveragedSourcePde< DIM >::mCellDensityOnCoarseElements.
const AbstractCellPopulation< DIM > & AveragedSourcePde< DIM >::rGetCellPopulation | ( | ) | const [inline] |
Definition at line 41 of file AveragedSourcePde.cpp.
References AveragedSourcePde< DIM >::mrCellPopulation.
void AveragedSourcePde< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the PDE and its member variables.
archive | the archive | |
version | the current version of this class |
Reimplemented from AbstractLinearEllipticPde< DIM, DIM >.
Reimplemented in VolumeDependentAveragedSourcePde< DIM >.
Definition at line 60 of file AveragedSourcePde.hpp.
References AveragedSourcePde< DIM >::mCellDensityOnCoarseElements, and AveragedSourcePde< DIM >::mCoefficient.
void AveragedSourcePde< DIM >::SetupSourceTerms | ( | TetrahedralMesh< DIM, DIM > & | rCoarseMesh, | |
std::map< CellPtr, unsigned > * | pCellPdeElementMap = NULL | |||
) | [inline, virtual] |
Set up the source terms.
rCoarseMesh | reference to the coarse mesh | |
pCellPdeElementMap | optional pointer to the map from cells to coarse elements |
Reimplemented in VolumeDependentAveragedSourcePde< DIM >.
Definition at line 53 of file AveragedSourcePde.cpp.
References TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndex(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), AveragedSourcePde< DIM >::mCellDensityOnCoarseElements, and AveragedSourcePde< DIM >::mrCellPopulation.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractLinearEllipticPde< DIM, DIM >.
Reimplemented in VolumeDependentAveragedSourcePde< DIM >.
Definition at line 52 of file AveragedSourcePde.hpp.
std::vector<double> AveragedSourcePde< DIM >::mCellDensityOnCoarseElements [protected] |
Vector of averaged cell densities on elements of the coarse mesh.
Definition at line 76 of file AveragedSourcePde.hpp.
Referenced by AveragedSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm(), AveragedSourcePde< DIM >::GetUptakeRateForElement(), AveragedSourcePde< DIM >::serialize(), VolumeDependentAveragedSourcePde< DIM >::SetupSourceTerms(), and AveragedSourcePde< DIM >::SetupSourceTerms().
double AveragedSourcePde< DIM >::mCoefficient [protected] |
Coefficient of consumption of nutrient by cells.
Definition at line 73 of file AveragedSourcePde.hpp.
Referenced by AveragedSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm(), AveragedSourcePde< DIM >::GetCoefficient(), and AveragedSourcePde< DIM >::serialize().
AbstractCellPopulation<DIM>& AveragedSourcePde< DIM >::mrCellPopulation [protected] |
The cell population member.
Definition at line 70 of file AveragedSourcePde.hpp.
Referenced by AveragedSourcePde< DIM >::rGetCellPopulation(), VolumeDependentAveragedSourcePde< DIM >::SetupSourceTerms(), AveragedSourcePde< DIM >::SetupSourceTerms(), and VolumeDependentAveragedSourcePde< DIM >::VolumeDependentAveragedSourcePde().