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