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

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -33,21 +33,18 @@ Description
\em Walls a zeroGradient boundary condition, the
\c system/changeDictionaryDict would contain the following:
\verbatim
dictionaryReplacement
p // field to change
{
p // field to change
boundaryField
{
boundaryField
".*Wall" // entry to change
{
".*Wall" // entry to change
{
type zeroGradient;
}
movingWall // entry to change
{
type fixedValue;
value uniform 123.45;
}
type zeroGradient;
}
movingWall // entry to change
{
type fixedValue;
value uniform 123.45;
}
}
}
@ -56,17 +53,20 @@ Description
Usage
- changeDictionary [OPTION]
changeDictionary [OPTION]
\param -subDict \n
Specify the subDict name of the replacements dictionary.
\param -literalRE \n
Do not interpret regular expressions or patchGroups;
treat them as any other keyword.
Do not interpret regular expressions or patchGroups; treat them as any
other keyword.
\param -enableFunctionEntries \n
By default all dictionary preprocessing of fields is disabled
Enable function entries (default: disabled)
\param -disablePatchGroups \n
By default all keys are also checked for being patchGroups
Disable the default checking for keys being patchGroups
\*---------------------------------------------------------------------------*/
@ -89,7 +89,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Extract groupPatch (= shortcut) info from boundary file info
// Extract groupPatch info from boundary file info
HashTable<wordList, word> extractPatchGroups(const dictionary& boundaryDict)
{
HashTable<wordList, word> groupToPatch;
@ -268,7 +268,6 @@ bool merge
if (entryPtr)
{
// Mark thisDict entry as having been match for wildcard
// handling later on.
thisKeysSet.erase(entryPtr->keyword());
@ -386,6 +385,12 @@ int main(int argc, char *argv[])
{
#include "addDictOption.H"
argList::addOption
(
"subDict",
"name",
"specify the subDict name of the replacements dictionary"
);
argList::addOption
(
"instance",
"name",
@ -479,7 +484,16 @@ int main(int argc, char *argv[])
#include "setSystemMeshDictionaryIO.H"
IOdictionary dict(dictIO);
const dictionary& replaceDicts = dict.subDict("dictionaryReplacement");
const dictionary* replaceDictsPtr = &dict;
if (args.optionFound("subDict"))
{
word subDictName(args.optionLookup("subDict")());
replaceDictsPtr = &dict.subDict(subDictName);
}
const dictionary& replaceDicts = *replaceDictsPtr;
Info<< "Read dictionary " << dict.name()
<< " with replacements for dictionaries "
<< replaceDicts.toc() << endl;
@ -514,6 +528,7 @@ int main(int argc, char *argv[])
)
);
const_cast<word&>(IOPtrList<entry>::typeName) = oldTypeName;
// Fake type back to what was in field
const_cast<word&>(dictList.type()) = dictList.headerClassName();
@ -632,6 +647,7 @@ int main(int argc, char *argv[])
);
const_cast<word&>(IOdictionary::typeName) = oldTypeName;
// Fake type back to what was in field
const_cast<word&>(fieldDict.type()) = fieldDict.headerClassName();
@ -652,9 +668,7 @@ int main(int argc, char *argv[])
entry::disableFunctionEntries = oldFlag;
Info<< endl;
Info<< "End\n" << endl;
Info<< "\nEnd\n" << endl;
return 0;
}

View File

@ -14,76 +14,73 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
".*"
{
type mappedPatch;
}
}
T
{
internalField uniform 300;
boundaryField
{
".*"
{
type mappedPatch;
type zeroGradient;
}
}
T
{
internalField uniform 300;
boundaryField
minY
{
".*"
{
type zeroGradient;
}
minY
{
type fixedValue;
value uniform 500;
}
}
}
rho
{
internalField uniform 8000;
boundaryField
{
".*"
{
type zeroGradient;
}
}
}
K
{
internalField uniform 80;
boundaryField
{
".*"
{
type zeroGradient;
}
}
}
cp
{
internalField uniform 450;
boundaryField
{
".*"
{
type zeroGradient;
}
type fixedValue;
value uniform 500;
}
}
}
rho
{
internalField uniform 8000;
boundaryField
{
".*"
{
type zeroGradient;
}
}
}
K
{
internalField uniform 80;
boundaryField
{
".*"
{
type zeroGradient;
}
}
}
cp
{
internalField uniform 450;
boundaryField
{
".*"
{
type zeroGradient;
}
}
}
// ************************************************************************* //

