Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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.1.1.1 $
00022 // $Date: 2000/09/15 08:23:22 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/ElasticMaterial.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ElasticMaterial_h
00027 #define ElasticMaterial_h
00028 
00029 // File: ~/material/ElasticMaterial.h
00030 //
00031 // Written: fmk 
00032 // Created: 07/98
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for 
00036 // ElasticMaterial. ElasticMaterial provides the abstraction
00037 // of an viscoelastic uniaxial material,
00038 // i.e. stress = E*strain + eta*strainrate
00039 //
00040 //
00041 // What: "@(#) ElasticMaterial.h, revA"
00042 
00043 
00044 #include <UniaxialMaterial.h>
00045 
00054 class ElasticMaterial : public UniaxialMaterial
00055 {
00056   public:
00064     ElasticMaterial(int tag, double E, double eta = 0.0);    
00065 
00069  ElasticMaterial();    
00070 
00072     ~ElasticMaterial();
00073 
00074 
00076     int setTrialStrain(double strain, double strainRate = 0.0); 
00078     double getStrain(void) {return trialStrain;};
00080     double getStrainRate(void) {return trialStrainRate;};
00082     double getStress(void);
00084     double getTangent(void) {return E;};
00086     double getDampTangent(void) {return eta;};
00087 
00089     int commitState(void);
00091     int revertToLastCommit(void);    
00093     int revertToStart(void);        
00094 
00096     UniaxialMaterial *getCopy(void);
00097     
00099     int sendSelf(int commitTag, Channel &theChannel);  
00101     int recvSelf(int commitTag, Channel &theChannel, 
00102    FEM_ObjectBroker &theBroker);    
00103     
00105     void Print(ostream &s, int flag =0);
00106     
00108     int setParameter(char **argv, int argc, Information &info);
00110     int updateParameter(int parameterID, Information &info);
00111 
00112   protected:
00113     
00114   private:
00116     double commitStrain;
00118     double commitStrainRate;
00120     double trialStrain;
00122     double trialStrainRate;
00124     double E;
00126     double eta;
00127 };
00128 
00129 
00130 #endif
00131 
Copyright Contact Us