#include <AveragedSourcePde.hpp>
Public Member Functions | |
AveragedSourcePde (MeshBasedCellPopulation< DIM > &rCellPopulation, double coefficient) | |
void | SetupSourceTerms (TetrahedralMesh< DIM, DIM > &rCoarseMesh) |
double | ComputeConstantInUSourceTerm (const ChastePoint< DIM > &rX) |
double | ComputeLinearInUCoeffInSourceTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement) |
c_matrix< double, DIM, DIM > | ComputeDiffusionTerm (const ChastePoint< DIM > &rX) |
Private Attributes | |
MeshBasedCellPopulation< DIM > & | mrCellPopulation |
double | mCoefficient |
std::vector< double > | mCellDensityOnCoarseElements |
Definition at line 40 of file AveragedSourcePde.hpp.
AveragedSourcePde< DIM >::AveragedSourcePde | ( | MeshBasedCellPopulation< DIM > & | rCellPopulation, | |
double | coefficient | |||
) | [inline] |
Constructor.
rCellPopulation | reference to the cell population | |
coefficient | the coefficient of consumption of nutrient by cells |
Definition at line 33 of file AveragedSourcePde.cpp.
void AveragedSourcePde< DIM >::SetupSourceTerms | ( | TetrahedralMesh< DIM, DIM > & | rCoarseMesh | ) | [inline] |
Set up the source terms.
rCoarseMesh | reference to the coarse mesh |
Definition at line 40 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.
double AveragedSourcePde< DIM >::ComputeConstantInUSourceTerm | ( | const ChastePoint< DIM > & | rX | ) | [inline] |
Overridden ComputeConstantInUSourceTerm() method.
rX | The point in space |
Definition at line 76 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 82 of file AveragedSourcePde.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetIndex(), AveragedSourcePde< DIM >::mCellDensityOnCoarseElements, and AveragedSourcePde< DIM >::mCoefficient.
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 89 of file AveragedSourcePde.cpp.
MeshBasedCellPopulation<DIM>& AveragedSourcePde< DIM >::mrCellPopulation [private] |
The cell population member.
Definition at line 45 of file AveragedSourcePde.hpp.
Referenced by AveragedSourcePde< DIM >::SetupSourceTerms().
double AveragedSourcePde< DIM >::mCoefficient [private] |
Coefficient of consumption of nutrient by cells.
Definition at line 48 of file AveragedSourcePde.hpp.
Referenced by AveragedSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm().
std::vector<double> AveragedSourcePde< DIM >::mCellDensityOnCoarseElements [private] |
Vector of averaged cell densities on elements of the coarse mesh.
Definition at line 51 of file AveragedSourcePde.hpp.
Referenced by AveragedSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm(), and AveragedSourcePde< DIM >::SetupSourceTerms().