PDeltaCrdTransf3d.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/PDeltaCrdTransf3d.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 // PDeltaCrdTransf3d.h. PDeltaCrdTransf3d provides the
00031 // abstraction of a linear transformation for a spatial frame
00032 // between the global and basic coordinate systems
00033 
00034 // What: "@(#) PDeltaCrdTransf3d.h, revA"
00035 
00036 #ifndef PDeltaCrdTransf3d_h
00037 #define PDeltaCrdTransf3d_h
00038 
00039 #include <CrdTransf3d.h>
00040 #include <Vector.h>
00041 #include <Matrix.h>
00042 
00043 class PDeltaCrdTransf3d: public CrdTransf3d
00044 {
00045 public:
00046     PDeltaCrdTransf3d(int tag, const Vector &vecInLocXZPlane);
00047     PDeltaCrdTransf3d(int tag, const Vector &vecInLocXZPlane,
00048         const Vector &rigJntOffsetI,
00049         const Vector &rigJntOffsetJ);
00050     
00051     PDeltaCrdTransf3d();
00052     ~PDeltaCrdTransf3d();
00053     
00054     int initialize(Node *node1Pointer, Node *node2Pointer);
00055     int update(void);
00056     double getInitialLength(void);
00057     double getDeformedLength(void);
00058     
00059     int commitState(void);
00060     int revertToLastCommit(void);        
00061     int revertToStart(void);
00062     
00063     const Vector &getBasicTrialDisp(void);
00064     const Vector &getBasicIncrDisp(void);
00065     const Vector &getBasicIncrDeltaDisp(void);
00066         const Vector &getBasicTrialVel(void);
00067         const Vector &getBasicTrialAccel(void);
00068     
00069     const Vector &getGlobalResistingForce(const Vector &basicForce, const Vector &p0);
00070     const Matrix &getGlobalStiffMatrix(const Matrix &basicStiff, const Vector &basicForce);
00071     const Matrix &getInitialGlobalStiffMatrix(const Matrix &basicStiff);
00072     
00073     CrdTransf3d *getCopy(void);
00074     
00075     int sendSelf(int cTag, Channel &theChannel);
00076     int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00077     
00078     void Print(OPS_Stream &s, int flag = 0);
00079     
00080     // functions used in post-processing only    
00081     const Vector &getPointGlobalCoordFromLocal(const Vector &localCoords);
00082     const Vector &getPointGlobalDisplFromBasic(double xi, const Vector &basicDisps);
00083     
00084     int getLocalAxes(Vector &xAxis, Vector &yAxis, Vector &zAxis);
00085     
00086 private:
00087     int computeElemtLengthAndOrient(void);
00088     
00089     // internal data
00090     Node *nodeIPtr, *nodeJPtr;  // pointers to the element two endnodes
00091     
00092     double *nodeIOffset, *nodeJOffset;  // rigid joint offsets
00093     
00094     double R[3][3];     // Transformation matrix
00095     
00096     double L;       // undeformed element length
00097     double ul17;        // Transverse local displacement offsets of P-Delta
00098     double ul28;
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