ElasticPPMaterial.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.6 $
00022 // $Date: 2006/08/03 23:42:19 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/ElasticPPMaterial.h,v $
00024                                                                         
00025 #ifndef ElasticPPMaterial_h
00026 #define ElasticPPMaterial_h
00027 
00028 // Written: fmk 
00029 // Created: 07/98
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for 
00033 // ElasticPPMaterial. ElasticPPMaterial provides the abstraction
00034 // of an elastic perfectly plastic uniaxial material, 
00035 //
00036 // What: "@(#) ElasticPPMaterial.h, revA"
00037 
00038 #include <UniaxialMaterial.h>
00039 
00040 class ElasticPPMaterial : public UniaxialMaterial
00041 {
00042   public:
00043     ElasticPPMaterial(int tag, double E, double eyp);    
00044     ElasticPPMaterial(int tag, double E, double eyp, double eyn, double ezero);    
00045     ElasticPPMaterial();    
00046 
00047     ~ElasticPPMaterial();
00048 
00049     const char *getClassType(void) const {return "ElasticPPMaterial";};
00050 
00051     int setTrialStrain(double strain, double strainRate = 0.0); 
00052     double getStrain(void);          
00053     double getStress(void);
00054     double getTangent(void);
00055 
00056     double getInitialTangent(void) {return E;};
00057 
00058     int commitState(void);
00059     int revertToLastCommit(void);    
00060     int revertToStart(void);    
00061 
00062     UniaxialMaterial *getCopy(void);
00063     
00064     int sendSelf(int commitTag, Channel &theChannel);  
00065     int recvSelf(int commitTag, Channel &theChannel, 
00066                  FEM_ObjectBroker &theBroker);    
00067     
00068     void Print(OPS_Stream &s, int flag =0);
00069     
00070   protected:
00071     
00072   private:
00073     double fyp, fyn;    // positive and negative yield stress
00074     double ezero;       // initial strain
00075     double E;           // elastic modulus
00076     double trialStrain; // trial strain
00077     double ep;          // plastic strain at last commit
00078 
00079     double trialStress;      // current trial stress
00080     double trialTangent;     // current trial tangent
00081 };
00082 
00083 
00084 #endif
00085 
00086 
00087 

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