xc
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:
Inheritance graph
[legend]
Collaboration diagram for XC::Set:
Collaboration graph
[legend]

Public Member Functions

void numerate (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 (void)
 Destructor.
 
void setDescription (const std::string &d)
 
const std::string & getDescription (void) const
 
void clear (void)
 Clears the set.
 
bool empty (void) const
 Return true if the set is empty.
 
Set getEntitiesSet (void) const
 Return a set with the entities of this one.
 
Set getMeshComponentsSet (void) const
 Return a set with the mesh components of this one.
 
bool In (const Node *) const
 Returns true if the node belongs to the set.
 
bool isCloserThan (const Node &, const double &) const
 Return true if the distance to the given node is smaller than the given one. More...
 
bool remove (Node *)
 Removes the given node from the set.
 
bool In (const Element *) const
 Returns true if the element belongs to the set.
 
bool isCloserThan (const Element &, const double &) const
 Return true if the distance to the element nodes is smaller than the given one. More...
 
bool remove (Element *)
 Removes the given element from the set. More...
 
Set pickNodesInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the nodes that lie insiof the geometric object. More...
 
Set pickNodesInside (const std::string &, const GeomObj2d &, const double &tol=0.0)
 Return a new set that contains the nodes that lie insiof the geometric object. More...
 
Set pickElemsInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the elements that lie inside of the geometric object. More...
 
Set pickElemsInside (const std::string &, const GeomObj2d &, const double &tol=0.0)
 Return a new set that contains the elements that lie inside of the geometric object. More...
 
Set pickElemsCrossing (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set with the elements that cross (i.e. More...
 
Set pickElemsCrossing (const std::string &, const GeomObj2d &, const double &tol=0.0)
 Return a new set with the elements that cross (i.e. More...
 
Set pickElemsOfType (const std::string &, const std::string &)
 Return a new set that contains the elements that match the type. More...
 
Set pickElemsOfDimension (const std::string &, const size_t &)
 Return a new set that contains the elements of the specified dimension. More...
 
bool remove (Constraint *)
 Removes the given constraint from the set.
 
virtual const SetEntitiesgetEntities (void) const
 Return a reference to the entities container.
 
virtual SetEntitiesgetEntities (void)
 Return a reference to the entities container.
 
virtual const SetMeshCompgetMeshComp (void) const
 Return a reference to the mesh components container.
 
virtual SetMeshCompgetMeshComp (void)
 Return a reference to the entities container.
 
virtual const SetEntities::lst_ptr_pointsgetPoints (void) const
 Returns a const reference to the points container.
 
virtual SetEntities::lst_ptr_pointsgetPoints (void)
 Return a reference to the the point container.
 
void setPoints (const SetEntities::lst_ptr_points &pts)
 Assigns the points set.
 
void sel_points_from_list (const ID &)
 Select the points identified by the tags in the parameter. More...
 
void selPointsFromListPy (const boost::python::list &)
 Select the points identified by the given tags. More...
 
bool In (const Pnt *) const
 Returns true if the point belongs to the set.
 
bool isCloserThan (const Pnt &, const double &) const
 Return true if the distance to the given point is smaller than the given one. More...
 
Set pickPointsInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the points that lie insiof the geometric object. More...
 
virtual const SetEntities::lst_line_pointersgetLines (void) const
 Return a const reference to the line container.
 
virtual SetEntities::lst_line_pointersgetLines (void)
 Return a reference to the line container.
 
void setLines (const SetEntities::lst_line_pointers &lns)
 Assigns the edge set.
 
void sel_lines_from_list (const ID &)
 Select the lines identified by the tags in the parameter. More...
 
void selLinesFromListPy (const boost::python::list &)
 Select the lines identified by the given tags. More...
 
bool In (const Edge *) const
 Returns true if the edge belongs to the set.
 
bool isCloserThan (const Edge &, const double &) const
 Return true if the distance to the edge points is smaller than the given one. More...
 
Set pickLinesInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the lines that lie insiof the geometric object. More...
 
virtual const SetEntities::lst_surface_ptrsgetSurfaces (void) const
 Returns a const reference to the surface container.
 
virtual SetEntities::lst_surface_ptrsgetSurfaces (void)
 Returns a reference to the surface container.
 
void setSurfaces (const SetEntities::lst_surface_ptrs &sfs)
 Assigns the surface set.
 
void sel_surfaces_from_list (const ID &)
 Selects the surfaces with the identifiers being passed as parameter.
 
void selSurfacesFromListPy (const boost::python::list &)
 Select the surfaces identified by the given tags. More...
 
bool In (const Face *) const
 Returns true if the surface belongs to the set.
 
bool isCloserThan (const Face &, const double &) const
 Return true if the distance to the face points is smaller than the given one. More...
 
Set pickSurfacesInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the surfaces that lie insiof the geometric object. More...
 
virtual const SetEntities::lst_body_pointersgetBodies (void) const
 Return a const reference to the body container.
 
virtual SetEntities::lst_body_pointersgetBodies (void)
 Return a reference to the body container.
 
void setBodies (const SetEntities::lst_body_pointers &bds)
 Assigns the bodies set.
 
void sel_bodies_from_list (const ID &)
 Selects the bodies with the identifiers being passed as parameter.
 
void selBodiesFromListPy (const boost::python::list &)
 Select the bodies identified by the given tags. More...
 
bool In (const Body *) const
 Returns true if the body belongs to the set.
 
bool isCloserThan (const Body &, const double &) const
 Return true if the distances to the body vertices are smaller than the given one. More...
 
Set pickBodiesInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the bodies that lie insiof the geometric object. More...
 
virtual const SetEntities::lst_ptr_uniform_gridsgetUniformGrids (void) const
 Return a const reference to the UniformGrids container.
 
virtual SetEntities::lst_ptr_uniform_gridsgetUniformGrids (void)
 Return a reference to the UniformGrids container.
 
void sel_ugrids_from_list (const ID &)
 Selects the ugrids with the identifiers being passed as parameter.
 
void selUgridsFromListPy (const boost::python::list &)
 Select the ugrids identified by the given tags. More...
 
bool isCloserThan (const UniformGrid &, const double &) const
 Return true if the distances to the uniform grid vertices are smaller than the given one. More...
 
bool In (const UniformGrid *) const
 Returns true if the «uniform grid» belongs to the set.
 
BND3d Bnd (const double &) const
 Return the set boundary. More...
 
Set pickEntitiesInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the entities that lie insiof the geometric object. More...
 
void conciliaNDivs (void)
 Conciliate number of divisions of the lines shared by faces. More...
 
void setUseGmsh (const bool &)
 Set the value of the useGmsh member.
 
bool getUseGmsh (void) const
 Get the value of the useGmsh member.
 
void genMesh (meshing_dir dm)
 Triggers mesh generation from set components. More...
 
void fillUpwards (void)
 Appends to this set the objects that make reference to one or more of the objects that already make part of the set. More...
 
void fillDownwards (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. More...
 
void Transform (const TrfGeom &trf)
 Applies the transformation to the elements of the set.
 
virtual int sendSelf (Communicator &)
 Sends object through the communicator argument.
 
virtual int recvSelf (const Communicator &)
 Receives object through the communicator argument.
 
void extend (const SetEntities::lst_ptr_points &)
 Extend this set with the points of the argument.
 
void extend (const SetEntities::lst_line_pointers &)
 Extend this set with the lines of the argument.
 
void extend (const SetEntities::lst_surface_ptrs &)
 Extend this set with the surfaces of the argument.
 
void extend (const SetEntities::lst_body_pointers &)
 Extend this set with the bodies of the argument.
 
void extend (const SetEntities::lst_ptr_uniform_grids &)
 Extend this set with the uniform grids of the argument.
 
void extend (const Set &)
 Extend the set with the elements from the argument set. More...
 
Setoperator+= (const Set &)
 Addition assignment operator. More...
 
Setoperator-= (const Set &)
 -= operator.
 
Setoperator*= (const Set &)
 *= operator (intersection).
 
Setoperator+ (const Set &) const
 Addition (union) operator. More...
 
Setoperator- (const Set &) const
 Difference operator. More...
 
Setoperator* (const Set &) const
 Intersection operator. More...
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from XC::SetMeshComp
 SetMeshComp (const std::string &nmb="", Preprocessor *preprocessor=nullptr)
 Constructor.
 
 SetMeshComp (const SetMeshComp &)
 Copy constructor.
 
 ~SetMeshComp (void)
 Destructor.
 
SetMeshCompoperator= (const SetMeshComp &)
 Assignment operator.
 
SetMeshCompoperator+= (const SetMeshComp &)
 += operator.
 
SetMeshCompoperator-= (const SetMeshComp &)
 -= operator.
 
SetMeshCompoperator*= (const SetMeshComp &)
 *= operator (intersection).
 
void extend (const DqPtrsNode &)
 Appends to this set the nodes from the argument.
 
void extend (const DqPtrsElem &)
 Appends to this set the elements from the argument.
 
void extend (const lst_ptr_constraints &)
 Appends to this set the constraints from the argument.
 
void extend (const SetMeshComp &)
 Appends to this set the objects from the argument set.
 
void substract (const DqPtrsNode &)
 Appends to this set the nodes from the argument.
 
void substract (const DqPtrsElem &)
 Appends to this set the elements from the argument.
 
void substract (const lst_ptr_constraints &)
 Appends to this set the constraints from the argument.
 
void substract (const SetMeshComp &)
 Appends to this set the objects from the argument set.
 
std::string getStrName (void) const
 Return a copy of the object name.
 
void newName (const std::string &)
 Set the object name.
 
void rename (const std::string &)
 Rename object.
 
size_t getNumberOfNodes (void) const
 Returns the number of nodes.
 
void addNode (Node *nPtr)
 Appends a node. More...
 
virtual const DqPtrsNodegetNodes (void) const
 Return the node container.
 
virtual DqPtrsNodegetNodes (void)
 Return the nodes container.
 
void setNodes (const DqPtrsNode &nds)
 Sets the nodes.
 
void clearNodes (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.
 
bool isCloserThan (const Pos3d &, const double &) const
 Return true if the distance to the given point is smaller than the given one. More...
 
bool remove (Node *)
 Remove the given node from the set.
 
SetMeshComp pickNodesInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the nodes that lie insiof the geometric object. More...
 
SetMeshComp pickNodesInside (const std::string &, const GeomObj2d &, const double &tol=0.0)
 Return a new set that contains the nodes that lie insiof the geometric object. More...
 
BND3d Bnd (const double &) const
 Return the nodes current position boundary. More...
 
size_t getNumberOfElements (void) const
 Returns the number of elements.
 
void addElement (Element *)
 Adds an element. More...
 
virtual const DqPtrsElemgetElements (void) const
 Returns the element container.
 
virtual DqPtrsElemgetElements (void)
 Returns the elements container.
 
void setElements (const DqPtrsElem &els)
 Sets the elements.
 
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.
 
bool isCloserThan (const GeomObj::list_Pos3d &, const double &) const
 Return true if the distance to the given point is smaller than the given one. More...
 
bool remove (Element *)
 Remove the given element from the set.
 
SetMeshComp pickElemsInside (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set that contains the elements that lie inside of the geometric object. More...
 
SetMeshComp pickElemsInside (const std::string &, const GeomObj2d &, const double &tol=0.0)
 Return a new set that contains the elements that lie inside of the geometric object. More...
 
SetMeshComp pickElemsCrossing (const std::string &, const GeomObj3d &, const double &tol=0.0)
 Return a new set with the elements that cross (i.e. More...
 
SetMeshComp pickElemsCrossing (const std::string &, const GeomObj2d &, const double &tol=0.0)
 Return a new set with the elements that cross (i.e. More...
 
SetMeshComp pickElemsOfType (const std::string &, const std::string &)
 Return a new set that contains the elements that match the type. More...
 
SetMeshComp pickElemsOfDimension (const std::string &, const size_t &)
 Return a new set that contains the elements of the specified dimension. More...
 
boost::python::list getElementTypesPy (void) const
 
boost::python::list getElementDimensionsPy (void) const
 
boost::python::list getElementMaterialNamesPy (void) const
 
SetMeshComp pickElemsOfMaterial (const std::string &, const std::string &)
 Return a new set that contains the elements who have the material being passed as parameter. More...
 
size_t getNumberOfConstraints (void) const
 Returns the number of constraints.
 
void addConstraint (Constraint *)
 Adds a constraint. More...
 
bool remove (Constraint *)
 Remove the given constraint from the set.
 
virtual const DqPtrsConstraintgetConstraints (void) const
 Return the constraints container.
 
virtual DqPtrsConstraintgetConstraints (void)
 Return the constraints container.
 
void setConstraints (const DqPtrsConstraint &cts)
 Sets the constraints.
 
void clearConstraints (void)
 Clears out the constraints.
 
void sel_constraints_from_list (const ID &tags, const ID &types)
 Select the constraints identified by the tags. More...
 
void appendFromGeomEntity (const SetBase &)
 Appends to this set the objects the nodes and elements from the set being passed as parameter. More...
 
void clear (void)
 Clears all the objects of the lists.
 
bool empty (void) const
 Return true if the set is empty.
 
void fix (const SFreedom_Constraint &)
 Applies the single freedom constraint being passed as parameter to the nodes.
 
nod_const_iterator nodes_begin (void) const
 Returns an iterator that points to the first item of the node container.
 
nod_const_iterator nodes_end (void) const
 Returns an iterator that points to the past-the-end item in the node container.
 
NodefindNode (const int &tag)
 Returns (if it exists) a pointer to the node which tag is being passed as parameter. More...
 
const NodefindNode (const int &tag) const
 Returns (if it exists) a pointer to the node which tag is being passed as parameter. More...
 
bool InNodeTag (const int) const
 Returns true if the node with the tag being passed as parameter, belongs to the set. More...
 
bool InNodeTags (const ID &) const
 Returns true if the nodes, with the tags being passed as parameter, belongs to the set. More...
 
std::set< int > getNodeTags (void) const
 Returns node tags.
 
std::set< int > getElementTags (void) const
 Returns the element tags.
 
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. More...
 
const ElementfindElement (const int &) const
 Returns (if it exists) a pointer to the node identified by the tag being passed as parameter. More...
 
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 number of 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. More...
 
const ConstraintbuscaConstraint (const int &tag) const
 Returns, if it exists, a pointer to the constraint which tag is being passed as parameter. More...
 
void fillUpwards (void)
 Appends to this set the objects that make reference to one or more of the objects that already are in the set. More...
 
void fillDownwards (void)
 Appends to the set being passed as parameter the nodes that touch any of the elements of the set. More...
 
SlidingVectorsSystem3d getResistingSlidingVectorsSystem3d (const Plane &, 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. More...
 
Matrix getTangentStiff (const Node &)
 Return the contribution of the elements to the tangent stiffness of the node argument. More...
 
Matrix getInitialStiff (const Node &)
 Return the contribution of the elements to the tangent stiffness of the node argument. More...
 
void createInertiaLoads (const Vector &)
 Creates the inertia load that corresponds to the acceleration argument. More...
 
Matrix getTotalMass (void) const
 Return the total mass matrix.
 
double getTotalMassComponent (const int &) const
 Return the total mass matrix component for the DOF argument.
 
SetMeshComp operator+ (const SetMeshComp &) const
 Return the union of both objects.
 
SetMeshComp operator- (const SetMeshComp &) const
 Return the difference.
 
SetMeshComp operator* (const SetMeshComp &) const
 Return the intersection.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from XC::SetBase
 SetBase (const std::string &nmb="", Preprocessor *preprocessor=nullptr)
 Constructor.
 
virtual bool operator== (const SetBase &) const
 Comparison operator.
 
void setColorComponents (const double &, const double &, const double &)
 Set the color of the object (red,green,blue) as integers from 0 to 255. More...
 
void setColor (const Vector &)
 Set the color of the object [red,green,blue] as integers from 0 to 255. More...
 
const VectorgetColor (void) const
 Return the color of the object [red,green,blue] as integers from 0 to 255. More...
 
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.
 
boost::python::list getNodeTagsPy (void) const
 Returns the tags of the nodes in a Python list.
 
boost::python::list getElementTagsPy (void) const
 Returns the tags of the elements in a Python list.
 
bool interiorNode (const Node *) const
 Returns true if the all the elements connected to the given node belong to the set. More...
 
void resetTributaries (void) const
 Reset tributary areas (or lengths, or volumes) for the nodes that are connected to the set elements. More...
 
bool checkTributaries (void) const
 Check if the interior nodes of the set have already a tributary area and warns the user about this circumstance. More...
 
void computeTributaryLengths (bool initialGeometry=true) const
 Computes the tributary lengths that correspond to each node of the element set. More...
 
void computeTributaryAreas (bool initialGeometry=true) const
 Computes the tributary areas that correspond to each node of the element set. More...
 
void computeTributaryVolumes (bool initialGeometry=true) const
 Computes the tributary volumes that correspond to each node of the element set. More...
 
- Public Member Functions inherited from XC::EntMdlrBase
 EntMdlrBase (const std::string &nmb="", Preprocessor *preprocessor=nullptr)
 Constructor.
 
EntMdlrBaseoperator+= (const EntMdlrBase &)
 += operator.
 
EntMdlrBaseoperator-= (const EntMdlrBase &)
 -= operator.
 
EntMdlrBaseoperator*= (const EntMdlrBase &)
 *= operator (intersection).
 
virtual bool operator== (const EntMdlrBase &) const
 Comparison operator.
 
const PreprocessorgetPreprocessor (void) const
 Return a pointer to the object preprocessor.
 
PreprocessorgetPreprocessor (void)
 Return a pointer to the object preprocessor.
 
const LabelContainergetLabels (void) const
 
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. More...
 
const PntBuscaPnt (const size_t &) const
 Return a const pointer to the point identified by the tag being passed as parameter. More...
 
EdgeBuscaEdge (const size_t &)
 Return a pointer to the edge identified by the tag being passed as parameter. More...
 
const EdgeBuscaEdge (const size_t &) const
 Return a pointer to the edge identified by the tag being passed as parameter. More...
 
FaceBuscaFace (const size_t &)
 Return a pointer to the face identified by the tag being passed as parameter. More...
 
const FaceBuscaFace (const size_t &) const
 Returns a pointer to the face identified by the tag being passed as parameter. More...
 
- Public Member Functions inherited from NamedEntity
 NamedEntity (const std::string &Name="", CommandEntity *owr=nullptr)
 Constructor.
 
const std::string & getName (void) const
 Return the object name.
 
void setName (const std::string &s)
 Set the object name.
 
std::string & Name (void)
 Return a reference to the object name.
 
virtual bool operator== (const NamedEntity &other) const
 Comparison operator.
 
bool operator< (const NamedEntity &other) const
 Less than operator.
 
NamedEntityoperator+= (const NamedEntity &)
 += operator.
 
NamedEntityoperator-= (const NamedEntity &)
 -= operator.
 
NamedEntityoperator*= (const NamedEntity &)
 *= operator.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from CommandEntity
 CommandEntity (CommandEntity *owr=nullptr)
 Default constructor.
 
CommandEntityOwner (void)
 Return a pointer to the object owner.
 
const CommandEntityOwner (void) const
 Return un puntero al objeto propietario de ESTE.
 
const StandardOutputWrappergetStandardOutputWrapper (void) const
 Return the regular output stream wrapper.
 
StandardOutputWrappergetStandardOutputWrapper (void)
 Return the regular output stream wrapper.
 
const std::string & getLogFileName (void) const
 Returns log file name.
 
void setLogFileName (const std::string &)
 Sets log file name.
 
const std::string & getErrFileName (void) const
 Returns err file name.
 
void setErrFileName (const std::string &)
 Sets error file name.
 
const std::string & getOutputFileName (void) const
 Returns regular output file name.
 
void setOutputFileName (const std::string &)
 Sets regular output file name.
 
boost::python::object evalPy (boost::python::object dict, const std::string &)
 Return the Python object that results from evaluating the argument.
 
boost::python::object execPy (boost::python::object dict, const std::string &)
 Return the Python objects that results from executing the code in the string argument.
 
boost::python::object execFilePy (boost::python::object dict, const std::string &)
 Return the Python object that results from executing the code in the file.
 
- Public Member Functions inherited from EntityWithProperties
 EntityWithProperties (EntityWithProperties *owr=nullptr)
 Default constructor.
 
void clearPyProps (void)
 Clear python properties map.
 
bool hasPyProp (const std::string &)
 Returns true if property exists.
 
boost::python::object getPyProp (const std::string &str)
 Return the Python object with the name being passed as parameter.
 
void setPyProp (std::string str, boost::python::object val)
 Sets/appends a value tho the Python object's dictionary.
 
void copyPropsFrom (const EntityWithProperties &)
 Copy the properties from the argument.
 
boost::python::list getPropNames (void) const
 Return the names of the object properties weightings.
 
const PythonDict & getPropertiesDict (void) const
 Return a std::map container with the properties of the object.
 
- Public Member Functions inherited from EntityWithOwner
 EntityWithOwner (EntityWithOwner *owr=nullptr)
 Default constructor.
 
 EntityWithOwner (const EntityWithOwner &)
 Copy constructor.
 
EntityWithOwneroperator= (const EntityWithOwner &)
 Assignment operator.
 
virtual bool operator== (const EntityWithOwner &) const
 Comparison operator.
 
virtual ~EntityWithOwner (void)
 Virtual destructor.
 
virtual std::string getClassName (void) const
 Returns demangled class name.
 
void set_owner (EntityWithOwner *owr)
 Assigns the owner of the object.
 
EntityWithOwnerOwner (void)
 
const EntityWithOwnerOwner (void) const
 
- Public Member Functions inherited from XC::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor. More...
 
 MovableObject (int classTag)
 Constructor. More...
 
 MovableObject (const MovableObject &)
 Copy constructor. Doesn't copy the dbTag.
 
MovableObjectoperator= (const MovableObject &)
 Assignment operator. Doesn't copy the dbTag.
 
int getClassTag (void) const
 Return the class identifier.
 
int getDbTag (void) const
 Return the object identifier in the database.
 
int getDbTag (Communicator &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (Communicator &)
 Sets the object identifier in the database if not already set. More...
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 Sets the value param to the parameter argv.
 
virtual int updateParameter (int parameterID, Information &info)
 Updates the parameter identified by parameterID with info.
 
virtual int activateParameter (int parameterID)
 Activates the parameter identified by parameterID.
 
virtual int setVariable (const std::string &variable, Information &)
 Set the value of the variable idenfified by var.
 
virtual int getVariable (const std::string &variable, Information &)
 Return the value of the variable idenfified by var.
 
- Public Member Functions inherited from XC::DistributedBase
 DistributedBase (void)
 Constructor.
 
virtual ~DistributedBase (void)
 Destructor.
 
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)
 Clears all the objects of the set.
 
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. More...
 
DbTagDatagetDbTagData (void) const
 Returns a vector to store the dbTags of the class members. More...
 
int sendData (Communicator &)
 Send members through the communicator argument.
 
int recvData (const Communicator &)
 Receives members through the communicator argument.
 
void move (const Vector3d &)
 Moves the objects of the set.
 
- Protected Member Functions inherited from XC::SetMeshComp
void numerate (void)
 Assigns index to each object in the set (nodes,elements,points...) to be able to use them in VTK. More...
 
void extend_lists (const SetMeshComp &)
 Appends to this set the objects from the argument set.
 
void substract_lists (const SetMeshComp &)
 Remove the objects of the argument.
 
void intersect_lists (const SetMeshComp &)
 Remove the objects that doesn't also belong to the argument.
 
void copy_lists (const SetMeshComp &)
 Copy (into this set) the lists from the set being passed as parameter.
 
void clearAll (void)
 Clears all objects from the set.
 
DbTagDatagetDbTagData (void) const
 Returns a vector to store the dbTags of the class members. More...
 
int sendData (Communicator &)
 Send members through the communicator argument.
 
int recvData (const Communicator &)
 Receives members through the communicator argument.
 
void calc_resisting_force (void)
 Compute the internal forces on each element.
 
void move (const Vector3d &)
 Moves the nodes.
 
- Protected Member Functions inherited from XC::EntMdlrBase
bool check_preprocessor (void) const
 Check for preprocessor.
 
int sendIdsLabels (const int &, const int &, Communicator &)
 Send labels through the communicator argument.
 
int recvIdsLabels (const int &, const int &, const Communicator &)
 Receive labels through the communicator argument.
 
int sendData (Communicator &)
 Send members through the communicator argument.
 
int recvData (const Communicator &)
 Receive members through the communicator argument.
 
- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 
- Protected Member Functions inherited from EntityWithProperties
bool isEqual (const EntityWithProperties &) const
 Return true if both objects are equal.
 
- Protected Member Functions inherited from EntityWithOwner
virtual bool isEqual (const EntityWithOwner &) const
 Return true if both objects are equal.
 

Protected Attributes

std::string description
 set description.
 
SetEntities entities
 points, lines, surfaces, bodies, ...
 
- Protected Attributes inherited from XC::EntMdlrBase
LabelContainer labels
 Label container.
 

Additional Inherited Members

- 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 Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 
- Static Public Member Functions inherited from CommandEntity
static void resetStandardOutput (void)
 Reset the standard output streams to its defaults buffers.
 
- Static Public Member Functions inherited from EntityWithOwner
static int getVerbosityLevel (void)
 Get the value of the verbosity level.
 
static void setVerbosityLevel (const int &)
 Set the value of the verbosity level.
 
- Static Protected Member Functions inherited from XC::SetMeshComp
template<class L >
static void numerate_list (L &l)
 Set indices to the object to allow its use in VTK.
 
- Static Protected Member Functions inherited from CommandEntity
static CommandEntityentcmd_cast (boost::any &data)
 
- Static Protected Attributes inherited from EntityWithOwner
static int verbosity = 1
 Object that owns THIS ONE. More...
 

Detailed Description

Object set.

A set object contains 0 or more:

Member Function Documentation

◆ Bnd()

BND3d XC::Set::Bnd ( const double &  factor) const

Return the set boundary.

Parameters
factorscale factor for the current position of the nodes: initPos+ factor * nodDisplacement.

◆ conciliaNDivs()

void XC::Set::conciliaNDivs ( void  )

Conciliate number of divisions of the lines shared by faces.

◆ create_copy()

void XC::Set::create_copy ( const std::string &  name,
const Vector3d v = Vector3d() 
)
protected

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.

◆ extend()

void XC::Set::extend ( const Set other)

Extend the set with the elements from the argument set.

extend the lists with the objects from the argument.

◆ fillDownwards()

void XC::Set::fillDownwards ( 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.

◆ fillUpwards()

void XC::Set::fillUpwards ( void  )

Appends to this set the objects that make reference to one or more of the objects that already make part of the set.

◆ genMesh()

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

Triggers mesh generation from set components.

Parameters
dmMeshing direction.

Reimplemented from XC::SetBase.

◆ getDbTagData()

XC::DbTagData & XC::Set::getDbTagData ( void  ) const
protectedvirtual

Returns a vector to store the dbTags of the class members.

Reimplemented from XC::DistributedBase.

◆ isCloserThan() [1/7]

bool XC::Set::isCloserThan ( const Node n,
const double &  d 
) const

Return true if the distance to the given node is smaller than the given one.

Parameters
nnode to measure the distance to.
ddistance threshold.

◆ isCloserThan() [2/7]

bool XC::Set::isCloserThan ( const Element e,
const double &  d 
) const

Return true if the distance to the element nodes is smaller than the given one.

Parameters
eelement to measure the distance to.
ddistance threshold.

◆ isCloserThan() [3/7]

bool XC::Set::isCloserThan ( const Pnt pt,
const double &  d 
) const

Return true if the distance to the given point is smaller than the given one.

Parameters
ppoint to measure the distance to.
ddistance threshold.

◆ isCloserThan() [4/7]

bool XC::Set::isCloserThan ( const Edge e,
const double &  d 
) const

Return true if the distance to the edge points is smaller than the given one.

Parameters
eelement to measure the distance to.
ddistance threshold.

◆ isCloserThan() [5/7]

bool XC::Set::isCloserThan ( const Face f,
const double &  d 
) const

Return true if the distance to the face points is smaller than the given one.

Parameters
eelement to measure the distance to.
ddistance threshold.

◆ isCloserThan() [6/7]

bool XC::Set::isCloserThan ( const Body b,
const double &  d 
) const

Return true if the distances to the body vertices are smaller than the given one.

Parameters
eelement to measure the distance to.
ddistance threshold.

◆ isCloserThan() [7/7]

bool XC::Set::isCloserThan ( const UniformGrid ug,
const double &  d 
) const

Return true if the distances to the uniform grid vertices are smaller than the given one.

Parameters
eelement to measure the distance to.
ddistance threshold.

◆ operator*()

XC::Set & XC::Set::operator* ( const Set b) const

Intersection operator.

Return the set intersection.

◆ operator+()

XC::Set & XC::Set::operator+ ( const Set b) const

Addition (union) operator.

Concatenates the name and description of the arguments and extend the lists of the first set with the objects from the argument.

◆ operator+=()

XC::Set & XC::Set::operator+= ( const Set other)

Addition assignment operator.

Concatenates the name and description of the argument and extend the lists with the objects from the argument.

◆ operator-()

XC::Set & XC::Set::operator- ( const Set b) const

Difference operator.

Removes the objects that belong also to the argument.

◆ pickBodiesInside()

XC::Set XC::Set::pickBodiesInside ( const std::string &  newSetName,
const GeomObj3d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the bodies that lie insiof the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

◆ pickElemsCrossing() [1/2]

XC::Set XC::Set::pickElemsCrossing ( const std::string &  newSetName,
const GeomObj3d geomObj,
const double &  tol = 0.0 
)

Return a new set with the elements that cross (i.e.

have nodes inside and outside) the given geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the elements.
toltolerance for "In" function.

◆ pickElemsCrossing() [2/2]

XC::Set XC::Set::pickElemsCrossing ( const std::string &  newSetName,
const GeomObj2d geomObj,
const double &  tol = 0.0 
)

Return a new set with the elements that cross (i.e.

have nodes inside and outside) the given geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the elements.
toltolerance for "In" function.

◆ pickElemsInside() [1/2]

XC::Set XC::Set::pickElemsInside ( const std::string &  newSetName,
const GeomObj3d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the elements that lie inside of the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the elements.
toltolerance for "In" function.

◆ pickElemsInside() [2/2]

XC::Set XC::Set::pickElemsInside ( const std::string &  newSetName,
const GeomObj2d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the elements that lie inside of the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the elements.
toltolerance for "In" function.

◆ pickElemsOfDimension()

XC::Set XC::Set::pickElemsOfDimension ( const std::string &  newSetName,
const size_t &  dim 
)

Return a new set that contains the elements of the specified dimension.

Parameters
newSetNamename for the new set.
targetDimelement dimension (point: 0, line: 1, surface: 2, volume: 3)

◆ pickElemsOfType()

XC::Set XC::Set::pickElemsOfType ( const std::string &  newSetName,
const std::string &  eType 
)

Return a new set that contains the elements that match the type.

Parameters
newSetNamename for the new set.
typeNamestring that must be contained in the class name.

◆ pickEntitiesInside()

XC::Set XC::Set::pickEntitiesInside ( const std::string &  newSetName,
const GeomObj3d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the entities that lie insiof the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

◆ pickLinesInside()

XC::Set XC::Set::pickLinesInside ( const std::string &  newSetName,
const GeomObj3d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the lines that lie insiof the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

◆ pickNodesInside() [1/2]

XC::Set XC::Set::pickNodesInside ( const std::string &  newSetName,
const GeomObj3d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the nodes that lie insiof the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

◆ pickNodesInside() [2/2]

XC::Set XC::Set::pickNodesInside ( const std::string &  newSetName,
const GeomObj2d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the nodes that lie insiof the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

◆ pickPointsInside()

XC::Set XC::Set::pickPointsInside ( const std::string &  newSetName,
const GeomObj3d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the points that lie insiof the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

◆ pickSurfacesInside()

XC::Set XC::Set::pickSurfacesInside ( const std::string &  newSetName,
const GeomObj3d geomObj,
const double &  tol = 0.0 
)

Return a new set that contains the surfaces that lie insiof the geometric object.

Parameters
newSetNamename for the new set.
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

◆ remove()

bool XC::Set::remove ( Element e)
virtual

Removes the given element from the set.

Parameters
ePtrpointer to the element to remove.

Reimplemented from XC::SetBase.

◆ sel_lines_from_list()

void XC::Set::sel_lines_from_list ( const ID tags)

Select the lines identified by the tags in the parameter.

Parameters
tagsidentifiers of the points to select.

◆ sel_points_from_list()

void XC::Set::sel_points_from_list ( const ID tags)

Select the points identified by the tags in the parameter.

Parameters
tagsidentifiers of the points to select.

◆ selBodiesFromListPy()

void XC::Set::selBodiesFromListPy ( const boost::python::list &  tags)

Select the bodies identified by the given tags.

Parameters
tagsidentifiers of the points to select.

◆ selLinesFromListPy()

void XC::Set::selLinesFromListPy ( const boost::python::list &  tags)

Select the lines identified by the given tags.

Parameters
tagsidentifiers of the points to select.

◆ selPointsFromListPy()

void XC::Set::selPointsFromListPy ( const boost::python::list &  tags)

Select the points identified by the given tags.

Parameters
tagsidentifiers of the points to select.

◆ selSurfacesFromListPy()

void XC::Set::selSurfacesFromListPy ( const boost::python::list &  tags)

Select the surfaces identified by the given tags.

Parameters
tagsidentifiers of the points to select.

◆ selUgridsFromListPy()

void XC::Set::selUgridsFromListPy ( const boost::python::list &  tags)

Select the ugrids identified by the given tags.

Parameters
tagsidentifiers of the points to select.

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