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

📄 surfload.cpp

📁 Finite element program for mechanical problem. It can solve various problem in solid problem
💻 CPP
字号:
#include "surfload.h"#include "intools.h"#include "mathem.h"#include <math.h>/**  This constructor initializes data to the zero values*/surfload::surfload(){  f = NULL;  nlc  = 0;  lgcs = 0;  ndir = 0;}/**  This destructor deallocates used memory*/surfload::~surfload(){  delete [] f;}/**  This function reads data about surface load from the text file given by the parameter in  Parameters :  @param in - pointer to the opned text file  @param lc - total number of load cases  Returns :  @retval 0 - on succes*/long surfload::read(FILE *in, long lc){  getlong(in, nlc);  if ((nlc < 1) || (nlc > lc))    return(2);  long i;  getlong(in, lgcs);  getlong(in, ndir);  f = new double [ndir];  for (i = 0; i < ndir; i++)    getdouble(in, f[i]);  return(0);}

⌨️ 快捷键说明

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