XC Open source finite element analysis program
Public Types | Public Member Functions | Protected Member Functions | List of all members

Pointers to nodes. More...

#include <NodePtrs.h>

Inheritance diagram for XC::NodePtrs:
XC::NodePtrsWithIDs

Public Types

typedef std::vector< Node * > vector_ptr_nodes
 
typedef vector_ptr_nodes::const_reference const_reference
 
typedef vector_ptr_nodes::reference reference
 
typedef vector_ptr_nodes::iterator iterator
 
typedef vector_ptr_nodes::const_iterator const_iterator
 

Public Member Functions

 NodePtrs (Element *owr, const size_t &sz)
 Constructor.
 
 NodePtrs (const NodePtrs &otro)
 Constructor de copia.
 
NodePtrsoperator= (const NodePtrs &otro)
 
 ~NodePtrs (void)
 Destructor.
 
void inic (void)
 Pone a cero los pointers to node.
 
size_t size (void) const
 
const_reference front () const
 
reference front ()
 
const_reference back () const
 
reference back ()
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
iterator find (const int &)
 Returns an iterator to the node identified by the tag being passed as parameter.
 
const_iterator find (const int &) const
 Returns an iterator to the node identified by the tag being passed as parameter.
 
int find (const Node *) const
 Returns the index of the node whose pointer is being passed as parameter.
 
NodegetNodePtr (const size_t &)
 Returns a pointer to the node at the position being passed as parameter.
 
const_reference operator() (const size_t &i) const
 Returns a const reference to the node at the position being passed as parameter.
 
const_reference operator[] (const size_t &i) const
 Returns a const reference to the node at the position being passed as parameter.
 
void set_node (const size_t &i, Node *)
 Asigna the pointer to node i.
 
bool hasNull (void) const
 Returns true ifalguno de los pointers es nulo.
 
ID getNumDOFs (void) const
 Returns a vector with the number of DOFs for each node.
 
int getTotalDOFs (void) const
 Return the total number of DOFs.
 
Vector getDistributionFactor (int mode) const
 Returns a vector that contains the distribution factors of each node for the mode being passed as parameter.
 
Matrix getNodeVectors (const Vector &) const
 Returns the vectors correspondientes a cada node colocados por filas.
 
double MaxCooNod (int i) const
 Returns the maximum value de la coordenada i of the nodes.
 
double MinCooNod (int i) const
 Returns the minimum value de la coordenada i of the nodes.
 
std::vector< int > getIdx (void) const
 
bool checkDimension (const size_t &dim) const
 Checks that the dimensions of the node coordinates are all equal to the number being passed as parameter.
 
size_t getDimension (void) const
 Returns the dimension of the node coordinates.
 
const MatrixgetCoordinates (void) const
 Returns a matriz con las coordinates of the nodes.
 
Pos3d getPosNodo (const size_t &i, bool initialGeometry=true) const
 Return the position of the i-th node.
 
std::list< Pos3d > getPosiciones (bool initialGeometry=true) const
 Returns a matriz con las posiciones of the nodes.
 
Pos3d getPosCdg (bool initialGeometry=true) const
 Returns the centro de gravedad de las posiciones of the nodes.
 
NodegetNearestNode (const Pos3d &p, bool initialGeometry=true)
 Returns the node closest to the point being passed as parameter.
 
const NodegetNearestNode (const Pos3d &p, bool initialGeometry=true) const
 Returns the node closest to the point being passed as parameter.
 
bool In (const SemiEspacio3d &semiEsp, const double &tol=0.0, bool initialGeometry=true) const
 Returns true if the node are in the halfspace.
 
bool Out (const SemiEspacio3d &semiEsp, const double &tol=0.0, bool initialGeometry=true) const
 Returns true if the node are outside the halfspace.
 
bool Corta (const Plano3d &, bool initialGeometry=true) const
 Returns true if there are nodes in both sides of the plane.
 
void resetTributarias (void) const
 Resets tributary areas (or lengths or volumes) of connected nodes.
 
void vuelcaTributarias (const std::vector< double > &) const
 Adds to the la magnitud tributaria de cada node i la componente i del vector being passed as parameter.
 
const std::vector< int > & getTags (void) const
 Returns a vector con los tags of the nodes.
 
int getIndiceNodo (const Node *) const
 Return the index of the node pointer in the array.
 

Protected Member Functions

void disconnect (void)
 
void setPtrs (Domain *theDomain, const ID &theNodeTags)
 Sets the node pointers from the node identifiers.
 

Detailed Description

Pointers to nodes.


The documentation for this class was generated from the following files: