SeriesMaterial.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/03 23:42:19 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/SeriesMaterial.h,v $
00024 
00025 #ifndef SeriesMaterial_h
00026 #define SeriesMaterial_h
00027 
00028 // Written: MHS
00029 // Created: Sept 2000
00030 //
00031 // Description: This file contains the class definition for 
00032 // SeriesMaterial. SeriesMaterial is an aggregation
00033 // of UniaxialMaterial objects all considered acting in Series.
00034 
00035 #include <UniaxialMaterial.h>
00036 
00037 class SeriesMaterial : public UniaxialMaterial
00038 {
00039   public:
00040     SeriesMaterial(int tag, 
00041                           int numMaterial, 
00042                           UniaxialMaterial **theMaterials,
00043                           int maxIter = 1, double tol = 1.0e-10);
00044     SeriesMaterial();
00045     ~SeriesMaterial();
00046 
00047     const char *getClassType(void) const {return "SeriesMaterial";};
00048 
00049     int setTrialStrain(double strain, double strainRate = 0.0); 
00050     double getStrain(void);          
00051     double getStress(void);
00052     double getTangent(void);
00053     double getInitialTangent(void);
00054 
00055     int commitState(void);
00056     int revertToLastCommit(void);    
00057     int revertToStart(void);        
00058 
00059     UniaxialMaterial *getCopy(void);
00060     
00061     int sendSelf(int commitTag, Channel &theChannel);  
00062     int recvSelf(int commitTag, Channel &theChannel, 
00063                  FEM_ObjectBroker &theBroker);    
00064     
00065     void Print(OPS_Stream &s, int flag =0);
00066 
00067     Response *setResponse(const char **argv, int argc, 
00068                           Information &matInformation, 
00069                           OPS_Stream &theOutputStream);
00070                           
00071     int getResponse(int responseID, Information &matInformation);
00072     
00073   protected:
00074     
00075   private:
00076     double Tstrain;
00077     double Cstrain;
00078     double Tstress;
00079     double Cstress;
00080     double Ttangent;
00081     double Ctangent;
00082     
00083     int maxIterations;
00084     double tolerance;
00085     
00086     double *stress;
00087     double *flex;
00088     double *strain;
00089     
00090     bool initialFlag;
00091 
00092     int numMaterials;   // the number of UniaxialMaterials in the aggregation
00093     UniaxialMaterial **theModels; // an array of pointers to the UniaxialMaterials
00094 };
00095 
00096 
00097 #endif
00098 

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