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

Node pointer container for elements. More...

#include <NodePtrsWithIDs.h>

Inheritance diagram for XC::NodePtrsWithIDs:
XC::NodePtrs XC::MovableObject XC::DistributedBase

Public Member Functions

 NodePtrsWithIDs (Element *owr, size_t numNodos)
 @ brief Default constructor.
 
const size_t numNodos (void)
 
int getNumExternalNodes (void) const
 Return the number of external nodes.
 
NodePtrsgetNodePtrs (void)
 Returns a pointer to the vector de nodos.
 
const NodePtrsgetNodePtrs (void) const
 Returns a pointer to the vector de nodos.
 
const IDgetExternalNodes (void) const
 Reuturns external nodes identifiers.
 
int getTagNode (const int &i) const
 Returns the tag of the i-th node.
 
void set_id_nodes (int Nd1, int Nd2)
 Sets identifiers for nodes 1 and 2.
 
void set_id_nodes (int nd1, int nd2, int nd3)
 Sets identifiers for nodes 1 to 3.
 
void set_id_nodes (int nd1, int nd2, int nd3, int nd4)
 Sets identifiers for nodes 1 to 4.
 
void set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5)
 Sets identifiers for nodes 1 to 5.
 
void set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6)
 Sets identifiers for nodes 1 to 6.
 
void set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7)
 Sets identifiers for nodes 1 to 7.
 
void set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7, int nd8)
 Sets identifiers for nodes 1 to 8.
 
void set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7, int nd8, int nd9)
 Sets identifiers for nodes 1 to 9.
 
void set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7, int nd8, int nd9, int nd10, int nd11, int nd12, int nd13, int nd14, int nd15, int nd16, int nd17, int nd18, int nd19, int nd20)
 Sets identifiers for nodes 1 to 20.
 
void set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7, int nd8, int nd9, int nd10, int nd11, int nd12, int nd13, int nd14, int nd15, int nd16, int nd17, int nd18, int nd19, int nd20, int nd21, int nd22, int nd23, int nd24, int nd25, int nd26, int nd27)
 Sets identifiers for nodes 1 to 27.
 
void set_id_nodes (const std::vector< int > &inodos)
 Sets the node identifiers (tags).
 
void set_id_nodes (const ID &inodos)
 Sets the node identifiers (tags).
 
void Print (std::ostream &os) const
 Printing...
 
int sendSelf (CommParameters &)
 
int recvSelf (const CommParameters &)
 
bool equalNumDOF (void)
 True if all nodes has the same DOF number.
 
bool checkNumDOF (const size_t &, const size_t &)
 Check DOF number on nodes.
 
- Public Member Functions inherited from XC::NodePtrs
 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.
 
- Public Member Functions inherited from XC::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor.
 
 MovableObject (int classTag)
 Constructor.
 
 MovableObject (const MovableObject &otro)
 Copy constructor.
 
MovableObjectoperator= (const MovableObject &otro)
 Operacdor asignación.
 
int getClassTag (void) const
 Returns the tag de la clase.
 
int getDbTag (void) const
 Returns the tag para la database.
 
int getDbTag (CommParameters &)
 Returns the tag para la database.
 
void setDbTag (int dbTag)
 Asigna el tag para la database.
 
void setDbTag (CommParameters &)
 Asigna, sólo si es preciso, el tag para la database.
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 
virtual int updateParameter (int parameterID, Information &info)
 
virtual int activateParameter (int parameterID)
 
virtual int setVariable (const std::string &variable, Information &)
 Returns the identificador de la variable cuyo nombre being passed as parameter.
 
virtual int getVariable (const std::string &variable, Information &)
 
- Public Member Functions inherited from XC::DistributedBase
 DistributedBase (void)
 Constructor.
 
const int & getDbTagDataPos (const int &i) const
 Returns the data at the i-th position.
 
void setDbTagDataPos (const int &i, const int &v)
 Sets the data at the i-th position.
 
void inicComm (const int &dataSize) const
 Initializes communication.
 

Protected Member Functions

DbTagDatagetDbTagData (void) const
 Returns a vector para almacenar los dbTags de los miembros de la clase.
 
int sendData (CommParameters &cp)
 Sends object members through the channel being passed as parameter.
 
int recvData (const CommParameters &cp)
 Receives object members through the channel being passed as parameter.
 
void set_node_ptrs (Domain *domain)
 Asigna los pointers to los nodos.
 
- Protected Member Functions inherited from XC::NodePtrs
void disconnect (void)
 
void setPtrs (Domain *theDomain, const ID &theNodeTags)
 Sets the node pointers from the node identifiers.
 

Protected Attributes

ID connectedExternalNodes
 contains the tags of the end nodes.
 

Friends

class Element
 

Additional Inherited Members

- Public Types inherited from XC::NodePtrs
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
 

Detailed Description

Node pointer container for elements.


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