e.g.
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:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -105,7 +105,7 @@ const Foam::entry* Foam::dictionary::lookupScopedSubEntryPtr
|
|||||||
const entry* entPtr = lookupScopedSubEntryPtr
|
const entry* entPtr = lookupScopedSubEntryPtr
|
||||||
(
|
(
|
||||||
firstWord,
|
firstWord,
|
||||||
false, // recursive
|
recursive,
|
||||||
patternMatch
|
patternMatch
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -29,6 +29,13 @@ c #calc "$a / $b";
|
|||||||
|
|
||||||
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";
|
s "field";
|
||||||
fieldName #calc "$<string>s + \"Name\" ";
|
fieldName #calc "$<string>s + \"Name\" ";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user