ParallelMaterial.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/ParallelMaterial.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ParallelMaterial_h
00027 #define ParallelMaterial_h
00028 
00029 // Written: fmk 
00030 // Created: 07/98
00031 // Revision: A
00032 //
00033 // Description: This file contains the class definition for 
00034 // ParallelMaterial. ParallelMaterial is an aggregation
00035 // of UniaxialMaterial objects all considered acting in parallel.
00036 //
00037 // What: "@(#) ParallelMaterial.h, revA"
00038 
00039 #include <UniaxialMaterial.h>
00040 
00041 class ParallelMaterial : public UniaxialMaterial
00042 {
00043   public:
00044     ParallelMaterial(int tag, 
00045                      int numMaterial, 
00046                      UniaxialMaterial **theMaterials);
00047     ParallelMaterial();
00048     ~ParallelMaterial();
00049 
00050     const char *getClassType(void) const {return "ParallelMaterial";};
00051 
00052     int setTrialStrain(double strain, double strainRate = 0.0); 
00053     double getStrain(void);          
00054     double getStrainRate(void);
00055     double getStress(void);
00056     double getTangent(void);
00057     double getDampTangent(void);
00058     double getInitialTangent(void);
00059 
00060     int commitState(void);
00061     int revertToLastCommit(void);    
00062     int revertToStart(void);        
00063 
00064     UniaxialMaterial *getCopy(void);
00065     
00066     int sendSelf(int commitTag, Channel &theChannel);  
00067     int recvSelf(int commitTag, Channel &theChannel, 
00068                  FEM_ObjectBroker &theBroker);    
00069     
00070     void Print(OPS_Stream &s, int flag =0);
00071 
00072     Response *setResponse(const char **argv, int argc, 
00073                           Information &matInformation, 
00074                           OPS_Stream &theOutputStream);
00075     int getResponse(int responseID, Information &matInformation);
00076 
00077   protected:
00078     
00079   private:
00080     double trialStrain;
00081     double trialStrainRate;
00082     int numMaterials;   // the number of UniaxialMaterials in the aggregation
00083     UniaxialMaterial **theModels; // an array of pointers to the UniaxialMaterials
00084 };
00085 
00086 
00087 #endif
00088 

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