36 #include "CellAppliedForceWriter.hpp"
37 #include "NodeBasedCellPopulation.hpp"
40 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
49 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
52 c_vector<double, SPACE_DIM> applied_force = scalar_vector<double>(SPACE_DIM,
DOUBLE_UNSET);
57 applied_force = pCellPopulation->
GetNode(node_index)->rGetAppliedForce();
63 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
67 unsigned cell_id = pCell->GetCellId();
69 c_vector<double, SPACE_DIM> applied_force = GetVectorCellDataForVtkOutput(pCell, pCellPopulation);
71 *this->mpOutStream << location_index <<
" " << cell_id <<
" ";
72 for (
unsigned i=0; i<SPACE_DIM; i++)
74 *this->mpOutStream << cell_location[i] <<
" ";
76 for (
unsigned i=0; i<SPACE_DIM; i++)
78 *this->mpOutStream << applied_force[i] <<
" ";
virtual Node< SPACE_DIM > * GetNode(unsigned index)=0
unsigned GetLocationIndexUsingCell(CellPtr pCell)
const double DOUBLE_UNSET
virtual void VisitCell(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
c_vector< double, SPACE_DIM > GetVectorCellDataForVtkOutput(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
virtual c_vector< double, SPACE_DIM > GetLocationOfCellCentre(CellPtr pCell)=0
std::string mVtkVectorCellDataName