CableMaterial.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 $: 2001/07/16 08:23:22 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/CableMaterial.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef CableMaterial_h
00027 #define CableMaterial_h
00028 
00029 // Written: Charles Chadwell
00030 // Created: 07/01
00031 //
00032 // Description: This file contains the class definition for 
00033 // CableMaterial. CableMaterial provides the abstraction
00034 // of an elastic uniaxial material,
00035 //
00036 // The input parameters are the Prestress, E, Effective Self Weight (gravity component of 
00037 // Weight per volume transverse to the cable), and Length of the cable.
00038 //
00039 // The cable Force Displacement is converted to Stress Strain material for use 
00040 // with the truss element.  The stress strain ranges from slack (large strain at zero 
00041 // stress) to taught (linear with modulus E).  The material has no history and is not
00042 // path dependent.
00043 //
00044 //
00045 // What: "@(#) CableMaterial.h, revA"
00046 
00047 
00048 #include <UniaxialMaterial.h>
00049 
00050 class CableMaterial : public UniaxialMaterial
00051 {
00052   public:
00053     CableMaterial(int tag, double Prestress, double E, double unitWeightEff, double L_Element);    
00054     CableMaterial();    
00055     ~CableMaterial();
00056 
00057     const char *getClassType(void) const {return "CableMaterial";};
00058 
00059     int setTrialStrain(double strain, double strainRate = 0.0); 
00060     int setTrial (double strain, double &stress, double &tangent, double strainRate = 0.0);
00061     double getStrain(void) {return trialStrain;};
00062     double getStress(void);
00063     double getTangent(void);
00064     double getInitialTangent(void) {return 1.0e-8;}; 
00065 
00066     int commitState(void);
00067     int revertToLastCommit(void);    
00068     int revertToStart(void);        
00069 
00070     UniaxialMaterial *getCopy(void);
00071     
00072     int sendSelf(int commitTag, Channel &theChannel);  
00073     int recvSelf(int commitTag, Channel &theChannel, 
00074                  FEM_ObjectBroker &theBroker);    
00075     
00076     void Print(OPS_Stream &s, int flag =0);
00077     
00078     //int setParameter(const char **argv, int argc, Information &info);
00079     //int updateParameter(int parameterID, Information &info);
00080 
00081   protected:
00082     
00083   private:
00084 
00085     double Ps;
00086     double E;
00087     double Mue;
00088     double L;
00089     double trialStrain;
00090     
00091     double evalStress(double stress);
00092     double abs(double value);
00093 
00094     double trialStress;      // current trial stress
00095     double trialTangent;     // current trial tangent
00096 };
00097 
00098 
00099 #endif
00100 

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