当前位置: 首页 > 工具软件 > Gmsh > 使用案例 >

How to Install Gmsh&Neper

谷梁楷
2023-12-01

First of all, you need to prepare a Linux system, such as Ubuntu.

If you already have Windows 10 or 11 , you can install WSL directly on it, which will be much more convenient for you. 



Before installing, you need to install gcc, Openssl, and CMake.

#Install gcc
$ sudo apt-get update
$ sudo apt install build-essential
$ sudo apt install gfortran
 
# install Openssl
---download and extract the sourcesode from---
https://github.com/openssl/openssl
$ cd openssl -master
$ ./configure
$ sudo make			
$ sudo make install
 
# install CMake
- - -download and extract the sourcesode from - - -
https://cmake.org/download/
$ cd cmake-x.x.x (your version)
$ ./bootstrap
$ sudo make
$ sudo make install

How to Install Gmsh.

#Install dependancies
$ sudo apt-get install libgmp3-dev
$ sudo apt-get install libhdf5-serial-dev
$ sudo apt-get install libfltk1.3-dev
$ sudo apt-get install xorg openbox
$ sudo apt-get install libpng-dev
$ sudo apt-get install povray
$ sudo apt-get install libblas-dev liblapack-dev
 
#Install freetype
-- -download and extract the sourcecode from- - -
https://www.freetype.org/
$ cd freetype-x.x.x (your version)
$ ./configure
$ sudo make
$ sudo make install
 
# Install Gmsh
-- - Download and extract Gmsh sourcecode from- - -
https://gmsh.info/
 
$ cd gmsh-4.10.5-source
$ mkdir build
$ cd build
$ cmake ..
$ sudo make   ##This step takes a long time for installing, zzz
$ sudo make install

How to install Neper.

#Install dependancies
$ sudo apt-get install libgsl-dev
$ sudo apt-get install libnlopt-dev
$ sudo apt-get install libomp-dev
$ sudo apt-get install libscotch-dev
$ sudo apt-get install libpthread-stubs0-dev
 
#Install Neper
-- -Download and extract Neper source code from- --
https://neper.info/downloads.html
 
$ cd neper-4.5.0/src
$ mkdir build
$ cd build
$ cmake ..
$ sudo make
$ sudo make install
 
#Running Conditions
$ export OMP_NUM_THREADS=1  

Test neper

$ neper -T -n 100
$ neper -V n100-id1.tess -print image_1
$ neper -M n100-id1.tess -elttype hex -format inp,msh
$ neper -V n100-id1.tess,n100-id1.msh -dataelsetcol id -print image_2

 类似资料:

相关阅读

相关文章

相关问答