PressureDependent_Elastic.h

Go to the documentation of this file.
00001 
00002 //   COPYLEFT (C): Woody's viral GPL-like license (by BJ):
00003 //                 ``This    source  code is Copyrighted in
00004 //                 U.S.,  for  an  indefinite  period,  and anybody
00005 //                 caught  using it without our permission, will be
00006 //                 mighty good friends of ourn, cause we don't give
00007 //                 a  darn.  Hack it. Compile it. Debug it. Run it.
00008 //                 Yodel  it.  Enjoy it. We wrote it, that's all we
00009 //                 wanted to do.''
00010 //
00011 //
00012 // COPYRIGHT (C):     :-))
00013 // PROJECT:           Object Oriented Finite Element Program
00014 // FILE:              
00015 // CLASS:             
00016 // MEMBER FUNCTIONS:
00017 //
00018 // MEMBER VARIABLES
00019 //
00020 // PURPOSE:           
00021 //
00022 // RETURN:
00023 // VERSION:
00024 // LANGUAGE:          C++
00025 // TARGET OS:         
00026 // DESIGNER:          Zhao Cheng, Boris Jeremic
00027 // PROGRAMMER:        Zhao Cheng, 
00028 // DATE:              Fall 2005
00029 // UPDATE HISTORY:    
00030 //
00032 //
00033 
00034 #ifndef PressureDependent_Elastic_H
00035 #define PressureDependent_Elastic_H
00036 
00037 #include "ElasticState.h"
00038 #include <math.h>
00039 
00040 //stresstensor zerostress;
00041 //straintensor zerostrain;
00042 
00043 class PressureDependent_Elastic : public ElasticState
00044 {  
00045   public:
00046   
00047   PressureDependent_Elastic(int E0_in, 
00048                             int v_in,
00049                             int m_in,
00050                             int p_ref_in,
00051                             int k_cut_in,
00052                             const stresstensor& initialStress = zerostress,
00053                             const straintensor& initialStrain = zerostrain);
00054     ElasticState* newObj();
00055     
00056     const BJtensor& getElasticStiffness(const MaterialParameter &MaterialParameter_in) const;
00057     
00058   private:
00059   
00060     double getE0(const MaterialParameter &MaterialParameter_in) const;
00061     double getv(const MaterialParameter &MaterialParameter_in) const;
00062     double getm(const MaterialParameter &MaterialParameter_in) const;
00063     double getp_ref(const MaterialParameter &MaterialParameter_in) const;
00064     double getk_cut(const MaterialParameter &MaterialParameter_in) const;       
00065      
00066   private:
00067   
00068     int E0_index;   
00069     int v_index;
00070     int m_index;
00071     int p_ref_index;
00072     int k_cut_index;
00073     
00074 };
00075 
00076 #endif
00077 

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