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

📄 newmark.cpp

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


Newmark :: Newmark (int n, Domain* aDomain)
	 : TimeIntegrationScheme (n,aDomain)
   // Constructor.
{
   beta  = NULL ;
   gamma = NULL ;
}


double  Newmark :: giveBeta ()
   // Returns the beta coefficient of the receiver. Reads it if it does not
   // exist yet.
{
   if (beta)
      return *beta ;
   else {
      beta    = new double[1] ;
      (*beta) = this -> read("beta") ;
      return *beta ;}
}


double  Newmark :: giveGamma ()
   // Returns the gamma coefficient of the receiver. Reads it if it does not
   // exist yet.
{
   if (gamma)
      return *gamma ;
   else {
      gamma    = new double[1] ;
      (*gamma) = this -> read("gamma") ;
      return *gamma ;}
}


⌨️ 快捷键说明

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