nodload.cpp

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

CPP
29
字号
//   file NODLOAD.CXX
 
#include "nodload.hxx"
#include "loadtime.hxx"
#include "flotarry.hxx"
#include "timestep.hxx"


FloatArray*  NodalLoad :: ComputeValueAt (TimeStep* stepN)
   // Returns an array, the force induced at stepN by the receiver.
{
   FloatArray* force ;
   double      factor ;

   factor = this -> giveLoadTimeFunction() -> at(stepN->giveTime()) ;
   if (factor == 0.)
      return NULL ;
   else {
      force  = this -> giveComponentArray() ;
      return  force -> Times(factor) ;}
}







⌨️ 快捷键说明

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