DM04_YF.hGo 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 #ifndef DM04_YF_H 00034 #define DM04_YF_H 00035 00036 #include "YieldFunction.h" 00037 #include <math.h> 00038 00039 class DM04_YF : public YieldFunction 00040 { 00041 public: 00042 DM04_YF(int m_which_in, int index_m_in, 00043 int alpha_which_in, int index_alpha_in); 00044 ~DM04_YF(); 00045 00046 YieldFunction *newObj(); 00047 00048 double YieldFunctionValue(const stresstensor& Stre, 00049 const MaterialParameter &MaterialParameter_in) const; 00050 00051 const stresstensor& StressDerivative(const stresstensor& Stre, 00052 const MaterialParameter &MaterialParameter_in) const; 00053 00054 const stresstensor& InTensorDerivative(const stresstensor& Stre, 00055 const MaterialParameter &MaterialParameter_in, 00056 int which) const; 00057 00058 int getNumInternalScalar() const; 00059 int getNumInternalTensor() const; 00060 int getYieldFunctionRank() const; 00061 00062 private: 00063 double getm(const MaterialParameter &MaterialParameter_in) const; 00064 const stresstensor& getalpha(const MaterialParameter &MaterialParameter_in) const; 00065 00066 private: 00067 int m_which; 00068 int index_m; 00069 int alpha_which; 00070 int index_alpha; 00071 00072 static stresstensor DM04st; 00073 }; 00074 00075 00076 #endif 00077 |