Cheatography
https://cheatography.com
Instructions to install FEniCS, Dolfin-Adjoint, and IpOpt to run topology optimization in the FEniCS enviroment
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Linux fundamentals commands
sudo -i |
apt-get <...> |
<command> --help [-H] |
Options for the <command> [help] |
man <command> |
Help for <command> |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH |
Update the path |
Install Anaconda
conda info |
Verify if conda is installed (check version number, etc.) |
Download anacoda |
|
bash Anaconda3-4.4.0-Linux-x86_64.sh |
Install the downloaded package |
conda update conda |
Update conda to the current version |
conda update anaconda |
Update all packages in the environment to the versions in the latest release of Anaconda, all of which are tested for compatibility. May not contain the newest versions |
conda update --all |
Update the environment |
conda --version |
Verify that conda is installed |
conda list |
View a list of packages and versions installed in an environment |
conda install <package-name> |
Install the conda package <package-name> |
|
|
Install FEniCS on Ubuntu
Download FEniCS options |
|
sudo add-apt-repository ppa:fenics-packages/fenics |
sudo apt-get update |
sudo apt-get install --no-install-recommends fenics |
sudo apt-get dist-upgrade |
Install dolfin-adjoint on Ubuntu
Download dolfin-adjoint options |
|
sudo apt-add-repository ppa:libadjoint/ppa |
sudo apt-get update |
sudo apt-get install python-dolfin-adjoint |
Install FEniCS on Anaconda
conda config --add channels conda-forge |
Installing fenics from the conda-forge channel |
conda create -n fenicsproject -c conda-forge fenics |
Create an environment |
source activate fenicsproject |
Activate the environment |
conda install fenics |
Install the last stable version of FEniCS |
source deactivate fenicsproject |
To deactivate this environment |
Install dolfin-adjoint on Conda
conda install -c conda-forge dolfin-adjoint |
|
|
Install IpOpt
Download Ipopt |
|
tar xvf Ipopt-3.3.1.tar |
Decompress the folder |
cd $IPOPTDIR/ThirdParty/Blas |
./get.Blas |
cd ../Lapack |
./get.Lapack |
cd ../ASL |
./get.ASL |
cd ../Metis |
./get.Metis |
cd ../Mumps |
./get.Mumps |
cd $IPOPTDIR/ |
mkdir build |
cd build |
../configure |
sudo ldconfig |
sudo make |
sudo make test |
sudo make install |
Install pyIpOpt
|
Get the latest source code |
python setup.py build |
sudo python setup.py install |
python hs071.py |
To see if you have PyIpopt ready |
PyIpopt is a python module that allows you to use IPOPT in Python Web page
|