CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

compiling a single application in OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2021, 05:08
Default compiling a single application in OpenFOAM
  #1
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
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 !
bennn is offline   Reply With Quote

Old   October 7, 2021, 13:01
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 663
Rep Power: 13
Tobermory will become famous soon enough
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).
Tobermory is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 08:30
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 12:52
my query on implementation of a new application on OpenFOAM Annier OpenFOAM Running, Solving & CFD 3 June 28, 2013 04: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 07:25


All times are GMT -4. The time now is 13:45.