37 #include "Cylindrical2dNodesOnlyMesh.hpp"
50 EXCEPTION(
"Need to specify a cut off length larger than the width with Cylindrical2dNodesOnlyMeshes.");
61 assert(rDimension==0 || rDimension==1);
77 assert(!concreteMove);
87 else if (x_coord < 0.0)
94 this->
GetNode(nodeIndex)->SetPoint(point);
104 SetNode(node_index, new_node_point);
112 c_vector<double, 2> vector = rLocation2 - rLocation1;
113 vector[0] = fmod(vector[0],
mWidth);
119 if (vector[0] > 0.5*
mWidth)
123 else if (vector[0] < -0.5*
mWidth)
void SetNode(unsigned nodeIndex, ChastePoint< 2 > point, bool concreteMove=false)
c_vector< double, DIM > & rGetLocation()
unsigned AddNode(Node< 2 > *pNewNode)
Node< SPACE_DIM > * GetNode(unsigned index) const
#define EXCEPTION(message)
virtual void SetUpBoxCollection(double cutOffLength, c_vector< double, 2 *2 > domainSize, int numLocalRows=PETSC_DECIDE, bool isPeriodic=true)
void SetUpBoxCollection(const std::vector< Node< SPACE_DIM > * > &rNodes)
void SetCoordinate(unsigned i, double value)
unsigned AddNode(Node< SPACE_DIM > *pNewNode)
ChastePoint< SPACE_DIM > GetPoint() const
virtual double GetWidth(const unsigned &rDimension) const
double GetWidth(const unsigned &rDimension) const
#define CHASTE_CLASS_EXPORT(T)
Cylindrical2dNodesOnlyMesh(double width)
c_vector< double, 2 > GetVectorFromAtoB(const c_vector< double, 2 > &rLocation1, const c_vector< double, 2 > &rLocation2)