ElasticState.cpp

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 ElasticState_CPP
00035 #define ElasticState_CPP
00036 
00037 #include "ElasticState.h"
00038 
00039 BJtensor ElasticState::ElasticStiffness(4, def_dim_4, 0.0);
00040 const stresstensor ElasticState::zerostress(0.0);
00041 const straintensor ElasticState::zerostrain(0.0);
00042 
00044 ElasticState::ElasticState(const stresstensor &initialStress, const straintensor &initialStrain)
00045 : Stress(initialStress), Strain(initialStrain)
00046 {
00047 
00048 }
00049 
00051 ElasticState::ElasticState(const stresstensor &initialStress)
00052 : Stress(initialStress)
00053 {
00054     straintensor ZeroStra;
00055     Strain = ZeroStra;
00056 }
00057 
00059 ElasticState::ElasticState()
00060 {
00061     stresstensor ZeroStre;
00062     Stress = ZeroStre;
00063     
00064     straintensor ZeroStra;
00065     Strain = ZeroStra;
00066 }
00067 
00069 stresstensor ElasticState::getStress() const 
00070 { 
00071     return Stress;
00072 }
00073 
00075 straintensor ElasticState::getStrain() const 
00076 { 
00077     return Strain;
00078 }
00079 
00081 int ElasticState::setStress(const stresstensor &Stre_in) 
00082 {
00083     Stress = Stre_in;
00084     
00085     return 0;
00086 }
00087 
00089 int ElasticState::setStrain(const straintensor &Stra_in) 
00090 {
00091     Strain = Stra_in;
00092     
00093     return 0;
00094 }
00095 
00096 #endif

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