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

Merging OF config files

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2012, 18:09
Default Merging OF config files
  #1
Member
 
Florian
Join Date: Nov 2009
Posts: 59
Rep Power: 16
Horus is on a distinguished road
Hello,

If I recall correctly there was an OF utility that merges a config snippet like:
Quote:
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?

Thanks!
Horus is offline   Reply With Quote

Old   August 31, 2012, 06:03
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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":
    Code:
    changeDictionary -instance system
    This way it will look for the files in the "system" folder.
    For more ideas:
    Code:
    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,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 13: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 13:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
Merging .msh files in TGrid Raza Mirza FLUENT 2 January 18, 2001 18:09


All times are GMT -4. The time now is 00:43.