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