edu2d_twod2threed
所属分类:3D图形编程
开发工具:Others
文件大小:245KB
下载次数:14
上传日期:2016-12-09 16:03:54
上 传 者:
volunteerwfn
说明: CFD 网格生成源代码,先生成2D,然后生成3D
(CFD mesh generation source code, first generate 2D mesh, then convert 3D)
文件列表:
3d.jpeg (173768, 2016-12-07)
edu2d_twod_rankine_half_body_v1.f90 (26886, 2016-12-01)
edu2d_twod2threed_v1-fangnian wang.f90 (27458, 2016-12-07)
quad_rankine_input (18, 2016-12-01)
tria_rankine_input (18, 2016-12-01)
2d.jpeg (133413, 2016-12-07)
######################################################################
# Running edu2d_twod2threed code.
#
# Follow the steps to run the code.
# (Or just run this script by typing "source readme_v1.txt".)
#
# NOTE: The following is for intel fortran. If you use other compiler,
# replace "gfortran" by your compiler (ifort, g95, etc).
# But there's currently an issue with edu2d_twod2threed_v1.f90
# if compiled by gfortran. Sorry, I don't know how to fix it
# at the moment.
#
# Katate Masatsuka, http://www.cfdbooks.com
#####################################################################
#####################################################################
# 1. Generate an sample 2D grid by the grid generation code
# for a flow over Rankines' oval in 2D.
#####################################################################
ifort -o edu2d_twod_rankine edu2d_twod_rankine_half_body_v1.f90
./edu2d_twod_rankine
# It generates the following files:
# - quad_rankine.grid
# - quad_rankine_grid_tecplot.dat
# - tria_rankine.grid
# - tria_rankine_grid_tecplot.dat
# - project.bcmap
#
# Let's copy the project.bcmap for quad and tria grids.
cp project.bcmap quad_rankine.bcmap
cp project.bcmap tria_rankine.bcmap
#####################################################################
# 2. 3D hexahedral grid from the 2D quad grid.
#
# Input: quad_rankine.grid
# quad_rankine.bcmap
#####################################################################
# Compile the program.
ifort -o edu2d_twod2threed edu2d_twod2threed_v1.f90
# Input: quad_rankine.grid
# quad_rankine.bcmap
# Run the program.
./edu2d_twod2threed < quad_rankine_input
# Output: the following files for a 3D hex grid.
# - quad_rankine_3d.ugrid
# - quad_rankine_3d_tec.dat
# - quad_rankine_3d.mapbc
#####################################################################
# 3. 3D prismatic grid from the 2D tria grid.
#####################################################################
# Input: tria_rankine.grid
# tria_rankine.bcmap
# Run the program.
./edu2d_twod2threed < tria_rankine_input
# Output: the following files for a 3D prismatic grid.
# - tria_rankine_3d.ugrid
# - tria_rankine_3d_tec.dat
# - tria_rankine_3d.mapbc
近期下载者:
相关文件:
收藏者: