PDeltaCrdTransf2d.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.7 $
00022 // $Date: 2005/12/15 00:30:38 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/coordTransformation/PDeltaCrdTransf2d.h,v $
00024 
00025 
00026 // Written: Remo Magalhaes de Souza (rmsouza@ce.berkeley.edu)
00027 // Created: 04/2000
00028 // Revision: A
00029 //
00030 // Modified: May 2001 
00031 //
00032 // Description: This file contains the class definition for
00033 // PDeltaCrdTransf2d.h. PDeltaCrdTransf2d provides the
00034 // abstraction of a linear transformation for a spatial frame
00035 // between the global and basic coordinate systems
00036 
00037 // What: "@(#) PDeltaCrdTransf2d.h, revA"
00038 
00039 #ifndef PDeltaCrdTransf2d_h
00040 #define PDeltaCrdTransf2d_h
00041 
00042 #include <CrdTransf2d.h>
00043 #include <Vector.h>
00044 #include <Matrix.h>
00045 
00046 class PDeltaCrdTransf2d: public CrdTransf2d
00047 {
00048 public:
00049     PDeltaCrdTransf2d(int tag);
00050     PDeltaCrdTransf2d(int tag,
00051         const Vector &rigJntOffsetI,
00052         const Vector &rigJntOffsetJ);
00053     
00054     PDeltaCrdTransf2d();
00055     ~PDeltaCrdTransf2d();
00056     
00057     int initialize(Node *node1Pointer, Node *node2Pointer);
00058     int update(void);
00059     double getInitialLength(void);
00060     double getDeformedLength(void);
00061     
00062     int commitState(void);
00063     int revertToLastCommit(void);        
00064     int revertToStart(void);
00065     
00066     const Vector &getBasicTrialDisp(void);
00067     const Vector &getBasicIncrDisp(void);
00068     const Vector &getBasicIncrDeltaDisp(void);
00069         const Vector &getBasicTrialVel(void);
00070         const Vector &getBasicTrialAccel(void);
00071     
00072     const Vector &getGlobalResistingForce(const Vector &basicForce, const Vector &p0);
00073     const Matrix &getGlobalStiffMatrix(const Matrix &basicStiff, const Vector &basicForce);
00074     const Matrix &getInitialGlobalStiffMatrix(const Matrix &basicStiff);
00075     
00076     CrdTransf2d *getCopy(void);
00077     
00078     int sendSelf(int cTag, Channel &theChannel);
00079     int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00080     
00081     void Print(OPS_Stream &s, int flag = 0);
00082     
00083     // functions used in post-processing only    
00084     const Vector &getPointGlobalCoordFromLocal(const Vector &localCoords);
00085     const Vector &getPointGlobalDisplFromBasic(double xi, const Vector &basicDisps);
00086     
00087 private:
00088     int computeElemtLengthAndOrient(void);
00089     
00090     // internal data
00091     Node *nodeIPtr, *nodeJPtr;  // pointers to the element two endnodes
00092     
00093     double *nodeIOffset, *nodeJOffset;  // rigid joint offsets
00094     
00095     double cosTheta, sinTheta;
00096     
00097     double L;       // undeformed element length
00098     double ul14;        // Transverse local displacement offset of P-Delta
00099 
00100     double *nodeIInitialDisp, *nodeJInitialDisp;
00101     bool initialDispChecked;
00102 };
00103 
00104 #endif
00105 

Generated on Mon Oct 23 15:05:00 2006 for OpenSees by doxygen 1.5.0