36 #include "VolumeDependentAveragedSourceEllipticPde.hpp" 37 #include "ApoptoticCellProperty.hpp" 39 template<
unsigned DIM>
47 template<
unsigned DIM>
62 unsigned elem_index = 0;
65 if (pCellPdeElementMap !=
nullptr)
67 elem_index = (*pCellPdeElementMap)[*cell_iter];
80 double cell_weight = radius*radius;
82 bool cell_is_apoptotic = cell_iter->template HasCellProperty<ApoptoticCellProperty>();
83 if (!cell_is_apoptotic)
90 c_matrix<double, DIM, DIM> jacobian;
94 rCoarseMesh.
GetElement(elem_index)->CalculateJacobian(jacobian, det);
virtual Node< SPACE_DIM > * GetNode(unsigned index)=0
unsigned GetLocationIndexUsingCell(CellPtr pCell)
virtual unsigned GetNumElements() const
std::vector< double > mCellDensityOnCoarseElements
Element< ELEMENT_DIM, SPACE_DIM > * GetElement(unsigned index) const
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
AbstractCellPopulation< DIM > & mrCellPopulation
void SetupSourceTerms(TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=nullptr)
unsigned GetContainingElementIndex(const ChastePoint< SPACE_DIM > &rTestPoint, bool strict=false, std::set< unsigned > testElements=std::set< unsigned >(), bool onlyTryWithTestElements=false)
virtual c_vector< double, SPACE_DIM > GetLocationOfCellCentre(CellPtr pCell)=0
NodeBasedCellPopulation< DIM > * mpStaticCastCellPopulation
VolumeDependentAveragedSourceEllipticPde(AbstractCellPopulation< DIM > &rCellPopulation, double coefficient=0.0)