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

Finite element mesh. More...

#include <Mesh.h>

Inheritance diagram for XC::Mesh:
XC::MeshComponentContainer XC::MovableObject XC::DistributedBase

Public Member Functions

 Mesh (EntCmd *owr)
 Constructor.
 
 Mesh (EntCmd *owr, TaggedObjectStorage &theNodesStorage, TaggedObjectStorage &theElementsStorage)
 Constructor.
 
 Mesh (EntCmd *owr, TaggedObjectStorage &theStorageType)
 Constructor.
 
virtual ~Mesh (void)
 Destructor.
 
virtual bool addNode (Node *)
 Adds to the domain the node being passed as parameter.
 
virtual bool removeNode (int tag)
 Removes from domain the node identified by the tag being passed as parameter.
 
virtual bool addElement (Element *)
 Appends to the domain the element being passed as parameter.
 
virtual bool removeElement (int tag)
 Deletes the element identified by the tag being passed as parameter.
 
virtual void clearAll (void)
 Deletes from domain all its components (nodes, elements, loads and constraints). GENERAL NOTE ON REMOVAL OF COMPONENTS: downward casts (while bad) are o.k. as only the type of components can be added to the storage objects, e.g. only elements can be added to theElements therefore casting a XC::MeshComponent from theElements to an XC::Element is o.k.
 
void setNodeReactionException (const int &)
 Asigna la excepción para comprobación de reacciones (ver Mesh::checkNodalReactions).
 
void checkNodalReactions (const double &)
 Comprueba que los valores de las reacciones en los nodos sean correctos, esto es, que todos los nodos libres tienen reacción nula.
 
void clearDOF_GroupPtr (void)
 Clears the pointers to node DOF groups.
 
void setGraphBuiltFlags (const bool &f)
 Returns true if the modelo ha cambiado.
 
int initialize (void)
 Inicializa.
 
virtual int setRayleighDampingFactors (const RayleighDampingFactors &rF)
 Asigna valores a los coeficientes de amortiguamiento de Rayleigh.
 
const TaggedObjectStoragenodes (void) const
 
TaggedObjectStoragenodes (void)
 
const TaggedObjectStorageelements (void) const
 
TaggedObjectStorageelements (void)
 
virtual ElementItergetElements ()
 Returns an iterator to the mesh elements.
 
virtual NodeItergetNodes ()
 Returns an iterator a los nodos del domain.
 
const NodeLockersgetNodeLockers (void) const
 
NodeLockersgetNodeLockers (void)
 
bool existElement (int tag)
 Returns true if the mesh has an element with the tag being passed as parameter.
 
virtual ElementgetElement (int tag)
 Returns a pointer to the element identified by the tag being passed as parameter.
 
virtual const ElementgetElement (int tag) const
 Returns a pointer to the element identified by the tag being passed as parameter.
 
ElementgetNearestElement (const Pos3d &p)
 Returns a pointer to the nearest element to the point being passed as parameter.
 
const ElementgetNearestElement (const Pos3d &p) const
 Returns a pointer to the nearest element to the point being passed as parameter.
 
bool existNode (int tag)
 Returns true if the mesh has a node with the tag being passed as parameter.
 
virtual NodegetNode (int tag)
 Returns a pointer to the nodo cuyo tag being passed as parameter.
 
virtual const NodegetNode (int tag) const
 Returns a pointer to the nodo cuyo tag being passed as parameter.
 
NodegetNearestNode (const Pos3d &p)
 Returns the nodo closest to the point being passed as parameter.
 
const NodegetNearestNode (const Pos3d &p) const
 Returns the nodo closest to the point being passed as parameter.
 
virtual int getNumElements (void) const
 Returns the number of elements.
 
virtual int getNumNodes (void) const
 Returns the número de nodos.
 
size_t getNumDeadElements (void) const
 Returns the number of inactive elements on the mesh.
 
size_t getNumLiveElements (void) const
 Returns the number of active elements on the mesh.
 
size_t getNumDeadNodes (void) const
 Returns the number of inactive nodes on the mesh.
 
