Installing OpenFOAM-2.4.0-MNF on Ubuntu 18.0.4
Hi all,
I have been trying to compile OpenFOAM-2.4.0 (which is required for the MNF module) on Ubuntu 18.0.4 using the installation instructions provided here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04 I am able to successfully compile the $WM_THIRD_PARTY_DIR but strange errors appear in the ./Allwmake within the main project directory (same thing for OpenFOAM-2.4.0-MNF). The logfile is quite long and exceeds the file size here but the first errors that appear are Code:
/bin/ld: cannot find -lfiniteVolume Code:
echo -e ${LD_LIBRARY_PATH//:/\\n} && echo "" && echo "$FOAM_LIBBIN" Code:
find $FOAM_LIBBIN -iname "*finitevolume*" Thanks. |
A few things: after you download the OpenFOAM source packs, you also need to set the environment and compile it too. OpenFOAM-2.4.0 is really quite old (2015). I would be partly surprised if you manage to get it compiled at all, since there will most certainly be things that new compilers pick up on a errors that older compilers didn't notice.
If you want to save the hassle of compilation, you can consider using one of the binary packs (with a new OpenFOAM version). https://develop.openfoam.com/Develop...ompiled/debian |
Hi Mark Olesen,
Thank you for your reply and help. The only reason I wanted to compile OF-2.4.0 was because I thought the MNF (Micro-nano-flows) module was only supported in that version. I have compiled a few recent OFs (non-root), but never able to build the older ones. Nonetheless, I found out just yesterday that the MNF module is supported in the ESI v1706, so have been able to build that. |
Quote:
If it works with 1706, there are good chances that you won't have much problem with later versions either. OpenFOAM-v1912 is currently the oldest precompiled version available. If that works, you can try moving forward with newer and newer (precompiled) versions until you hit an issue. This is certainly much, much faster than compiling OpenFOAM from source each time and will make sure you don't get locked into an old version. Even OpenFOAM-v1706 is already 5 years old. |
Quote:
|
All times are GMT -4. The time now is 11:56. |