36 #include "CellDataItemWriter.hpp"
37 #include "AbstractCellPopulation.hpp"
39 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
42 mCellDataVariableName(cellDataVariableName)
47 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
50 double value = pCell->GetCellData()->GetItem(mCellDataVariableName);
54 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
59 *this->mpOutStream << location_index <<
" ";
62 unsigned cell_id = pCell->GetCellId();
63 *this->mpOutStream << cell_id <<
" ";
67 for (
unsigned i=0; i<SPACE_DIM; i++)
69 *this->mpOutStream << centre_location[i] <<
" ";
73 double value = pCell->GetCellData()->GetItem(mCellDataVariableName);
74 *this->mpOutStream << value <<
" ";
77 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
80 return mCellDataVariableName;
CellDataItemWriter(std::string cellDataVariableName="")
std::string mVtkCellDataName
unsigned GetLocationIndexUsingCell(CellPtr pCell)
virtual void VisitCell(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
double GetCellDataForVtkOutput(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
std::string GetCellDataVariableName() const
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
virtual c_vector< double, SPACE_DIM > GetLocationOfCellCentre(CellPtr pCell)=0
std::string mCellDataVariableName