1.7. pyHyp
pyHyp is a hyperbolic mesh generator that automatically generates two or three dimensional meshes around simple geometric configurations. pyHyp uses hyperbolic volume mesh marching schemes to extrude structured surface meshes into volume meshes. The basic idea is to start with an initial surface (or curve) corresponding to the geometry of interest and then grow or extrude the mesh in successive layers until it reaches a sufficient distance from the original surface. In the process, the entire space surrounding the geometry is meshed.
See also
pyHyp 依赖于 PETSc, CGNS Libarary, cgnsutilities, pyspline, pygeo。
1.7.1. cgnsutilities
说明文档参见 CGNS Utilities。 从 MDOLab cgnsutilities Github 官网下载 release 版本。
使用 cgnsutilities 路径下的 config/defaults/config.LINUX_GFORTRAN_OPENMPI.mk 作为配置文件, 将其复制并重命名到 config/config.mk 位置。
Open and edit the config file. You many have to adjust the CGNS_INCLUDE_FLAGS and CGNS_LINKER_FLAGS to match your installation of the CGNS library. You may also specify the C compiler with the CC variable and the flags for the C compiler with CFLAGS. The C-compiler is only used for the compiler f2py wrapper. The Fortran compiler may be specified with the FC variable and the corresponding flags with the FFLAGS variable. It has been tested with both Intel and GNU Fortran compilers.
cd ~/opt/
wget https://github.com/mdolab/cgnsutilities/archive/refs/tags/v2.7.1.tar.gz
tar -xvaf v2.7.1.tar.gz
cd cgnsutilities-2.7.1/
cp config/defaults/config.LINUX_GFORTRAN.mk config/config.mk
# Modify config.mk
vim config.mk
make
pip install .
1.7.2. pyspline
说明文档参见 pyspline。 从 MDOLab Github pyspline 官网 下载 release 版本。
cd ~/opt/
wget https://github.com/mdolab/pyspline/archive/refs/tags/v1.5.2.tar.gz
tar -xvaf v1.5.2.tar.gz
cd pyspline-1.5.2/
cp config/defaults/config.LINUX_GFORTRAN.mk config/config.mk
make
pip install .
1.7.3. pygeo
说明文档参见 pygeo。 从 MDOLab Github pygeo 官网 下载 release 版本。
Installation requires a working copy of the pyspline package, which requires a Fortran compiler. Because of this dependency, pyGeo is only supported on Linux.
cd ~/opt/
wget https://github.com/mdolab/pygeo/archive/refs/tags/v1.12.3.tar.gz
tar -xvaf v1.12.3.tar.gz
cd pygeo-1.12.3/
pip install .
测试安装结果
pip install .[testing]
testflo -v
1.7.4. pyHyp 安装
说明文档参见 pyHyp。 从 MDOLab Github pyHyp 官网 下载 release 版本。
cd ~/opt/
wget https://github.com/mdolab/pyhyp/archive/refs/tags/v2.6.1.tar.gz
tar -xvaf v2.6.1.tar.gz
cd pyhyp-2.6.1
cp config/defaults/config.LINUX_GFORTRAN_OPENMPI.mk config/config.mk
make
pip install .
测试安装结果
pip install .[testing]
chmod 777 ./tests/ref/get-ref-files.sh
./tests/ref/get-ref-files.sh
testflo -v