www.pudn.com > Burger.rar > userBurger.h, change:2015-05-29,size:1466b


#pragma once 
#include "conmodel.h" 
 
 
class UserBurgerModel : public ConstitutiveModel { 
  public: 
    // static 
    enum ModelNum { mnUserBurgerModel = 202 }; 
    // Creators 
    EXPORT UserBurgerModel(bool bRegister=false); 
    // Accessors 
    virtual const char *Keyword(void) const { return("userburger"); } 
    virtual const char *Name(void) const { return("User-Burger-Creep"); } 
    virtual const char **Properties(void) const; 
    virtual const char **States(void) const; 
    virtual double GetProperty(unsigned ul) const; 
    virtual ConstitutiveModel  *Clone(void) const { return(new UserBurgerModel()); } 
 
    virtual double ConfinedModulus(void) const { return(dBulk + d4d3 * (dKshear > dMshear ? dKshear:dMshear)); } 
 
    virtual double ShearModulus(void) const { return(dMshear); } 
 
    virtual double BulkModulus(void) const { return(dBulk); } 
 
    virtual double SafetyFactor(void) const { return(10.0); } 
 
    virtual unsigned Version(void) const { return(3); }  // 08/02/05 -- MOO 
 
    // Manipulators 
    virtual void SetProperty(unsigned ul,const double &dVal); 
    virtual const char *Copy(const ConstitutiveModel *cm); 
    virtual const char *Initialize(unsigned ulDim,State *ps); 
    virtual const char *Run(unsigned ulDim,State *ps); 
    virtual const char *SaveRestore(ModelSaveObject *mso); 
  private: 
    double dBulk, dKshear,dMshear, dKviscosity, dMviscosity; 
    double dMekd[6];      
}; 
 
// EOF