38 #include "NodeAttributes.hpp"
41 template<
unsigned SPACE_DIM>
43 : mAttributes(std::vector<
double>()),
45 mAppliedForce(zero_vector<
double>(SPACE_DIM)),
52 template<
unsigned SPACE_DIM>
58 template<
unsigned SPACE_DIM>
61 mAttributes.push_back(attribute);
64 template<
unsigned SPACE_DIM>
70 template<
unsigned SPACE_DIM>
76 template<
unsigned SPACE_DIM>
82 template<
unsigned SPACE_DIM>
85 mAppliedForce += appliedForceContribution;
88 template<
unsigned SPACE_DIM>
91 for (
unsigned d = 0; d < SPACE_DIM; d++)
93 mAppliedForce[d] = 0.0;
97 template<
unsigned SPACE_DIM>
103 template<
unsigned SPACE_DIM>
106 mIsParticle = isParticle;
109 template<
unsigned SPACE_DIM>
115 template<
unsigned SPACE_DIM>
120 EXCEPTION(
"Trying to set node attributes mRadius to a negative value.");
void SetRegion(unsigned region)
#define EXCEPTION(message)
void AddAppliedForceContribution(c_vector< double, SPACE_DIM > &appliedForceContribution)
void SetRadius(double radius)
void SetIsParticle(bool isParticle)
void AddAttribute(double attribute)
c_vector< double, SPACE_DIM > & rGetAppliedForce()
std::vector< double > & rGetAttributes()