XC Open source finite element analysis program
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XC::Set Class Reference

Object set. More...

#include <Set.h>

Inheritance diagram for XC::Set:
XC::SetMeshComp XC::SetBase XC::EntMdlrBase XC::MovableObject XC::DistributedBase

Public Types

typedef DqPtrsNmb< Pntlst_ptr_points
 Point set.
 
typedef lst_ptr_points::iterator pnt_iterator
 point set iterator.
 
typedef lst_ptr_points::const_iterator pnt_const_iterator
 point set const iterator.
 
typedef DqPtrsNmb< Edgelst_ptr_lineas
 Line set.
 
typedef lst_ptr_lineas::iterator lin_iterator
 Line set iterator.
 
typedef lst_ptr_lineas::const_iterator lin_const_iterator
 Line set const iterator.
 
typedef DqPtrsNmb< Facelst_surface_ptrs
 surface set.
 
typedef lst_surface_ptrs::iterator sup_iterator
 surface set iterator.
 
typedef lst_surface_ptrs::const_iterator sup_const_iterator
 surface set const iterator.
 
typedef DqPtrsNmb< Bodylst_ptr_cuerpos
 body set.
 
typedef DqPtrsNmb< UniformGridlst_ptr_uniform_grids
 Unifrom grid set.
 
- Public Types inherited from XC::SetMeshComp
typedef DqPtrsNode::iterator nod_iterator
 Iterator over the node set.
 
typedef DqPtrsNode::const_iterator nod_const_iterator
 Iterator over the node set.
 
typedef DqPtrsElem::iterator elem_iterator
 Iterator over the element set.
 
typedef DqPtrsElem::const_iterator elem_const_iterator
 Iterator over the element set.
 
typedef DqPtrsConstraint lst_ptr_constraints
 Set of constraints.
 
typedef DqPtrsConstraint::iterator constraint_iterator
 Iterator over the set de constraints.
 
typedef DqPtrsConstraint::const_iterator constraint_const_iterator
 Iterator over the set de constraints.
 

Public Member Functions

void numera (void)
 Set indices for the set objects (nodes,elements,points...) to its use in VTK.
 
 Set (const std::string &nmb="", Preprocessor *preprocessor=nullptr)
 Constructor.
 
 Set (const Set &otro)
 Copy constructor.
 
Setoperator= (const Set &otro)
 Assignment operator.
 
void clear (void)
 Vacía las listas of the set.
 
virtual const lst_ptr_pointsGetPuntos (void) const
 Returns a const reference to the point container.
 
virtual lst_ptr_pointsGetPuntos (void)
 Return a reference to the the point container.
 
void sel_points_lista (const ID &)
 Selecciona los puntos cuyos tags being passed as parameters.
 
bool In (const Pnt *) const
 Returns true if the point belongs to the set.
 
virtual const lst_ptr_lineasGetLineas (void) const
 Return a const reference to the line container.
 
virtual lst_ptr_lineasGetLineas (void)
 Return a reference to the line container.
 
void sel_lineas_lista (const ID &)
 Selecciona las lineas cuyos tags being passed as parameters.
 
bool In (const Edge *) const
 Returns true if the edge belongs to the set.
 
virtual const lst_surface_ptrsgetSurfaces (void) const
 Returns a const reference to the surface container.
 
virtual lst_surface_ptrsgetSurfaces (void)
 Returns a reference to the surface container.
 
void sel_surfaces_lst (const ID &)
 Selects the surfaces with the identifiers being passed as parameter.
 
bool In (const Face *) const
 Returns true if the surface belongs to the set.
 
virtual const lst_ptr_cuerposGetCuerpos (void) const
 Return a const reference to the body container.
 
virtual lst_ptr_cuerposGetCuerpos (void)
 Return a reference to the body container.
 
bool In (const Body *) const
 Returns true if the body belongs to the set.
 
virtual const lst_ptr_uniform_gridsGetUniformGrids (void) const
 Return a const reference to the UniformGrids container.
 
virtual lst_ptr_uniform_gridsGetUniformGrids (void)
 Return a reference to the UniformGrids container.
 
bool In (const UniformGrid *) const
 Returns true if the «uniform grid» belongs to the set.
 
