ViscousMaterial.hGo 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.5 $ 00022 // $Date: 2006/08/03 23:42:19 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/ViscousMaterial.h,v $ 00024 00025 // Written: Mehrdad Sasani 00026 // Created: June 2000 00027 // Revision: A 00028 // 00029 // Description: This file contains the class interface for 00030 // ViscousMaterial. ViscousMaterial defines a force(F)-velocity(v) 00031 // relationship of the form F = C*pow(v,a), where C is a prescribed 00032 // constant and a is a real number. 00033 00034 #ifndef ViscousMaterial_h 00035 #define ViscousMaterial_h 00036 00037 #include <UniaxialMaterial.h> 00038 00039 class ViscousMaterial : public UniaxialMaterial 00040 { 00041 public: 00042 ViscousMaterial(int tag, double C, double Alpha); 00043 ViscousMaterial(); 00044 ~ViscousMaterial(); 00045 00046 const char *getClassType(void) const {return "ViscousMaterial";}; 00047 00048 int setTrialStrain(double velocity, double strainRate = 0.0); 00049 double getStrain(void); 00050 double getStrainRate(void); 00051 double getStress(void); 00052 00053 double getTangent(void); 00054 double getInitialTangent(void); 00055 double getDampTangent(void); 00056 00057 00058 int commitState(void); 00059 int revertToLastCommit(void); 00060 int revertToStart(void); 00061 00062 UniaxialMaterial *getCopy(void); 00063 00064 int sendSelf(int commitTag, Channel &theChannel); 00065 int recvSelf(int commitTag, Channel &theChannel, 00066 FEM_ObjectBroker &theBroker); 00067 00068 void Print(OPS_Stream &s, int flag =0); 00069 00070 protected: 00071 00072 private: 00073 double trialRate; 00074 double C; 00075 double Alpha; 00076 }; 00077 00078 00079 #endif 00080 |