STYLE: use dict entry for function objects in controlDict

This commit is contained in:
Mark Olesen
2010-04-09 12:23:25 +02:00
parent 31aaddf452
commit 10141f907b
29 changed files with 299 additions and 280 deletions

View File

@ -49,16 +49,16 @@ functions
fieldAverage1
{
// Type of functionObject
type fieldAverage;
type fieldAverage;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldAverage.so");
// Function object enabled flag
enabled true;
enabled true;
// When to output the average fields
outputControl outputTime;
outputControl outputTime;
// Fields to be averaged - runTime modifiable
fields

View File

@ -46,7 +46,7 @@ timePrecision 6;
runTimeModifiable yes;
functions
(
{
faceObj1
{
type faceSource;
@ -60,6 +60,7 @@ functions
// source faceZone;
// sourceName f0;
operation areaAverage;
fields
(
p
@ -79,6 +80,7 @@ functions
source faceZone;
sourceName f0;
operation sum;
fields
(
phi
@ -96,13 +98,13 @@ functions
source cellZone;
sourceName c0;
operation volAverage;
fields
(
p
U
);
}
);
}
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
functions
(
{
readFields1
{
type readFields;
@ -24,11 +24,13 @@ functions
enabled true;
outputControl timeStep;
outputInterval 1;
fields
(
interpolateU
);
}
faceObj2
{
type faceSource;
@ -41,12 +43,12 @@ functions
source faceZone;
sourceName f0;
operation areaAverage;
fields
(
interpolateU
);
}
);
}
// ************************************************************************* //

View File

@ -45,23 +45,21 @@ timePrecision 6;
runTimeModifiable yes;
functions
(
{
convergenceChecks
{
type residualControl;
type residualControl;
functionObjectLibs ( "libresidualControl.so" );
outputControl timeStep;
outputInterval 1;
outputControl timeStep;
outputInterval 1;
maxResiduals
(
(p 5e-4)
(U 1e-3)
( p 5e-4 )
( U 1e-3 )
);
}
);
}
// ************************************************************************* //

View File

@ -49,17 +49,18 @@ functions
{
fileUpdate1
{
type timeActivatedFileUpdate;
type timeActivatedFileUpdate;
functionObjectLibs ("libutilityFunctionObjects.so");
outputControl timeStep;
outputInterval 1;
fileToUpdate "$FOAM_CASE/system/fvSolution";
outputControl timeStep;
outputInterval 1;
fileToUpdate "$FOAM_CASE/system/fvSolution";
timeVsFile
(
(-1 "$FOAM_CASE/system/fvSolution.0")
(0.10 "$FOAM_CASE/system/fvSolution.10")
(0.20 "$FOAM_CASE/system/fvSolution.20")
(0.35 "$FOAM_CASE/system/fvSolution.35")
( -1 "$FOAM_CASE/system/fvSolution.0" )
( 0.10 "$FOAM_CASE/system/fvSolution.10" )
( 0.20 "$FOAM_CASE/system/fvSolution.20" )
( 0.35 "$FOAM_CASE/system/fvSolution.35" )
);
}
}