OpenFOAM bits: the #includeIfPresent dictionary directive

As mentioned in the ReleaseNotes-1.6, the new #includeIfPresent directive is similar to the #include directive, but does not generate an error if the file does not exist. Initially, this may not sound particularly useful. Perhaps you haven’t really found very many uses for the normal #include directive anyway, so why would you ever want it to fail silently if the file doesn’t exist? This functionality turns out, however, to actually be quite useful. Before examining this, we should first be aware of the OpenFOAM string expansion that is implicit in the #include and in the #includeIfPresent directives. OpenFOAM String Expansion...   read more

17 Nov 2009 | OpenFOAM

Getting started with OpenFOAM and git

I have the general impression from the forum that many OpenFOAM users may not always understand how they should (or could) be using git effectively when they are working with OpenFOAM. After an initial git clone to set things up, the simplest method would be to simply use a periodic git pull to update things. However, this has a few distinct disadvantages: you have to recompile things immediately after the pull it makes it somewhat difficult to deal with any local changes These disadvantages may not seem severe, but with a few minor changes to your workflow it is easy...   read more

12 Nov 2009 | OpenFOAM, git

Keeping GridEngine configuration information in git

If indeed “imitation is the highest form of flattery”, then Edward Dale should indeed be flattered since I’ve taken his idea about Keeping Grid Engine configuration information in Subversion that I noticed thanks to Chris’ blog entry and simply used git for the backend storage. After seeing the simplicity of the solution and its usefulness, it looked to be a must have, except that I generally use git for almost everything and adding subversion to the mix would be annoying. The crux point thus seemed to be replacing svn_load_dirs.pl (to import and update everything) with an equivalent git-load-dirs. Unfortunately, git-load-dirs...   read more

05 Nov 2009 | gridengine, git

Starting beta testing of HTTPi-xmlqstat

As announced on the mailing list With the HTTPi-xmlqstat approach, the installation should be as simple as this: download from xmlqstat github ./make-httpi.sh and answer the questions start the newly configured httpi-xmlqstat edit the config/config.xml to reflect your cluster names and their SGE_ROOT, SGE_CELL direct your browser to the http://{host:port}/xmlqstat/ for httpi The only system requirements: Perl + GridEngine. If you want fancier stuff like file caching, integration with the flex-grid output etc, you can add this in later without needing to reconfigure or restart the webapp. Please take the opportunity to test xmlqstat and give some feedback (via the...   read more

02 Nov 2009 | gridengine, xmlqstat

Getting more out of system/controlDict

With OpenFOAM-1.6, the functions entry in system/controlDict changed from being a primitive entry to a dictionary entry. Even although the old format is still supported, the added flexibility of the dictionary entry means that you probably should be using the new form. Previously // system/controlDict functions ( function1 { type ...; settings ...; } function2 { type ...; settings ...; } function3 { type ...; settings ...; } ); If you wanted to somehow centralized the values, for example, for an easier setup, you’d have a problem. Now Using dictionary entries, you can harness the #include dictionary directive combined with...   read more

02 Nov 2009 | OpenFOAM