ENTMaterial.hGo 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:19:04 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/ENTMaterial.h,v $ 00024 00025 00026 #ifndef ENTMaterial_h 00027 #define ENTMaterial_h 00028 00029 // Written: fmk 00030 // Created: 07/98 00031 // Revision: A 00032 // 00033 // Description: This file contains the class definition for 00034 // ENTMaterial. ENTMaterial provides the abstraction 00035 // of an viscoelastic uniaxial material, 00036 // i.e. stress = E*strain + eta*strainrate 00037 // 00038 // 00039 // What: "@(#) ENTMaterial.h, revA" 00040 00041 #include <UniaxialMaterial.h> 00042 00043 class ENTMaterial : public UniaxialMaterial 00044 { 00045 public: 00046 ENTMaterial(int tag, double E); 00047 ENTMaterial(); 00048 ~ENTMaterial(); 00049 00050 const char *getClassType(void) const {return "ENTMaterial";}; 00051 00052 int setTrialStrain(double strain, double strainRate = 0.0); 00053 double getStrain(void); 00054 double getStress(void); 00055 double getTangent(void); 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 int setParameter(const char **argv, int argc, Parameter ¶m); 00071 int updateParameter(int parameterID, Information &info); 00072 00073 protected: 00074 00075 private: 00076 double E; 00077 double trialStrain; 00078 }; 00079 00080 00081 #endif 00082 |