View File

@ -14,450 +14,447 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
p
{
p
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
}
baffleWall
{
type zeroGradient;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
}
baffleWall
{
type zeroGradient;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
U
U
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type fixedValue;
value uniform (0 0 0);
}
baffleWall
{
type activePressureForceBaffleVelocity;
cyclicPatch baffleCyclic_half0;
orientation 1;
openingTime 0.01;
maxOpenFractionDelta 0.1;
openFraction 0;
minThresholdValue 8000;
forceBased 0;
value uniform (0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type fixedValue;
value uniform (0 0 0);
}
baffleWall
{
type activePressureForceBaffleVelocity;
cyclicPatch baffleCyclic_half0;
orientation 1;
openingTime 0.01;
maxOpenFractionDelta 0.1;
openFraction 0;
minThresholdValue 8000;
forceBased 0;
value uniform (0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
epsilon
epsilon
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type epsilonWallFunction;
value uniform 0.1;
}
baffleWall
{
type epsilonWallFunction;
value uniform 1e-5;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type epsilonWallFunction;
value uniform 0.1;
}
baffleWall
{
type epsilonWallFunction;
value uniform 1e-5;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
k
k
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type kqRWallFunction;
value uniform 1.5;
}
baffleWall
{
type kqRWallFunction;
value uniform 1.5;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type kqRWallFunction;
value uniform 1.5;
}
baffleWall
{
type kqRWallFunction;
value uniform 1.5;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
Su
Su
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
}
baffleWall
{
type zeroGradient;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
}
baffleWall
{
type zeroGradient;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
Xi
Xi
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform 1;
}
baffleWall
{
type zeroGradient;
value uniform 1;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform 1;
}
baffleWall
{
type zeroGradient;
value uniform 1;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
T
T
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform 300;
}
baffleWall
{
type zeroGradient;
value uniform 300;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform 300;
}
baffleWall
{
type zeroGradient;
value uniform 300;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
Tu
Tu
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform 300;
}
baffleWall
{
type zeroGradient;
value uniform 300;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform 300;
}
baffleWall
{
type zeroGradient;
value uniform 300;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
b
b
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform 1;
}
baffleWall
{
type zeroGradient;
value uniform 1;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform 1;
}
baffleWall
{
type zeroGradient;
value uniform 1;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
ft
ft
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
}
baffleWall
{
type zeroGradient;
value uniform 0.06024096;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
}
baffleWall
{
type zeroGradient;
value uniform 0.06024096;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}
Aw
Aw
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform 0.0;
}
baffleWall
{
type zeroGradient;
value uniform 0.0;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform 0.0;
}
baffleWall
{
type zeroGradient;
value uniform 0.0;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
B
}
B
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleWall
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleWall
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
betav
}
betav
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform 0;
}
baffleWall
{
type zeroGradient;
value uniform 0;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform 0;
}
baffleWall
{
type zeroGradient;
value uniform 0;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
CR
}
CR
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleWall
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleWall
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
CT
}
CT
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleWall
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleWall
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
Nv
}
Nv
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform 0;
}
baffleWall
{
type zeroGradient;
value uniform 0;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform 0;
}
baffleWall
{
type zeroGradient;
value uniform 0;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
nsv
}
nsv
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleWall
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleWall
{
type zeroGradient;
value uniform (0 0 0 0 0 0);
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
Lobs
}
Lobs
{
boundaryField
{
boundaryField
blockedFaces
{
blockedFaces
{
type zeroGradient;
value uniform 0;
}
baffleWall
{
type zeroGradient;
value uniform 0;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
type zeroGradient;
value uniform 0;
}
baffleWall
{
type zeroGradient;
value uniform 0;
}
baffleCyclic_half0
{
type cyclic;
}
baffleCyclic_half1
{
type cyclic;
}
}
}

View File

@ -14,16 +14,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
region0_to_filmRegion_coupledWall
{
region0_to_filmRegion_coupledWall
{
samplePatch region0_to_pyrolysisRegion_coupledWall;
}
samplePatch region0_to_pyrolysisRegion_coupledWall;
}
}
// ************************************************************************* //

