SectionForceDeformation.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.11 $
00022 // $Date: 2006/09/05 21:39:33 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/SectionForceDeformation.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef SectionForceDeformation_h
00027 #define SectionForceDeformation_h
00028 
00029 // Written: MHS
00030 // Created: Feb 2000
00031 // Revision: A
00032 //
00033 // Description: This file contains the class definition for SectionForceDeformation.
00034 // SectionForceDeformation is an abstract base class and thus no objects of it's type
00035 // can be instantiated. It has pure virtual functions which must be
00036 // implemented in it's derived classes. 
00037 //
00038 // What: "@(#) SectionForceDeformation.h, revA"
00039 
00040 #include <Material.h>
00041 #include <Matrix.h>
00042 #include <Vector.h>
00043 #include <ID.h>
00044 
00045 class Information;
00046 class Response;
00047 
00048 #define MAX_SECTION_RESPONSE_ID 10000
00049 
00050 #define SECTION_RESPONSE_MZ             1
00051 #define SECTION_RESPONSE_P              2
00052 #define SECTION_RESPONSE_VY             3
00053 #define SECTION_RESPONSE_MY             4
00054 #define SECTION_RESPONSE_VZ             5
00055 #define SECTION_RESPONSE_T              6       
00056 
00057 class SectionForceDeformation : public Material
00058 {
00059  public:
00060   SectionForceDeformation (int tag, int classTag);
00061   SectionForceDeformation ();
00062   virtual ~SectionForceDeformation ();
00063   
00064   virtual int setTrialSectionDeformation (const Vector&) = 0;
00065   virtual const Vector &getSectionDeformation (void) = 0;
00066   
00067   virtual const Vector &getStressResultant (void) = 0;
00068   virtual const Matrix &getSectionTangent (void) = 0;
00069   virtual const Matrix &getInitialTangent (void) = 0;
00070   virtual const Matrix &getSectionFlexibility (void);
00071   virtual const Matrix &getInitialFlexibility (void);
00072   
00073   virtual double getRho(void);
00074   
00075   virtual int commitState (void) = 0;
00076   virtual int revertToLastCommit (void) = 0;
00077   virtual int revertToStart (void) = 0;
00078   
00079   virtual SectionForceDeformation *getCopy (void) = 0;
00080   virtual const ID &getType (void) = 0;
00081   virtual int getOrder (void) const = 0;
00082   
00083   virtual Response *setResponse(const char **argv, int argc,
00084                                 Information &info, OPS_Stream &s);
00085   virtual int getResponse(int responseID, Information &info);
00086   virtual int getResponseSensitivity(int responseID, int gradNumber,
00087                                      Information &info);
00088   
00089   // AddingSensitivity:BEGIN //////////////////////////////////////////
00090   virtual const Vector &getStressResultantSensitivity(int gradNumber,
00091                                                       bool conditional);
00092   virtual const Vector &getSectionDeformationSensitivity(int gradNumber);
00093   virtual const Matrix &getSectionTangentSensitivity(int gradNumber);
00094   virtual const Matrix &getSectionFlexibilitySensitivity(int gradNumber);
00095   virtual const Matrix &getInitialTangentSensitivity(int gradNumber);
00096   virtual const Matrix &getInitialFlexibilitySensitivity(int gradNumber);
00097   virtual double getRhoSensitivity(int gradNumber);
00098   virtual int commitSensitivity(const Vector& sectionDeformationGradient,
00099                                 int gradNumber, int numGrads);
00100   // AddingSensitivity:END ///////////////////////////////////////////
00101   
00102  protected:
00103   Matrix *fDefault;     // Default flexibility matrix
00104   Vector *sDefault;
00105   
00106  private:
00107 
00108 };
00109 
00110 
00111 #endif

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