#include <Node.hpp>
Public Member Functions | |
Node (unsigned index, ChastePoint< SPACE_DIM > point, bool isBoundaryNode=false) | |
Node (unsigned index, std::vector< double > coords, bool isBoundaryNode=false) | |
Node (unsigned index, c_vector< double, SPACE_DIM > location, bool isBoundaryNode=false) | |
Node (unsigned index, bool isBoundaryNode=false, double v1=0, double v2=0, double v3=0) | |
void | SetPoint (ChastePoint< SPACE_DIM > point) |
void | SetIndex (unsigned index) |
void | SetAsBoundaryNode (bool value=true) |
ChastePoint< SPACE_DIM > | GetPoint () const |
const c_vector< double, SPACE_DIM > & | rGetLocation () const |
c_vector< double, SPACE_DIM > & | rGetModifiableLocation () |
unsigned | GetIndex () const |
bool | IsBoundaryNode () const |
void | AddElement (unsigned index) |
void | RemoveElement (unsigned index) |
void | RemoveBoundaryElement (unsigned index) |
void | AddBoundaryElement (unsigned index) |
std::set< unsigned > & | rGetContainingElementIndices () |
std::set< unsigned > & | rGetContainingBoundaryElementIndices () |
unsigned | GetNumContainingElements () const |
unsigned | GetNumBoundaryElements () const |
void | MarkAsDeleted () |
bool | IsDeleted () const |
template<unsigned ELEMENT_DIM> | |
bool | IsFlagged (TetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh) |
void | SetRegion (unsigned region) |
unsigned | GetRegion () const |
ContainingElementIterator | ContainingElementsBegin () const |
ContainingElementIterator | ContainingElementsEnd () const |
ContainingBoundaryElementIterator | ContainingBoundaryElementsBegin () const |
ContainingBoundaryElementIterator | ContainingBoundaryElementsEnd () const |
Private Member Functions | |
void | CommonConstructor (unsigned index, bool isBoundaryNode) |
Private Attributes | |
unsigned | mIndex |
unsigned | mRegion |
c_vector< double, SPACE_DIM > | mLocation |
bool | mIsBoundaryNode |
bool | mIsDeleted |
std::set< unsigned > | mElementIndices |
std::set< unsigned > | mBoundaryElementIndices |
Classes | |
class | ContainingBoundaryElementIterator |
class | ContainingElementIterator |
Definition at line 44 of file Node.hpp.
Node< SPACE_DIM >::Node | ( | unsigned | index, | |
ChastePoint< SPACE_DIM > | point, | |||
bool | isBoundaryNode = false | |||
) | [inline] |
There are many ways of creating a node, depending on how you wish to specify it's spatial location.
Definition at line 46 of file Node.cpp.
References Node< SPACE_DIM >::CommonConstructor().
void Node< SPACE_DIM >::CommonConstructor | ( | unsigned | index, | |
bool | isBoundaryNode | |||
) | [inline, private] |
Extraction of commonality between the constructors
Definition at line 37 of file Node.cpp.
Referenced by Node< SPACE_DIM >::Node().
void Node< SPACE_DIM >::SetPoint | ( | ChastePoint< SPACE_DIM > | point | ) | [inline] |
void Node< SPACE_DIM >::SetIndex | ( | unsigned | index | ) | [inline] |
This method should only be called during mesh generation.
Definition at line 95 of file Node.cpp.
Referenced by NodeBasedTissue< DIM >::AddNode().
const c_vector< double, SPACE_DIM > & Node< SPACE_DIM >::rGetLocation | ( | void | ) | const [inline] |
The returned location may not be modified; if you want that functionality use rGetModifiableLocation instead.
Definition at line 114 of file Node.cpp.
Referenced by CryptSimulation2d::ApplyTissueBoundaryConditions(), AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, MonodomainRhsMatrixAssembler< DIM > >::AssembleOnElement(), DistanceMapCalculator< SPACE_DIM >::ComputeDistanceMap(), AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge(), and Cylindrical2dMesh::Cylindrical2dMesh().
c_vector< double, SPACE_DIM > & Node< SPACE_DIM >::rGetModifiableLocation | ( | ) | [inline] |
If you modify the returned location, Jacobian and JacobianDeterminant of elements need to be updated.
Don't forget to assign the result of this call to a reference!
Definition at line 121 of file Node.cpp.
Referenced by CryptSimulation2d::ApplyTissueBoundaryConditions().
void Node< SPACE_DIM >::AddElement | ( | unsigned | index | ) | [inline] |
void Node< SPACE_DIM >::RemoveElement | ( | unsigned | index | ) | [inline] |
void Node< SPACE_DIM >::RemoveBoundaryElement | ( | unsigned | index | ) | [inline] |
void Node< SPACE_DIM >::AddBoundaryElement | ( | unsigned | index | ) | [inline] |
std::set< unsigned > & Node< SPACE_DIM >::rGetContainingElementIndices | ( | ) | [inline] |
Return a set of indices of elements containing this node as a vertex.
Definition at line 178 of file Node.cpp.
Referenced by MeshBasedTissue< DIM >::Update().
std::set< unsigned > & Node< SPACE_DIM >::rGetContainingBoundaryElementIndices | ( | ) | [inline] |
void Node< SPACE_DIM >::MarkAsDeleted | ( | ) | [inline] |
bool Node< SPACE_DIM >::IsFlagged | ( | TetrahedralMesh< ELEMENT_DIM, SPACE_DIM > & | rMesh | ) | [inline] |