View File

@ -14,157 +14,154 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
U
{
U
internalField uniform (0.001 0 0);
boundaryField
{
internalField uniform (0.001 0 0);
boundaryField
minX
{
minX
{
type fixedValue;
value uniform (0.001 0 0);
}
type fixedValue;
value uniform (0.001 0 0);
}
maxX
{
type inletOutlet;
inletValue uniform (0 0 0);
}
maxX
{
type inletOutlet;
inletValue uniform (0 0 0);
}
".*"
{
type fixedValue;
value uniform (0 0 0);
}
".*"
{
type fixedValue;
value uniform (0 0 0);
}
}
}
T
T
{
internalField uniform 300;
boundaryField
{
internalField uniform 300;
boundaryField
minX
{
minX
{
type fixedValue;
value uniform 300;
}
type fixedValue;
value uniform 300;
}
maxX
{
type inletOutlet;
inletValue uniform 300;
}
maxX
{
type inletOutlet;
inletValue uniform 300;
}
".*"
{
type zeroGradient;
value uniform 300;
}
".*"
{
type zeroGradient;
value uniform 300;
}
"bottomWater_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod fluidThermo;
value uniform 300;
}
"bottomWater_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod fluidThermo;
value uniform 300;
}
}
}
epsilon
epsilon
{
internalField uniform 0.01;
boundaryField
{
internalField uniform 0.01;
boundaryField
minX
{
minX
{
type fixedValue;
value uniform 0.01;
}
type fixedValue;
value uniform 0.01;
}
maxX
{
type inletOutlet;
inletValue uniform 0.01;
}
maxX
{
type inletOutlet;
inletValue uniform 0.01;
}
".*"
{
type epsilonWallFunction;
value uniform 0.01;
}
".*"
{
type epsilonWallFunction;
value uniform 0.01;
}
}
}
k
k
{
internalField uniform 0.1;
boundaryField
{
internalField uniform 0.1;
boundaryField
minX
{
minX
{
type inletOutlet;
inletValue uniform 0.1;
}
type inletOutlet;
inletValue uniform 0.1;
}
maxX
{
type zeroGradient;
value uniform 0.1;
}
maxX
{
type zeroGradient;
value uniform 0.1;
}
".*"
{
type kqRWallFunction;
value uniform 0.1;
}
".*"
{
type kqRWallFunction;
value uniform 0.1;
}
}
}
p_rgh
p_rgh
{
internalField uniform 0;
boundaryField
{
internalField uniform 0;
boundaryField
minX
{
minX
{
type zeroGradient;
value uniform 0;
}
type zeroGradient;
value uniform 0;
}
maxX
{
type fixedValue;
value uniform 0;
}
maxX
{
type fixedValue;
value uniform 0;
}
".*"
{
type fixedFluxPressure;
value uniform 0;
}
".*"
{
type fixedFluxPressure;
value uniform 0;
}
}
}
p
p
{
internalField uniform 0;
boundaryField
{
internalField uniform 0;
boundaryField
".*"
{
".*"
{
type calculated;
value uniform 0;
}
type calculated;
value uniform 0;
}
}
}

View File

@ -14,58 +14,55 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minY
{
type patch;
}
minZ
{
type patch;
}
maxZ
{
type patch;
}
}
T
{
internalField uniform 300;
boundaryField
{
".*"
{
type zeroGradient;
value uniform 300;
}
"heater_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
heater_to_leftSolid
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
thicknessLayers (1e-3);
kappaLayers (5e-4);
value uniform 300;
}
minY
{
type patch;
}
minZ
{
type patch;
}
maxZ
{
type patch;
}
}
T
{
internalField uniform 300;
boundaryField
{
".*"
{
type zeroGradient;
value uniform 300;
}
"heater_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
heater_to_leftSolid
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
thicknessLayers (1e-3);
kappaLayers (5e-4);
value uniform 300;
}
minY
{
type fixedValue;
value uniform 500;
}
type fixedValue;
value uniform 500;
}
}
}

View File

