Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <FluidSource.hpp>
Public Member Functions | |
FluidSource (unsigned index, ChastePoint< SPACE_DIM > point) | |
FluidSource (unsigned index, c_vector< double, SPACE_DIM > location) | |
FluidSource (unsigned index, double v1=0.0, double v2=0.0, double v3=0.0) | |
~FluidSource () | |
unsigned | GetIndex () const |
void | SetIndex (unsigned index) |
ChastePoint< SPACE_DIM > | GetPoint () const |
const c_vector< double, SPACE_DIM > & | rGetLocation () const |
c_vector< double, SPACE_DIM > & | rGetModifiableLocation () |
double | GetStrength () const |
void | SetStrength (double strength) |
void | SetIfSourceIsAssociatedWithElement (bool associated) |
bool | IsSourceAssociatedWithElement () |
unsigned | GetAssociatedElementIndex () const |
void | SetAssociatedElementIndex (unsigned associatedElementIndex) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
unsigned | mIndex |
c_vector< double, SPACE_DIM > | mLocation |
double | mStrength |
bool | mIsSourceAssociatedWithElement |
unsigned | mAssociatedElementIndex |
Friends | |
class | boost::serialization::access |
A fluid source in an immersed boundary mesh, used in ImmersedBoundary simulations.
Definition at line 45 of file FluidSource.hpp.
FluidSource< SPACE_DIM >::FluidSource | ( | unsigned | index, |
ChastePoint< SPACE_DIM > | point | ||
) |
Constructor that takes in the fluid source's location as a ChastePoint.
index | the index of the fluid source in the mesh |
point | the location of the fluid source in the mesh |
Definition at line 39 of file FluidSource.cpp.
FluidSource< SPACE_DIM >::FluidSource | ( | unsigned | index, |
c_vector< double, SPACE_DIM > | location | ||
) |
Constructor that takes in the fluid source's location as a c_vector.
index | the index of the fluid source in the mesh |
location | the location of the fluid source in the mesh |
Definition at line 49 of file FluidSource.cpp.
FluidSource< SPACE_DIM >::FluidSource | ( | unsigned | index, |
double | v1 = 0.0 , |
||
double | v2 = 0.0 , |
||
double | v3 = 0.0 |
||
) |
Constructor that takes the coordinates of the fluid source's location as separate input arguments.
index | the index of the fluid source in the mesh |
v1 | the x-coordinate of the fluid source in the mesh (defaults to 0) |
v2 | the y-coordinate of the fluid source in the mesh (defaults to 0) |
v3 | the z-coordinate of the fluid source in the mesh (defaults to 0) |
Definition at line 61 of file FluidSource.cpp.
References FluidSource< SPACE_DIM >::mLocation.
FluidSource< SPACE_DIM >::~FluidSource | ( | ) |
Explicit destructor.
Definition at line 79 of file FluidSource.cpp.
unsigned FluidSource< SPACE_DIM >::GetAssociatedElementIndex | ( | ) | const |
Definition at line 138 of file FluidSource.cpp.
unsigned FluidSource< SPACE_DIM >::GetIndex | ( | ) | const |
Definition at line 84 of file FluidSource.cpp.
ChastePoint< SPACE_DIM > FluidSource< SPACE_DIM >::GetPoint | ( | ) | const |
Definition at line 96 of file FluidSource.cpp.
double FluidSource< SPACE_DIM >::GetStrength | ( | ) | const |
Definition at line 114 of file FluidSource.cpp.
bool FluidSource< SPACE_DIM >::IsSourceAssociatedWithElement | ( | ) |
Definition at line 132 of file FluidSource.cpp.
const c_vector< double, SPACE_DIM > & FluidSource< SPACE_DIM >::rGetLocation | ( | ) | const |
The returned location may not be modified; if you want that functionality use rGetModifiableLocation instead.
Definition at line 102 of file FluidSource.cpp.
c_vector< double, SPACE_DIM > & FluidSource< SPACE_DIM >::rGetModifiableLocation | ( | ) |
Don't forget to assign the result of this call to a reference!
Definition at line 108 of file FluidSource.cpp.
|
inlineprivate |
Serialize information required to construct a FluidSource.
archive | The archive |
version | version information |
Definition at line 73 of file FluidSource.hpp.
References FluidSource< SPACE_DIM >::mAssociatedElementIndex, FluidSource< SPACE_DIM >::mIsSourceAssociatedWithElement, and FluidSource< SPACE_DIM >::mStrength.
void FluidSource< SPACE_DIM >::SetAssociatedElementIndex | ( | unsigned | associatedElementIndex | ) |
Set the index of the element associated to this fluid source.
associatedElementIndex | of the element associated to this fluid source. |
Definition at line 144 of file FluidSource.cpp.
void FluidSource< SPACE_DIM >::SetIfSourceIsAssociatedWithElement | ( | bool | associated | ) |
Set whether the fluid source is associated with an element.
associated | whether there is an association |
Definition at line 126 of file FluidSource.cpp.
void FluidSource< SPACE_DIM >::SetIndex | ( | unsigned | index | ) |
Set the index of the fluid source in the mesh.
index | the index of the fluid source |
Definition at line 90 of file FluidSource.cpp.
void FluidSource< SPACE_DIM >::SetStrength | ( | double | strength | ) |
Set the new strength of the fluid source.
strength | of the fluid source |
Definition at line 120 of file FluidSource.cpp.
|
friend |
Definition at line 65 of file FluidSource.hpp.
|
private |
Index of the immersed boundary element associated with this fluid source.
Definition at line 63 of file FluidSource.hpp.
Referenced by FluidSource< SPACE_DIM >::serialize().
|
private |
The index of this fluid source within the mesh.
Definition at line 51 of file FluidSource.hpp.
|
private |
Whether the fluid source is associated with an immersed boundary element.
Definition at line 60 of file FluidSource.hpp.
Referenced by FluidSource< SPACE_DIM >::serialize().
|
private |
The location of this fluid source within the mesh.
Definition at line 54 of file FluidSource.hpp.
Referenced by FluidSource< SPACE_DIM >::FluidSource().
|
private |
The strength of the fluid source.
Definition at line 57 of file FluidSource.hpp.
Referenced by FluidSource< SPACE_DIM >::serialize().