CC_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 CC_YF_H 00034 #define CC_YF_H 00035 00036 #include "YieldFunction.h" 00037 #include <math.h> 00038 00039 class CC_YF : public YieldFunction 00040 { 00041 public: 00042 CC_YF(int M_which_in = -1, int index_M_in = 0, 00043 int p0_which_in = -1, int index_p0_in = 0); 00044 ~CC_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 double InScalarDerivative(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 double getP0(const MaterialParameter &MaterialParameter_in) const; 00065 00066 private: 00067 int M_which; 00068 int index_M; 00069 int p0_which; 00070 int index_p0; 00071 00072 private: 00073 static stresstensor CCst; 00074 }; 00075 00076 #endif 00077 |