直接看图:

i=9和j=29代表的是物面网格两个方向的数据点个数。

程序实现

ofstream out3("船体表面压力系数.dat");
out3 << "Variables=\"x\" \"y\" \"z\" \"p\"" << endl;
out3 << "Zone i=" << NY << " j=" << NX << endl;
for (int i = 0; i < NB; i++)
	{
		out3 << fixed << setw(w_char) << setprecision(n_deci) << control_point[0][i] << fixed << setw(w_char) << setprecision(n_deci) << control_point[1][i] << fixed << setw(w_char) << setprecision(n_deci) << control_point[2][i] << fixed << setw(w_char) << setprecision(n_deci) << Cpi[i] << endl;
	}
out3.close();

tecplot处理结果

Logo

鸿蒙生态一站式服务平台。

更多推荐