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:
Henry Weller
2016-06-15 09:03:05 +01:00
parent 344f435f54
commit 3d98d6e5c6
25 changed files with 1653 additions and 1711 deletions

View File

@ -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;
}
}
}

View File

@ -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);
}
}
}