size_t getNumLiveNodes (void) const
 Returns the number of active nodes on the mesh.
 
size_t getNumFrozenNodes (void) const
 Returns the number of frozen nodes on the mesh.
 
size_t getNumFreeNodes (void) const
 Returns the number of free nodes on the mesh.
 
virtual const VectorgetPhysicalBounds (void)
 Returns the BND del modelo.
 
const std::vector< std::string > & getNombresCoordenadas (void) const
 
std::string getNombreUnidades (void) const
 
virtual int buildEleGraph (Graph &theEleGraph)
 Builds the element's graph.
 
virtual int buildNodeGraph (Graph &theNodeGraph)
 Construye el grafo de nodos.
 
virtual GraphgetElementGraph (void)
 Builds the elements graph of the mesh (if not builded yet) and returns a reference to it.
 
virtual GraphgetNodeGraph (void)
 Builds (if needed) the graph of the domain nodes and returns a reference to it.
 
virtual int commit (void)
 Commits mesh state.
 
virtual int revertToLastCommit (void)
 Returns the mesh to its last commited state.
 
virtual int revertToStart (void)
 Return the mesh into its initial state.
 
int update (void)
 Update the element's state.
 
void freeze_dead_nodes (const std::string &nmbLocker)
 Freezes inactive nodes (prescribes zero displacement for all DOFs on inactive nodes).
 
void melt_alive_nodes (const std::string &nmbLocker)
 Clears the constraints over activated nodes previously created by the freeze method.
 
const double getEffectiveModalMass (int mode) const
 Return the masa modal efectiva correspondiente al modo i.
 
Vector getEffectiveModalMasses (const int &numModes) const
 Returns the masas modales efectivas.
 
void zeroLoads (void)
 Loop over nodes and elements getting them to first zero their loads.
 
virtual void Print (std::ostream &s, int flag=0)
 Imprime el domain.
 
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.
 
virtual double getNodeDisp (int nodeTag, int dof, int &errorFlag)
 Returns the component of the displacement of the node wich the tag is being passed as parameter. More...
 
virtual int setMass (const Matrix &mass, int nodeTag)
 Asigna la matriz de masas al nudo cuyo tag being passed as parameter.
 
virtual int calculateNodalReactions (bool inclInertia, const double &)
 Calculate nodal reaction forces and moments. More...
 
- Public Member Functions inherited from XC::MeshComponentContainer
 MeshComponentContainer (EntCmd *owr, int classTag, int dbTag=0)
 Constructor.
 
const DomaingetDomain (void) const
 Returns a pointer to the mesh domain.
 
DomaingetDomain (void)
 Returns a pointer to the mesh domain.
 
- 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.
 

Static Public Member Functions

static void setDeadSRF (const double &)
 Assigns Stress Reduction Factor for element deactivation.
 

Protected Member Functions

void libera (void)
 Frees memory occupied by mesh components. this calls delete on all components of the model, i.e. calls delete on all that is added to the model. WARNING: if 3rd constructor, TaggedObjectStorage objects passed must have been created with new_ and nowhere else must the destructor be called.
 
DbTagDatagetDbTagData (void) const
 Returns a vector para almacenar los dbTags de los miembros de la clase.
 
int sendData (CommParameters &)
 Send object members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receives object members through the channel being passed as parameter.
 

Friends

std::ostream & operator<< (std::ostream &s, Mesh &M)
 

Detailed Description

Finite element mesh.

Member Function Documentation

int XC::Mesh::calculateNodalReactions ( bool  inclInertia,
const double &  tol 
)
virtual

Calculate nodal reaction forces and moments.

Parameters
inclInertiaif True, the unbalance load vector for each node is calculated including inertial forces.
toltolerance for the checking of reactions.
double XC::Mesh::getNodeDisp ( int  nodeTag,
int  dof,
int &  errorFlag 
)
virtual

Returns the component of the displacement of the node wich the tag is being passed as parameter.

Parameters
nodeTagnode identifier.
dofdegree of freedom component.
errorFlagerror indicator.

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