PlateFiberMaterial.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.6 $
00022 // $Date: 2006/08/04 18:18:38 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/PlateFiberMaterial.h,v $
00024 
00025 // Ed "C++" Love
00026 //
00027 // Generic Plate Fiber 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 class PlateFiberMaterial: public NDMaterial{
00041 
00042 //-------------------Declarations-------------------------------
00043 
00044   public : 
00045 
00046     //null constructor
00047     PlateFiberMaterial( ) ;
00048 
00049     //full constructor
00050     PlateFiberMaterial(   int    tag, 
00051                            NDMaterial &the3DMaterial ) ;
00052 
00053 
00054     //destructor
00055     virtual ~PlateFiberMaterial( ) ;
00056 
00057     virtual const char *getClassType(void) const {return "PlateFiberMAterial";};
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     const Matrix &getInitialTangent(void);
00090 
00091     //density
00092     double getRho( ) ;
00093 
00094     //print out data
00095     void Print( OPS_Stream &s, int flag ) ;
00096 
00097     int sendSelf(int commitTag, Channel &theChannel);
00098     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00099 
00100 
00101   private :
00102 
00103     //out of plane strain
00104     double Tstrain22 ;
00105     double Cstrain22 ;
00106 
00107     NDMaterial *theMaterial ;  //pointer to three dimensional material
00108 
00109     Vector strain ;
00110 
00111     static Vector stress ;
00112 
00113     static Matrix tangent ;
00114 
00115     int indexMap( int i ) ;
00116 
00117 } ; //end of PlateFiberMaterial declarations
00118 
00119 
00120 
00121 
00122 

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