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

📄 deadwght.cpp

📁 不错的国外的有限元程序代码,附带详细的manual,可以节省很多的底层工作.
💻 CPP
字号:
//   file DEADWGHT.CXX
 
#include "deadwght.hxx"
#include "element.hxx"
#include "timestep.hxx"
#include "loadtime.hxx"
#include "material.hxx"
#include "flotarry.hxx"


FloatArray*  DeadWeight :: ComputeForceOn (Element* elem, TimeStep* stepN)
   // Returns the force (and not just the acceleration) induced at stepN by
   // the receiver on the element 'elem'.
{
   double density,factor ;

   factor = this -> giveLoadTimeFunction() -> at(stepN->giveTime()) ;
   if (factor == 0.)
      return NULL ;
   else {
      density = elem -> giveMaterial() -> give('d') ;
      return  this -> giveComponentArray() -> Times(density*factor) ;}
}


⌨️ 快捷键说明

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