functionObjectList: Removed warning for optional entries

Simplified the residuals functionObject call in the tutorials
This commit is contained in:
Henry Weller
2019-09-01 21:16:37 +01:00
parent 6e9801e7e8
commit dbe9fb3b76
9 changed files with 7 additions and 96 deletions

View File

@ -374,12 +374,6 @@ bool Foam::functionObjectList::readFunctionObject
// Insert named arguments // Insert named arguments
forAll(namedArgs, i) forAll(namedArgs, i)
{ {
if (!funcDict.found(namedArgs[i].first()))
{
IOWarningInFunction(funcDict)
<< "Keyword " << namedArgs[i].first() << " not found" << endl;
}
IStringStream entryStream IStringStream entryStream
( (
namedArgs[i].first() + ' ' + namedArgs[i].second() + ';' namedArgs[i].first() + ' ' + namedArgs[i].second() + ';'

View File

@ -47,7 +47,7 @@ runTimeModifiable true;
functions functions
{ {
#includeFunc residuals #includeFunc residuals(p_rgh)
#includeFunc streamlines #includeFunc streamlines
} }

View File

@ -1,19 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
For specified fields, writes out the initial residuals for the first
solution of each time step; for non-scalar fields (e.g. vectors), writes
the largest of the residuals for each component (e.g. x, y, z).
\*---------------------------------------------------------------------------*/
#includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
fields (p_rgh);
// ************************************************************************* //

View File

@ -49,7 +49,9 @@ adjustTimeStep off;
functions functions
{ {
#include "residuals" #includeFunc residuals(region = shell, p_rgh, U, h)
#includeFunc residuals(region = tube, p_rgh, U, h)
#includeFunc residuals(region = solid, h)
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,30 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
shellResiduals
{
#includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
region shell;
fields (p_rgh U h);
}
tubeResiduals
{
#includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
region tube;
fields (p_rgh U h);
}
solidResiduals
{
#includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
region solid;
fields (h);
}
// ************************************************************************* //

View File

@ -46,7 +46,7 @@ runTimeModifiable true;
functions functions
{ {
#includeFunc residuals #includeFunc residuals(p, sigma)
#includeFunc singleGraph #includeFunc singleGraph
#includeFunc probes #includeFunc probes
} }

View File

@ -1,19 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
For specified fields, writes out the initial residuals for the first
solution of each time step; for non-scalar fields (e.g. vectors), writes
the largest of the residuals for each component (e.g. x, y, z).
\*---------------------------------------------------------------------------*/
#includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
fields (p sigma);
// ************************************************************************* //

View File

@ -1,17 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Calculates the heat release rate Qdot, outputting the data as a Qdot field.
\*---------------------------------------------------------------------------*/
#includeEtc "caseDicts/postProcessing/combustion/Qdot.cfg"
phase gas;
// ************************************************************************* //

View File

@ -29,7 +29,7 @@ deltaT 0.001;
writeControl runTime; writeControl runTime;
writeInterval 1; writeInterval 0.001;
purgeWrite 0; purgeWrite 0;
@ -53,7 +53,7 @@ maxDeltaT 1;
functions functions
{ {
#includeFunc Qdot #includeFunc Qdot(phase = gas)
} }