c语言为什么运行不了程序,各位C语言大神,为什么我这个程序这么简单都运行不了啊,求指导! - 程序语言 - 小木虫 - 学术 科研 互动社区...

#include <iostream>

#include <cmath>

#include <cstdlib>

#include <iomanip>

#include <fstream>

#include <sstream>

#include <string>

#include <time.h>

using namespace std;

#define PAI 3.14159265

#define NP 1             // Number of Particles

#define stiffness 1.0

#define Q 19

#define NX 666

#define NY 666

#define NZ 1066

#define Ns  15

#define U 0.1

int e[Q][3] = {{0,0,0},{1,0,0},{-1,0,0},{0,-1,0},{0,0,1},{0,0,-1},{1,1,0},{-1,-1,0},{1,-1,0},{-1,1,0},{1,0,1},{-1,0,-1},{1,0,-1},{-1,0,1},{0,1,1},{0,-1,-1},{0,1,-1},{0,-1,1}};

double w[Q] = {1.0/3,1.0/18,1.0/18,1.0/18,1.0/18,1.0/18,1.0/18,1.0/36,1.0/36,1.0/36,1.0/36,1.0/36,1.0/36,1.0/36,1.0/36,1.0/36,1.0/36,1.0/36,1.0/36};

double Nt[Ns] = {1,6,12,17,21,25,27,27,27,25,21,17,12,6,1};

double ux[NX+1][NY+1][NZ+1],uy[NX+1][NY+1][NZ+1],uz[NX+1][NY+1][NZ+1],ux0[NX+1][NY+1][NZ+1],uy0[NX+1][NY+1][NZ+1],uz0[NX+1][NY+1][NZ+1];

double rho[NX+1][NY+1][NZ+1],F[NX+1][NY+1][NZ+1][Q],f[NX+1][NY+1][NZ+1][Q],vor[NX+1][NY+1][NZ+1], psi[NX+1][NY+1][NZ+1];

double ExternalForceX[NX+1][NY+1][NZ+1],ExternalForceY[NX+1][NY+1][NZ+1],ExternalForceZ[NX+1][NY+1][NZ+1],force[Q];

double Lx_p, Ly_p, Lz_p ,d_p, niu_p, g_p, dx_p, dt_p, tmax_p;

void main()

{

double a = 0.0;

double b = 0.0;

//******************************************************************

// Physical Unit

Lx_p  = 10.0;      // (cm)

Ly_p  = 10.0;     // (cm)

Lz_p  = 16.0;      // (cm)

d_p   = 0.15;    // particle diameter(cm

cout<<Lx_p<<endl;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值