loadtime.hxx

来自「不错的国外的有限元程序代码,附带详细的manual,可以节省很多的底层工作.」· HXX 代码 · 共 53 行

HXX
53
字号
//   ********************************
//   *** CLASS LOAD-TIME FUNCTION ***
//   ********************************
 

#ifndef loadtime_hxx

#include "femcmpnn.hxx"
#include "domain.hxx"


class LoadTimeFunction : public FEMComponent
/*
   This abstract class is the superclass of the classes that implement
   functions  y = f(t) , where t is the time. These function are used for
   weighing the loads (see TJR Hughes, "The Finite Element Method", p 677).
   A load-time function is attribute of the domain. It is usually also at-
   tribute of one or more loads.
 DESCRIPTION
   The parameters which describe the function are defined by the subclasses
   of this class.
 TASK
   Returning the value 'y' at any abscissa 't'.
*/
{
   public :
      LoadTimeFunction (int i,Domain* d) : FEMComponent(i,d) {} 
      virtual ~LoadTimeFunction ()  {}

      // computations 
      virtual double     at (double)            { return 0. ;}

      // definition of a function
      LoadTimeFunction*  typed () ;
      LoadTimeFunction*  ofType (char*) ;
      char*              giveClassName (char* s) 
                                     { return strcpy(s,"LoadTimeFunction") ;}
      virtual void       instanciateYourself () {}

} ;

#define loadtime_hxx
#endif









⌨️ 快捷键说明

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