CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Merging OF config files

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

LinkBack Thread Tools Display Modes
Old   August 28, 2012, 18:09
Default Merging OF config files
Join Date: Nov 2009
Posts: 59
Rep Power: 9
Horus is on a distinguished road

If I recall correctly there was an OF utility that merges a config snippet like:
divSchemes {
div(phi,k) Gauss upwind;
into a given existing file (meaning it updates or creates the div(phi,k) entry).

But I can't find that utility... I remembered it was included with the OF distribution, not third party.

Or am I wrong?

Horus is offline   Reply With Quote

Old   August 31, 2012, 06:03
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,020
Blog Entries: 39
Rep Power: 109
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Greetings Florian,

It really depends on the type of merging you want to do. There are 2 possibilities:
  • If you want to merge, in the sense of editing the dictionary, then you can use changeDictionary along with the option "-instance":
    changeDictionary -instance system
    This way it will look for the files in the "system" folder.
    For more ideas:
    changeDictionary -help
    find $FOAM_TUTORIALS $FOAM_UTILITIES -name changeDictionaryDict
  • If you want to merge "#include" entries in a file into a single file... I think that the option "-enableFunctionEntries" in changeDictionary should do the trick...
Best regards,
wyldckat is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 14:39
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Merging .msh files in TGrid Raza Mirza FLUENT 2 January 18, 2001 19:09

All times are GMT -4. The time now is 23:14.