⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 material.hxx

📁 不错的国外的有限元程序代码,附带详细的manual,可以节省很多的底层工作.
💻 HXX
字号:
//   **********************
//   *** CLASS MATERIAL ***
//   **********************
 

#include "femcmpnn.hxx"
#include "dictionr.hxx"


class Material : public FEMComponent
/*
   This class implements a material in a finite element problem. A material
   is an attribute of a domain. It is usually also attribute of many elements.
 DESCRIPTION
   The attribute 'propertyDictionary' contains all the properties of a mate-
   rial, like its Young modulus, its mass density, its area or its thickness.
 TASK
   Returning a material property (method 'give') ;
*/
{
   private :
      Dictionary*    propertyDictionary ;

   public :
      Material (int n,Domain* d) : FEMComponent(n,d)
				  { propertyDictionary = new Dictionary() ;}
      ~Material ()                { delete propertyDictionary ;}

      double   give (char) ;
      char*    giveClassName (char* s)       { return strcpy(s,"Material") ;}
      void     instanciateYourself () ;
      void     printYourself () ;
} ;









⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -