|
[Sponsors] |
October 7, 2021, 04:08 |
compiling a single application in OpenFOAM
|
#1 |
Member
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16 |
Hi all,
I'm trying to build a light container with only a few basic OpenFOAM solvers : simpleFoam and cartesianMesh for instance. I understand there are heaps of dependencies here, and I'd like to keep only the bare requirements for these apps. I couldn't succeed so far, so I have a couple of questions : - Does it make sense, and will the generated image be that much lighter than the complete build ? - Is there an easy way to do that, some tool which would compile only the required libraries for each ? Thank you for your help ! |
|
October 7, 2021, 12:01 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14 |
Since the majority of OF is in libraries, could you not simply take the vanilla OF, make a copy, and then delete the libraries and any unused solvers and applications from the copy that you think that you might not need.
I would set up a "test suite" that you can run to check that the solvers that you are interested in work okay, and then start deleting a batch of libraries at a time, running the test suite to check that you didn't remove one that you needed. Be careful though - the suite would need to cover the full range of runtime selected models that you want to employ. As for the first question - does it make sense. In my mind, only if you are REALLY short on disk space, and want to keep the installation size down, otherwise I don't think that you get any substantial memory savings (although I confess I know almost nothing about containers, so I could be totally wrong there). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer | wildfire230 | OpenFOAM Installation | 20 | May 6, 2020 07:30 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 08:51 |
Ansys Licence Serve on Ubuntu 16.04 LTS | david.pasquale | ANSYS | 2 | January 20, 2017 11:52 |
my query on implementation of a new application on OpenFOAM | Annier | OpenFOAM Running, Solving & CFD | 3 | June 28, 2013 03:18 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 06:25 |