#include <VolumeDependentAveragedSourcePde.hpp>
Inherits AveragedSourcePde< DIM >.
Public Member Functions | |
VolumeDependentAveragedSourcePde (AbstractCellPopulation< DIM > &rCellPopulation, double coefficient=0.0) | |
void | SetupSourceTerms (TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=NULL) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
NodeBasedCellPopulation< DIM > * | mpStaticCastCellPopulation |
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 VolumeDependentAveragedSourcePde.hpp.
VolumeDependentAveragedSourcePde< DIM >::VolumeDependentAveragedSourcePde | ( | 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 33 of file VolumeDependentAveragedSourcePde.cpp.
References VolumeDependentAveragedSourcePde< DIM >::mpStaticCastCellPopulation, and AveragedSourcePde< DIM >::mrCellPopulation.
void VolumeDependentAveragedSourcePde< 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 AveragedSourcePde< DIM >.
Definition at line 60 of file VolumeDependentAveragedSourcePde.hpp.
void VolumeDependentAveragedSourcePde< 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 from AveragedSourcePde< DIM >.
Definition at line 41 of file VolumeDependentAveragedSourcePde.cpp.
References TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndex(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), AveragedSourcePde< DIM >::mCellDensityOnCoarseElements, VolumeDependentAveragedSourcePde< DIM >::mpStaticCastCellPopulation, and AveragedSourcePde< DIM >::mrCellPopulation.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AveragedSourcePde< DIM >.
Definition at line 52 of file VolumeDependentAveragedSourcePde.hpp.
NodeBasedCellPopulation<DIM>* VolumeDependentAveragedSourcePde< DIM >::mpStaticCastCellPopulation [private] |
Static cast of the NodeBasedCellPopulation.
Definition at line 66 of file VolumeDependentAveragedSourcePde.hpp.
Referenced by VolumeDependentAveragedSourcePde< DIM >::SetupSourceTerms(), and VolumeDependentAveragedSourcePde< DIM >::VolumeDependentAveragedSourcePde().