FedeasMaterial.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.7 $
00022 // $Date: 2004/07/15 21:34:10 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/FedeasMaterial.h,v $
00024                                                                       
00025 // Written: MHS
00026 // Created: Jan 2001
00027 //
00028 // Description: This file contains the class definition for 
00029 // FedeasMaterial. FedeasMaterial provides a FORTRAN interface
00030 // for programming uniaxial material models, using the subroutine
00031 // interface from the FEDEAS ML1D library, developed by F.C. Filippou.
00032 //
00033 // For more information visit the FEDEAS web page:
00034 //    http://www.ce.berkeley.edu/~filippou/Research/fedeas.htm
00035 
00036 #ifndef FedeasMaterial_h
00037 #define FedeasMaterial_h
00038 
00039 #include <UniaxialMaterial.h>
00040 
00041 class FedeasMaterial : public UniaxialMaterial
00042 {
00043  public:
00044   FedeasMaterial(int tag, int classTag, int numHV, int numData);
00045   virtual ~FedeasMaterial();
00046   
00047   virtual int setTrialStrain(double strain, double strainRate = 0.0);
00048   virtual int setTrial(double strain, double &stress, double &tangent, double strainRate = 0.0);
00049   virtual double getStrain(void);
00050   virtual double getStress(void);
00051   virtual double getTangent(void);
00052   virtual double getInitialTangent(void) = 0;
00053   
00054   virtual int commitState(void);
00055   virtual int revertToLastCommit(void);    
00056   virtual int revertToStart(void);        
00057   
00058   virtual UniaxialMaterial *getCopy(void) = 0;
00059   
00060   virtual int sendSelf(int commitTag, Channel &theChannel);  
00061   virtual int recvSelf(int commitTag, Channel &theChannel, 
00062                        FEM_ObjectBroker &theBroker);    
00063   
00064   virtual void Print(OPS_Stream &s, int flag = 0);
00065   
00066  protected:
00067   // Invokes the FORTRAN subroutine
00068   virtual int invokeSubroutine(int ist);
00069   
00070   double *data;         // Material parameters array
00071   double *hstv;         // History array: first half is committed, second half is trial
00072   
00073   int numData;          // Number of material parameters
00074   int numHstv;          // Number of history variables
00075   
00076   double epsilonP;      // Committed strain
00077   double sigmaP;        // Committed stress
00078   double tangentP;      // Committed tangent
00079 
00080   double epsilon;       // Trial strain
00081   double sigma;         // Trial stress
00082   double tangent;       // Trial tangent
00083 
00084  private:
00085 };
00086 
00087 #endif

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