CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Installing OpenFOAM-2.4.0-MNF on Ubuntu 18.0.4 (https://www.cfd-online.com/Forums/openfoam-installation/243748-installing-openfoam-2-4-0-mnf-ubuntu-18-0-4-a.html)

mr35diamonds July 4, 2022 09:54

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
/bin/ld: cannot find -lsampling
/bin/ld: cannot find -lcompressibleTurbulenceModel
/bin/ld: cannot find -lcompressibleRASModels
/bin/ld: cannot find -lcompressibleLESModels
/bin/ld: cannot find -llagrangianIntermediate
/bin/ld: cannot find -llagrangianTurbulence
/bin/ld: cannot find -llagrangianSpray
/bin/ld: cannot find -lspecie
/bin/ld: cannot find -lfluidThermophysicalModels
/bin/ld: cannot find -lreactionThermophysicalModels
/bin/ld: cannot find -lSLGThermo
/bin/ld: cannot find -lchemistryModel
/bin/ld: cannot find -lradiationModels
/bin/ld: cannot find -lengine
/bin/ld: cannot find -lregionModels
/bin/ld: cannot find -lsurfaceFilmModels
/bin/ld: cannot find -lfvOptions
/bin/ld: cannot find -lcombustionModels
/bin/ld: cannot find -lfiniteVolume
/bin/ld: cannot find -lcompressibleTurbulenceModel
/bin/ld: cannot find -lcompressibleRASModels
/bin/ld: cannot find -lcompressibleLESModels
/bin/ld: cannot find -llagrangianIntermediate
/bin/ld: cannot find -llagrangianTurbulence
/bin/ld: cannot find -lspecie
/bin/ld: cannot find -lfluidThermophysicalModels
/bin/ld: cannot find -lreactionThermophysicalModels
/bin/ld: cannot find -lSLGThermo
/bin/ld: cannot find -lchemistryModel
/bin/ld: cannot find -lradiationModels
/bin/ld: cannot find -lregionModels
/bin/ld: cannot find -lsurfaceFilmModels
/bin/ld: cannot find -lcombustionModels
/bin/ld: cannot find -lfvOptions
/bin/ld:collect2: error: ld returned 1 exit status
 cannot find -lsampling

The paths for $FOAM_LIBBIN are set correctly by checking
Code:

echo -e ${LD_LIBRARY_PATH//:/\\n} && echo "" && echo "$FOAM_LIBBIN"
and I tried to find the files there:
Code:

find $FOAM_LIBBIN -iname "*finitevolume*"
and these .so files do not appear upon initial wmake, so the libraries are not built. I wonder if anyone has been able to compile OF-2.4.0 on Ubuntu 18.0.4, and whether they've encountered such errors as well. Any help is appreciated.

Thanks.

olesen July 6, 2022 04:33

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

mr35diamonds July 6, 2022 06:31

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.

olesen July 6, 2022 09:08

Quote:

Originally Posted by mr35diamonds (Post 831075)
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.


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.

Shah Akib Sarwar March 3, 2023 23:40

Quote:

Originally Posted by mr35diamonds (Post 831075)
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.

Could you please elaborate a little on how to use the MNF module with v1706? I am hoping to do the same with the group's rarefiedmultiphaseFoam solver.


All times are GMT -4. The time now is 11:56.