36 #include "ForwardEulerNumericalMethod.hpp" 38 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
44 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
49 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
63 const c_vector<double, SPACE_DIM>& r_old_location = node_iter->rGetLocation();
64 c_vector<double, SPACE_DIM> displacement = dt * forces[index];
69 c_vector<double, SPACE_DIM> new_location = r_old_location + displacement;
85 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
void SafeNodePositionUpdate(unsigned nodeIndex, c_vector< double, SPACE_DIM > newPosition)
ForwardEulerNumericalMethod()
void UpdateAllNodePositions(double dt)
virtual void OutputNumericalMethodParameters(out_stream &rParamsFile)
bool mUseUpdateNodeLocation
AbstractOffLatticeCellPopulation< ELEMENT_DIM, SPACE_DIM > * mpCellPopulation
virtual void OutputNumericalMethodParameters(out_stream &rParamsFile)
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
void DetectStepSizeExceptions(unsigned nodeIndex, c_vector< double, SPACE_DIM > &displacement, double dt)
std::vector< c_vector< double, SPACE_DIM > > ComputeForcesIncludingDamping()
virtual ~ForwardEulerNumericalMethod()