36#include "FluidSource.hpp"
38template<
unsigned SPACE_DIM>
41 mLocation(point.rGetLocation()),
43 mIsSourceAssociatedWithElement(false),
44 mAssociatedElementIndex(UINT_MAX)
48template<
unsigned SPACE_DIM>
51 c_vector<double, SPACE_DIM> location)
55 mIsSourceAssociatedWithElement(false),
56 mAssociatedElementIndex(UINT_MAX)
60template<
unsigned SPACE_DIM>
64 mIsSourceAssociatedWithElement(false),
65 mAssociatedElementIndex(UINT_MAX)
78template<
unsigned SPACE_DIM>
83template<
unsigned SPACE_DIM>
89template<
unsigned SPACE_DIM>
95template<
unsigned SPACE_DIM>
101template<
unsigned SPACE_DIM>
107template<
unsigned SPACE_DIM>
113template<
unsigned SPACE_DIM>
119template<
unsigned SPACE_DIM>
122 mStrength = strength;
125template<
unsigned SPACE_DIM>
128 mIsSourceAssociatedWithElement = associated;
131template<
unsigned SPACE_DIM>
134 return mIsSourceAssociatedWithElement;
137template<
unsigned SPACE_DIM>
140 return mIsSourceAssociatedWithElement ? mAssociatedElementIndex : UINT_MAX;
143template<
unsigned SPACE_DIM>
146 mIsSourceAssociatedWithElement =
true;
147 mAssociatedElementIndex = associatedElementIndex;
bool IsSourceAssociatedWithElement()
double GetStrength() const
void SetStrength(double strength)
unsigned GetIndex() const
const c_vector< double, SPACE_DIM > & rGetLocation() const
unsigned GetAssociatedElementIndex() const
FluidSource(unsigned index, ChastePoint< SPACE_DIM > point)
c_vector< double, SPACE_DIM > & rGetModifiableLocation()
c_vector< double, SPACE_DIM > mLocation
void SetIfSourceIsAssociatedWithElement(bool associated)
ChastePoint< SPACE_DIM > GetPoint() const
void SetAssociatedElementIndex(unsigned associatedElementIndex)
void SetIndex(unsigned index)