mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
changeDictionary: Simplified by removing the need for the superfluous dictionaryReplacement sub-dictionary
Added the option '-subDict' to specify a sub-dictionary if multiple replacement sets are present in the same file. This also provides backward compatibility by setting '-subDict dictionaryReplacement'
This commit is contained in:
@ -14,57 +14,54 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dictionaryReplacement
|
||||
T
|
||||
{
|
||||
T
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
wallFilm
|
||||
{
|
||||
wallFilm
|
||||
{
|
||||
type mapped;
|
||||
field Tsf;
|
||||
average 300;
|
||||
setAverage no;
|
||||
value uniform 300;
|
||||
}
|
||||
type mapped;
|
||||
field Tsf;
|
||||
average 300;
|
||||
setAverage no;
|
||||
value uniform 300;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
U
|
||||
U
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
wallFilm
|
||||
{
|
||||
wallFilm
|
||||
{
|
||||
type mapped;
|
||||
field Usf;
|
||||
average (0 0 0);
|
||||
setAverage no;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
type mapped;
|
||||
field Usf;
|
||||
average (0 0 0);
|
||||
setAverage no;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
"nut"
|
||||
"nut"
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
wallFilm
|
||||
{
|
||||
wallFilm
|
||||
{
|
||||
value uniform 0;
|
||||
}
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
"alphat"
|
||||
"alphat"
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
wallFilm
|
||||
{
|
||||
wallFilm
|
||||
{
|
||||
value uniform 0;
|
||||
}
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,182 +14,179 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dictionaryReplacement
|
||||
alphat
|
||||
{
|
||||
alphat
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
epsilon
|
||||
}
|
||||
epsilon
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
G
|
||||
}
|
||||
G
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
H2O
|
||||
}
|
||||
H2O
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
k
|
||||
}
|
||||
k
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
nut
|
||||
}
|
||||
nut
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
N2
|
||||
}
|
||||
N2
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
O2
|
||||
}
|
||||
O2
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
p
|
||||
}
|
||||
p
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
T
|
||||
}
|
||||
T
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
U
|
||||
}
|
||||
U
|
||||
{
|
||||
boundaryField
|
||||
{
|
||||
boundaryField
|
||||
cycLeft
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
type cyclic;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
type cyclic;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
cycRight
|
||||
{
|
||||
type cyclic;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user