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.
Created a new Subproject for the equation reader and moved the issue there