Chaste
Release::2017.1
|
#include <Node.hpp>
Classes | |
class | ContainingBoundaryElementIterator |
class | ContainingElementIterator |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
void | CommonConstructor (unsigned index, bool isBoundaryNode) |
void | ConstructNodeAttributes () |
void | CheckForNodeAttributes () const |
Private Attributes | |
unsigned | mIndex |
c_vector< double, SPACE_DIM > | mLocation |
NodeAttributes< SPACE_DIM > * | mpNodeAttributes |
bool | mIsBoundaryNode |
bool | mIsInternal |
bool | mIsDeleted |
std::set< unsigned > | mElementIndices |
std::set< unsigned > | mBoundaryElementIndices |
Friends | |
class | boost::serialization::access |
class | TestNode |
A node in a finite element mesh.
Node< SPACE_DIM >::Node | ( | unsigned | index, |
ChastePoint< SPACE_DIM > | point, | ||
bool | isBoundaryNode = false |
||
) |
There are many ways of creating a node, depending on how you wish to specify its spatial location. Constructor that takes in the node's location as a ChastePoint.
index | the index of the node in the mesh |
point | the location of the node in the mesh |
isBoundaryNode | whether the node is a boundary node (defaults to false) |
Definition at line 56 of file Node.cpp.
References ChastePoint< DIM >::rGetLocation().
Referenced by Node< SPACE_DIM >::serialize().
Node< SPACE_DIM >::Node | ( | unsigned | index, |
bool | isBoundaryNode = false , |
||
double | v1 = 0 , |
||
double | v2 = 0 , |
||
double | v3 = 0 |
||
) |
Constructor that takes the coordinates of the node's location as separate input arguments.
index | the index of the node in the mesh |
isBoundaryNode | whether the node is a boundary node (defaults to false) |
v1 | the x-coordinate of the node in the mesh (defaults to 0) |
v2 | the y-coordinate of the node in the mesh (defaults to 0) |
v3 | the z-coordinate of the node in the mesh (defaults to 0) |
Node< SPACE_DIM >::Node | ( | unsigned | index, |
double * | location, | ||
bool | isBoundaryNode = false |
||
) |
Constructor that takes in the coordinates of the node's location as an array pointer.
index | the index of the node in the mesh |
isBoundaryNode | whether the node is a boundary node (defaults to false) |
location | address of the x-coordinate of the node in the mesh (other coordinates are assumed to be in contiguous memory) |
Explicit destructor to free memory from mpNodeAttributes.
Definition at line 105 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
void Node< SPACE_DIM >::AddAppliedForceContribution | ( | const c_vector< double, SPACE_DIM > & | rForceContribution | ) |
Add a contribution to the force applied to this node.
rForceContribution | the force vector to add to mAppliedForce |
Definition at line 224 of file Node.cpp.
Referenced by RepulsionForce< DIM >::AddForceContribution(), BuskeCompressionForce< DIM >::AddForceContribution(), and Node< SPACE_DIM >::serialize().
Add an boundary element that contains this node.
index | of the element to add. |
Definition at line 294 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
Add an element that contains this node.
index | of the element to add. |
Definition at line 268 of file Node.cpp.
Referenced by QuadraticMeshHelper< DIM >::AddInternalNodesToElements(), PottsElement< DIM >::AddNode(), QuadraticMesh< DIM >::ConstructLinearMesh(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::MutableVertexMesh(), Node< SPACE_DIM >::serialize(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexMesh().
Add a neighbour to this node's vector of neighbouring node indices.
index | of the node to add. |
Definition at line 328 of file Node.cpp.
Referenced by ObsoleteBoxCollection< DIM >::CalculateNodePairs(), and Node< SPACE_DIM >::serialize().
Add an attribute to the list of node attributes.
attribute | the value of the attribute to be added |
Definition at line 170 of file Node.cpp.
Referenced by NodesOnlyMesh< SPACE_DIM >::AddMovedNode(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and Node< SPACE_DIM >::serialize().
|
private |
Check that node attributes have been set up, and throw an exception if not.
Definition at line 388 of file Node.cpp.
References EXCEPTION.
Referenced by Node< SPACE_DIM >::serialize().
void Node< SPACE_DIM >::ClearAppliedForce | ( | ) |
Clear the vector associated with the force.
Definition at line 216 of file Node.cpp.
Referenced by AbstractCentreBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::AddCell(), and Node< SPACE_DIM >::serialize().
void Node< SPACE_DIM >::ClearNeighbours | ( | ) |
Clear this node's vector of neighbour indices.
Definition at line 336 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
|
private |
Extraction of commonality between the constructors.
index | the index of the node in the mesh |
isBoundaryNode | whether the node is a boundary node |
Definition at line 46 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
|
private |
Construct an empty NodeAttributes container.
Definition at line 397 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
|
inline |
|
inline |
Definition at line 562 of file Node.hpp.
References EXPORT_TEMPLATE_CLASS_SAME_DIMS, Node< SPACE_DIM >::GetIndex(), Node< SPACE_DIM >::IsBoundaryNode(), and Node< SPACE_DIM >::rGetLocation().
|
inline |
Definition at line 485 of file Node.hpp.
References Node< SPACE_DIM >::ContainingElementIterator::ContainingElementIterator().
Referenced by QuadraticMeshHelper< DIM >::AddNodesToBoundaryElements(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::CheckOutwardNormals(), StreeterFibreGenerator< SPACE_DIM >::GetAveragedThicknessLocalNode(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringNodeIndices(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetVolumeOfCell(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::Update(), and DistanceMapCalculator< ELEMENT_DIM, SPACE_DIM >::WorkOnLocalQueue().
|
inline |
Definition at line 493 of file Node.hpp.
References Node< SPACE_DIM >::ContainingElementIterator::ContainingElementIterator().
Referenced by QuadraticMeshHelper< DIM >::AddNodesToBoundaryElements(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::CheckOutwardNormals(), StreeterFibreGenerator< SPACE_DIM >::GetAveragedThicknessLocalNode(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringNodeIndices(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetVolumeOfCell(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::Update(), and DistanceMapCalculator< ELEMENT_DIM, SPACE_DIM >::WorkOnLocalQueue().
Definition at line 158 of file Node.cpp.
Referenced by RepulsionForce< DIM >::AddForceContribution(), AbstractTwoBodyInteractionForce< ELEMENT_DIM, SPACE_DIM >::AddForceContribution(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::AddNode(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::AddNode(), QuadraticMeshHelper< DIM >::AddNodesToBoundaryElements(), NodesOnlyMesh< SPACE_DIM >::AddNodeWithFixedIndex(), ObsoleteBoxCollection< DIM >::CalculateNodePairs(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::CalculateRestLengths(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::CheckForSwapsFromShortEdges(), CellwiseSourceEllipticPde< DIM >::ComputeLinearInUCoeffInSourceTermAtNode(), CellwiseSourceParabolicPde< DIM >::ComputeSourceTermAtNode(), NodesOnlyMesh< SPACE_DIM >::ConstructNodesWithoutMesh(), Node< SPACE_DIM >::ContainingBoundaryElementsEnd(), LuoRudySpiralWaveCellFactory::CreateCardiacCellForTissueNode(), HeartConfigRelatedCellFactory< SPACE_DIM >::CreateCardiacCellForTissueNode(), AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::CreateJunctionFromFile(), AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::CreatePurkinjeCellForNode(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DeleteElementPriorToReMesh(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideEdge(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideElementAlongGivenAxis(), StreeterFibreGenerator< SPACE_DIM >::GetAveragedThicknessLocalNode(), Toroidal2dVertexMesh::GetMeshForVtk(), Cylindrical2dVertexMesh::GetMeshForVtk(), PottsMesh< DIM >::GetNeighbouringElementIndices(), VertexBasedCellPopulation< DIM >::GetTetrahedralMeshForPdeModifier(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::IdentifySwapType(), AbstractCorrectionTermAssembler< ELEM_DIM, SPACE_DIM, PROBLEM_DIM >::IncrementInterpolatedQuantities(), CellBasedParabolicPdeSolver< DIM >::IncrementInterpolatedQuantities(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::IncrementInterpolatedQuantities(), LessThanNode< SPACE_DIM >::operator()(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformIntersectionSwap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformNodeMerge(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformProtorosetteResolution(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformRosetteRankDecrease(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformRosetteRankIncrease(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT1Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT2Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), Node< SPACE_DIM >::serialize(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::SplitEdge(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::SplitLongEdges(), PottsBasedCellPopulation< DIM >::UpdateCellLocations(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexMesh(), and DistanceMapCalculator< ELEMENT_DIM, SPACE_DIM >::WorkOnLocalQueue().
Definition at line 368 of file Node.cpp.
Referenced by NodeBasedCellPopulation< DIM >::GetNeighbouringNodeIndices(), NodeBasedCellPopulation< DIM >::GetNodesWithinNeighbourhoodRadius(), and Node< SPACE_DIM >::serialize().
Definition at line 318 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
Definition at line 312 of file Node.cpp.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT1Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), Node< SPACE_DIM >::serialize(), and PottsBasedCellPopulation< DIM >::UpdateCellLocations().
Definition at line 186 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
ChastePoint< SPACE_DIM > Node< SPACE_DIM >::GetPoint | ( | ) | const |
Definition at line 133 of file Node.cpp.
Referenced by Cylindrical2dNodesOnlyMesh::AddNode(), Toroidal2dVertexMesh::AddNode(), Cylindrical2dVertexMesh::AddNode(), Cylindrical2dMesh::AddNode(), AbstractLinearEllipticPde< ELEMENT_DIM, SPACE_DIM >::ComputeConstantInUSourceTermAtNode(), AbstractLinearEllipticPde< ELEMENT_DIM, SPACE_DIM >::ComputeLinearInUCoeffInSourceTermAtNode(), AbstractLinearParabolicPdeSystemForCoupledOdeSystem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::ComputeSourceTermAtNode(), AbstractLinearParabolicPde< ELEMENT_DIM, SPACE_DIM >::ComputeSourceTermAtNode(), PlaneStimulusCellFactory< CELL, ELEMENT_DIM, SPACE_DIM >::CreateCardiacCellForTissueNode(), BathCellFactory< DIM, CELLTYPE >::CreateCardiacCellForTissueNode(), RampedQuarterStimulusCellFactory< CELL, DIM >::CreateCardiacCellForTissueNode(), HeartConfigRelatedCellFactory< SPACE_DIM >::CreateCardiacCellForTissueNode(), ExtendedBidomainTissue< SPACE_DIM >::CreateGGapConductivities(), ZeroNetChargeElectrodes< DIM >::CreateStimulusForNode(), ElectrodesStimulusFactory< DIM >::CreateStimulusForNode(), AbstractBoundaryConditionsContainer< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetDirichletBCValue(), and Node< SPACE_DIM >::serialize().
Definition at line 248 of file Node.cpp.
Referenced by NodeBasedCellPopulation< DIM >::AddCell(), RepulsionForce< DIM >::AddForceContribution(), BuskeCompressionForce< DIM >::AddForceContribution(), NodesOnlyMesh< SPACE_DIM >::AddMovedNode(), BuskeAdhesiveForce< DIM >::CalculateForceBetweenNodes(), BuskeElasticForce< DIM >::CalculateForceBetweenNodes(), GeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::CalculateForceBetweenNodes(), NodeBasedCellPopulation< DIM >::GetNeighbouringNodeIndices(), NodeBasedCellPopulation< DIM >::GetVolumeOfCell(), Node< SPACE_DIM >::serialize(), VolumeDependentAveragedSourceEllipticPde< DIM >::SetupSourceTerms(), and NodeBasedCellPopulationWithBuskeUpdate< DIM >::UpdateNodeLocations().
Definition at line 437 of file Node.cpp.
Referenced by AbstractCardiacCellFactory< ELEMENT_DIM, SPACE_DIM >::CreateCardiacCellForNode(), BathCellFactory< DIM, CELLTYPE >::CreateCardiacCellForTissueNode(), and Node< SPACE_DIM >::serialize().
Definition at line 202 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
Definition at line 164 of file Node.cpp.
Referenced by BoundaryConditionsContainer< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::AddDirichletBoundaryCondition(), QuadraticMeshHelper< DIM >::AddNodeToBoundaryElement(), BoundaryConditionsContainer< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::AddPeriodicBoundaryCondition(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMesh(), Node< SPACE_DIM >::ContainingBoundaryElementsEnd(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideEdge(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideElementAlongGivenAxis(), VertexBasedCellPopulation< DIM >::GetTetrahedralMeshForPdeModifier(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::IdentifySwapType(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT1Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), Node< SPACE_DIM >::serialize(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexMesh().
Definition at line 412 of file Node.cpp.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::CheckForRosettes(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMesh(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::DeleteBoundaryNodeAt(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformVoidRemoval(), and Node< SPACE_DIM >::serialize().
Definition at line 424 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
Definition at line 232 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
void Node< SPACE_DIM >::MarkAsDeleted | ( | ) |
Mark the node as having been removed from the mesh.
Definition at line 406 of file Node.cpp.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), and Node< SPACE_DIM >::serialize().
void Node< SPACE_DIM >::MarkAsInternal | ( | ) |
Mark the node as being internal (not vertex) in a quadratic element.
Definition at line 418 of file Node.cpp.
Referenced by QuadraticMeshHelper< DIM >::AddInternalNodesToElements(), QuadraticMesh< DIM >::MakeNewInternalNode(), and Node< SPACE_DIM >::serialize().
Check whether the node neighbours collection is empty.
Definition at line 352 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
Remove an boundary element that contains this node.
index | of the boundary element to be removed. |
Definition at line 284 of file Node.cpp.
References EXCEPTION.
Referenced by Node< SPACE_DIM >::serialize().
void Node< SPACE_DIM >::RemoveDuplicateNeighbours | ( | ) |
Remove duplicates from the vector of node neighbour indices.
Definition at line 344 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
Remove an element that contains this node.
index | of the element to be removed. |
Definition at line 274 of file Node.cpp.
References EXCEPTION.
Referenced by Node< SPACE_DIM >::serialize().
c_vector< double, SPACE_DIM > & Node< SPACE_DIM >::rGetAppliedForce | ( | ) |
Definition at line 208 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
std::set< unsigned > & Node< SPACE_DIM >::rGetContainingBoundaryElementIndices | ( | ) |
Definition at line 306 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
std::set< unsigned > & Node< SPACE_DIM >::rGetContainingElementIndices | ( | ) |
Definition at line 300 of file Node.cpp.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::CheckForRosettes(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::CheckForSwapsFromShortEdges(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::CheckIsVoronoi(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DeleteElementPriorToReMesh(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideEdge(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideElementAlongGivenAxis(), NagaiHondaDifferentialAdhesionForce< DIM >::GetAdhesionParameter(), NagaiHondaForce< DIM >::GetAdhesionParameter(), VertexBasedCellPopulation< DIM >::GetCellDataItemAtPdeNode(), FarhadifarForce< DIM >::GetLineTensionParameter(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetVolumeOfCell(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::HandleHighOrderJunctions(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::IdentifySwapType(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformIntersectionSwap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformNodeMerge(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformProtorosetteResolution(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformRosetteRankDecrease(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformRosetteRankIncrease(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT1Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT2Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), Node< SPACE_DIM >::serialize(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::SplitEdge(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::Update(), PottsBasedCellPopulation< DIM >::UpdateCellLocations(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexMesh().
const c_vector< double, SPACE_DIM > & Node< SPACE_DIM >::rGetLocation | ( | ) | const |
The returned location may not be modified; if you want that functionality use rGetModifiableLocation instead.
Definition at line 139 of file Node.cpp.
Referenced by RepulsionForce< DIM >::AddForceContribution(), BuskeCompressionForce< DIM >::AddForceContribution(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::AssembleOnCableElement(), AbstractFeVolumeIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::AssembleOnElement(), ObsoleteBoxCollection< DIM >::CalculateContainingBox(), DistributedBoxCollection< DIM >::CalculateContainingBox(), BuskeAdhesiveForce< DIM >::CalculateForceBetweenNodes(), BuskeElasticForce< DIM >::CalculateForceBetweenNodes(), GeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::CalculateForceBetweenNodes(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::CheckOutwardNormals(), FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseNodes(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMesh(), Node< SPACE_DIM >::ContainingBoundaryElementsEnd(), LuoRudySpiralWaveCellFactory::CreateCardiacCellForTissueNode(), Cylindrical2dMesh::Cylindrical2dMesh(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideEdge(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideElementAlongGivenAxis(), NodeBasedCellPopulation< DIM >::GetNeighbouringNodeIndices(), NodeBasedCellPopulation< DIM >::GetNodesWithinNeighbourhoodRadius(), VertexBasedCellPopulation< DIM >::GetTetrahedralMeshForPdeModifier(), NodeBasedCellPopulation< DIM >::GetVolumeOfCell(), CryptSimulationBoundaryCondition< DIM >::ImposeBoundaryCondition(), PlaneBoundaryCondition< ELEMENT_DIM, SPACE_DIM >::ImposeBoundaryCondition(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformIntersectionSwap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformNodeMerge(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformProtorosetteResolution(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformRosetteRankDecrease(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT1Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformVoidRemoval(), Node< SPACE_DIM >::serialize(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::SplitEdge(), NodeBasedCellPopulationWithBuskeUpdate< DIM >::UpdateNodeLocations(), CryptSimulationBoundaryCondition< DIM >::VerifyBoundaryCondition(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexMesh(), and DistanceMapCalculator< ELEMENT_DIM, SPACE_DIM >::WorkOnLocalQueue().
c_vector< double, SPACE_DIM > & Node< SPACE_DIM >::rGetModifiableLocation | ( | ) |
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 151 of file Node.cpp.
Referenced by FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseNodes(), CryptSimulationBoundaryCondition< DIM >::ImposeBoundaryCondition(), SphereGeometryBoundaryCondition< DIM >::ImposeBoundaryCondition(), PlaneBoundaryCondition< ELEMENT_DIM, SPACE_DIM >::ImposeBoundaryCondition(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformNodeMerge(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformProtorosetteResolution(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT1Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformVoidRemoval(), and Node< SPACE_DIM >::serialize().
Definition at line 376 of file Node.cpp.
Referenced by NodeBasedCellPopulation< DIM >::GetNeighbouringNodeIndices(), NodeBasedCellPopulation< DIM >::GetNodesWithinNeighbourhoodRadius(), and Node< SPACE_DIM >::serialize().
Definition at line 178 of file Node.cpp.
Referenced by AbstractCentreBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::AddCell(), NodesOnlyMesh< SPACE_DIM >::ConstructNodesWithoutMesh(), and Node< SPACE_DIM >::serialize().
|
inlineprivate |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Definition at line 99 of file Node.hpp.
References Node< SPACE_DIM >::AddAppliedForceContribution(), Node< SPACE_DIM >::AddBoundaryElement(), Node< SPACE_DIM >::AddElement(), Node< SPACE_DIM >::AddNeighbour(), Node< SPACE_DIM >::AddNodeAttribute(), Node< SPACE_DIM >::CheckForNodeAttributes(), Node< SPACE_DIM >::ClearAppliedForce(), Node< SPACE_DIM >::ClearNeighbours(), Node< SPACE_DIM >::CommonConstructor(), Node< SPACE_DIM >::ConstructNodeAttributes(), Node< SPACE_DIM >::GetIndex(), Node< SPACE_DIM >::GetNeighboursSetUp(), Node< SPACE_DIM >::GetNumBoundaryElements(), Node< SPACE_DIM >::GetNumContainingElements(), Node< SPACE_DIM >::GetNumNodeAttributes(), Node< SPACE_DIM >::GetPoint(), Node< SPACE_DIM >::GetRadius(), Node< SPACE_DIM >::GetRegion(), Node< SPACE_DIM >::HasNodeAttributes(), Node< SPACE_DIM >::IsBoundaryNode(), Node< SPACE_DIM >::IsDeleted(), Node< SPACE_DIM >::IsInternal(), Node< SPACE_DIM >::IsParticle(), Node< SPACE_DIM >::MarkAsDeleted(), Node< SPACE_DIM >::MarkAsInternal(), Node< SPACE_DIM >::mpNodeAttributes, Node< SPACE_DIM >::NeighboursIsEmpty(), Node< SPACE_DIM >::Node(), Node< SPACE_DIM >::RemoveBoundaryElement(), Node< SPACE_DIM >::RemoveDuplicateNeighbours(), Node< SPACE_DIM >::RemoveElement(), Node< SPACE_DIM >::rGetAppliedForce(), Node< SPACE_DIM >::rGetContainingBoundaryElementIndices(), Node< SPACE_DIM >::rGetContainingElementIndices(), Node< SPACE_DIM >::rGetLocation(), Node< SPACE_DIM >::rGetModifiableLocation(), Node< SPACE_DIM >::rGetNeighbours(), Node< SPACE_DIM >::rGetNodeAttributes(), Node< SPACE_DIM >::SetAsBoundaryNode(), Node< SPACE_DIM >::SetIndex(), Node< SPACE_DIM >::SetIsParticle(), Node< SPACE_DIM >::SetNeighboursSetUp(), Node< SPACE_DIM >::SetPoint(), Node< SPACE_DIM >::SetRadius(), Node< SPACE_DIM >::SetRegion(), and Node< SPACE_DIM >::~Node().
Set whether the node is a boundary node.
value | whether the node is a boundary node |
Definition at line 127 of file Node.cpp.
Referenced by QuadraticMeshHelper< DIM >::AddNodeToBoundaryElement(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::DeleteBoundaryNodeAt(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DeleteElementPriorToReMesh(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT1Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformVoidRemoval(), and Node< SPACE_DIM >::serialize().
Set the index of the node in the mesh.
index | the index of the node |
Definition at line 121 of file Node.cpp.
Referenced by MutableMesh< ELEMENT_DIM, SPACE_DIM >::AddNode(), NodesOnlyMesh< SPACE_DIM >::AddNode(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::AddNode(), and Node< SPACE_DIM >::serialize().
Set whether this node is a particle, for cell_based simulations.
isParticle | whether this node is a particle or not. |
Definition at line 240 of file Node.cpp.
Referenced by NodesOnlyMesh< SPACE_DIM >::AddMovedNode(), and Node< SPACE_DIM >::serialize().
Sets a flag to indicate that the neighbours of this node have/have not been updated.
flag | whether the neighbours are set up or not. |
Definition at line 360 of file Node.cpp.
Referenced by Node< SPACE_DIM >::serialize().
void Node< SPACE_DIM >::SetPoint | ( | ChastePoint< SPACE_DIM > | point | ) |
Set the node's location.
Note: setting the point in space is dangerous, because the Jacobian and JacobianDeterminant of any corresponding elements need to be updated.
point | the new location of the node |
Definition at line 115 of file Node.cpp.
References ChastePoint< DIM >::rGetLocation().
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideEdge(), and Node< SPACE_DIM >::serialize().
Set the radius of the node.
radius | the value to assign to the radius property. Should be >= 0.0 |
Definition at line 256 of file Node.cpp.
Referenced by NodeBasedCellPopulation< DIM >::AddCell(), NodesOnlyMesh< SPACE_DIM >::AddMovedNode(), NodesOnlyMesh< SPACE_DIM >::AddNodeWithFixedIndex(), NodesOnlyMesh< SPACE_DIM >::ConstructNodesWithoutMesh(), and Node< SPACE_DIM >::serialize().
Set the node's region ID.
region | the new region ID |
Definition at line 430 of file Node.cpp.
Referenced by NodesOnlyMesh< SPACE_DIM >::AddMovedNode(), and Node< SPACE_DIM >::serialize().
|
friend |
Whether this node has been deleted, and hence whether its location in the mesh can be re-used (for use in the MutableMesh class).
Whether this node is an internal node (for use in the QuadraticMesh class).
|
private |
A pointer to a NodeAttributes object associated with this node.
Definition at line 69 of file Node.hpp.
Referenced by Node< SPACE_DIM >::serialize().