MinMaxMaterial.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.4 $
00022 // $Date: 2006/08/03 23:42:19 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/MinMaxMaterial.h,v $
00024                                                       
00025 // Written: MHS
00026 // Created: Aug 2001
00027 //
00028 // Description: This file contains the class definition for 
00029 // MinMaxMaterial.  MinMaxMaterial wraps a UniaxialMaterial
00030 // and imposes min and max strain limits.
00031 
00032 #ifndef MinMaxMaterial_h
00033 #define MinMaxMaterial_h
00034 
00035 #include <UniaxialMaterial.h>
00036 
00037 class MinMaxMaterial : public UniaxialMaterial
00038 {
00039   public:
00040     MinMaxMaterial(int tag, UniaxialMaterial &material, double min, double max); 
00041     MinMaxMaterial();
00042     ~MinMaxMaterial();
00043     
00044     const char *getClassType(void) {return "MinMaxMaterial";};
00045 
00046     int setTrialStrain(double strain, double strainRate = 0.0); 
00047     double getStrain(void);          
00048     double getStrainRate(void);
00049     double getStress(void);
00050     double getTangent(void);
00051     double getDampTangent(void);
00052     double getInitialTangent(void) {return theMaterial->getInitialTangent();}
00053 
00054     int commitState(void);
00055     int revertToLastCommit(void);    
00056     int revertToStart(void);        
00057 
00058     UniaxialMaterial *getCopy(void);
00059     
00060     int sendSelf(int commitTag, Channel &theChannel);  
00061     int recvSelf(int commitTag, Channel &theChannel, 
00062                  FEM_ObjectBroker &theBroker);    
00063     
00064     void Print(OPS_Stream &s, int flag =0);
00065     
00066   protected:
00067     
00068   private:
00069         UniaxialMaterial *theMaterial;
00070 
00071         double minStrain;
00072         double maxStrain;
00073 
00074         bool Tfailed;
00075         bool Cfailed;
00076 };
00077 
00078 
00079 #endif
00080 

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