@ -14,48 +14,45 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minZ
{
minZ
{
type patch;
}
maxZ
{
type patch;
}
type patch;
}
T
maxZ
{
internalField uniform 300;
type patch;
}
}
boundaryField
T
{
internalField uniform 300;
boundaryField
{
".*"
{
".*"
{
type zeroGradient;
value uniform 300;
}
"leftSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
type zeroGradient;
value uniform 300;
}
"leftSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
leftSolid_to_heater
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
thicknessLayers (1e-3);
kappaLayers (5e-4);
value uniform 300;
}
leftSolid_to_heater
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
thicknessLayers (1e-3);
kappaLayers (5e-4);
value uniform 300;
}
}
}

View File

@ -14,38 +14,35 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minZ
{
minZ
{
type patch;
}
maxZ
{
type patch;
}
type patch;
}
T
maxZ
{
internalField uniform 300;
type patch;
}
}
boundaryField
T
{
internalField uniform 300;
boundaryField
{
".*"
{
".*"
{
type zeroGradient;
value uniform 300;
}
"rightSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
type zeroGradient;
value uniform 300;
}
"rightSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
}
}

View File

@ -14,155 +14,152 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
U
{
U
{
internalField uniform (0.1 0 0);
internalField uniform (0.1 0 0);
boundaryField
boundaryField
{
".*"
{
".*"
{
type fixedValue;
value uniform (0 0 0);
}
minX
{
type fixedValue;
value uniform (0.1 0 0);
}
maxX
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0.1 0 0);
}
type fixedValue;
value uniform (0 0 0);
}
minX
{
type fixedValue;
value uniform (0.1 0 0);
}
maxX
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0.1 0 0);
}
}
}
T
T
{
internalField uniform 300;
boundaryField
{
internalField uniform 300;
boundaryField
".*"
{
".*"
{
type zeroGradient;
}
type zeroGradient;
}
minX
{
type fixedValue;
value uniform 300;
}
maxX
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
minX
{
type fixedValue;
value uniform 300;
}
maxX
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
"topAir_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod fluidThermo;
value uniform 300;
}
"topAir_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod fluidThermo;
value uniform 300;
}
}
}
epsilon
epsilon
{
internalField uniform 0.01;
boundaryField
{
internalField uniform 0.01;
boundaryField
".*"
{
".*"
{
type epsilonWallFunction;
value uniform 0.01;
}
type epsilonWallFunction;
value uniform 0.01;
}
minX
{
type fixedValue;
value uniform 0.01;
}
maxX
{
type inletOutlet;
inletValue uniform 0.01;
value uniform 0.01;
}
minX
{
type fixedValue;
value uniform 0.01;
}
maxX
{
type inletOutlet;
inletValue uniform 0.01;
value uniform 0.01;
}
}
}
k
k
{
internalField uniform 0.1;
boundaryField
{
internalField uniform 0.1;
boundaryField
".*"
{
".*"
{
type kqRWallFunction;
value uniform 0.1;
}
type kqRWallFunction;
value uniform 0.1;
}
minX
{
type fixedValue;
value uniform 0.1;
}
maxX
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
minX
{
type fixedValue;
value uniform 0.1;
}
maxX
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
}
}
p_rgh
p_rgh
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type fixedFluxPressure;
value uniform 1e5;
}
type fixedFluxPressure;
value uniform 1e5;
}
maxX
{
type fixedValue;
value uniform 1e5;
}
maxX
{
type fixedValue;
value uniform 1e5;
}
}
}
p
p
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type calculated;
value uniform 1e5;
}
type calculated;
value uniform 1e5;
}
maxX
{
type calculated;
value uniform 1e5;
}
maxX
{
type calculated;
value uniform 1e5;
}
}
}

View File

