ElasticMaterial.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/09/05 22:20:15 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/ElasticMaterial.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ElasticMaterial_h
00027 #define ElasticMaterial_h
00028 
00029 // Written: fmk 
00030 // Created: 07/98
00031 // Revision: A
00032 //
00033 // Description: This file contains the class definition for 
00034 // ElasticMaterial. ElasticMaterial provides the abstraction
00035 // of an viscoelastic uniaxial material,
00036 // i.e. stress = E*strain + eta*strainrate
00037 //
00038 //
00039 // What: "@(#) ElasticMaterial.h, revA"
00040 
00041 
00042 #include <UniaxialMaterial.h>
00043 
00044 class ElasticMaterial : public UniaxialMaterial
00045 {
00046   public:
00047     ElasticMaterial(int tag, double E, double eta = 0.0);    
00048     ElasticMaterial();    
00049     ~ElasticMaterial();
00050 
00051     const char *getClassType(void) const {return "ElasticMaterial";};
00052 
00053     int setTrialStrain(double strain, double strainRate = 0.0); 
00054     int setTrial(double strain, double &stress, double &tangent, double strainRate = 0.0); 
00055     double getStrain(void) {return trialStrain;};
00056     double getStrainRate(void) {return trialStrainRate;};
00057     double getStress(void);
00058     double getTangent(void) {return E;};
00059     double getDampTangent(void) {return eta;};
00060     double getInitialTangent(void) {return E;};
00061 
00062     int commitState(void);
00063     int revertToLastCommit(void);    
00064     int revertToStart(void);        
00065 
00066     UniaxialMaterial *getCopy(void);
00067     
00068     int sendSelf(int commitTag, Channel &theChannel);  
00069     int recvSelf(int commitTag, Channel &theChannel, 
00070                  FEM_ObjectBroker &theBroker);    
00071     
00072     void Print(OPS_Stream &s, int flag =0);
00073     
00074     int setParameter(const char **argv, int argc, Parameter &param);
00075     int updateParameter(int parameterID, Information &info);
00076 
00077     // AddingSensitivity:BEGIN //////////////////////////////////////////
00078     int activateParameter(int parameterID);
00079     double getStressSensitivity(int gradNumber, bool conditional);
00080     double getInitialTangentSensitivity(int gradNumber);
00081     int commitSensitivity(double strainGradient, int gradNumber, int numGrads);
00082     // AddingSensitivity:END ///////////////////////////////////////////
00083 
00084   protected:
00085     
00086   private:
00087     double trialStrain;
00088     double trialStrainRate;
00089     double E;
00090     double eta;
00091 
00092     // AddingSensitivity:BEGIN //////////////////////////////////////////
00093     int parameterID;
00094     // AddingSensitivity:END ///////////////////////////////////////////
00095 };
00096 
00097 
00098 #endif
00099 

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