xc
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members

Base class for the finite elements. More...

#include <Element.h>

Inheritance diagram for XC::Element:
XC::MeshComponent XC::ContinuaReprComponent XC::DomainComponent XC::TaggedObject XC::MovableObject XC::DistributedBase XC::ElementBase< 2 > XC::ElementBase< 20 > XC::ElementBase< 27 > XC::ElementBase< 8 > XC::ElementBase< NNODOS > XC::ElementBase< NNODES > XC::fElement XC::NewElement XC::Subdomain

Public Types

typedef std::vector< const Node * > NodesEdge
 Nodes on an element edge. More...
 

Public Member Functions

 Element (int tag, int classTag)
 Constructor that takes the element's unique tag and the number of external nodes for the element. More...
 
virtual ElementgetCopy (void) const =0
 Virtual constructor.
 
virtual int getNumExternalNodes (void) const =0
 return the number of external nodes associated with the element.
 
virtual int getNumEdges (void) const
 Returns number of edges (it must be overloaded for elements that have nodes inside edges. More...
 
virtual NodePtrsWithIDsgetNodePtrs (void)=0
 
virtual const NodePtrsWithIDsgetNodePtrs (void) const =0
 
std::vector< int > getIdxNodes (void) const
 
virtual int getNumDOF (void) const =0
 return the number of DOF associated with the element. More...
 
virtual size_t getDimension (void) const
 Returns the element dimension (0, 1, 3 or 3).
 
virtual void setIdNodes (const std::vector< int > &inodes)
 Set the nodes.
 
virtual void setIdNodes (const ID &inodes)
 Set the nodes.
 
void setDomain (Domain *theDomain)
 Sets the domain for the element.
 
virtual int commitState (void)
 Commit the current element state. More...
 
virtual int revertToLastCommit (void)=0
 Revert to the last commited state. More...
 
virtual int revertToStart (void)
 Reverts the element to its initial state. More...
 
virtual int update (void)
 Updates the element state. More...
 
virtual bool isSubdomain (void)
 Returns true if the element is a subdomain.
 
virtual const MatrixgetTangentStiff (void) const =0
 Return the tangent stiffness matrix. More...
 
virtual const MatrixgetInitialStiff (void) const =0
 
virtual const MatrixgetDamp (void) const
 Returns the damping matrix. More...
 
virtual const MatrixgetMass (void) const
 Returns the mass matrix. More...
 
virtual void zeroLoad (void)
 Zeroes the loads over the element. More...
 
virtual int addLoad (ElementalLoad *theLoad, double loadFactor)=0
 
virtual int addInertiaLoadToUnbalance (const Vector &accel)=0
 
virtual int setRayleighDampingFactors (const RayleighDampingFactors &rF) const
 Set Rayleigh damping factors.
 
virtual const VectorgetResistingForce (void) const =0
 Returns the resisting force vector for the element. More...
 
virtual const VectorgetResistingForceIncInertia (void) const
 Returns the resisting force vector including inertia forces. More...
 
const VectorgetNodeResistingComponents (const size_t &, const Vector &) const
 Returns the generalized force of the element over the iNod-th node. More...
 
const VectorgetNodeResistingForce (const size_t &iNod) const
 Returns the generalized force of the element over the iNod-th node. More...
 
const VectorgetNodeResistingForceIncInertia (const size_t &iNod) const
 Returns the generalized force (including inertia forces) of the element over the node identified by the argument. More...
 
const VectorgetNodeResistingForce (const Node *) const
 Returns the generalized force (including inertia forces) of the element over the node identified by the argument. More...
 
const VectorgetNodeResistingForceIncInertia (const Node *) const
 Returns the generalized force (including inertia forces) of the element over the node identified by the argument. More...
 
Vector getEquivalentStaticLoad (int mode, const double &) const
 Returns the equivalent static load for the mode being passed as parameter and the acceleration that corresponding that mode. More...
 
Matrix getEquivalentStaticNodalLoads (int mode, const double &) const
 Returns the equivalent static load on each node for the mode being passed as parameter and the corresponding acceleration to the mode. More...
 
virtual ResponsesetResponse (const std::vector< std::string > &argv, Information &eleInformation)
 setResponse() is a method invoked to determine if the element will respond to a request for a certain of information. More...
 
virtual int getResponse (int responseID, Information &eleInformation)
 Obtain information from an analysis. More...
 
ResponsesetMaterialResponse (Material *, const std::vector< std::string > &, const size_t &, Information &)
 
virtual int addInertiaLoadSensitivityToUnbalance (const Vector &accel, bool tag)
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 Sets the value param to the parameter argv.
 
int setMaterialParameter (Material *, const std::vector< std::string > &, const size_t &, Parameter &)
 
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 const VectorgetResistingForceSensitivity (int gradNumber)
 
virtual const MatrixgetInitialStiffSensitivity (int gradNumber)
 
virtual const MatrixgetDampSensitivity (int gradNumber)
 
virtual const MatrixgetMassSensitivity (int gradNumber)
 
virtual int commitSensitivity (int gradNumber, int numGrads)
 
virtual int addResistingForceToNodalReaction (bool inclInertia)
 Adds nodal reactions.
 
double MaxCooNod (int i) const
 Returns the maximum value of the i coordinate of the element nodes.
 
double MinCooNod (int i) const
 Returns the minimum value of the i coordinate of the element nodes.
 
const MatrixgetCooNodes (void) const
 Returns the coordinates of the nodes.
 
virtual Matrix getLocalAxes (bool initialGeometry=true) const
 Returs a matrix with the axes of the element as matrix rows [[x1,y1,z1],[x2,y2,z2],...ยท].
 
virtual Vector getBaseVector (size_t i, bool initialGeometry=true) const
 Returns a base vector in the direction of the local i-th axis from the i-th row of the matrix returned by getLocalAxes. More...
 
virtual Vector3d getBaseVector3d (size_t i, bool initialGeometry=true) const
 Returns a base vector in the direction of the local i-th axis from the i-th row of the matrix returned by getLocalAxes. More...
 
virtual Vector3d getIVector3d (bool initialGeometry=true) const
 Returns a vector in the direction of the local x axis from the first row of the matrix returned by getLocalAxes. More...
 
virtual Vector3d getJVector3d (bool initialGeometry=true) const
 Returns a vector in the direction of the local y axis from the second row of the matrix returned by getLocalAxes. More...
 
virtual Vector3d getKVector3d (bool initialGeometry=true) const
 Returns a vector in the direction of the local z axis from the third row of the matrix returned by getLocalAxes. More...
 
virtual Rect3d3dCooSys getCooSys (bool) const
 Returns the element coordinate system from the matrix returned by getLocalAxes. More...
 
Pos3d getPosNode (const size_t &i, bool initialGeometry=true) const
 Returns the position of the i-th node. More...
 
std::list< Pos3d > getPosNodes (bool initialGeometry=true) const
 Returns the coordinates of the nodes.
 
virtual Pos3d getCenterOfMassPosition (bool initialGeometry=true) const
 Returns the coordinates del centro de gravedad of the element.
 
Vector getCenterOfMassCoordinates (bool initialGeometry=true) const
 Returns the coordinates del centro de gravedad of the element.
 
Pos3dArray3d getPoints (const size_t &ni, const size_t &nj, const size_t &nk, bool initialGeometry=true)
 Returns a grid of points distributed along the line.
 
bool In (const GeomObj3d &, const double &factor=1.0, const double &tol=0.0) const
 
bool Out (const GeomObj3d &, const double &factor=1.0, const double &tol=0.0) const
 
bool In (const GeomObj2d &, const double &factor=1.0, const double &tol=0.0) const
 
bool Out (const GeomObj2d &, const double &factor=1.0, const double &tol=0.0) const
 
virtual double getDist2 (const Pos2d &p, bool initialGeometry=true) const
 Returns the squared distance from the element to the point being passed as parameter. More...
 
virtual double getDist (const Pos2d &p, bool initialGeometry=true) const
 Returns the the distance from the element to the point being passed as parameter. More...
 
virtual double getDist2 (const Pos3d &p, bool initialGeometry=true) const
 Returns the squared distance from the element to the point being passed as parameter. More...
 
virtual double getDist (const Pos3d &p, bool initialGeometry=true) const
 Returns the the distance from the element to the point being passed as parameter. More...
 
void resetTributaries (void) const
 Resets tributary areas of connected nodes.
 
void dumpTributaries (const std::vector< double > &) const
 Adds to the tributary magnitude of each node the vector being passed as parameter. More...
 
virtual void computeTributaryLengths (bool initialGeometry=true) const
 Computes the tributary lengths that corresponds to each node of the element.
 
virtual double getTributaryLength (const Node *) const
 Returns the tributary length corresponding to the node being passed as parameter. More...
 
virtual double getTributaryLengthByTag (const int &) const
 Returns the tributary length corresponding to the node which tag se pasa as parameter. More...
 
virtual void computeTributaryAreas (bool initialGeometry=true) const
 Compute tributary areas for each element node.
 
virtual double getTributaryArea (const Node *) const
 Returns the tributary area corresponding to the node.
 
virtual double getTributaryAreaByTag (const int &) const
 Returns the tributary area corresponding to the node.
 
virtual void computeTributaryVolumes (bool initialGeometry=true) const
 Computes the tributary volumes that corresponds to each node of the element.
 
virtual double getTributaryVolume (const Node *) const
 Returns the tributary volume corresponding to the node being passed as parameter. More...
 
virtual double getTributaryVolumeByTag (const int &) const
 Returns the tributary volume corresponding to the node which tag se pasa as parameter. More...
 
virtual Vector getInterpolationFactors (const ParticlePos3d &) const
 Returns interpolattion factors for a material point.
 
virtual Vector getInterpolationFactors (const Pos3d &) const
 Returns interpolattion factors for a material point.
 
virtual int getVtkCellType (void) const
 Interfaz con VTK.
 
virtual const GaussModelgetGaussModel (void) const
 Returns the Gauss integration model of the element.
 
virtual NodesEdge getNodesEdge (const size_t &) const
 Returns the nodes of the element edge.
 
virtual int getEdgeNodes (const Node *, const Node *) const
 Returns the edge of the element that ends in the nodes being passed as parameters. More...
 
int getEdgeNodes (const int &, const int &) const
 Returns the edge of the element that ends in the nodes with the tags being passed as parameters. More...
 
virtual ID getEdgesNode (const Node *) const
 Returns the edges of the element that ends in the node being passed as parameter. More...
 
std::set< int > getEdgesNodes (const NodePtrSet &) const
 Returns the element edges that have both ends in the node set being passed as parameter. More...
 
ID getEdgesNodeByTag (const int &) const
 Returns the edges of the element that have an en in the node with the tag being passed as parameter. More...
 
virtual ID getLocalIndexNodesEdge (const size_t &i) const
 Returns the local indexes of the element nodes that lie over the i-th edge. More...
 
virtual std::set< std::string > getMaterialNames (void) const
 Return the names of the material(s) of the element.
 
boost::python::list getMaterialNamesPy (void) const
 Return the names of the material(s) of the element in a Python list.
 
std::set< SetBase * > get_sets (void) const
 Returns the sets to which the element belongs.
 
void add_to_sets (std::set< SetBase *> &)
 Adds the element to the sets being passed as parameters.
 
- Public Member Functions inherited from XC::MeshComponent
 MeshComponent (int classTag)
 Constructor.
 
 MeshComponent (int tag, int classTag)
 Constructor.
 
- Public Member Functions inherited from XC::ContinuaReprComponent
 ContinuaReprComponent (int classTag)
 
 ContinuaReprComponent (int tag, int classTag)
 
virtual const bool isDead (void) const
 
virtual const bool isAlive (void) const
 
virtual void kill (void)
 
virtual void alive (void)
 
- Public Member Functions inherited from XC::DomainComponent
 ~DomainComponent (void)
 Destructor.
 
size_t getIdx (void) const
 Returns the index of the object (to be used in VTK arrays).
 
virtual DomaingetDomain (void) const
 Returns a pointer to the enclosing domain. More...
 
const PreprocessorgetPreprocessor (void) const
 Returns (if possible) a pointer to the preprocessor.
 
PreprocessorgetPreprocessor (void)
 Return (if possible) a pointer to the preprocessor.
 
void set_index (const size_t &i)
 Set the index for the object (see numera in Set). More...
 
- Public Member Functions inherited from XC::TaggedObject
 TaggedObject (int tag, CommandEntity *owr=nullptr)
 Constructor. More...
 
void assignTag (int newTag)
 Set tag (to be called from Python interface).
 
int getTag (void) const
 Returns the tag associated with the object.
 
virtual void Print (std::ostream &, int flag=0)
 Print stuff.
 
- 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 (CommParameters &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (CommParameters &)
 Sets the object identifier in the database if not already set. More...
 
virtual int sendSelf (CommParameters &cp)=0
 Send the object. More...
 
virtual int recvSelf (const CommParameters &cp)=0
 Receive the object. More...
 
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 DbTagDatagetDbTagData (void) const
 Returns a vector to store class dbTags.
 
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 &d)
 Assigns Stress Reduction Factor for element deactivation.
 
static DefaultTaggetDefaultTag (void)
 Returns next element's tag value by default.
 

Static Public Attributes

static double dead_srf = 1e-6
 Stress reduction factor for foozen elements.
 

Protected Member Functions

virtual ElemPtrArray3d put_on_mesh (const NodePtrArray3d &, meshing_dir) const
 Places the element on the mesh.
 
virtual ElemPtrArray3d cose (const SetEstruct &f1, const SetEstruct &f2) const
 
const VectorgetRayleighDampingForces (void) const
 Returns element Rayleigh damping forces.
 
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.
 
- Protected Member Functions inherited from XC::MeshComponent
void setup_matrices (std::deque< Matrix > &, const int &) const
 Initializes the matrix container.
 
int sendIdsEtiquetas (int posDbTag, CommParameters &)
 Send labelsthrough the channel being passed as parameter.
 
int recvIdsEtiquetas (int posDbTag, 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 &)
 Receives members through the channel being passed as parameter.
 
- Protected Member Functions inherited from XC::ContinuaReprComponent
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.
 
- Protected Member Functions inherited from XC::DomainComponent
 DomainComponent (int tag, int classTag)
 Constructor. More...
 
int sendData (CommParameters &)
 Send object members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receive object members through the channel being passed as parameter.
 
- Protected Member Functions inherited from XC::TaggedObject
void setTag (int newTag)
 Set tag. More...
 

Protected Attributes

Vector load
 vector for applying loads
 
RayleighDampingFactors rayFactors
 Rayleigh damping factors.
 
Matrix Kc
 pointer to hold last committed matrix if needed for rayleigh damping
 
- Protected Attributes inherited from XC::MeshComponent
int index
 Index for VTK arrays.
 
LabelContainer labels
 Label container.
 

Friends

class EntMdlr
 
class Preprocessor
 

Detailed Description

Base class for the finite elements.

The element class provides the interface that all element writers must provide when introducing new element classes.

Member Typedef Documentation

§ NodesEdge

typedef std::vector<const Node *> XC::Element::NodesEdge

Nodes on an element edge.

Constructor & Destructor Documentation

§ Element()

XC::Element::Element ( int  tag,
int  cTag 
)

Constructor that takes the element's unique tag and the number of external nodes for the element.

Parameters
tagelement identifier.
cTagelement class identifier.

Member Function Documentation

§ commitState()

int XC::Element::commitState ( void  )
virtual

Commit the current element state.

The element is to commit its current state. To return 0 if sucessfull, a negative number if not.

Reimplemented in XC::TwentyNodeBrick, XC::Subdomain, XC::ZeroLengthContact3D, XC::EightNodeBrick, XC::ZeroLengthContact2D, XC::ZeroLength, XC::UpdatedLagrangianBeam2D, XC::BeamColumnJoint3d, XC::fElement, XC::BeamWithHinges2d, XC::BeamWithHinges3d, XC::BeamColumnJoint2d, XC::ZeroLengthSection, XC::ShellMITC4Base, XC::TwentySevenNodeBrick, XC::ElasticBeam2d, XC::ElasticBeam3d, XC::NLBeamColumn2d, XC::Truss, XC::DispBeamColumn2d, XC::Joint2D, XC::DispBeamColumn3d, XC::beam2d02, XC::ForceBeamColumn3d, XC::NLBeamColumn3d, XC::FlatSliderSimple2d, XC::Spring, XC::ForceBeamColumn2d, XC::TrussSection, XC::CorotTruss, XC::NewElement, XC::CorotTrussSection, XC::InelasticYS2DGNL, XC::SingleFPSimple2d, XC::SingleFPSimple3d, XC::FlatSliderSimple3d, XC::BeamColumnWithSectionFD, XC::Inelastic2DYS02, XC::ElemWithMaterial< NNODOS, PhysProp >, XC::ElemWithMaterial< 8, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< NNODES, SolidMech2D >, XC::ElemWithMaterial< 4, BeamColumnJointPhysicalProperties >, XC::ElemWithMaterial< 20, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< NNODES, PhysProp >, XC::ElemWithMaterial< NNODES, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< 7, Joint3DPhysicalProperties >, XC::ElemWithMaterial< NNODES, SectionFDPhysicalProperties >, XC::ElemWithMaterial< 9, SolidMech2D >, XC::ElemWithMaterial< 5, Joint2DPhysicalProperties >, XC::ElemWithMaterial< 9, NDMaterialPhysicalProperties >, and XC::Inelastic2DYS03.

§ dumpTributaries()

void XC::Element::dumpTributaries ( const std::vector< double > &  t) const

Adds to the tributary magnitude of each node the vector being passed as parameter.

§ getBaseVector()

XC::Vector XC::Element::getBaseVector ( size_t  i,
bool  initialGeometry = true 
) const
virtual

Returns a base vector in the direction of the local i-th axis from the i-th row of the matrix returned by getLocalAxes.

§ getBaseVector3d()

Vector3d XC::Element::getBaseVector3d ( size_t  i,
bool  initialGeometry = true 
) const
virtual

Returns a base vector in the direction of the local i-th axis from the i-th row of the matrix returned by getLocalAxes.

§ getCooSys()

Rect3d3dCooSys XC::Element::getCooSys ( bool  initialGeometry) const
virtual

Returns the element coordinate system from the matrix returned by getLocalAxes.

Reimplemented in XC::Element0D.

§ getDamp()

const XC::Matrix & XC::Element::getDamp ( void  ) const
virtual

Returns the damping matrix.

To return the damping matrix. The element is to compute its damping matrix based on the original location of the nodes and the current trial response quantities at the nodes.

\[ //! C_e= {\frac{\partial R_i}{\partial \dot U} \vert}_{U_{trial}} //! \]

Reimplemented in XC::ZeroLengthContact3D, XC::ZeroLengthContact2D, XC::BeamColumnJoint3d, XC::ZeroLength, XC::TwentyEightNodeBrickUP, XC::BeamColumnJoint2d, XC::fElement, XC::Twenty_Node_Brick, XC::TwentyNodeBrick_u_p_U, XC::Truss, XC::BrickUP, XC::EightNodeBrick_u_p_U, XC::Joint2D, XC::NineFourNodeQuadUP, XC::Joint3D, XC::Spring, and XC::FourNodeQuadUP.

§ getDist() [1/2]

double XC::Element::getDist ( const Pos2d &  p,
bool  initialGeometry = true 
) const
virtual

§ getDist() [2/2]

double XC::Element::getDist ( const Pos3d &  p,
bool  initialGeometry = true 
) const
virtual

§ getDist2() [1/2]

double XC::Element::getDist2 ( const Pos2d &  p,
bool  initialGeometry = true 
) const
virtual

§ getDist2() [2/2]

double XC::Element::getDist2 ( const Pos3d &  p,
bool  initialGeometry = true 
) const
virtual

§ getEdgeNodes() [1/2]

int XC::Element::getEdgeNodes ( const Node ,
const Node  
) const
virtual

§ getEdgeNodes() [2/2]

int XC::Element::getEdgeNodes ( const int &  iN1,
const int &  iN2 
) const

Returns the edge of the element that ends in the nodes with the tags being passed as parameters.

§ getEdgesNode()

XC::ID XC::Element::getEdgesNode ( const Node ) const
virtual

Returns the edges of the element that ends in the node being passed as parameter.

§ getEdgesNodeByTag()

XC::ID XC::Element::getEdgesNodeByTag ( const int &  iN) const

Returns the edges of the element that have an en in the node with the tag being passed as parameter.

§ getEdgesNodes()

std::set< int > XC::Element::getEdgesNodes ( const NodePtrSet &  nodes) const

Returns the element edges that have both ends in the node set being passed as parameter.

§ getEquivalentStaticLoad()

XC::Vector XC::Element::getEquivalentStaticLoad ( int  mode,
const double &  accel_mode 
) const

Returns the equivalent static load for the mode being passed as parameter and the acceleration that corresponding that mode.

§ getEquivalentStaticNodalLoads()

XC::Matrix XC::Element::getEquivalentStaticNodalLoads ( int  mode,
const double &  accel_mode 
) const

Returns the equivalent static load on each node for the mode being passed as parameter and the corresponding acceleration to the mode.

§ getIVector3d()

Vector3d XC::Element::getIVector3d ( bool  initialGeometry = true) const
virtual

Returns a vector in the direction of the local x axis from the first row of the matrix returned by getLocalAxes.

§ getJVector3d()

Vector3d XC::Element::getJVector3d ( bool  initialGeometry = true) const
virtual

Returns a vector in the direction of the local y axis from the second row of the matrix returned by getLocalAxes.

§ getKVector3d()

Vector3d XC::Element::getKVector3d ( bool  initialGeometry = true) const
virtual

Returns a vector in the direction of the local z axis from the third row of the matrix returned by getLocalAxes.

§ getLocalIndexNodesEdge()

XC::ID XC::Element::getLocalIndexNodesEdge ( const size_t &  i) const
virtual

§ getMass()

const XC::Matrix & XC::Element::getMass ( void  ) const
virtual

§ getNodeResistingComponents()

const XC::Vector & XC::Element::getNodeResistingComponents ( const size_t &  iNod,
const Vector rf 
) const

Returns the generalized force of the element over the iNod-th node.

§ getNodeResistingForce() [1/2]

const XC::Vector & XC::Element::getNodeResistingForce ( const size_t &  iNod) const

Returns the generalized force of the element over the iNod-th node.

§ getNodeResistingForce() [2/2]

const XC::Vector & XC::Element::getNodeResistingForce ( const Node ptrNod) const

Returns the generalized force (including inertia forces) of the element over the node identified by the argument.

§ getNodeResistingForceIncInertia() [1/2]

const XC::Vector & XC::Element::getNodeResistingForceIncInertia ( const size_t &  iNod) const

Returns the generalized force (including inertia forces) of the element over the node identified by the argument.

§ getNodeResistingForceIncInertia() [2/2]

const XC::Vector & XC::Element::getNodeResistingForceIncInertia ( const Node ptrNod) const

Returns the generalized force (including inertia forces) of the element over the node identified by the argument.

§ getNumDOF()

virtual int XC::Element::getNumDOF ( void  ) const
pure virtual

§ getNumEdges()

int XC::Element::getNumEdges ( void  ) const
virtual

Returns number of edges (it must be overloaded for elements that have nodes inside edges.

§ getPosNode()

Pos3d XC::Element::getPosNode ( const size_t &  i,
bool  initialGeometry = true 
) const

Returns the position of the i-th node.

Parameters
iindex of the node in the element.
initialGeometryif true initial position of the node is returned.

§ getResistingForce()

virtual const Vector& XC::Element::getResistingForce ( void  ) const
pure virtual

§ getResistingForceIncInertia()

const XC::Vector & XC::Element::getResistingForceIncInertia ( void  ) const
virtual

Returns the resisting force vector including inertia forces.

Returns the action of the element over its attached nodes.

Returns the resisting force vector for the element with inertia forces included. This is equal to the applied load due to element loads (loads set using addLoad(), minus the loads at the nodes due to internal stresses in the element due to the current trial response quantities, i.e.

\[ R_e = P_e - I_e (\ddot U_{trial}) - R_e(\dot U_{trial}, U_{trial}) \]

Computes damping matrix.

Reimplemented in XC::TwentyNodeBrick, XC::Subdomain, XC::EightNodeBrick, XC::ZeroLengthContact3D, XC::BeamColumnJoint3d, XC::TwentyEightNodeBrickUP, XC::ZeroLength, XC::ZeroLengthContact2D, XC::BeamColumnJoint2d, XC::UpdatedLagrangianBeam2D, XC::fElement, XC::EnhancedQuad, XC::Twenty_Node_Brick, XC::BeamWithHinges2d, XC::BeamWithHinges3d, XC::ElasticBeam2d, XC::TwentyNodeBrick_u_p_U, XC::ZeroLengthSection, XC::TwentySevenNodeBrick, XC::ElasticBeam3d, XC::Brick, XC::Truss, XC::NineNodeMixedQuad, XC::BrickUP, XC::ShellMITC4Base, XC::Tri31, XC::NLBeamColumn2d, XC::EightNodeBrick_u_p_U, XC::BbarBrick, XC::TotalLagrangianFD20NodeBrick, XC::FourNodeQuad, XC::Joint2D, XC::DispBeamColumn2d, XC::Joint3D, XC::NineFourNodeQuadUP, XC::DispBeamColumn3d, XC::Spring, XC::ConstantPressureVolumeQuad, XC::FourNodeQuadUP, XC::CorotTruss, XC::beam2d02, XC::ShellNL, XC::FlatSliderSimple2d, XC::ForceBeamColumn3d, XC::NLBeamColumn3d, XC::TrussSection, XC::ForceBeamColumn2d, XC::beam2d04, XC::CorotTrussSection, XC::NewElement, XC::beam2d03, XC::SingleFPSimple2d, XC::SingleFPSimple3d, XC::FlatSliderSimple3d, and XC::beam3dBase.

§ getResponse()

int XC::Element::getResponse ( int  responseID,
Information eleInfo 
)
virtual

§ getTangentStiff()

virtual const Matrix& XC::Element::getTangentStiff ( void  ) const
pure virtual

§ getTributaryLength()

double XC::Element::getTributaryLength ( const Node ) const
virtual

Returns the tributary length corresponding to the node being passed as parameter.

Reimplemented in XC::Element1D.

§ getTributaryLengthByTag()

double XC::Element::getTributaryLengthByTag ( const int &  tag) const
virtual

Returns the tributary length corresponding to the node which tag se pasa as parameter.

§ getTributaryVolume()

double XC::Element::getTributaryVolume ( const Node ) const
virtual

Returns the tributary volume corresponding to the node being passed as parameter.

§ getTributaryVolumeByTag()

double XC::Element::getTributaryVolumeByTag ( const int &  tag) const
virtual

Returns the tributary volume corresponding to the node which tag se pasa as parameter.

§ revertToLastCommit()

virtual int XC::Element::revertToLastCommit ( void  )
pure virtual

Revert to the last commited state.

The element is to set it's current state to the last committed state. To return 0 if sucessfull, a negative number if not.

Implemented in XC::TwentyNodeBrick, XC::ShadowSubdomain, XC::ZeroLengthContact3D, XC::EightNodeBrick, XC::ZeroLengthContact2D, XC::ZeroLength, XC::Subdomain, XC::UpdatedLagrangianBeam2D, XC::BeamColumnJoint3d, XC::fElement, XC::BeamWithHinges2d, XC::BeamWithHinges3d, XC::BeamColumnJoint2d, XC::ZeroLengthSection, XC::ShellMITC4Base, XC::TwentySevenNodeBrick, XC::ElasticBeam2d, XC::ElasticBeam3d, XC::NLBeamColumn2d, XC::Truss, XC::DispBeamColumn2d, XC::Joint2D, XC::DispBeamColumn3d, XC::beam2d02, XC::ForceBeamColumn3d, XC::NLBeamColumn3d, XC::FlatSliderSimple2d, XC::Spring, XC::ForceBeamColumn2d, XC::beam2d04, XC::TrussSection, XC::ShellNL, XC::CorotTruss, XC::NewElement, XC::beam2d03, XC::CorotTrussSection, XC::SingleFPSimple2d, XC::SingleFPSimple3d, XC::FlatSliderSimple3d, XC::BeamColumnWithSectionFD, XC::beam3dBase, XC::ElemWithMaterial< NNODOS, PhysProp >, XC::ElemWithMaterial< 8, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< NNODES, SolidMech2D >, XC::ElemWithMaterial< 4, BeamColumnJointPhysicalProperties >, XC::ElemWithMaterial< 20, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< NNODES, PhysProp >, XC::ElemWithMaterial< NNODES, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< 7, Joint3DPhysicalProperties >, XC::ElemWithMaterial< NNODES, SectionFDPhysicalProperties >, XC::ElemWithMaterial< 9, SolidMech2D >, XC::ElemWithMaterial< 5, Joint2DPhysicalProperties >, and XC::ElemWithMaterial< 9, NDMaterialPhysicalProperties >.

§ revertToStart()

int XC::Element::revertToStart ( void  )
virtual

Reverts the element to its initial state.

The element is to set it's current state to the state it was at before the analysis started. To return 0 if sucessfull, a negative number if not.

Reimplemented in XC::TwentyNodeBrick, XC::ShadowSubdomain, XC::ZeroLengthContact3D, XC::EightNodeBrick, XC::ZeroLengthContact2D, XC::ZeroLength, XC::Subdomain, XC::BeamColumnJoint3d, XC::fElement, XC::BeamWithHinges2d, XC::BeamWithHinges3d, XC::BeamColumnJoint2d, XC::ZeroLengthSection, XC::ShellMITC4Base, XC::TwentySevenNodeBrick, XC::ElasticBeam2d, XC::ElasticBeam3d, XC::NLBeamColumn2d, XC::Truss, XC::DispBeamColumn2d, XC::Joint2D, XC::DispBeamColumn3d, XC::beam2d02, XC::ForceBeamColumn3d, XC::NLBeamColumn3d, XC::FlatSliderSimple2d, XC::Spring, XC::ForceBeamColumn2d, XC::TrussSection, XC::ShellNL, XC::CorotTruss, XC::NewElement, XC::CorotTrussSection, XC::SingleFPSimple2d, XC::SingleFPSimple3d, XC::FlatSliderSimple3d, XC::BeamColumnWithSectionFD, XC::ElemWithMaterial< NNODOS, PhysProp >, XC::ElemWithMaterial< 8, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< NNODES, SolidMech2D >, XC::ElemWithMaterial< 4, BeamColumnJointPhysicalProperties >, XC::ElemWithMaterial< 20, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< NNODES, PhysProp >, XC::ElemWithMaterial< NNODES, NDMaterialPhysicalProperties >, XC::ElemWithMaterial< 7, Joint3DPhysicalProperties >, XC::ElemWithMaterial< NNODES, SectionFDPhysicalProperties >, XC::ElemWithMaterial< 9, SolidMech2D >, XC::ElemWithMaterial< 5, Joint2DPhysicalProperties >, and XC::ElemWithMaterial< 9, NDMaterialPhysicalProperties >.

§ setResponse()

XC::Response * XC::Element::setResponse ( const std::vector< std::string > &  argv,
Information eleInfo 
)
virtual

setResponse() is a method invoked to determine if the element will respond to a request for a certain of information.

The information requested of the element is passed in the array of char pointers argv of length {em argc}. If the element does not respond to the request a \(-1\) is returned. If it does respond, an integer value greater than or equal to \(0\) is returned. This is the responseID passed in the getResponse() method. In addition the Element object is responsible for setting the Information object eleInformation with the type of the return, i.e. {IntType, DoubleType, MatrixType, VectorType, IDType}, and for creating a Matrix, Vector or ID object for the Information object, if the information to be returned is of any of these types. The information object is responsible for invoking the destructor on these objects. The base class responds to no requests and will always return \(-1\).

Reimplemented in XC::ElasticBeam3d, XC::TwentyNodeBrick, XC::EightNodeBrick, XC::ZeroLengthContact3D, XC::BeamColumnJoint3d, XC::ZeroLength, XC::ZeroLengthContact2D, XC::BeamColumnJoint2d, XC::TwentyEightNodeBrickUP, XC::ZeroLengthSection, XC::UpdatedLagrangianBeam2D, XC::Twenty_Node_Brick, XC::TwentyNodeBrick_u_p_U, XC::BeamWithHinges2d, XC::BeamWithHinges3d, XC::TwentySevenNodeBrick, XC::Brick, XC::Truss, XC::BrickUP, XC::NLBeamColumn2d, XC::Tri31, XC::EightNodeBrick_u_p_U, XC::DispBeamColumn2d, XC::TotalLagrangianFD20NodeBrick, XC::FourNodeQuad, XC::BbarBrick, XC::NineFourNodeQuadUP, XC::Spring, XC::Joint2D, XC::DispBeamColumn3d, XC::Joint3D, XC::FourNodeQuadUP, XC::CorotTruss, XC::FlatSliderSimple2d, XC::ForceBeamColumn3d, XC::NLBeamColumn3d, XC::TrussSection, XC::ForceBeamColumn2d, XC::CorotTrussSection, XC::NewElement, XC::SingleFPSimple2d, XC::SingleFPSimple3d, XC::FlatSliderSimple3d, and XC::InelasticYS2DGNL.

§ update()

int XC::Element::update ( void  )
virtual

§ zeroLoad()

void XC::Element::zeroLoad ( void  )
virtual

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