void genMesh (meshing_dir dm)
 Triggers mesh generation from set components. More...
 
void extend_lists (const Set &)
 Extend this set with the objects of the set being passed as parameter.
 
void CompletaHaciaArriba (void)
 Appends to this set the objects that make reference to one or more of the objects that already make part of the set.
 
void CompletaHaciaAbajo (void)
 Appends to the set being passed as parameter the elements that intervene on the definition of those entities that are already in the set.
 
void Transforma (const TrfGeom &trf)
 Applies the transformation to the elements of the set.
 
void Transforma (const size_t &indice_trf)
 Aplica to the set the transformation with the index being passed as parameter.
 
virtual int sendSelf (CommParameters &)
 Sends object through the channel being passed as parameter.
 
virtual int recvSelf (const CommParameters &)
 Receives object through the channel being passed as parameter.
 
 ~Set (void)
 Destructor.
 
- Public Member Functions inherited from XC::SetMeshComp
 SetMeshComp (const std::string &nmb="", Preprocessor *preprocessor=nullptr)
 Constructor.
 
 SetMeshComp (const SetMeshComp &otro)
 Copy constructor.
 
SetMeshCompoperator= (const SetMeshComp &otro)
 Assignment operator.
 
size_t getNumberOfNodes (void) const
 Returns the number of nodes.
 
void addNode (Node *nPtr)
 Appends a node. More...
 
virtual const DqPtrsNodeGetNodos (void) const
 Return the node container.
 
virtual DqPtrsNodeGetNodos (void)
 Return the nodes container.
 
void clearNodos (void)
 Clears out the nodes.
 
void sel_nodes_from_list (const ID &)
 Select the nodes identified by the tags being passed as parameters.
 
bool In (const Node *) const
 Returns true if the node belongs to the set.
 
size_t getNumberOfElements (void) const
 Returns the number of elements.
 
void addElement (Element *ePtr)
 Adds an element. More...
 
virtual const DqPtrsElemgetElements (void) const
 Returns the element container.
 
virtual DqPtrsElemgetElements (void)
 Returns the elements container.
 
void clearElements (void)
 Clears out the elements.
 
void sel_elements_from_list (const ID &tags)
 Selects the elements identified by the tags being passed as parameters.
 
bool In (const Element *) const
 Returns true if the element belongs to the set.
 
virtual const DqPtrsConstraintGetConstraints (void) const
 Return the constraints container.
 
virtual DqPtrsConstraintGetConstraints (void)
 Return the constraints container.
 
void clearConstraints (void)
 Clears out the constraints.
 
void sel_constraints_from_list (const ID &tags)
 Selecciona las coacciones cuyos tags being passed as parameters.
 
void appendFromGeomEntity (const SetBase &)
 Appends to this set the objects the nodes and elements from the set being passed as parameter.
 
void clear (void)
 Clears all the objectsof the lists.
 
void fix (const SFreedom_Constraint &)
 Applies the single freedom constraint being passed as parameter to the nodes.
 
nod_const_iterator nodos_begin (void) const
 Returns an iterator that points to the first item of the node container.
 
nod_const_iterator nodos_end (void) const
 Returns an iterator that points to the past-the-end item in the node container.
 
NodebuscaNodo (const int &tag)
 Returns (if it exists) a pointer to the node cuyo tag is being passed as parameter.
 
const NodebuscaNodo (const int &tag) const
 Returns (if it exists) a pointer to the node cuyo tag is being passed as parameter.
 
bool InNodeTag (const int) const
 Returns true if the node with the tag being passed as parameter, belongs to the set.
 
bool InNodeTags (const ID &) const
 Returns true if the nodes, with the tags being passed as parameter, belongs to the set.
 
std::set< int > getNodeTags (void) const
 Returns node tags.
 
std::set< int > getElementTags (void) const
 Returns the tags de los elements.
 
std::set< int > getConstraintTags (void) const
 Returns the tags de los constraints.
 
NodegetNearestNode (const Pos3d &p)
 Returns the node closest to the point being passed as parameter.
 
const NodegetNearestNode (const Pos3d &p) const
 Returns the node closest to the point being passed as parameter.
 
elem_iterator elem_begin (void)
 
