-
从Gambit里面画好网格后,周期边界设为wall类型,导出网格,然后运行
FluentMeshToFoam
,转换成OpenFOAM 里面内部使用的格式。 -
更改
constant/polyMesh/boundary
文件中对应的周期patch,即从wall
类型改为cyclic
, 如下:right { type cyclic; inGroups 1(cyclic); nFaces 20; startFace 5572;
// matchTolerance 1;
从Gambit里面画好网格后,周期边界设为wall类型,导出网格,然后运行 FluentMeshToFoam
,转换成OpenFOAM 里面内部使用的格式。
更改constant/polyMesh/boundary
文件中对应的周期patch,即从wall
类型改为cyclic
, 如下:
right
{
type cyclic;
inGroups 1(cyclic);
nFaces 20;
startFace 5572;
// matchTolerance 1;
#include <vector> | |
class pwlInterp2 | |
{ | |
//priviate | |
private: | |
std::vector<double> xd, yd, zd; | |
int find_posizition(std::vector<double> xxd, double xi ) | |
{ |
##Make build dir | |
mkdir ~/build/gcc | |
cd ~/build/gcc | |
##Download packages | |
wget -c ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2 | |
wget -c ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2 | |
wget -c ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz | |
wget -c ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.14.tar.bz2 |