@ -14,110 +14,107 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minX
{
minX
type wall;
}
maxX
{
type wall;
}
}
U
{
internalField uniform (0.01 0 0);
boundaryField
{
".*"
{
type wall;
}
maxX
{
type wall;
type fixedValue;
value uniform (0 0 0);
}
}
}
U
T
{
internalField uniform 300;
boundaryField
{
internalField uniform (0.01 0 0);
boundaryField
".*"
{
".*"
{
type fixedValue;
value uniform (0 0 0);
}
type zeroGradient;
}
"bottomAir_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod fluidThermo;
value uniform 300;
}
}
}
T
epsilon
{
// Set the value on all bc to non-zero. Not used in simulation
// since zeroGradient; only used in initialisation.
internalField uniform 0.01;
boundaryField
{
internalField uniform 300;
boundaryField
".*"
{
".*"
{
type zeroGradient;
}
"bottomAir_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod fluidThermo;
value uniform 300;
}
type epsilonWallFunction;
value uniform 0.01;
}
}
}
epsilon
k
{
internalField uniform 0.1;
boundaryField
{
// Set the value on all bc to non-zero. Not used in simulation
// since zeroGradient; only used in initialisation.
internalField uniform 0.01;
boundaryField
".*"
{
".*"
{
type epsilonWallFunction;
value uniform 0.01;
}
type kqRWallFunction;
value uniform 0.1;
}
}
}
k
p_rgh
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 0.1;
boundaryField
".*"
{
".*"
{
type kqRWallFunction;
value uniform 0.1;
}
type fixedFluxPressure;
value uniform 1e5;
}
}
}
p_rgh
p
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type fixedFluxPressure;
value uniform 1e5;
}
}
}
p
{
internalField uniform 1e5;
boundaryField
{
".*"
{
type calculated;
value uniform 1e5;
}
type calculated;
value uniform 1e5;
}
}
}

View File

@ -14,47 +14,44 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minY
{
type patch;
}
minZ
{
type patch;
}
maxZ
{
type patch;
}
}
T
{
internalField uniform 300;
boundaryField
{
".*"
{
type zeroGradient;
value uniform 300;
}
"heater_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
minY
{
type patch;
}
minZ
{
type patch;
}
maxZ
{
type patch;
}
}
T
{
internalField uniform 300;
boundaryField
{
".*"
{
type zeroGradient;
value uniform 300;
}
"heater_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
minY
{
type fixedValue;
value uniform 500;
}
type fixedValue;
value uniform 500;
}
}
}

View File

@ -14,38 +14,35 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minZ
{
minZ
{
type patch;
}
maxZ
{
type patch;
}
type patch;
}
T
maxZ
{
internalField uniform 300;
type patch;
}
}
boundaryField
T
{
internalField uniform 300;
boundaryField
{
".*"
{
".*"
{
type zeroGradient;
value uniform 300;
}
"leftSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
type zeroGradient;
value uniform 300;
}
"leftSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
}
}

View File

@ -14,38 +14,35 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minZ
{
minZ
{
type patch;
}
maxZ
{
type patch;
}
type patch;
}
T
maxZ
{
internalField uniform 300;
type patch;
}
}
boundaryField
T
{
internalField uniform 300;
boundaryField
{
".*"
{
".*"
{
type zeroGradient;
value uniform 300;
}
"rightSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
type zeroGradient;
value uniform 300;
}
"rightSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
}
}

View File

@ -14,155 +14,152 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
U
{
U
{
internalField uniform (0.1 0 0);
internalField uniform (0.1 0 0);
boundaryField
boundaryField
{
".*"
{
".*"
{
type fixedValue;
value uniform (0 0 0);
}
minX
{
type fixedValue;
value uniform (0.1 0 0);
}
maxX
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0.1 0 0);
}
type fixedValue;
value uniform (0 0 0);
}
minX
{
type fixedValue;
value uniform (0.1 0 0);
}
maxX
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0.1 0 0);
}
}
}
T
T
{
internalField uniform 300;
boundaryField
{
internalField uniform 300;
boundaryField
".*"
{
".*"
{
type zeroGradient;
}
type zeroGradient;
}
minX
{
type fixedValue;
value uniform 300;
}
maxX
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
minX
{
type fixedValue;
value uniform 300;
}
maxX
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
"topAir_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod fluidThermo;
value uniform 300;
}
"topAir_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod fluidThermo;
value uniform 300;
}
}
}
epsilon
epsilon
{
internalField uniform 0.01;
boundaryField
{
internalField uniform 0.01;
boundaryField
".*"
{
".*"
{
type epsilonWallFunction;
value uniform 0.01;
}
type epsilonWallFunction;
value uniform 0.01;
}
minX
{
type fixedValue;
value uniform 0.01;
}
maxX
{
type inletOutlet;
inletValue uniform 0.01;
value uniform 0.01;
}
minX
{
type fixedValue;
value uniform 0.01;
}
maxX
{
type inletOutlet;
inletValue uniform 0.01;
value uniform 0.01;
}
}
}
k
k
{
internalField uniform 0.1;
boundaryField
{
internalField uniform 0.1;
boundaryField
".*"
{
".*"
{
type kqRWallFunction;
value uniform 0.1;
}
type kqRWallFunction;
value uniform 0.1;
}
minX
{
type fixedValue;
value uniform 0.1;
}
maxX
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
minX
{
type fixedValue;
value uniform 0.1;
}
maxX
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
}
}
p_rgh
p_rgh
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type fixedFluxPressure;
value uniform 1e5;
}
type fixedFluxPressure;
value uniform 1e5;
}
maxX
{
type fixedValue;
value uniform 1e5;
}
maxX
{
type fixedValue;
value uniform 1e5;
}
}
}
p
p
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type calculated;
value uniform 1e5;
}
type calculated;
value uniform 1e5;
}
maxX
{
type calculated;
value uniform 1e5;
}
maxX
{
type calculated;
value uniform 1e5;
}
}
}