elem_const_iterator elem_begin (void) const
 Returns an iterator which points to principio de la lista de elements.
 
elem_iterator elem_end (void)
 
elem_const_iterator elem_end (void) const
 Returns an iterator apuntando tras el final de la lista de elements.
 
ElementfindElement (const int &)
 Returns (if it exists) a pointer to the node identified by the tag being passed as parameter.
 
const ElementfindElement (const int &) const
 Returns (if it exists) a pointer to the node identified by the tag being passed as parameter.
 
ElementgetNearestElement (const Pos3d &)
 Returns the element closest to the point being passed as parameter.
 
const ElementgetNearestElement (const Pos3d &) const
 Returns the element closest to the point being passed as parameter.
 
void kill_elements (void)
 Deactivates the elements.
 
void alive_elements (void)
 Reactivates the elements.
 
size_t getNumDeadElements (void) const
 Returns the number of inactive elements.
 
size_t getNumLiveElements (void) const
 Returns the number of active elements.
 
size_t getNumDeadNodes (void) const
 Returns the number of inactive nodes.
 
size_t getNumLiveNodes (void) const
 Returns the número de active nodes.
 
constraint_iterator constraints_begin (void)
 Returns an iterator which points to principio de la lista de constraints.
 
constraint_const_iterator constraints_begin (void) const
 Returns an iterator which points to principio de la lista de constraints.
 
constraint_iterator constraints_end (void)
 Returns an iterator apuntando tras el final de la lista de constraints.
 
constraint_const_iterator constraints_end (void) const
 Returns an iterator apuntando tras el final de la lista de constraints.
 
ConstraintbuscaConstraint (const int &tag)
 Returns, if it exists, a pointer to the constraint which tag is being passed as parameter.
 
const ConstraintbuscaConstraint (const int &tag) const
 Returns, if it exists, a pointer to the constraint which tag is being passed as parameter.
 
void CompletaHaciaArriba (void)
 Appends to this set the objects that make reference to one or more of the objects that already are in the set.
 
void CompletaHaciaAbajo (void)
 Appends to the set being passed as parameter the nodes that touch any of the elements of the set.
 
SVD3d getResistingSVD3d (const Plano3d &, const Pos3d &, const double &, const bool &) const
 Return the resultant of the forces over the nodes near to the plane, of the elements behind the plane.
 
 ~SetMeshComp (void)
 Destructor.
 
- Public Member Functions inherited from XC::SetBase
 SetBase (const std::string &nmb="", Preprocessor *preprocessor=nullptr)
 Constructor.
 
const IDgetIdNodeTags (void) const
 Returns the tags of the nodes en un vector de enteros.
 
const IDgetIdElementTags (void) const
 Returns the tags of the elements en un vector de enteros.
 
void resetTributarias (void) const
 Reset tributary areas (or lengths, or volumes) for the nodes that are connected to the set elements.
 
void calculaLongsTributarias (bool initialGeometry=true) const
 Calcula las longitudes tributarias correspondientes a cada nodo of the elements of the set.
 
void calculaAreasTributarias (bool initialGeometry=true) const
 Calcula las áreas tributarias correspondientes a cada nodo of the elements of the set.
 
void calculaVolsTributarios (bool initialGeometry=true) const
 Calcula los volúmenes tributarios correspondientes a cada nodo of the elements of the set.
 
- Public Member Functions inherited from XC::EntMdlrBase
 EntMdlrBase (const std::string &nmb="", Preprocessor *preprocessor=nullptr)
 Constructor.
 
 EntMdlrBase (const EntMdlrBase &otro)
 Copy constructor.
 
EntMdlrBaseoperator= (const EntMdlrBase &otro)
 Assignment operator.
 
const PreprocessorGetPreprocessor (void) const
 
PreprocessorGetPreprocessor (void)
 
size_t GetTag (void) const
 Return the object identifier in the model (tag).
 
PntBuscaPnt (const size_t &)
 Return a pointer to the point identified by the tag being passed as parameter.
 
const PntBuscaPnt (const size_t &) const
 Return a const pointer to the point identified by the tag being passed as parameter.
 
EdgeBuscaEdge (const size_t &)
 Return a pointer to the edge identified by the tag being passed as parameter.
 
