36#ifndef _FLUIDSOURCE_HPP_
37#define _FLUIDSOURCE_HPP_
39#include "ChastePoint.hpp"
44template<
unsigned SPACE_DIM>
65 friend class boost::serialization::access;
72 template<
class Archive>
73 void serialize(Archive & archive,
const unsigned int version)
96 FluidSource(
unsigned index, c_vector<double, SPACE_DIM> location);
106 FluidSource(
unsigned index,
double v1=0.0,
double v2=0.0,
double v3=0.0);
136 const c_vector<double, SPACE_DIM>&
rGetLocation()
const;
189namespace serialization
194template<
class Archive,
unsigned SPACE_DIM>
195inline void save_construct_data(
200 for (
unsigned i = 0; i < SPACE_DIM; i++)
204 double coord = t->rGetLocation()[i];
207 unsigned index = t->GetIndex();
215template<
class Archive,
unsigned SPACE_DIM>
216inline void load_construct_data(
220 c_vector<double,SPACE_DIM> location;
221 for (
unsigned i=0; i<SPACE_DIM; i++)
225 location[i] = coordinate;
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
bool IsSourceAssociatedWithElement()
double GetStrength() const
void SetStrength(double strength)
unsigned GetIndex() const
const c_vector< double, SPACE_DIM > & rGetLocation() const
bool mIsSourceAssociatedWithElement
unsigned mAssociatedElementIndex
unsigned GetAssociatedElementIndex() const
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)
void serialize(Archive &archive, const unsigned int version)