View File

@ -14,176 +14,171 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minX
{
minX
type wall;
}
maxX
{
type wall;
}
}
U
{
internalField uniform (0.01 0 0);
boundaryField
{
".*"
{
type wall;
}
maxX
{
type wall;
type fixedValue;
value uniform (0 0 0);
}
}
}
U
T
{
internalField uniform 300;
boundaryField
{
internalField uniform (0.01 0 0);
boundaryField
".*"
{
".*"
{
type fixedValue;
value uniform (0 0 0);
}
type zeroGradient;
}
"bottomAir_to_.*"
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod fluidThermo;
QrNbr none;
Qr Qr;
value uniform 300;
}
}
}
T
epsilon
{
internalField uniform 0.01;
boundaryField
{
internalField uniform 300;
boundaryField
".*"
{
".*"
{
type zeroGradient;
}
"bottomAir_to_.*"
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod fluidThermo;
QrNbr none;
Qr Qr;
value uniform 300;
}
type epsilonWallFunction;
value uniform 0.01;
}
}
}
epsilon
k
{
internalField uniform 0.1;
boundaryField
{
internalField uniform 0.01;
boundaryField
".*"
{
".*"
{
type epsilonWallFunction;
value uniform 0.01;
}
type kqRWallFunction;
value uniform 0.1;
}
}
}
k
p_rgh
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 0.1;
boundaryField
".*"
{
".*"
{
type kqRWallFunction;
value uniform 0.1;
}
type fixedFluxPressure;
value uniform 1e5;
}
}
}
p_rgh
p
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type fixedFluxPressure;
value uniform 1e5;
}
type calculated;
value uniform 1e5;
}
}
}
p
Qr
{
internalField uniform 0;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type calculated;
value uniform 1e5;
}
type greyDiffusiveRadiationViewFactor;
emissivityMode lookup;
Qro uniform 0;
emissivity uniform 1.0;
value uniform 0;
}
"bottomAir_to_.*"
{
type greyDiffusiveRadiationViewFactor;
emissivityMode solidRadiation;
Qro uniform 0;
value uniform 0;
}
}
}
Qr
G
{
internalField uniform 0;
boundaryField
{
internalField uniform 0;
boundaryField
".*"
{
".*"
{
type greyDiffusiveRadiationViewFactor;
emissivityMode lookup;
Qro uniform 0;
emissivity uniform 1.0;
value uniform 0;
}
type MarshakRadiation;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
"bottomAir_to_.*"
{
type greyDiffusiveRadiationViewFactor;
emissivityMode solidRadiation;
Qro uniform 0;
value uniform 0;
}
"bottomAir_to_.*"
{
type MarshakRadiation;
emissivityMode solidRadiation;
value uniform 0;
}
}
}
G
IDefault
{
internalField uniform 0;
boundaryField
{
internalField uniform 0;
boundaryField
".*"
{
".*"
{
type MarshakRadiation;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
type greyDiffusiveRadiation;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
"bottomAir_to_.*"
{
type MarshakRadiation;
emissivityMode solidRadiation;
value uniform 0;
}
"bottomAir_to_.*"
{
type greyDiffusiveRadiation;
emissivityMode solidRadiation;
value uniform 0;
}
}
IDefault
{
internalField uniform 0;
boundaryField
{
".*"
{
type greyDiffusiveRadiation;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
"bottomAir_to_.*"
{
type greyDiffusiveRadiation;
emissivityMode solidRadiation;
value uniform 0;
}
}
}
}
// ************************************************************************* //

View File

@ -14,68 +14,65 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minY
{
type patch;
}
minZ
{
type patch;
}
maxZ
{
type patch;
}
}
T
{
internalField uniform 300;
boundaryField
{
".*"
{
type zeroGradient;
value uniform 300;
}
heater_to_topAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
heater_to_bottomAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
"heater_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
minY
{
type patch;
}
minZ
{
type patch;
}
maxZ
{
type patch;
}
}
T
{
internalField uniform 300;
boundaryField
{
".*"
{
type zeroGradient;
value uniform 300;
}
heater_to_topAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
heater_to_bottomAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
"heater_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
minY
{
type fixedValue;
value uniform 500;
}
type fixedValue;
value uniform 500;
}
}
}

View File

@ -14,59 +14,56 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minZ
{
minZ
{
type patch;
}
maxZ
{
type patch;
}
type patch;
}
T
maxZ
{
internalField uniform 300;
type patch;
}
}
boundaryField
T
{
internalField uniform 300;
boundaryField
{
".*"
{
".*"
{
type zeroGradient;
value uniform 300;
}
type zeroGradient;
value uniform 300;
}
leftSolid_to_topAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
leftSolid_to_topAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
leftSolid_to_bottomAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
leftSolid_to_bottomAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
"leftSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
"leftSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
}
}

View File

@ -14,59 +14,56 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
boundary
{
boundary
minZ
{
minZ
{
type patch;
}
maxZ
{
type patch;
}
type patch;
}
T
maxZ
{
internalField uniform 300;
type patch;
}
}
boundaryField
T
{
internalField uniform 300;
boundaryField
{
".*"
{
".*"
{
type zeroGradient;
value uniform 300;
}
type zeroGradient;
value uniform 300;
}
rightSolid_to_topAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
rightSolid_to_topAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
rightSolid_to_bottomAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
rightSolid_to_bottomAir
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
value uniform 300;
}
"rightSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
"rightSolid_to_.*"
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
Tnbr T;
kappaMethod solidThermo;
value uniform 300;
}
}
}

