STYLE: update of 'mode' to 'type' keyword for radiation properties

This commit is contained in:
Mark Olesen
2019-05-17 09:53:25 +01:00
committed by Andrew Heather
parent 29e6c81af8
commit 722ebdb151
15 changed files with 15 additions and 26 deletions

View File

@ -44,7 +44,7 @@ autoPtr<filmThermoModel> filmThermoModel::New
const dictionary& dict
)
{
word modelType(dict.get<word>("filmThermoModel"));
const word modelType(dict.get<word>("filmThermoModel"));
Info<< " Selecting filmThermoModel " << modelType << endl;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -51,7 +51,7 @@ Foam::radiation::boundaryRadiationPropertiesPatch::New
const polyPatch& pp
)
{
word modelType(dict.lookupCompat("type", {{"mode", 1812}}));
const word modelType(dict.getCompat<word>("type", {{"mode", 1812}}));
Info<< "Selecting boundary radiation Model: "
<< modelType << endl;

View File

@ -48,7 +48,7 @@ Foam::autoPtr<Foam::waveModel> Foam::waveModel::New
)
);
word modelType = "none";
word modelType("none");
dictionary patchDict;
if (waveDict.found(patch.name()))
{

View File

@ -29,5 +29,4 @@ inlet
absorptivity 0.9;
}
// ************************************************************************* //

View File

@ -15,6 +15,13 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
".*"
{
type lookup;
emissivity 1.0;
absorptivity 1.0;
transmissivity 0.0;
}
region0_to_pyrolysisRegion_coupledWall
{
@ -25,13 +32,4 @@ region0_to_pyrolysisRegion_coupledWall
}
}
".*"
{
type lookup;
emissivity 1.0;
absorptivity 1.0;
transmissivity 0.0;
}
// ************************************************************************* //

View File

@ -15,7 +15,6 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
".*"
{
type lookup;
@ -31,5 +30,4 @@ FoamFile
}
}
// ************************************************************************* //

View File

@ -39,5 +39,4 @@ inlet
emissivity 1.0;
}
// ************************************************************************* //

View File

@ -21,5 +21,4 @@ FoamFile
emissivity 1.0;
}
// ************************************************************************* //

View File

@ -17,10 +17,9 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 1;
absorptivity 0;
}
// ************************************************************************* //

View File

@ -22,5 +22,4 @@ FoamFile
absorptivity 1.0;
}
// ************************************************************************* //

View File

@ -22,5 +22,4 @@ FoamFile
absorptivity 1.0;
}
// ************************************************************************* //

View File

@ -22,5 +22,4 @@ FoamFile
absorptivity 1.0;
}
// ************************************************************************* //

View File

@ -73,3 +73,5 @@ ZMin
emissivity (0.3 0.7);
};
}
// ************************************************************************* //

View File

@ -15,7 +15,6 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
".*"
{
type lookup;

View File

@ -15,10 +15,9 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
absorptivity 0.0;
}