load.hxx
来自「不错的国外的有限元程序代码,附带详细的manual,可以节省很多的底层工作.」· HXX 代码 · 共 50 行
HXX
50 行
// ******************
// *** CLASS LOAD ***
// ******************
#ifndef load_hxx
#include "femcmpnn.hxx"
#include "domain.hxx"
#include "flotarry.hxx"
#include "dictionr.hxx"
class Load : public FEMComponent
/*
This abstract class is the superclass of the classes that implement loads
(body load, nodal load, boundary conditions, etc). A load is an attribute
of the domain. It is usually also attribute of several elements, nodes or
dofs.
DESCRIPTION
The load stores its values in 'componentArray'. The components of a load
at a given time step is the product of 'componentArray' by the value of
the function 'loadTimeFunction' at that time step.
TASK
Returning its components and its load-time function ;
*/
{
protected :
FloatArray* componentArray ;
int loadTimeFunction ;
public :
Load (int,Domain*) ; // constructor
virtual ~Load () { delete componentArray ;} // destructor
// computations
LoadTimeFunction* giveLoadTimeFunction () ;
FloatArray* giveComponentArray () ;
// definition of a load
Load* typed () ;
Load* ofType (char*) ;
char* giveClassName (char* s) {return strcpy(s,"Load");}
virtual void instanciateYourself () ;
} ;
#define load_hxx
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?