36 #include "CellPopulationAreaWriter.hpp"
37 #include "AbstractCellPopulation.hpp"
38 #include "MeshBasedCellPopulation.hpp"
39 #include "CaBasedCellPopulation.hpp"
40 #include "NodeBasedCellPopulation.hpp"
41 #include "PottsBasedCellPopulation.hpp"
42 #include "VertexBasedCellPopulation.hpp"
43 #include "ApoptoticCellProperty.hpp"
45 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
51 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
54 assert(SPACE_DIM==2 || SPACE_DIM==3);
58 assert (voronoi_tessellation !=
nullptr);
62 double apoptotic_area = 0.0;
70 unsigned elem_index = elem_iter->GetIndex();
83 if (cell_is_apoptotic)
86 apoptotic_area += cell_volume;
90 *this->mpOutStream << total_area <<
" " << apoptotic_area;
93 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
96 EXCEPTION(
"CellPopulationAreaWriter cannot be used with a CaBasedCellPopulation");
99 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
102 EXCEPTION(
"CellPopulationAreaWriter cannot be used with a NodeBasedCellPopulation");
105 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
108 EXCEPTION(
"CellPopulationAreaWriter cannot be used with a PottsBasedCellPopulation");
111 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
114 EXCEPTION(
"CellPopulationAreaWriter cannot be used with a VertexBasedCellPopulation");
unsigned GetDelaunayNodeIndexCorrespondingToVoronoiElementIndex(unsigned elementIndex)
virtual CellPtr GetCellUsingLocationIndex(unsigned index)
#define EXCEPTION(message)
MutableMesh< ELEMENT_DIM, SPACE_DIM > & rGetMesh()
virtual bool IsGhostNode(unsigned index)
CellPopulationAreaWriter()
VertexElementIterator GetElementIteratorBegin(bool skipDeletedElements=true)
virtual double GetVolumeOfElement(unsigned index)
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
VertexMesh< ELEMENT_DIM, SPACE_DIM > * GetVoronoiTessellation()
VertexElementIterator GetElementIteratorEnd()
virtual void Visit(MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)