DamageModel.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/DamageModel.h,v $
00025                                                                         
00026 #ifndef DamageModel_h
00027 #define DamageModel_h         
00028                                                                
00029 // Written: Arash Altoontash, Gregory Deierlein
00030 // Created: 08/02
00031 // Revision: AA
00032 //
00033 // Description: This file contains the class definition for 
00034 // damage model Damage modelis a base class and 
00035 // thus no objects of it's type can be instantiated. It has pure virtual 
00036 // functions which must be implemented in it's derived classes. 
00037 
00038 #include <DomainComponent.h>
00039 #include <MovableObject.h>
00040 #include <TaggedObject.h>
00041 #include <Vector.h>
00042 
00043 
00044 #include <ErrorHandler.h>
00045 class Response;
00046 class DamageResponse;
00047 
00048 
00049 enum DamageType {
00050         NotSpecified,
00051         Force,
00052         Deformation,
00053         PlasticDefo,
00054         TotalEnergy,
00055         PlasticEnergy,
00056 };
00057 
00058 
00059 class DamageModel :  public TaggedObject, public MovableObject
00060 {
00061 public:
00062     DamageModel(int tag, int classTag);    
00063     virtual ~DamageModel();
00064 
00065     virtual int setTrial (Vector trialVector) = 0;
00066     virtual double getDamage (void) = 0;
00067     virtual double getPosDamage (void) = 0;
00068     virtual double getNegDamage (void) = 0;
00069     
00070     virtual int commitState (void) = 0;
00071     virtual int revertToLastCommit (void) = 0;    
00072     virtual int revertToStart (void) = 0;        
00073     
00074     virtual DamageModel *getCopy (void) = 0;
00075     
00076     virtual int setVariable(const char *argv)  { return -1; }
00077     virtual int getVariable(int variableID, double &info)  { return -1; }
00078     
00079     virtual int setParameter(char **argv, int argc, Information &theInformation);
00080     virtual int updateParameter(int responseID, Information &theInformation);   
00081     virtual Response *setResponse(char **argv, int argc, Information &info) = 0;
00082     virtual int getResponse(int responseID, Information &info) = 0;
00083     
00084     
00085     virtual int sendSelf(int commitTag, Channel &theChannel) = 0;  
00086     virtual int recvSelf(int commitTag, Channel &theChannel, 
00087                          FEM_ObjectBroker &theBroker) = 0;
00088     virtual void Print(OPS_Stream &s, int flag =0) =0;
00089     
00090   protected:
00091     
00092   private:
00093 
00094 };
00095 
00096 
00097 #endif

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