Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

LinearCrdTransf2d.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.2 $
00022 // $Date: 2001/05/30 07:14:37 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/coordTransformation/LinearCrdTransf2d.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/crdTransf/LinearCrdTransf2d.h
00027 //
00028 // Written: Remo Magalhaes de Souza (rmsouza@ce.berkeley.edu)
00029 // Created: 04/2000
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for
00033 // LinearCrdTransf2d.h. LinearCrdTransf2d provides the
00034 // abstraction of a linear transformation for a spatial frame
00035 // between the global and basic coordinate systems
00036 
00037 // What: "@(#) LinearCrdTransf2d.h, revA"
00038 
00039 #ifndef LinearCrdTransf2d_h
00040 #define LinearCrdTransf2d_h
00041 
00042 #include <CrdTransf2d.h>
00043 #include <Vector.h>
00044 #include <Matrix.h>
00045 
00046 
00048 class LinearCrdTransf2d: public CrdTransf2d
00049 {
00050   public:
00052     LinearCrdTransf2d (int tag);
00054     LinearCrdTransf2d (int tag,
00055   const Vector &rigJntOffsetI,
00056   const Vector &rigJntOffsetJ);
00057     
00059     LinearCrdTransf2d();
00061     ~LinearCrdTransf2d();
00062 
00064     int    initialize(Node *node1Pointer, Node *node2Pointer);
00066     int    update(void);
00068     double getInitialLength(void);
00070     double getDeformedLength(void);
00071 
00073     int commitState(void);
00075     int revertToLastCommit(void);        
00077     int revertToStart(void);
00078     
00080     const Vector &getBasicTrialDisp     (void);
00082     const Vector &getBasicIncrDisp      (void);
00084     const Vector &getBasicIncrDeltaDisp (void);
00085 
00087     const Vector &getGlobalResistingForce (const Vector &basicForce, const Vector &uniformLoad);
00089     const Matrix &getGlobalStiffMatrix    (const Matrix &basicStiff, const Vector &basicForce);
00090 
00092     CrdTransf2d *getCopy(void);
00093     
00095     int sendSelf(int cTag, Channel &theChannel);
00097     int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00098 
00100     void Print(ostream &s, int flag =0);
00101   
00103     const Vector &getPointGlobalCoordFromLocal (const Vector &localCoords);
00105     const Vector &getPointGlobalDisplFromBasic (double xi, const Vector &basicDisps);
00106   
00107   private:
00109     int  computeElemtLengthAndOrient (void);
00110     
00112     Node *nodeIPtr, 
00113   *nodeJPtr;          
00114 
00115     double *nodeIOffset, *nodeJOffset; 
00116 
00117     double cosTheta, sinTheta;
00118 
00120     double L;                // undeformed element length
00121 };
00122 
00123 #endif
00124 
00125 ÿ
Copyright Contact Us