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

Merging OF config files

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 28, 2012, 18:09
Default Merging OF config files
  #1
Member
 
Florian
Join Date: Nov 2009
Posts: 59
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,510
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

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 16:36.