36 #include "VoronoiDataWriter.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" 44 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
50 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
53 assert(SPACE_DIM==2 || SPACE_DIM==3);
62 unsigned elem_index = elem_iter->GetIndex();
69 c_vector<double, SPACE_DIM> node_location = pCellPopulation->
GetNode(node_index)->rGetLocation();
70 for (
unsigned i=0; i<SPACE_DIM; i++)
77 *this->
mpOutStream << cell_volume <<
" " << cell_surface_area <<
" ";
81 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
84 EXCEPTION(
"VoronoiDataWriter cannot be used with a CaBasedCellPopulation");
87 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
90 EXCEPTION(
"VoronoiDataWriter cannot be used with a NodeBasedCellPopulation");
93 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
96 EXCEPTION(
"VoronoiDataWriter cannot be used with a PottsBasedCellPopulation");
99 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
102 EXCEPTION(
"VoronoiDataWriter cannot be used with a VertexBasedCellPopulation");
unsigned GetDelaunayNodeIndexCorrespondingToVoronoiElementIndex(unsigned elementIndex)
#define EXCEPTION(message)
virtual void Visit(MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
VertexElementIterator GetElementIteratorBegin(bool skipDeletedElements=true)
virtual double GetVolumeOfElement(unsigned index)
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
Node< SPACE_DIM > * GetNode(unsigned index)
VertexMesh< ELEMENT_DIM, SPACE_DIM > * GetVoronoiTessellation()
VertexElementIterator GetElementIteratorEnd()
virtual double GetSurfaceAreaOfElement(unsigned index)