View File

@ -14,219 +14,216 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
U
{
U
internalField uniform (0.1 0 0);
boundaryField
{
internalField uniform (0.1 0 0);
boundaryField
".*"
{
".*"
{
type fixedValue;
value uniform (0 0 0);
}
minX
{
type fixedValue;
value uniform (0.1 0 0);
}
maxX
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0.1 0 0);
}
type fixedValue;
value uniform (0 0 0);
}
minX
{
type fixedValue;
value uniform (0.1 0 0);
}
maxX
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0.1 0 0);
}
}
}
T
T
{
internalField uniform 300;
boundaryField
{
internalField uniform 300;
boundaryField
".*"
{
".*"
{
type zeroGradient;
}
type zeroGradient;
}
minX
{
type fixedValue;
value uniform 300;
}
maxX
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
minX
{
type fixedValue;
value uniform 300;
}
maxX
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
"topAir_to_.*"
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod fluidThermo;
QrNbr none;
Qr Qr;
value uniform 300;
}
"topAir_to_.*"
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod fluidThermo;
QrNbr none;
Qr Qr;
value uniform 300;
}
}
}
epsilon
epsilon
{
internalField uniform 0.01;
boundaryField
{
internalField uniform 0.01;
boundaryField
".*"
{
".*"
{
type epsilonWallFunction;
value uniform 0.01;
}
type epsilonWallFunction;
value uniform 0.01;
}
minX
{
type fixedValue;
value uniform 0.01;
}
maxX
{
type inletOutlet;
inletValue uniform 0.01;
value uniform 0.01;
}
minX
{
type fixedValue;
value uniform 0.01;
}
maxX
{
type inletOutlet;
inletValue uniform 0.01;
value uniform 0.01;
}
}
}
k
k
{
internalField uniform 0.1;
boundaryField
{
internalField uniform 0.1;
boundaryField
".*"
{
".*"
{
type kqRWallFunction;
value uniform 0.1;
}
type kqRWallFunction;
value uniform 0.1;
}
minX
{
type fixedValue;
value uniform 0.1;
}
maxX
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
minX
{
type fixedValue;
value uniform 0.1;
}
maxX
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
}
}
p_rgh
p_rgh
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type fixedFluxPressure;
value uniform 1e5;
}
type fixedFluxPressure;
value uniform 1e5;
}
maxX
{
type fixedValue;
value uniform 1e5;
}
maxX
{
type fixedValue;
value uniform 1e5;
}
}
}
p
p
{
internalField uniform 1e5;
boundaryField
{
internalField uniform 1e5;
boundaryField
".*"
{
".*"
{
type calculated;
value uniform 1e5;
}
type calculated;
value uniform 1e5;
}
maxX
{
type calculated;
value uniform 1e5;
}
maxX
{
type calculated;
value uniform 1e5;
}
}
}
Qr
Qr
{
internalField uniform 0;
boundaryField
{
internalField uniform 0;
boundaryField
".*"
{
".*"
{
type greyDiffusiveRadiationViewFactor;
emissivityMode lookup;
Qro uniform 0;
emissivity uniform 1.0;
value uniform 0;
}
type greyDiffusiveRadiationViewFactor;
emissivityMode lookup;
Qro uniform 0;
emissivity uniform 1.0;
value uniform 0;
}
"topAir_to_.*"
{
type greyDiffusiveRadiationViewFactor;
emissivityMode solidRadiation;
Qro uniform 0;
value uniform 0;
}
"topAir_to_.*"
{
type greyDiffusiveRadiationViewFactor;
emissivityMode solidRadiation;
Qro uniform 0;
value uniform 0;
}
}
}
G
G
{
internalField uniform 0;
boundaryField
{
internalField uniform 0;
boundaryField
".*"
{
".*"
{
type MarshakRadiation;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
type MarshakRadiation;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
"topAir_to_.*"
{
type MarshakRadiation;
emissivityMode solidRadiation;
value uniform 0;
}
"topAir_to_.*"
{
type MarshakRadiation;
emissivityMode solidRadiation;
value uniform 0;
}
}
}
IDefault
IDefault
{
internalField uniform 0;
boundaryField
{
internalField uniform 0;
boundaryField
".*"
{
".*"
{
type greyDiffusiveRadiation;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
type greyDiffusiveRadiation;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
"topAir_to_.*"
{
type greyDiffusiveRadiation;
emissivityMode solidRadiation;
value uniform 0;
}
"topAir_to_.*"
{
type greyDiffusiveRadiation;
emissivityMode solidRadiation;
value uniform 0;
}
}
}

View File

@ -14,15 +14,13 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
mirrorMeshDict
{
mirrorMeshDict
pointAndNormalDict
{
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 -1 0);
}
basePoint (0 0 0);
normalVector (0 -1 0);
}
}
// ************************************************************************* //

View File

@ -14,15 +14,13 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
mirrorMeshDict
{
mirrorMeshDict
pointAndNormalDict
{
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (-1 0 0);
}
basePoint (0 0 0);
normalVector (-1 0 0);
}
}
// ************************************************************************* //

View File

@ -14,15 +14,13 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
mirrorMeshDict
{
mirrorMeshDict
pointAndNormalDict
{
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 -1 0);
}
basePoint (0 0 0);
normalVector (0 -1 0);
}
}
// ************************************************************************* //

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

View File

@ -14,32 +14,29 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionaryReplacement
p_rgh
{
p_rgh
boundaryField
{
boundaryField
porous_half0
{
porous_half0
{
type porousBafflePressure;
patchType cyclic;
D 700;
I 500;
length 1.05;
jump uniform 0;
value uniform 0;
}
porous_half1
{
type porousBafflePressure;
patchType cyclic;
D 700;
I 500;
length 1.05;
jump uniform 0;
value uniform 0;
}
type porousBafflePressure;
patchType cyclic;
D 700;
I 500;
length 1.05;
jump uniform 0;
value uniform 0;
}
porous_half1
{
type porousBafflePressure;
patchType cyclic;
D 700;
I 500;
length 1.05;
jump uniform 0;
value uniform 0;
}
}
}