HystereticEnergy.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 
00022 // $Revision: 1.1 $
00023 // $Date: 2004/09/01 03:54:28 $
00024 // $Source: /usr/local/cvs/OpenSees/SRC/damage/HystereticEnergy.h,v $
00025                                                                         
00026 #ifndef HystereticEnergy_h
00027 #define HystereticEnergy_h         
00028                                                                
00029 // Written: Arash Altoontash, Gregory Deierlein
00030 // Created: 06/03
00031 // Revision: AA
00032 //
00033 // Description: This file contains the class definition for 
00034 // Cimbined damage model. It is a subclass of DamageModel
00035 //
00036 
00037 #include <ErrorHandler.h>
00038 #include <DamageModel.h>
00039 
00040 class DamageResponse;
00041 
00042 
00043 class HystereticEnergy : public DamageModel
00044 {
00045   public:
00046     HystereticEnergy(int tag, double Etot , double Cpow);
00047     HystereticEnergy();  
00048     ~HystereticEnergy();
00049     
00050     int setTrial ( Vector trialVector );
00051     int setTrial (); 
00052     
00053     int setInputResponse ( Element *elem , const char **argv , int argc, int ndof );
00054     
00055     double getDamage(void);
00056     double getPosDamage (void);
00057     double getNegDamage (void);
00058     
00059     int commitState(void);
00060     int revertToLastCommit (void);
00061     int revertToStart (void);
00062     
00063     DamageModel *getCopy (void);
00064     
00065     int setVariable(const char *argv);
00066     int getVariable(int variableID, double &info);
00067     
00068     int setParameter(char **argv, int argc, Information &eleInformation);
00069     int updateParameter(int responseID, Information &eleInformation);   
00070     
00071     Response *setResponse(char **argv, int argc, Information &info);
00072     int getResponse(int responseID, Information &info);
00073     
00074     int sendSelf(int commitTag, Channel &theChannel);  
00075     int recvSelf(int commitTag, Channel &theChannel, 
00076                  FEM_ObjectBroker &theBroker);
00077     void Print(OPS_Stream &s, int flag =0);    
00078     
00079     // method for this damage model to update itself according to its new parameters
00080     void update(void) {return;}
00081     
00082  protected:
00083     
00084  private:
00085     
00086     double Etotal,Cpower;
00087     
00088     // Trial step
00089     double TrialInfo[8];
00090     double CommitInfo[8];
00091     double LastCommitInfo[8];
00092 };
00093 
00094 
00095 #endif

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