mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use dict entry for function objects in controlDict
This commit is contained in:
@ -49,16 +49,16 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
// Type of functionObject
|
// Type of functionObject
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
|
|
||||||
// Where to load it from (if not already in solver)
|
// Where to load it from (if not already in solver)
|
||||||
functionObjectLibs ("libfieldAverage.so");
|
functionObjectLibs ("libfieldAverage.so");
|
||||||
|
|
||||||
// Function object enabled flag
|
// Function object enabled flag
|
||||||
enabled true;
|
enabled true;
|
||||||
|
|
||||||
// When to output the average fields
|
// When to output the average fields
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
// Fields to be averaged - runTime modifiable
|
// Fields to be averaged - runTime modifiable
|
||||||
fields
|
fields
|
||||||
|
|||||||
@ -46,7 +46,7 @@ timePrecision 6;
|
|||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
faceObj1
|
faceObj1
|
||||||
{
|
{
|
||||||
type faceSource;
|
type faceSource;
|
||||||
@ -60,6 +60,7 @@ functions
|
|||||||
// source faceZone;
|
// source faceZone;
|
||||||
// sourceName f0;
|
// sourceName f0;
|
||||||
operation areaAverage;
|
operation areaAverage;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
p
|
p
|
||||||
@ -79,6 +80,7 @@ functions
|
|||||||
source faceZone;
|
source faceZone;
|
||||||
sourceName f0;
|
sourceName f0;
|
||||||
operation sum;
|
operation sum;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
phi
|
phi
|
||||||
@ -96,13 +98,13 @@ functions
|
|||||||
source cellZone;
|
source cellZone;
|
||||||
sourceName c0;
|
sourceName c0;
|
||||||
operation volAverage;
|
operation volAverage;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
p
|
p
|
||||||
U
|
U
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -16,7 +16,7 @@ FoamFile
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
readFields1
|
readFields1
|
||||||
{
|
{
|
||||||
type readFields;
|
type readFields;
|
||||||
@ -24,11 +24,13 @@ functions
|
|||||||
enabled true;
|
enabled true;
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
interpolateU
|
interpolateU
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
faceObj2
|
faceObj2
|
||||||
{
|
{
|
||||||
type faceSource;
|
type faceSource;
|
||||||
@ -41,12 +43,12 @@ functions
|
|||||||
source faceZone;
|
source faceZone;
|
||||||
sourceName f0;
|
sourceName f0;
|
||||||
operation areaAverage;
|
operation areaAverage;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
interpolateU
|
interpolateU
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -45,23 +45,21 @@ timePrecision 6;
|
|||||||
|
|
||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
convergenceChecks
|
convergenceChecks
|
||||||
{
|
{
|
||||||
type residualControl;
|
type residualControl;
|
||||||
functionObjectLibs ( "libresidualControl.so" );
|
functionObjectLibs ( "libresidualControl.so" );
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
maxResiduals
|
maxResiduals
|
||||||
(
|
(
|
||||||
(p 5e-4)
|
( p 5e-4 )
|
||||||
(U 1e-3)
|
( U 1e-3 )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -49,17 +49,18 @@ functions
|
|||||||
{
|
{
|
||||||
fileUpdate1
|
fileUpdate1
|
||||||
{
|
{
|
||||||
type timeActivatedFileUpdate;
|
type timeActivatedFileUpdate;
|
||||||
functionObjectLibs ("libutilityFunctionObjects.so");
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
fileToUpdate "$FOAM_CASE/system/fvSolution";
|
fileToUpdate "$FOAM_CASE/system/fvSolution";
|
||||||
|
|
||||||
timeVsFile
|
timeVsFile
|
||||||
(
|
(
|
||||||
(-1 "$FOAM_CASE/system/fvSolution.0")
|
( -1 "$FOAM_CASE/system/fvSolution.0" )
|
||||||
(0.10 "$FOAM_CASE/system/fvSolution.10")
|
( 0.10 "$FOAM_CASE/system/fvSolution.10" )
|
||||||
(0.20 "$FOAM_CASE/system/fvSolution.20")
|
( 0.20 "$FOAM_CASE/system/fvSolution.20" )
|
||||||
(0.35 "$FOAM_CASE/system/fvSolution.35")
|
( 0.35 "$FOAM_CASE/system/fvSolution.35" )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,6 +57,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
@ -76,5 +77,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -57,6 +57,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
@ -76,5 +77,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -49,7 +49,6 @@ adjustTimeStep no;
|
|||||||
|
|
||||||
maxCo 0.5;
|
maxCo 0.5;
|
||||||
|
|
||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
fieldAverage1
|
fieldAverage1
|
||||||
@ -58,6 +57,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
@ -77,5 +77,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -49,14 +49,16 @@ functions
|
|||||||
{
|
{
|
||||||
forces
|
forces
|
||||||
{
|
{
|
||||||
type forceCoeffs;
|
type forceCoeffs;
|
||||||
functionObjectLibs ( "libforces.so" );
|
functionObjectLibs ( "libforces.so" );
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
patches
|
patches
|
||||||
(
|
(
|
||||||
WALL10
|
WALL10
|
||||||
);
|
);
|
||||||
|
|
||||||
pName p;
|
pName p;
|
||||||
UName U;
|
UName U;
|
||||||
log true;
|
log true;
|
||||||
@ -71,5 +73,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -48,79 +48,79 @@ runTimeModifiable yes;
|
|||||||
adjustTimeStep no;
|
adjustTimeStep no;
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
dsmcFields1
|
dsmcFields1
|
||||||
{
|
{
|
||||||
type dsmcFields;
|
type dsmcFields;
|
||||||
enabled on;
|
|
||||||
functionObjectLibs ( "libutilityFunctionObjects.so" );
|
functionObjectLibs ( "libutilityFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
}
|
}
|
||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
resetOnOutput off;
|
resetOnOutput off;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
rhoN
|
rhoN
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
rhoM
|
rhoM
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
dsmcRhoN
|
dsmcRhoN
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
momentum
|
momentum
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
linearKE
|
linearKE
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
internalE
|
internalE
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
iDof
|
iDof
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
q
|
q
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
fD
|
fD
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -48,79 +48,79 @@ runTimeModifiable yes;
|
|||||||
adjustTimeStep no;
|
adjustTimeStep no;
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
dsmcFields1
|
dsmcFields1
|
||||||
{
|
{
|
||||||
type dsmcFields;
|
type dsmcFields;
|
||||||
enabled on;
|
|
||||||
functionObjectLibs ( "libutilityFunctionObjects.so" );
|
functionObjectLibs ( "libutilityFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
}
|
}
|
||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
resetOnOutput off;
|
resetOnOutput off;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
rhoN
|
rhoN
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
rhoM
|
rhoM
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
dsmcRhoN
|
dsmcRhoN
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
momentum
|
momentum
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
linearKE
|
linearKE
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
internalE
|
internalE
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
iDof
|
iDof
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
q
|
q
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
fD
|
fD
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -48,79 +48,79 @@ runTimeModifiable yes;
|
|||||||
adjustTimeStep no;
|
adjustTimeStep no;
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
dsmcFields1
|
dsmcFields1
|
||||||
{
|
{
|
||||||
type dsmcFields;
|
type dsmcFields;
|
||||||
enabled on;
|
|
||||||
functionObjectLibs ( "libutilityFunctionObjects.so" );
|
functionObjectLibs ( "libutilityFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
}
|
}
|
||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
resetOnOutput off;
|
resetOnOutput off;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
rhoN
|
rhoN
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
rhoM
|
rhoM
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
dsmcRhoN
|
dsmcRhoN
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
momentum
|
momentum
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
linearKE
|
linearKE
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
internalE
|
internalE
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
iDof
|
iDof
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
q
|
q
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
fD
|
fD
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -49,93 +49,93 @@ runTimeModifiable yes;
|
|||||||
adjustTimeStep no;
|
adjustTimeStep no;
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
dsmcFields1
|
dsmcFields1
|
||||||
{
|
{
|
||||||
type dsmcFields;
|
type dsmcFields;
|
||||||
enabled on;
|
|
||||||
functionObjectLibs ( "libutilityFunctionObjects.so" );
|
functionObjectLibs ( "libutilityFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
resetOnOutput off;
|
resetOnOutput off;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
rhoN
|
rhoN
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
rhoM
|
rhoM
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
dsmcRhoN
|
dsmcRhoN
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
momentum
|
momentum
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
linearKE
|
linearKE
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
internalE
|
internalE
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
iDof
|
iDof
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
q
|
q
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
fD
|
fD
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
forces1
|
forces1
|
||||||
{
|
{
|
||||||
type forces;
|
type forces;
|
||||||
enabled on;
|
enabled true;
|
||||||
functionObjectLibs ( "libforces.so" );
|
functionObjectLibs ( "libforces.so" );
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
patches ( obstacle );
|
patches ( obstacle );
|
||||||
directForceDensity true;
|
directForceDensity true;
|
||||||
fDName fDMean;
|
fDName fDMean;
|
||||||
CofR ( 0 0 0 );
|
CofR ( 0 0 0 );
|
||||||
log on;
|
log on;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -53,6 +53,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
|
|||||||
@ -53,11 +53,22 @@ functions
|
|||||||
{
|
{
|
||||||
probes
|
probes
|
||||||
{
|
{
|
||||||
type probes;
|
type probes;
|
||||||
// Where to load it from
|
// Where to load it from
|
||||||
functionObjectLibs ( "libsampling.so" );
|
functionObjectLibs ( "libsampling.so" );
|
||||||
// Name of the directory for probe data
|
// Name of the directory for probe data
|
||||||
name probes;
|
name probes;
|
||||||
|
|
||||||
|
// Write at same frequency as fields
|
||||||
|
outputControl outputTime;
|
||||||
|
outputInterval 1;
|
||||||
|
|
||||||
|
// Fields to be probed
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
p U
|
||||||
|
);
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( 1e-06 0 0.01 ) // at inlet
|
( 1e-06 0 0.01 ) // at inlet
|
||||||
@ -65,15 +76,7 @@ functions
|
|||||||
( 0.21 0.20999 0.01 ) // at outlet2
|
( 0.21 0.20999 0.01 ) // at outlet2
|
||||||
( 0.21 0 0.01 ) // at central block
|
( 0.21 0 0.01 ) // at central block
|
||||||
);
|
);
|
||||||
|
|
||||||
// Fields to be probed
|
|
||||||
fields ( p U );
|
|
||||||
|
|
||||||
// Write at same frequency as fields
|
|
||||||
outputControl outputTime;
|
|
||||||
outputInterval 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -54,6 +54,12 @@ functions
|
|||||||
enabled true;
|
enabled true;
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
p
|
||||||
|
);
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( 0.0254 0.0253 0 )
|
( 0.0254 0.0253 0 )
|
||||||
@ -65,10 +71,6 @@ functions
|
|||||||
( 0.1778 0.0253 0 )
|
( 0.1778 0.0253 0 )
|
||||||
);
|
);
|
||||||
|
|
||||||
fields
|
|
||||||
(
|
|
||||||
p
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldAverage1
|
fieldAverage1
|
||||||
@ -77,6 +79,7 @@ functions
|
|||||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
@ -96,5 +99,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -54,6 +54,12 @@ functions
|
|||||||
enabled true;
|
enabled true;
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
p
|
||||||
|
);
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( 0.0254 0.0253 0 )
|
( 0.0254 0.0253 0 )
|
||||||
@ -64,10 +70,6 @@ functions
|
|||||||
( 0.1524 0.0253 0 )
|
( 0.1524 0.0253 0 )
|
||||||
( 0.1778 0.0253 0 )
|
( 0.1778 0.0253 0 )
|
||||||
);
|
);
|
||||||
fields
|
|
||||||
(
|
|
||||||
p
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldAverage1
|
fieldAverage1
|
||||||
@ -76,6 +78,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
|
|||||||
@ -46,25 +46,25 @@ timePrecision 6;
|
|||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
streamLines
|
streamLines
|
||||||
{
|
{
|
||||||
type streamLine;
|
type streamLine;
|
||||||
|
|
||||||
// Where to load it from (if not already in solver)
|
// Where to load it from (if not already in solver)
|
||||||
functionObjectLibs ("libOpenFOAM.so" "libfieldFunctionObjects.so");
|
functionObjectLibs ("libOpenFOAM.so" "libfieldFunctionObjects.so");
|
||||||
|
|
||||||
// Output every
|
// Output every
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
//outputInterval 10;
|
//outputInterval 10;
|
||||||
|
|
||||||
setFormat vtk;//gnuplot;//xmgr; //raw; //gnuplot; //jplot;
|
setFormat vtk;//gnuplot;//xmgr; //raw; //gnuplot; //jplot;
|
||||||
|
|
||||||
// Velocity field to use for tracking.
|
// Velocity field to use for tracking.
|
||||||
U U;
|
U U;
|
||||||
|
|
||||||
// Tracked forwards (+U) or backwards (-U)
|
// Tracked forwards (+U) or backwards (-U)
|
||||||
trackForward true;
|
trackForward true;
|
||||||
|
|
||||||
// Names of fields to sample. Should contain above velocity field!
|
// Names of fields to sample. Should contain above velocity field!
|
||||||
fields (p k U);
|
fields (p k U);
|
||||||
@ -73,10 +73,10 @@ functions
|
|||||||
lifeTime 1000;
|
lifeTime 1000;
|
||||||
|
|
||||||
// Cloud name to use
|
// Cloud name to use
|
||||||
cloudName particleTracks;
|
cloudName particleTracks;
|
||||||
|
|
||||||
// Seeding method. See the sampleSets in sampleDict.
|
// Seeding method. See the sampleSets in sampleDict.
|
||||||
seedSampleSet uniform; //cloud;//triSurfaceMeshPointSet;
|
seedSampleSet uniform; //cloud;//triSurfaceMeshPointSet;
|
||||||
|
|
||||||
uniformCoeffs
|
uniformCoeffs
|
||||||
{
|
{
|
||||||
@ -106,6 +106,6 @@ functions
|
|||||||
// surface twoTri.stl;
|
// surface twoTri.stl;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -63,6 +63,7 @@ functions
|
|||||||
sourceName outlet;
|
sourceName outlet;
|
||||||
operation weightedAverage;
|
operation weightedAverage;
|
||||||
weightField phi;
|
weightField phi;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
H2O
|
H2O
|
||||||
@ -71,5 +72,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -57,6 +57,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
enabled false;
|
enabled false;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
@ -83,5 +84,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -57,6 +57,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
enabled false;
|
enabled false;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
@ -83,5 +84,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -59,15 +59,17 @@ functions
|
|||||||
functionObjectLibs ("libsampling.so");
|
functionObjectLibs ("libsampling.so");
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
p
|
||||||
|
);
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( 0 9.95 19.77 )
|
( 0 9.95 19.77 )
|
||||||
( 0 -9.95 19.77 )
|
( 0 -9.95 19.77 )
|
||||||
);
|
);
|
||||||
fields
|
|
||||||
(
|
|
||||||
p
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wallPressure
|
wallPressure
|
||||||
@ -77,6 +79,7 @@ functions
|
|||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 10;
|
outputInterval 10;
|
||||||
surfaceFormat raw;
|
surfaceFormat raw;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
p
|
p
|
||||||
@ -94,5 +97,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -59,24 +59,27 @@ functions
|
|||||||
functionObjectLibs ("libsampling.so");
|
functionObjectLibs ("libsampling.so");
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
p
|
||||||
|
);
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( 0 9.95 19.77 )
|
( 0 9.95 19.77 )
|
||||||
( 0 -9.95 19.77 )
|
( 0 -9.95 19.77 )
|
||||||
);
|
);
|
||||||
fields
|
|
||||||
(
|
|
||||||
p
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wallPressure
|
wallPressure
|
||||||
{
|
{
|
||||||
type surfaces;
|
type surfaces;
|
||||||
functionObjectLibs ("libsampling.so");
|
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 10;
|
outputInterval 10;
|
||||||
surfaceFormat raw;
|
surfaceFormat raw;
|
||||||
|
functionObjectLibs ("libsampling.so");
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
p
|
p
|
||||||
@ -94,5 +97,4 @@ functions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -59,17 +59,18 @@ functions
|
|||||||
functionObjectLibs ("libsampling.so");
|
functionObjectLibs ("libsampling.so");
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
p
|
||||||
|
);
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( 0 9.95 19.77 )
|
( 0 9.95 19.77 )
|
||||||
( 0 -9.95 19.77 )
|
( 0 -9.95 19.77 )
|
||||||
);
|
);
|
||||||
fields
|
|
||||||
(
|
|
||||||
p
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -59,17 +59,18 @@ functions
|
|||||||
functionObjectLibs ("libsampling.so");
|
functionObjectLibs ("libsampling.so");
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
p
|
||||||
|
);
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( 0 9.95 19.77 )
|
( 0 9.95 19.77 )
|
||||||
( 0 -9.95 19.77 )
|
( 0 -9.95 19.77 )
|
||||||
);
|
);
|
||||||
fields
|
|
||||||
(
|
|
||||||
p
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -59,17 +59,18 @@ functions
|
|||||||
functionObjectLibs ("libsampling.so");
|
functionObjectLibs ("libsampling.so");
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
p
|
||||||
|
);
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( 0 9.95 19.77 )
|
( 0 9.95 19.77 )
|
||||||
( 0 -9.95 19.77 )
|
( 0 -9.95 19.77 )
|
||||||
);
|
);
|
||||||
fields
|
|
||||||
(
|
|
||||||
p
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -58,38 +58,38 @@ functions
|
|||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
Ua
|
Ua
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ub
|
Ub
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
alpha
|
alpha
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
p
|
p
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -58,38 +58,38 @@ functions
|
|||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
Ua
|
Ua
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ub
|
Ub
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
alpha
|
alpha
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
p
|
p
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -58,38 +58,38 @@ functions
|
|||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
Ua
|
Ua
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ub
|
Ub
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
alpha
|
alpha
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
|
|
||||||
p
|
p
|
||||||
{
|
{
|
||||||
mean on;
|
mean on;
|
||||||
prime2Mean off;
|
prime2Mean off;
|
||||||
base time;
|
base time;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user