a   1.1;

// Access to sub-entries using the "/" operator, e.g.
d
{
    b   4.8;
}
e   #calc "$a / $d/b";
This commit is contained in:
Henry Weller
2024-01-21 17:35:03 +00:00
parent 8331934c8c
commit 364fef68f9
2 changed files with 9 additions and 2 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -105,7 +105,7 @@ const Foam::entry* Foam::dictionary::lookupScopedSubEntryPtr
const entry* entPtr = lookupScopedSubEntryPtr
(
firstWord,
false, // recursive
recursive,
patternMatch
);

View File

@ -29,6 +29,13 @@ c #calc "$a / $b";
c #calc "($a)/$b";
// Access to sub-entries using the "/" operator, e.g.
d
{
b 4.8;
}
e #calc "$a / $d/b";
s "field";
fieldName #calc "$<string>s + \"Name\" ";