CorotCrdTransf2d.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.8 $                                                              
00022 // $Date: 2006/01/13 01:07:48 $                                                                  
00023 // $Source: /usr/local/cvs/OpenSees/SRC/coordTransformation/CorotCrdTransf2d.h,v $ 
00024                                         
00025 // Written: Remo Magalhaes de Souza (rmsouza@ce.berkeley.edu)
00026 // Created: 04/2000
00027 // Revision: A
00028 //
00029 // Description: This file contains the class definition for
00030 // CorotCrdTransf2d.h. CorotCrdTransf2d provides the
00031 // abstraction of a corotation transformation for a planar frame element
00032 
00033 // What: "@(#) CorotCrdTransf2d.h, revA"
00034 
00035 #ifndef CorotCrdTransf2d_h
00036 #define CorotCrdTransf2d_h
00037 
00038 #include <CrdTransf2d.h>
00039 #include <Vector.h>
00040 #include <Matrix.h>
00041 
00042 class CorotCrdTransf2d: public CrdTransf2d
00043 {
00044 public:
00045     CorotCrdTransf2d(int tag, const Vector &rigJntOffsetI, const Vector &rigJntOffsetJ);
00046     
00047     CorotCrdTransf2d();
00048     ~CorotCrdTransf2d();
00049     
00050     int initialize(Node *nodeIPointer, Node *nodeJPointer);
00051     int update(void);
00052     double getInitialLength(void);
00053     double getDeformedLength(void);
00054     
00055     int commitState(void);
00056     int revertToLastCommit(void);        
00057     int revertToStart(void);
00058     
00059     const Vector &getBasicTrialDisp(void);
00060     const Vector &getBasicIncrDisp(void);
00061     const Vector &getBasicIncrDeltaDisp(void);
00062         const Vector &getBasicTrialVel(void);
00063         const Vector &getBasicTrialAccel(void);
00064     
00065     const Vector &getGlobalResistingForce(const Vector &basicForce, const Vector &uniformLoad);
00066     const Matrix &getGlobalStiffMatrix(const Matrix &basicStiff, const Vector &basicForce);
00067     const Matrix &getInitialGlobalStiffMatrix(const Matrix &basicStiff);
00068     
00069     CrdTransf2d *getCopy(void);
00070     
00071     int sendSelf(int cTag, Channel &theChannel);
00072     int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00073     
00074     void Print(OPS_Stream &s, int flag = 0);
00075     
00076     // functions used in post-processing only    
00077     const Vector &getPointGlobalCoordFromLocal(const Vector &localCoords);
00078     const Vector &getPointGlobalDisplFromBasic(double xi, const Vector &basicDisps);
00079     
00080 private:
00081     int compElemtLengthAndOrient(void);
00082     int compElemtLengthAndOrientWRTLocalSystem(const Vector &ul);
00083     void transfLocalDisplsToBasic(const Vector &ul);
00084     void getTransfMatrixLocalGlobal(Matrix &Tlg);
00085     void getTransfMatrixBasicLocal(Matrix &Tbl);
00086     const Matrix &getGeomStiffMatrix(const Vector &pb) const;
00087     
00088     // internal data
00089     Node *nodeIPtr, *nodeJPtr; // pointers to the element two endnodes
00090     
00091     Vector nodeIOffset, nodeJOffset;  // rigid joint offsets
00092     
00093     double cosTheta, sinTheta; // direction cossines of undeformed element wrt to global system 
00094     double cosAlpha, sinAlpha; // direction cossines of deformed element wrt to local system
00095     double L;                  // undeformed element length
00096     double Ln;                 // deformed element length
00097     double Lx, Ly;             // components of the deformed member
00098     double Lxdot, Lydot;       // time derivatives of components of the deformed member
00099     double Lxdotdot, Lydotdot; // double time derivatives of components of the deformed member
00100     
00101     Vector ub;                 // basic displacements
00102     Vector ubcommit;           // commited basic displacements
00103     Vector ubpr;               // previous basic displacements
00104     
00105     static Matrix Tlg;         // matrix that transforms from global to local coordinates
00106     static Matrix Tbl;         // matrix that transforms from local  to basic coordinates
00107     static Matrix kg;     
00108     static Vector uxg;     
00109     static Vector pg;     
00110     static Vector dub;     
00111     static Vector Dub;     
00112     
00113     double *nodeIInitialDisp, *nodeJInitialDisp;
00114     bool initialDispChecked;
00115 };
00116 #endif

Generated on Mon Oct 23 15:04:59 2006 for OpenSees by doxygen 1.5.0