Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <ImmersedBoundaryElement.hpp>
Public Member Functions | |
ImmersedBoundaryElement (unsigned index, const std::vector< Node< SPACE_DIM > * > &rNodes) | |
void | SetFluidSource (std::shared_ptr< FluidSource< SPACE_DIM > > fluidSource) |
std::shared_ptr< FluidSource< SPACE_DIM > > | GetFluidSource (void) |
std::vector< Node< SPACE_DIM > * > & | rGetCornerNodes () |
double | GetAverageNodeSpacing () |
void | SetAverageNodeSpacing (double averageNodeSpacing) |
virtual bool | IsElementOnBoundary () const |
void | SetIsBoundaryElement (bool isBoundaryElement) |
Public Member Functions inherited from MutableElement< 1, SPACE_DIM > | |
MutableElement (unsigned index, const std::vector< Node< SPACE_DIM > * > &rNodes) | |
MutableElement (unsigned index) | |
virtual | ~MutableElement () |
void | UpdateNode (const unsigned &rIndex, Node< SPACE_DIM > *pNode) |
void | RegisterWithNodes () |
void | MarkAsDeleted () |
void | ResetIndex (unsigned index) |
void | DeleteNode (const unsigned &rIndex) |
void | AddNode (Node< SPACE_DIM > *pNode, const unsigned &rIndex) |
Edge< SPACE_DIM > * | GetEdge (unsigned localIndex) const |
bool | ContainsEdge (const Edge< SPACE_DIM > *pEdge) const |
unsigned | GetNumEdges () const |
void | SetEdgeHelper (EdgeHelper< SPACE_DIM > *pEdgeHelper) |
void | BuildEdges () |
void | ClearEdges () |
unsigned | GetEdgeGlobalIndex (unsigned localIndex) const |
std::set< unsigned > | GetNeighbouringElementAtEdgeIndex (unsigned localIndex) |
unsigned | GetNodeLocalIndex (unsigned globalIndex) const |
void | RegisterWithEdges () |
void | RebuildEdges () |
long | GetLocalEdgeIndex (const Edge< SPACE_DIM > *pEdge) const |
Public Member Functions inherited from AbstractElement< 1, SPACE_DIM > | |
AbstractElement (unsigned index, const std::vector< Node< SPACE_DIM > * > &rNodes) | |
AbstractElement (unsigned index=INDEX_IS_NOT_USED) | |
virtual | ~AbstractElement () |
void | ReplaceNode (Node< SPACE_DIM > *pOldNode, Node< SPACE_DIM > *pNewNode) |
double | GetNodeLocation (unsigned localIndex, unsigned dimension) const |
c_vector< double, SPACE_DIM > | GetNodeLocation (unsigned localIndex) const |
unsigned | GetNodeGlobalIndex (unsigned localIndex) const |
Node< SPACE_DIM > * | GetNode (unsigned localIndex) const |
unsigned | GetNumNodes () const |
void | AddNode (Node< SPACE_DIM > *pNode) |
bool | IsDeleted () const |
unsigned | GetIndex () const |
void | SetIndex (unsigned index) |
bool | GetOwnership () const |
void | SetOwnership (bool ownership) |
void | SetAttribute (double attribute) |
double | GetAttribute () |
unsigned | GetUnsignedAttribute () |
void | AddElementAttribute (double attribute) |
std::vector< double > & | rGetElementAttributes () |
unsigned | GetNumElementAttributes () |
Private Attributes | |
std::shared_ptr< FluidSource< SPACE_DIM > > | mpFluidSource |
std::vector< Node< SPACE_DIM > * > | mCornerNodes |
double | mAverageNodeSpacing |
bool | mIsBoundaryElement |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractElement< 1, SPACE_DIM > | |
void | ConstructElementAttributes () |
Protected Attributes inherited from MutableElement< 1, SPACE_DIM > | |
std::vector< Edge< SPACE_DIM > * > | mEdges |
EdgeHelper< SPACE_DIM > * | mEdgeHelper |
Protected Attributes inherited from AbstractElement< 1, SPACE_DIM > | |
std::vector< Node< SPACE_DIM > * > | mNodes |
unsigned | mIndex |
bool | mIsDeleted |
bool | mOwnership |
ElementAttributes< ELEMENT_DIM, SPACE_DIM > * | mpElementAttributes |
Specialization for 1d elements so we don't get errors from Boost on some compilers.
Definition at line 164 of file ImmersedBoundaryElement.hpp.
ImmersedBoundaryElement< 1, SPACE_DIM >::ImmersedBoundaryElement | ( | unsigned | index, |
const std::vector< Node< SPACE_DIM > * > & | rNodes | ||
) |
Constructor which takes in a vector of nodes.
index | the index of the element in the mesh |
rNodes | the nodes owned by the element |
Specialization for 1d elements so we don't get errors from Boost on some compilers.
Definition at line 122 of file ImmersedBoundaryElement.cpp.
double ImmersedBoundaryElement< 1, SPACE_DIM >::GetAverageNodeSpacing | ( | ) |
Definition at line 150 of file ImmersedBoundaryElement.cpp.
std::shared_ptr< FluidSource< SPACE_DIM > > ImmersedBoundaryElement< 1, SPACE_DIM >::GetFluidSource | ( | void | ) |
Get the fluid source associated with this element
Definition at line 137 of file ImmersedBoundaryElement.cpp.
References EXCEPTION.
|
virtual |
Overridden method to get whether or not the element is on the boundary.
Reimplemented from MutableElement< 1, SPACE_DIM >.
Definition at line 162 of file ImmersedBoundaryElement.cpp.
std::vector< Node< SPACE_DIM > * > & ImmersedBoundaryElement< 1, SPACE_DIM >::rGetCornerNodes | ( | ) |
Don't forget to assign the result of this call to a reference!
Definition at line 144 of file ImmersedBoundaryElement.cpp.
void ImmersedBoundaryElement< 1, SPACE_DIM >::SetAverageNodeSpacing | ( | double | averageNodeSpacing | ) |
averageNodeSpacing | the new average node spacing. |
Definition at line 156 of file ImmersedBoundaryElement.cpp.
void ImmersedBoundaryElement< 1, SPACE_DIM >::SetFluidSource | ( | std::shared_ptr< FluidSource< SPACE_DIM > > | fluidSource | ) |
Set mpFluidSource
fluidSource | a shared pointer to the fluid source associated with this element |
Definition at line 131 of file ImmersedBoundaryElement.cpp.
References EXCEPTION.
void ImmersedBoundaryElement< 1, SPACE_DIM >::SetIsBoundaryElement | ( | bool | isBoundaryElement | ) |
isBoundaryElement | whether the element is on the boundary |
Definition at line 168 of file ImmersedBoundaryElement.cpp.
|
private |
The average node spacing.
Definition at line 175 of file ImmersedBoundaryElement.hpp.
|
private |
Corner nodes associated with this element.
Definition at line 172 of file ImmersedBoundaryElement.hpp.
|
private |
Whether this element is on the boundary. This is a non-local property so must be calculated by the mesh.
Definition at line 178 of file ImmersedBoundaryElement.hpp.
|
private |
Fluid source associated with this element.
Definition at line 169 of file ImmersedBoundaryElement.hpp.