YieldFunction.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 YieldFunction_H 00034 #define YieldFunction_H 00035 00036 #include <stresst.h> 00037 #include "MaterialParameter.h" 00038 00039 class YieldFunction 00040 { 00041 public: 00042 00043 virtual ~YieldFunction() {}; 00044 virtual YieldFunction *newObj() = 0; 00045 00046 virtual double YieldFunctionValue(const stresstensor &Stre, 00047 const MaterialParameter &MaterialParameter_in) const = 0; 00048 00049 virtual const stresstensor& StressDerivative(const stresstensor &Stre, 00050 const MaterialParameter &MaterialParameter_in) const = 0; 00051 00052 virtual double InScalarDerivative(const stresstensor& Stre, 00053 const MaterialParameter &MaterialParameter_in, 00054 int which) const; 00055 00056 virtual const stresstensor& InTensorDerivative(const stresstensor& Stre, 00057 const MaterialParameter &MaterialParameter_in, 00058 int which) const; 00059 00060 //virtual int getTensionOrCompressionType() const; 00061 00062 virtual int getNumInternalScalar() const = 0; 00063 virtual int getNumInternalTensor() const = 0; 00064 virtual int getYieldFunctionRank() const = 0; 00065 00066 }; 00067 00068 00069 #endif 00070 |