36#include "CellwiseSourceParabolicPde.hpp"
40 double duDtCoefficient,
41 double diffusionCoefficient,
42 double sourceCoefficient)
43 : mrCellPopulation(rCellPopulation),
44 mDuDtCoefficient(duDtCoefficient),
45 mDiffusionCoefficient(diffusionCoefficient),
46 mSourceCoefficient(sourceCoefficient)
53 return mrCellPopulation;
59 return mDuDtCoefficient;
74 double source_coefficient = 0.0;
76 if (mrCellPopulation.IsPdeNodeAssociatedWithNonApoptoticCell(rNode.
GetIndex()))
78 source_coefficient = mSourceCoefficient;
82 return source_coefficient*u;
88 return mDiffusionCoefficient*identity_matrix<double>(DIM);
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
virtual c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement=NULL)
virtual double ComputeSourceTerm(const ChastePoint< DIM > &rX, double u, Element< DIM, DIM > *pElement=NULL)
virtual double ComputeSourceTermAtNode(const Node< DIM > &rNode, double u)
virtual double ComputeDuDtCoefficientFunction(const ChastePoint< DIM > &rX)
const AbstractCellPopulation< DIM > & rGetCellPopulation() const
CellwiseSourceParabolicPde(AbstractCellPopulation< DIM, DIM > &rCellPopulation, double duDtCoefficient=1.0, double diffusionCoefficient=1.0, double sourceCoefficient=0.0)
unsigned GetIndex() const