CrdTransf.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.5 $
00022 // $Date: 2006/09/26 18:22:24 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/coordTransformation/CrdTransf.h,v $
00024 
00025 
00026 // File: ~/crdTransf/CrdTransf.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 // CrdTransf.h. CrdTransf provides the abstraction of a frame 
00034 // coordinate transformation. It is an abstract base class and 
00035 // thus no objects of  it's type can be instatiated. It has pure 
00036 // virtual functions which  must be implemented in it's derived classes.
00037 //
00038 // What: "@(#) CrdTransf.h, revA"
00039 
00040 #ifndef CrdTransf_h
00041 #define CrdTransf_h
00042 
00043 #include <MovableObject.h>
00044 #include <TaggedObject.h>
00045 
00046 class Vector;
00047 class Matrix;
00048 class Node;
00049 
00050 
00051 class CrdTransf: public TaggedObject, public MovableObject
00052 {
00053 public:
00054     CrdTransf(int tag, int classTag);
00055     CrdTransf();
00056     virtual ~CrdTransf();
00057     
00058     virtual int    initialize(Node *node1Pointer, Node *node2Pointer) = 0;
00059     virtual int    update(void) = 0;
00060     virtual double getInitialLength(void) = 0;
00061     virtual double getDeformedLength(void) = 0;
00062     
00063     virtual int commitState(void) = 0;
00064     virtual int revertToLastCommit(void) = 0;        
00065     virtual int revertToStart(void) = 0;
00066     
00067     virtual const Vector &getBasicTrialDisp(void) = 0;
00068     virtual const Vector &getBasicIncrDisp(void) = 0;
00069     virtual const Vector &getBasicIncrDeltaDisp(void) = 0;
00070     virtual const Vector &getBasicTrialVel(void) = 0;
00071     virtual const Vector &getBasicTrialAccel(void) = 0;
00072     
00073     // AddingSensitivity:BEGIN //////////////////////////////////
00074     virtual const Vector &getBasicDisplSensitivity(int gradNumber);
00075     //virtual const Vector &getGlobalResistingForceShapeSensitivity(const Vector &basicForce, const Vector &uniformLoad);
00076     virtual const Vector &getGlobalResistingForceShapeSensitivity(const Vector &pb, const Vector &p0, int gradNumber);
00077     virtual const Vector &getBasicTrialDispShapeSensitivity(void);
00078     virtual bool isShapeSensitivity(void) {return false;}
00079     virtual double getdLdh(void) {return 0.0;}
00080     virtual double getd1overLdh(void) {return 0.0;}
00081     // AddingSensitivity:END //////////////////////////////////
00082     
00083     virtual const Vector &getGlobalResistingForce(const Vector &basicForce, const Vector &uniformLoad) = 0;
00084     virtual const Matrix &getGlobalStiffMatrix(const Matrix &basicStiff, const Vector &basicForce) = 0;
00085 
00086     virtual const Matrix &getInitialGlobalStiffMatrix(const Matrix &basicStiff) = 0;
00087     
00088     // functions used in post-processing only    
00089     virtual const Vector &getPointGlobalCoordFromLocal(const Vector &localCoords) = 0;
00090     virtual const Vector &getPointGlobalDisplFromBasic(double xi, const Vector &basicDisps) = 0;
00091     
00092 protected:
00093     
00094 private:
00095 };
00096 
00097 #endif

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