Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
Truss Class Reference#include <Truss.h>
Inheritance diagram for Truss::
List of all members.
Public Methods |
| Truss (int tag, int dimension, int Nd1, int Nd2, UniaxialMaterial &theMaterial, double A, double rho=0.0) |
| Truss () |
| ~Truss () |
int | getNumExternalNodes (void) const |
| public methods to obtain inforrmation about dof & connectivity. More...
|
const ID& | getExternalNodes (void) |
int | getNumDOF (void) |
void | setDomain (Domain *theDomain) |
int | commitState (void) |
| public methods to set the state of the element. More...
|
int | revertToLastCommit (void) |
int | revertToStart (void) |
int | update (void) |
const Matrix& | getTangentStiff (void) |
| public methods to obtain stiffness, mass, damping and residual information. More...
|
const Matrix& | getSecantStiff (void) |
const Matrix& | getDamp (void) |
const Matrix& | getMass (void) |
void | zeroLoad (void) |
| methods for returning and applying loads. More...
|
int | addLoad (const Vector &addP) |
int | addInertiaLoadToUnbalance (const Vector &accel) |
const Vector& | getResistingForce (void) |
const Vector& | getResistingForceIncInertia (void) |
int | sendSelf (int commitTag, Channel &theChannel) |
| public methods for element output. More...
|
int | recvSelf (int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker) |
int | displaySelf (Renderer &theViewer, int displayMode, float fact) |
| Method for visualisation, default does nothing. More...
|
void | Print (ostream &s, int flag=0) |
Response* | setResponse (char **argv, int argc, Information &eleInfo) |
| method for obtaining information specific to an element. More...
|
int | getResponse (int responseID, Information &eleInformation) |
int | setParameter (char **argv, int argc, Information &info) |
| methods for sensitivity studies. More...
|
int | updateParameter (int parameterID, Information &info) |
Detailed Description
The Truss class provides the truss abstraction. The Truss object can exist in one, two or three-dimesional problems. Each Truss object is associated with two Node objects and a UniaxialMaterial object. \
}
Definition at line 58 of file Truss.h.
Constructor & Destructor Documentation
Truss::Truss (
|
int tag,
|
|
int dimension,
|
|
int Nd1,
|
|
int Nd2,
|
|
UniaxialMaterial & theMaterial,
|
|
double A,
|
|
double rho = 0.0 )
|
|
|
int dimension,
Definition at line 67 of file Truss.cpp. |
|
This is the constructor invoked by an FEM\_ObjectBroker object. It constructs an empty Truss element. The {recvSelf()} method must be invoked on the object for it to set the internal data.
Definition at line 96 of file Truss.cpp. |
|
{\bf Public Methods }
Definition at line 112 of file Truss.cpp. |
Member Function Documentation
void Truss::Print (
|
ostream & s,
|
|
int flag = 0 ) [virtual]
|
|
|
A pure virtual function. The component is to output itself to the output stream {s}. The integer {flag} can be used to select just what should be output, by default
is passed.
Reimplemented from TaggedObject.
Definition at line 768 of file Truss.cpp. |
int Truss::addInertiaLoadToUnbalance (
|
const Vector & accel ) [virtual]
|
|
int Truss::addLoad (
|
const Vector & addP ) [virtual]
|
|
int Truss::commitState (
|
void ) [virtual]
|
|
|
public methods to set the state of the element.
Reimplemented from Element.
Definition at line 357 of file Truss.cpp. |
int Truss::displaySelf (
|
Renderer & theViewer,
|
|
int displayMode,
|
|
float fact ) [virtual]
|
|
const Matrix & Truss::getDamp (
|
void ) [virtual]
|
|
|
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.
Reimplemented from Element.
Definition at line 429 of file Truss.cpp. |
const ID & Truss::getExternalNodes (
|
void ) [virtual]
|
|
|
Returns an ID object of size
containing the two node identifiers
and
.
Reimplemented from Element.
Definition at line 132 of file Truss.cpp. |
const Matrix & Truss::getMass (
|
void ) [virtual]
|
|
|
To return the mass matrix. The element is to compute its mass matrix based on the original location of the nodes and the current trial response quantities at the nodes.
Reimplemented from Element.
Definition at line 451 of file Truss.cpp. |
int Truss::getNumDOF (
|
void ) [virtual]
|
|
|
To return the number of dof associated with the Truss. This depends on the dimension of the problem and the number of dof associated with the nodes.
Reimplemented from Element.
Definition at line 138 of file Truss.cpp. |
int Truss::getNumExternalNodes (
|
void ) const [virtual]
|
|
|
public methods to obtain inforrmation about dof & connectivity.
Reimplemented from Element.
Definition at line 126 of file Truss.cpp. |
const Vector & Truss::getResistingForce (
|
void ) [virtual]
|
|
const Vector & Truss::getResistingForceIncInertia (
|
void ) [virtual]
|
|
int Truss::getResponse (
|
int responseID,
|
|
Information & eleInformation ) [virtual]
|
|
const Matrix & Truss::getSecantStiff (
|
void ) [virtual]
|
|
|
To return the elements secant stiffness matrix. The element is to compute its stiffness matrix based on the original location of the nodes and the current trial displacement at the nodes. THIS SECANT MAY BE REMOVED.
Reimplemented from Element.
Definition at line 406 of file Truss.cpp. |
const Matrix & Truss::getTangentStiff (
|
void ) [virtual]
|
|
|
public methods to obtain stiffness, mass, damping and residual information.
Reimplemented from Element.
Definition at line 385 of file Truss.cpp. |
|
This is a pure virtual method, one must be written for each instantiable subclass of MovableObject. Each object has to receive the data needed to be able to recreate itself in the new process after it has been sent through {theChannel}. If the object is an aggregation containing other objects, new objects of the correct type can be constructed using {theBroker}. To return
if successful or a
if not.
Reimplemented from MovableObject.
Definition at line 661 of file Truss.cpp. |
int Truss::revertToLastCommit (
|
void ) [virtual]
|
|
|
The element is to set it's current state to the last committed state. To return
if sucessfull, a negative number if not.
Reimplemented from Element.
Definition at line 363 of file Truss.cpp. |
int Truss::revertToStart (
|
void ) [virtual]
|
|
|
The element is to set it's current state to the state it was at before the analysis started. To return
if sucessfull, a negative number if not.
Reimplemented from Element.
Definition at line 369 of file Truss.cpp. |
int Truss::sendSelf (
|
int commitTag,
|
|
Channel & theChannel ) [virtual]
|
|
void Truss::setDomain (
|
Domain * theDomain ) [virtual]
|
|
|
Sets the encompassing domain of the component to that given by {theDomain}. This method is invoked by {theDomain} when the component is being added to the domain, in an {addDomain..} invocation (see interface for Domain).
Reimplemented from DomainComponent.
Definition at line 151 of file Truss.cpp. |
int Truss::setParameter (
|
char ** argv,
|
|
int argc,
|
|
Information & info ) [virtual]
|
|
Response * Truss::setResponse (
|
char ** argv,
|
|
int argc,
|
|
Information & eleInfo ) [virtual]
|
|
|
method for obtaining information specific to an element.
Reimplemented from Element.
Definition at line 839 of file Truss.cpp. |
int Truss::update (
|
void ) [virtual]
|
|
|
This method is invoked after the response quantities have been updated in the Domain, but not necessarily committed, e.g. during a non-linear Newton-Raphson solution algorithm. To return
if successful, a negative number if not. This base class implementation returns
.
Reimplemented from Element.
Definition at line 375 of file Truss.cpp.
Referenced by setDomain().
|
int Truss::updateParameter (
|
int parameterID,
|
|
Information & info ) [virtual]
|
|
void Truss::zeroLoad (
|
void ) [virtual]
|
|
|
methods for returning and applying loads.
Reimplemented from Element.
Definition at line 500 of file Truss.cpp. |
The documentation for this class was generated from the following files:
|