class ZeroLength : public Element


Inheritance:


Public Methods

ZeroLength(int tag, int dimension, int Nd1, int Nd2, const Vector& x, const Vector& yprime, UniaxialMaterial& theMaterial, int direction )
ZeroLength(int tag, int dimension, int Nd1, int Nd2, const Vector& x, const Vector& yprime, int n1dMat, UniaxialMaterial** theMaterial, const ID& direction )
ZeroLength()
~ZeroLength()
int getNumExternalNodes(void) const
const ID& getExternalNodes(void)
int getNumDOF(void)
void setDomain(Domain *theDomain)
int commitState(void)
int revertToLastCommit(void)
int revertToStart(void)
const Matrix& getTangentStiff(void)
const Matrix& getSecantStiff(void)
const Matrix& getDamp(void)
const Matrix& getMass(void)
void zeroLoad(void)
int addLoad(const Vector &addP)
int addInertiaLoadToUnbalance(const Vector &accel)
const Vector& getResistingForce(void)
const Vector& getResistingForceIncInertia(void)
int sendSelf(int commitTag, Channel &theChannel)
int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)
int displaySelf(Renderer &theViewer, int displayMode, float fact)
void Print(ostream &s, int flag =0)
int setResponse(char **argv, int argc, Information &eleInformation)
int getResponse(int responseID, Information &eleInformation)

Inherited from Element:

Public Methods

virtual int update(void)
virtual bool isSubdomain(void)

Inherited from DomainComponent:

Public Methods

virtual Domain* getDomain(void) const
virtual int setParameter(char **argv, int argc, Information &eleInformation)
virtual int updateParameter(int responseID, Information &eleInformation)

Inherited from TaggedObject:

Public Methods

inline int getTag(void) const
friend ostream& operator<<(ostream &s, TaggedObject &m)
inline int TaggedObject::getTag(void) const

Protected Methods

void setTag(int newTag)

Inherited from MovableObject:

Public Methods

int getClassTag(void) const
int getDbTag(void) const
void setDbTag(int dbTag)

Documentation

The ZeroLength class represents an element defined by two nodes at the same geometric location, hence it has zero length. The nodes are connected by of uniaxial materials to represent the force-deformation relationship for the element.

ZeroLength elements are constructed with a tag in a domain of dimension 1, 2, or 3, connected by nodes Nd1 and Nd2. The vector x defines the local x-axis for the element and the vector yprime lies in the local x-y plane for the element. The local z-axis is the cross product between x and yprime, and the local y-axis is the cross product between the local z-axis and x.

ZeroLength(int tag, int dimension, int Nd1, int Nd2, const Vector& x, const Vector& yprime, UniaxialMaterial& theMaterial, int direction )

Construct a ZeroLength element with tag . The force-deformation relationship for the element is given by a pointer theMaterial to a UniaxialMaterial model acting in local direction. The local direction is 1, 2, 3, for translation in the local x, y, z axes or 4, 5, 6 for rotation about the local x, y, z axes.

ZeroLength(int tag, int dimension, int Nd1, int Nd2, const Vector& x, const Vector& yprime, int n1dMat, UniaxialMaterial** theMaterial, const ID& direction )

Construct a ZeroLength element with tag . The force-deformation relationship is given by the n1dMat pointers theMaterial to UniaxialMaterial models. direction is an ID of length n1dMat that gives the local direction for each corresponding entry in the array theMaterial The local direction is 1, 2, 3, for translation in the local x, y, z axes or 4, 5, 6 for rotation about the local x, y, z axes.

ZeroLength()

This is the constructor invoked by an FEM_ObjectBroker object. It constructs an empty ZeroLength element with two nodes. The recvSelf() method is invoked on the object for it to set the internal data.

~ZeroLength()

Element destructor deletes memory for storing material model pointers

int getNumExternalNodes(void) const

Returns 2

const ID& getExternalNodes(void)

Return ID of size 2 with the node tags defining the element

int getNumDOF(void)

Return the number of DOF for the element, which depends on the dimension of the problem and the number of DOF associated with each node

void setDomain(Domain *theDomain)

Initialize element and define data structures

int commitState(void)

Commit state of element by commiting state of materials. Return 0 if successful, !0 otherwise.

int revertToLastCommit(void)

Revert state of element to last commit by reverting to last committed state of materials. Return 0 if successful, !0 otherwise.

int revertToStart(void)

Revert state of element to initial sate by reverting to initial state of materials. Return 0 if successful, !0 otherwise.

const Matrix& getTangentStiff(void)

Return tangent stiffness matrix for element

const Matrix& getSecantStiff(void)

Return secant stiffness matrix of element. The secant stiffness is defined by the secant for the materials.

const Matrix& getDamp(void)

Return a zero damping matrix

const Matrix& getMass(void)

Return a zero mass matrix

void zeroLoad(void)

The element has no loads, so this operation has no effect

int addLoad(const Vector &addP)

The element has no loads, so this operation has no effect and returns 0

int addInertiaLoadToUnbalance(const Vector &accel)

The element has no mass, so this operation has no effect and returns 0

const Vector& getResistingForce(void)

Return resisting force vector

const Vector& getResistingForceIncInertia(void)

Return resisting force vector with inertia included

int sendSelf(int commitTag, Channel &theChannel)

Send information about element over a channel

int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Receive information about element over a channel

int displaySelf(Renderer &theViewer, int displayMode, float fact)

Display element

void Print(ostream &s, int flag =0)

Print information about element

int setResponse(char **argv, int argc, Information &eleInformation)

Set response quantities as "force", "deformation", "material", or "stiff". Return response ID or -1 if error. Currently, only the one uniaxial material can be set.

int getResponse(int responseID, Information &eleInformation)

Get response information for responseID. Return 0 if successful, -1 otherwise.


This class has no child classes.

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us