OpenFOAM

From LWP-Wiki
Revision as of 15:44, 30 March 2022 by Lwpadmin (talk | contribs) (Created page with "OpenFOAM cnd this can cause conflicts with extensions and/or versions. The people creating the foam extensions are aware of this thankfully and have made it so that you can in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

OpenFOAM cnd this can cause conflicts with extensions and/or versions. The people creating the foam extensions are aware of this thankfully and have made it so that you can install the extensions into your own home directory without requiring elevated privileges. This way multiple users on the same system can use their own versions and extensions. I've just verified that it works, with an unprivileged account, on your system. I've added the actual commands I've used for the installation below, which are pretty much the instructions from the links you've sent. Compilation of the extensions will take some time. Run the following commands to make it happen.


  1. apt install openfoam2112 openfoam2112-dev gfortran-10
  1. First set up the requirements for openFOAM:

cd ~ mkdir foam cd foam curl https://www.paraview.org/paraview-downloads/download.php\?submit=Download\&version=v5.10\&type=binary\&os=Linux\&downloadFile=ParaView-5.10.1-MPI-Linux-Python3.9-x86_64.tar.gz -o ParaView-5.10.1-MPI-Linux-Python3.9-x86_64.tar.gz tar xzf ParaView-5.10.1-MPI-Linux-Python3.9-x86_64.tar.gz echo "export PATH=~/foam/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin:$PATH" >> ~/.bashrc echo "source /usr/lib/openfoam/openfoam2112/etc/bashrc" >> ~/.bashrc source ~/.bashrc openfoam2112 exit

  1. Installing foam-extend-4.1:

cd ~ mkdir foam cd foam git clone git://git.code.sf.net/p/foam-extend/foam-extend-4.1 cd ~/foam/foam-extend-4.1 source etc/bashrc echo "alias fe41='. ~/foam/foam-extend-4.1/etc/bashrc'" >> ~/.bashrc source ~/.bashrc ./Allwmake.firstInstall -j8

  1. Installing OlaFlow:

git clone git://github.com/phicau/olaFlow.git cd olaFlow ./allMake -j8

  1. Installing solids4foam:

mkdir -p $FOAM_RUN cd $FOAM_RUN/.. git clone https://bitbucket.org/philip_cardiff/solids4foam-release.git ./Allwmake -j8