36 #include "CellwiseSourceEllipticPde.hpp"
38 template<
unsigned DIM>
40 : mrCellPopulation(rCellPopulation),
41 mSourceCoefficient(sourceCoefficient)
45 template<
unsigned DIM>
48 return mrCellPopulation;
51 template<
unsigned DIM>
54 return mSourceCoefficient;
57 template<
unsigned DIM>
64 template<
unsigned DIM>
72 template<
unsigned DIM>
75 double source_coefficient = 0.0;
77 if (mrCellPopulation.IsPdeNodeAssociatedWithNonApoptoticCell(rNode.
GetIndex()))
79 source_coefficient = mSourceCoefficient;
82 return source_coefficient;
85 template<
unsigned DIM>
88 return identity_matrix<double>(DIM);
virtual double ComputeLinearInUCoeffInSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
double GetCoefficient() const
CellwiseSourceEllipticPde(AbstractCellPopulation< DIM, DIM > &rCellPopulation, double sourceCoefficient=0.0)
virtual c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX)
const AbstractCellPopulation< DIM > & rGetCellPopulation() const
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
virtual double ComputeConstantInUSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
unsigned GetIndex() const
virtual double ComputeLinearInUCoeffInSourceTermAtNode(const Node< DIM > &rNode)