ElasticIsotropicMaterial.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.13 $
00022 // $Date: 2006/09/05 21:21:52 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/ElasticIsotropicMaterial.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ElasticIsotropicMaterial_h
00027 #define ElasticIsotropicMaterial_h
00028 
00029 // File: ~/material/ElasticIsotropicMaterial.h
00030 //
00031 // Written: MHS
00032 // Created: Feb 2000
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for ElasticIsotropicMaterialModel.
00036 // ElasticIsotropicMaterialModel is an abstract base class and thus no objects of it's type
00037 // can be instantiated. It has pure virtual functions which must be
00038 // implemented in it's derived classes. 
00039 //
00040 // What: "@(#) ElasticIsotropicMaterial.h, revA"
00041 
00042 #include <NDMaterial.h>
00043 
00044 #include <Matrix.h>
00045 #include <Vector.h>
00046 #include <ID.h>
00047 
00048 #include <Tensor.h>
00049 #include <stresst.h>
00050 #include <straint.h>
00051 
00052 
00053 class ElasticIsotropicMaterial : public NDMaterial
00054 {
00055   public:
00056     // Only called by subclasses to pass their tags to NDMaterialModel
00057     ElasticIsotropicMaterial (int tag, int classTag, double E, double nu, double rho = 0.0);
00058 
00059     // Called by clients
00060     ElasticIsotropicMaterial (int tag, double E, double nu, double rho = 0.0);
00061 
00062     // For parallel processing
00063     ElasticIsotropicMaterial (void);
00064 
00065     virtual ~ElasticIsotropicMaterial (void);
00066 
00067     virtual const char *getClassType(void) const {return "ElasticIsotropicMaterial";};
00068 
00069     virtual double getRho( ) ;
00070 
00071     virtual int setTrialStrain (const Vector &v);
00072     virtual int setTrialStrain (const Vector &v, const Vector &r);
00073     virtual int setTrialStrainIncr (const Vector &v);
00074     virtual int setTrialStrainIncr (const Vector &v, const Vector &r);
00075     virtual const Matrix &getTangent (void);
00076     virtual const Matrix &getInitialTangent (void);
00077     virtual const Vector &getStress (void);
00078     virtual const Vector &getStrain (void);
00079 
00080     int setTrialStrain (const Tensor &v);
00081     int setTrialStrain (const Tensor &v, const Tensor &r);
00082     int setTrialStrainIncr (const Tensor &v);
00083     int setTrialStrainIncr (const Tensor &v, const Tensor &r);
00084     const Tensor &getTangentTensor (void);
00085     const stresstensor& getStressTensor (void);
00086     const straintensor& getStrainTensor (void);
00087     const straintensor& getPlasticStrainTensor (void);
00088     
00089     
00090     virtual int commitState (void);
00091     virtual int revertToLastCommit (void);
00092     virtual int revertToStart (void);
00093     
00094     // Create a copy of material parameters AND state variables
00095     // Called by GenericSectionXD
00096     virtual NDMaterial *getCopy (void);
00097 
00098     // Create a copy of just the material parameters
00099     // Called by the continuum elements
00100     virtual NDMaterial *getCopy (const char *type);
00101 
00102     // Return a string indicating the type of material model
00103     virtual const char *getType (void) const;
00104 
00105     virtual int getOrder (void) const;
00106     
00107     virtual int sendSelf(int commitTag, Channel &theChannel);  
00108     virtual int recvSelf(int commitTag, Channel &theChannel, 
00109                  FEM_ObjectBroker &theBroker);    
00110     
00111     void Print(OPS_Stream &s, int flag = 0);
00112 
00113     virtual int setParameter(const char **argv, int argc, Parameter &param);
00114     virtual int updateParameter(int parameterID, Information &info);
00115 
00116   protected:
00117     double E;   // Elastic modulus
00118     double v;   // Poisson ratio
00119     double rho ; //mass per unit 3D volume
00120 
00121   private:
00122     // Uncomment when this material model is "sensitized"
00123     //int parameterID;
00124 };
00125 
00126 
00127 #endif

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