Menu

#116 No expansion of macros within quotes in Dictionaries when used with equationReader

assigned
None
normal
major
always
none
1.6-ext
Equation Reader
2012-01-05
2012-01-05
No

OpenFOAM has the facility of creating macro substitutions defined with the "$" sign within Dictionaries. These macros / variables are expanded before the dictionary is passed on to the remaining system during the solution process.

Typical usage of this facility can be explained via the following example:

pressureŒŒ 1e+05;

internalField uniform $pressure;
boundaryField
{
ŒŒŒ patch1
ŒŒŒ {
ŒŒŒŒŒŒŒ type fixedValue;
ŒŒŒŒŒŒŒ value uniform $pressure;
ŒŒŒ }
}

However, when using this feature in conjunction with the equationReader
functionality also present in the Git version of OpenFOAM-1.6-ext (branch: feature/equationReader), the macros are not expanded before an equationReader expression is passed on to the equationReader subsystem.

This error does not have a direct connection to the equationReader subsystem. Rather, it seems that any Macro present within quotes are not expanded.
---- additional_information ----
The issue can be reproduced using the unit-test case "dictionary" which was present in the older versions of OpenFOAM in the "[OpenFOAM-src]/applications/test/dictionary" folder.

Enclosed with this report is a version of the dictionary unit-test, without any changes to the source code, but with a modified "testDict" dictionary file.

The output of this test clearly demonstrates this issue.

Discussion

  • Philippose Rajan

     
  • Bernhard Gschaider

    Created a new Subproject for the equation reader and moved the issue there

     

Log in to post a comment.