GenericSection1d.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: 2006/09/05 21:31:56 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/GenericSection1d.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef GenericSection1d_h
00027 #define GenericSection1d_h
00028 
00029 // Written: MHS
00030 // Created: Apr 2000
00031 // Revision: A
00032 //
00033 // Description: This file contains the class definition for GenericSection1d.
00034 //
00035 // What: "@(#) GenericSection1d.h, revA"
00036 
00037 #include <SectionForceDeformation.h>
00038 
00039 #include <Vector.h>
00040 #include <Matrix.h>
00041 #include <ID.h>
00042 
00043 class Information;
00044 class UniaxialMaterial;
00045 class MovableObject;
00046 
00047 class GenericSection1d : public SectionForceDeformation
00048 {
00049   public:
00050     GenericSection1d (int tag, UniaxialMaterial& m, int code);
00051     GenericSection1d ();
00052 
00053     ~GenericSection1d ();
00054 
00055     const char *getClassType(void) const {return "GenericSection1d";};
00056 
00057     int setTrialSectionDeformation (const Vector&);
00058     const Vector &getSectionDeformation (void);
00059 
00060     const Vector &getStressResultant (void);
00061     const Matrix &getSectionTangent (void);
00062     const Matrix &getInitialTangent (void);
00063     const Matrix &getSectionFlexibility (void);
00064     const Matrix &getInitialFlexibility(void);
00065     
00066     int commitState (void);
00067     int revertToLastCommit (void);
00068     int revertToStart (void);
00069     
00070     SectionForceDeformation *getCopy (void);
00071     const ID &getType (void);
00072     int getOrder (void) const;
00073     
00074     int sendSelf (int commitTag, Channel &theChannel);
00075     int recvSelf (int commitTag, Channel &theChannel,
00076                   FEM_ObjectBroker &theBroker);
00077     
00078     void Print (OPS_Stream &s, int flag = 0);
00079 
00080     // AddingSensitivity:BEGIN //////////////////////////////////////////
00081     int setParameter(const char **argv, int argc, Parameter &param);
00082     const Vector &getStressResultantSensitivity(int gradNumber, bool conditional);
00083     int   commitSensitivity(const Vector &dedh, int gradNumber, int numGrads);
00084     // AddingSensitivity:END ///////////////////////////////////////////
00085     
00086  protected:
00087 
00088  private:
00089     UniaxialMaterial *theModel;
00090     int code;
00091 
00092     static Vector s;
00093     static Matrix ks;
00094     static ID c;
00095 };
00096 
00097 
00098 #endif

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