PlaneStressMaterial.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.4 $
00022 // $Date: 2003/02/14 23:01:25 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/PlaneStressMaterial.h,v $
00024 
00025 // Ed "C++" Love
00026 //
00027 // Generic Plane Stress Material
00028 //
00029 
00030 
00031 #include <stdio.h> 
00032 #include <stdlib.h> 
00033 #include <math.h> 
00034 
00035 #include <Vector.h>
00036 #include <Matrix.h>
00037 #include <ID.h> 
00038 #include <NDMaterial.h>
00039 
00040 
00041 
00042 class PlaneStressMaterial: public NDMaterial{
00043 
00044 //-------------------Declarations-------------------------------
00045 
00046   public : 
00047 
00048     //null constructor
00049     PlaneStressMaterial( ) ;
00050 
00051     //full constructor
00052     PlaneStressMaterial(   int    tag, 
00053                            NDMaterial &the3DMaterial ) ;
00054 
00055 
00056     //destructor
00057     virtual ~PlaneStressMaterial( ) ;
00058 
00059     //make a clone of this material
00060     NDMaterial *getCopy( ) ;
00061     NDMaterial *getCopy( const char *type ) ;
00062 
00063     //send back order of strain in vector form
00064     int getOrder( ) const ;
00065 
00066     //send back order of strain in vector form
00067     const char *getType( ) const ;
00068 
00069     //swap history variables
00070     int commitState( ) ; 
00071 
00072     //revert to last saved state
00073     int revertToLastCommit( ) ;
00074 
00075     //revert to start
00076     int revertToStart( ) ;
00077 
00078     //get the strain 
00079     int setTrialStrain( const Vector &strainFromElement ) ;
00080 
00081     //send back the strain
00082     const Vector& getStrain( ) ;
00083 
00084     //send back the stress 
00085     const Vector& getStress( ) ;
00086 
00087     //send back the tangent 
00088     const Matrix& getTangent( ) ;
00089 
00090     //density
00091     double getRho( ) ;
00092 
00093     //print out data
00094     void Print( OPS_Stream &s, int flag ) ;
00095 
00096     int sendSelf(int commitTag, Channel &theChannel);
00097     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00098 
00099 
00100   private :
00101 
00102     //out of plane strains .. trial and committed
00103     double Tstrain22 ;
00104     double Tgamma02 ;
00105     double Tgamma12 ; 
00106     double Cstrain22 ;
00107     double Cgamma02 ;
00108     double Cgamma12 ; 
00109 
00110     NDMaterial *theMaterial ;  //pointer to three dimensional material
00111 
00112     Vector strain ;
00113 
00114     static Vector stress ;
00115 
00116     static Matrix tangent ;
00117 
00118     int indexMap( int i ) ;
00119 
00120 } ; //end of PlaneStressMaterial declarations
00121 
00122 
00123 
00124 
00125 

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