36 #include "CellwiseSourcePde.hpp"
37 #include "ApoptoticCellProperty.hpp"
40 template<
unsigned DIM>
42 : mrCellPopulation(rCellPopulation),
43 mCoefficient(coefficient)
47 template<
unsigned DIM>
50 return mrCellPopulation;
53 template<
unsigned DIM>
59 template<
unsigned DIM>
65 template<
unsigned DIM>
72 template<
unsigned DIM>
75 double coefficient = 0.0;
77 if (mrCellPopulation.IsCellAttachedToLocationIndex(rNode.
GetIndex()))
79 CellPtr p_cell = mrCellPopulation.GetCellUsingLocationIndex(rNode.
GetIndex());
83 if (!cell_is_apoptotic)
85 coefficient = mCoefficient;
92 template<
unsigned DIM>
95 return identity_matrix<double>(DIM);
const AbstractCellPopulation< DIM > & rGetCellPopulation() const
double GetCoefficient() const
virtual double ComputeLinearInUCoeffInSourceTermAtNode(const Node< DIM > &rNode)
virtual double ComputeConstantInUSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
virtual double ComputeLinearInUCoeffInSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
virtual c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX)
CellwiseSourcePde(AbstractCellPopulation< DIM, DIM > &rCellPopulation, double coefficient=0.0)
unsigned GetIndex() const