minhtriet95 / RBniCS-examples

A personal repository to store reduced basis codes on RBniCS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RBniCS-examples

A personal repository to store reduced basis codes on RBniCS.

🛠️ Installation

  1. Install FEniCS on Ubuntu via Ubuntu Personal Package Archives (PPA)
sudo apt-get install --no-install-recommends software-properties-common
sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install --no-install-recommends fenics
  1. Install PETSc and SLEPc
  • Prerequisites
sudo apt-get install valgrind
sudo apt-get install gfortran
sudo apt-get install python3-distutils
  • Download PETSc and SLEPc (should be in /home/USER/Downloads)
  • Install petsc-3.14.1 locally on a user-defined folder
mkdir /home/USER/Packages
cd Packages
tar -xzf /home/USER/Downloads/petsc-3.14.1.tar.gz
cd petsc-3.14.1
./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mpich --download-fblaslapack
make all check
  • Install slepc-3.14.0 locally on a user-defined folder
cd /home/USER/Packages
tar -xzf /home/USER/Downloads/slepc-3.14.0.tar.gz
cd slepc-3.14.0
export PETSC_DIR=/home/USER/Packages/petsc-3.14.1
export PETSC_ARCH=arch-linux2-gnu-c-debug
./configure
make all check
  1. Install mpi and pip3
sudo apt install mpi
sudo apt install python3-pip
  1. Install petsc4py and slepc4py
pip3 install petsc4py
pip3 install slepc4py
  1. Install RBniCS
  • Go back to Packages directory
git clone https://github.com/RBniCS/RBniCS.git
cd RBniCS
sudo python3 setup.py install

About

A personal repository to store reduced basis codes on RBniCS

License:GNU Lesser General Public License v3.0


Languages

Language:Jupyter Notebook 91.1%Language:Python 8.0%Language:GLSL 0.9%