const EdgeBuscaEdge (const size_t &) const
 Return a pointer to the edge identified by the tag being passed as parameter.
 
FaceBuscaFace (const size_t &)
 Return a pointer to the face identified by the tag being passed as parameter.
 
const FaceBuscaFace (const size_t &) const
 Returns a pointer to the face identified by the tag being passed as parameter.
 
- 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

void clearAll (void)
 Uniform mesh set. More...
 
void copia_listas (const Set &)
 Copia las listas de objetos of the set s. More...
 
void create_copy (const std::string &, const Vector3d &v)
 Creates a copy of the elements of the set and put them in another set with the name is being passed as parameter. The coordinates of the new points will be obtained by adding to the original coordinates those of the vector being passed as parameter.
 
DbTagDatagetDbTagData (void) const
 Returns a vector para almacenar los dbTags de los miembros de la clase.
 
int sendData (CommParameters &)
 Send members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receives members through the channel being passed as parameter.
 
void point_meshing (meshing_dir dm)
 Create nodes and, where appropriate, elements on set points.
 
void line_meshing (meshing_dir dm)
 Create nodes and, where appropriate, elements on set lines.
 
void surface_meshing (meshing_dir dm)
 Create nodes and, where appropriate, elements on surfaces.
 
void body_meshing (meshing_dir dm)
 Create nodes and, where appropriate, elements on set bodies.
 
void uniform_grid_meshing (meshing_dir dm)
 Creates nodes and, eventually, elements on the points of the set.
 
void mueve (const Vector3d &)
 Moves the objects of the set.
 
- Protected Member Functions inherited from XC::SetMeshComp
void numera (void)
 Assigns index to each object in the set (nodes,elements,points...) to be able to use them in VTK.
 
void clearAll (void)
 Clears all objects from the set.
 
void copia_listas (const SetMeshComp &)
 Copy (into this set) the lists from the set being passed as parameter.
 
void extend_lists (const SetMeshComp &)
 Appends to this set the objects from the set being passed as parameter.
 
void extend_lists_cond (const SetMeshComp &, const std::string &)
 
DbTagDatagetDbTagData (void) const
 Returns a vector para almacenar los dbTags de los miembros de la clase.
 
int sendData (CommParameters &)
 Send members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receives members through the channel being passed as parameter.
 
void calc_resisting_force (void)
 Calcula los esfuerzos en cada uno de los elements.
 
void mueve (const Vector3d &)
 Moves the nodes.
 
- Protected Member Functions inherited from XC::EntMdlrBase
const Preprocessorget_preprocessor (void) const
 Return a pointer to the preprocessor.
 
Preprocessorget_preprocessor (void)
 Return a pointer to the preprocessor.
 
bool check_preprocessor (void) const
 Check for preprocessor.
 
int sendIdsEtiquetas (const int &, const int &, CommParameters &)
 Send labels through the channel being passed as parameter.
 
int recvIdsEtiquetas (const int &, const int &, const CommParameters &)
 Receive labels through the channel being passed as parameter.
 
int sendData (CommParameters &)
 Send members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receive members through the channel being passed as parameter.
 

Protected Attributes

lst_ptr_points puntos
 point set.
 
lst_ptr_lineas lineas
 line set.
 
lst_surface_ptrs surfaces
 surface set.
 
lst_ptr_cuerpos cuerpos
 body set.
 
lst_ptr_uniform_grids uniform_grids
 
- Protected Attributes inherited from XC::EntMdlrBase
LabelContainer labels
 Label container.
 

Additional Inherited Members

- Static Protected Member Functions inherited from XC::SetMeshComp
template<class L >
static void numera_lista (L &l)
 Set indices to the object to allow its use in VTK.
 

Detailed Description

Object set.

A set object contains 0 or more:

Member Function Documentation

void XC::Set::clearAll ( void  )
protected

Uniform mesh set.

Clears all the objects of the set.

void XC::Set::copia_listas ( const Set otro)
protected

Copia las listas de objetos of the set s.

Copia en ESTE objeto las listas de objetos of the set being passed as parameter.

void XC::Set::genMesh ( meshing_dir  dm)
virtual

Triggers mesh generation from set components.

Parameters
dmMeshing direction.

Reimplemented from XC::SetBase.


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