TransformationFE.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.9 $
00022 // $Date: 2006/02/08 20:20:00 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/fe_ele/transformation/TransformationFE.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef TransformationFE_h
00027 #define TransformationFE_h
00028 
00029 // Written: fmk 
00030 // Created: 05/99
00031 // Revision: A
00032 //
00033 // Description: This file contains the class definition for TransformationFE.
00034 // TransformationFE objects handle MP_Constraints using the transformation
00035 // method T^t K T. SP_Constraints are handled by the TransformationConstraintHandler.
00036 //
00037 // What: "@(#) TransformationFE.h, revA"
00038 
00039 #include <FE_Element.h>
00040 class SP_Constraint;
00041 class DOF_Group;
00042 class TransformationConstraintHandler;
00043 
00044 class TransformationFE: public FE_Element
00045 {
00046   public:
00047   TransformationFE(int tag, Element *theElement);
00048   ~TransformationFE();    
00049 
00050     // public methods for setting/obtaining mapping information
00051     virtual const ID &getDOFtags(void) const;
00052     virtual const ID &getID(void) const;
00053     void setAnalysisModel(AnalysisModel &theModel);
00054     virtual int setID(void);
00055     
00056     // methods to form and obtain the tangent and residual
00057     virtual const Matrix &getTangent(Integrator *theIntegrator);
00058     virtual const Vector &getResidual(Integrator *theIntegrator);
00059     
00060     // methods for ele-by-ele strategies
00061     virtual const Vector &getTangForce(const Vector &x, double fact = 1.0);
00062     virtual const Vector &getK_Force(const Vector &accel, double fcat = 1.0);
00063     virtual const Vector &getKi_Force(const Vector &accel, double fcat = 1.0);
00064     virtual const Vector &getM_Force(const Vector &accel, double fcat = 1.0);
00065     virtual const Vector &getC_Force(const Vector &vel, double fcat = 1.0);
00066     virtual void  addD_Force(const Vector &vel,   double fact = 1.0);
00067     virtual void  addM_Force(const Vector &accel, double fact = 1.0);    
00068     
00069     const Vector &getLastResponse(void);
00070     int addSP(SP_Constraint &theSP);
00071 
00072 
00073     // AddingSensitivity:BEGIN ////////////////////////////////////
00074     virtual void addM_ForceSensitivity       (int gradNumber, const Vector &vect, double fact = 1.0);
00075     virtual void addD_ForceSensitivity       (int gradNumber, const Vector &vect, double fact = 1.0);
00076     // AddingSensitivity:END //////////////////////////////////////
00077     
00078   protected:
00079     int transformResponse(const Vector &modResponse, Vector &unmodResponse);
00080     
00081   private:
00082     
00083     // private variables - a copy for each object of the class        
00084     DOF_Group **theDOFs;
00085     int numSPs;
00086     SP_Constraint **theSPs;
00087     ID *modID;
00088     Matrix *modTangent;
00089     Vector *modResidual;
00090     int numGroups;
00091     int numTransformedDOF;
00092     int numOriginalDOF;
00093     
00094     // static variables - single copy for all objects of the class      
00095     static Matrix **modMatrices; // array of pointers to class wide matrices
00096     static Vector **modVectors;  // array of pointers to class widde vectors
00097     static Matrix **theTransformations; // for holding pointers to the T matrices
00098     static int numTransFE;     // number of objects    
00099     static int transCounter;   // a counter used to indicate when to do something
00100     static int sizeTransformations; // size of theTransformations array
00101     static double *dataBuffer;
00102     static double *localKbuffer;
00103     static int    *dofData;
00104     static int sizeBuffer;
00105 };
00106 
00107 #endif
00108 
00109 
00110 
00111 

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