Advanced Simulation Library(ASL)&& An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method (IBAMR)

Both ASL and IBAMR are tools for finite element analysis, fluid mechanics, etc. ASL can use GPU to accelerate calculations,

Host configuration, i7 6th generation, 1060, 32G, 500G, ubuntu1604.

Install ASL, configure dependencies, install, run tests:

1.GPU DRIVER && CUDA SDK OpenCL

  Download the GPU driver from the Ubuntu Repository.

  Download the cuda run installation package from the NVIDIA official website. Do not select the installation of the graphics image display driver during installation.

Install some dependencies:

1 sudo apt-get install clinfo dkms xz-utils openssl libnuma1 libpciaccess0 bc curl libssl-dev lsb-core libicu-dev -y
1 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
2 echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
3 sudo apt-get install mono-complete -y

 

2.CMAKE

1 sudo apt-get install libncurses5-dev cmake-curses-gui -y
1 sudo apt-get install build-essential -y
2 wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
3 tar xf cmake-3.11.1.tar.gz && cd cmake-3.11.1 && ./configure
4 make -j8 && sudo make install

 

3.OpenGL

1 sudo apt-get install build-essential libgl1-mesa-dev freeglut3-dev libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev gfortran  doxygen graphviz -y

4.VTK 

The Visualization Toolkit (VTK) is an open-source, freely available software system for 3D computer graphics, image processing, and visualization.

Another amazing open source tool.

1 sudo apt-get install libvtk6.2
2 wget https://www.vtk.org/files/release/6.3/VTK-6.3.0.zip
3 unzip VTK-6.3.0.zip
4 mkdir VTK-build && cd VTK-build&&ccmake ../VTK-6.3.0

Then press "c" to confirm the configuration to generate a compilable file, until the "g" option appears, then press "g" to

1 make -j8
2 sudo make install

5.BOOST

First install a lower version of boost, this is for ASL.

1 sudo apt-get install libboost1.58-all-dev -y

6.ASL

1 unzip ASL-0.1.7.zip
2 mkdir build-asl && cd build-asl
3 cmake -D OpenCL_INCLUDE_DIR=/usr/local/cuda-9.0/include/ -G "Unix Makefiles" ../ASL-0.1.7
4 cmake -D OpenCL_LIBRARY=/usr/local/cuda-9.0/lib64/libOpenCL.so -G "Unix Makefiles" ../ASL-0.1.7
5 make -j8
6 sudo make install

Running instance:

1 cd examples/flow/locomotive
2 wget http://asl.org.il/input_data/locomotive.stl
3 ./asl-locomotive --input locomotive.stl

Install IBAMR, configure dependencies, install, run tests:

1. Install BOOST

1 mkdir sfw && cd sfw && mkdir linux && cd linux && mkdir boost && cd boost
2 unzip boost_1_60_0.zip
3 mv boost_1_60_0 1.6.0
4 export BOOST_ROOT=$HOME/sfw/linux/boost/1.6.0
5 mkdir $BOOST_ROOT/include
6 ln -s $BOOST_ROOT/boost $BOOST_ROOT/include

2. Install eigen

1 cd sfw && cd linux && mkdir eigen && cd eigen 
2 下载 eigen 3.3.1
3 tar -jxvf 3.3.1.tar.bz2
4 cmake eigen-eigen-f562a193118d
5 make -j8 && sudo make install

3. Install HDF5

1 cd sfw/linux && mkdir hdf5 && cd hdf5
2 下载 hdf5-1.8.16.tar.bz2
3 tar xvjf ~/hdf5-1.8.16.tar.bz2
4 cd hdf5-1.8.16
./configure \
  CC=gcc \
  CXX=g++ \
  FC=gfortran \
  F77=gfortran \
  --enable-production \
  --disable-debug \
  --prefix=$HOME/sfw/linux/hdf5/1.8.16
1 make -j8 && make check && sudo make install

4. Install SILO

1 cd $HOME/sfw/linux
2 tar xvfz silo-4.10.tar.gz && cd silo-4.10
./configure \
  CC=gcc \
  CXX=g++ \
  FC=gfortran \
  F77=gfortran \
  --prefix=$HOME/sfw/linux/silo/4.10 \
  --disable-silex 
1 make -j8 && sudo make install

5. Install MUPARSER

1 sudo apt-get install libmuparser-dev -y

6. Install OpenMPI

1 cd $HOME/sfw/linux
2 tar xvfj openmpi-1.10.2.tar.bz2
3

 

 
 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324805347&siteId=291194637