tutorials: Moved the functions entry from controlDict into a functions file

This commit is contained in:
Henry Weller
2024-01-20 23:43:10 +00:00
parent e99466059f
commit a1eb8898d6
279 changed files with 5193 additions and 3146 deletions

View File

@ -49,9 +49,5 @@ runTimeModifiable true;
// maxCo 1;
functions
{
#include "graph"
}
// ************************************************************************* //

View File

@ -0,0 +1,22 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// adjustTimeStep yes;
// maxCo 1;
#include "graph"
// ************************************************************************* //

View File

@ -49,8 +49,5 @@ runTimeModifiable true;
// maxCo 1;
functions
{
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// adjustTimeStep yes;
// maxCo 1;
// ************************************************************************* //

View File

@ -49,8 +49,5 @@ runTimeModifiable true;
// maxCo 1;
functions
{
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// adjustTimeStep yes;
// maxCo 1;
// ************************************************************************* //

View File

@ -45,8 +45,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
}
// ************************************************************************* //

View File

@ -0,0 +1,16 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -49,8 +49,5 @@ runTimeModifiable true;
// maxCo 1;
functions
{
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// adjustTimeStep yes;
// maxCo 1;
// ************************************************************************* //

View File

@ -49,8 +49,5 @@ runTimeModifiable true;
// maxCo 1;
functions
{
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// adjustTimeStep yes;
// maxCo 1;
// ************************************************************************* //

View File

@ -45,8 +45,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
}
// ************************************************************************* //

View File

@ -0,0 +1,18 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeIfPresent "regionSolvers"
// ************************************************************************* //

View File

@ -0,0 +1,50 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
fieldCoordinateSystemTransform1
{
// Type of functionObject
type fieldCoordinateSystemTransform;
// Where to load it from (if not already in solver)
libs ("libfieldFunctionObjects.so");
// Function object enabled flag
enabled true;
// When to output the average fields
writeControl writeTime;
// Fields to be transformed - runTime modifiable
fields
(
U
UMean
UPrime2Mean
);
coordinateSystem
{
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (1 0.15 0);
e3 (0 0 -1);
}
}
}
// ************************************************************************* //

View File

@ -1,53 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object postProcessingDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
functions
{
fieldCoordinateSystemTransform1
{
// Type of functionObject
type fieldCoordinateSystemTransform;
// Where to load it from (if not already in solver)
libs ("libfieldFunctionObjects.so");
// Function object enabled flag
enabled true;
// When to output the average fields
writeControl writeTime;
// Fields to be transformed - runTime modifiable
fields
(
U
UMean
UPrime2Mean
);
coordinateSystem
{
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (1 0.15 0);
e3 (0 0 -1);
}
}
}
}
// ************************************************************************* //

View File

@ -9,26 +9,23 @@ FoamFile
{
format ascii;
class dictionary;
object postProcessingDict;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
functions
processorField1
{
processorField1
{
// Type of functionObject
type processorField;
// Type of functionObject
type processorField;
// Where to load it from (if not already in solver)
libs ("libfieldFunctionObjects.so");
// Where to load it from (if not already in solver)
libs ("libfieldFunctionObjects.so");
// Function object enabled flag
enabled true;
// Function object enabled flag
enabled true;
// When to output the average fields
writeControl writeTime;
}
// When to output the average fields
writeControl writeTime;
}
// ************************************************************************* //

View File

@ -0,0 +1,49 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
readFields1
{
type readFields;
libs ("libfieldFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
fields
(
interpolateU
);
}
faceObj2
{
type surfaceFieldValue;
libs ("libfieldFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
log true;
writeFields true;
select faceZone;
faceZone f0;
operation areaAverage;
fields
(
interpolateU
);
}
// ************************************************************************* //

View File

@ -1,52 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object postProcessingDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
functions
{
readFields1
{
type readFields;
libs ("libfieldFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
fields
(
interpolateU
);
}
faceObj2
{
type surfaceFieldValue;
libs ("libfieldFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
log true;
writeFields true;
select faceZone;
faceZone f0;
operation areaAverage;
fields
(
interpolateU
);
}
}
// ************************************************************************* //

View File

@ -9,22 +9,22 @@ FoamFile
{
format ascii;
class dictionary;
object postProcessingDict;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
functions
turbulenceFields1
{
cloudInfo1
{
type cloudInfo;
libs ("liblagrangianFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
type turbulenceFields;
libs ("libfieldFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
clouds (myCloud1);
}
fields
(
R
);
}
// ************************************************************************* //

View File

@ -9,25 +9,19 @@ FoamFile
{
format ascii;
class dictionary;
object postProcessingDict;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
functions
cloudInfo1
{
turbulenceFields1
{
type turbulenceFields;
libs ("libfieldFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
type cloudInfo;
libs ("liblagrangianFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
fields
(
R
);
}
clouds (myCloud1);
}
// ************************************************************************* //

View File

@ -52,10 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc continuity
#includeFunc plot
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc continuity
#includeFunc plot
// ************************************************************************* //

View File

@ -52,10 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc continuity
#includeFunc plot
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc continuity
#includeFunc plot
// ************************************************************************* //

View File

@ -52,15 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
}
// ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
// ************************************************************************* //

View File

@ -52,15 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
}
// ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
// ************************************************************************* //

View File

@ -52,15 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
}
// ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
// ************************************************************************* //

View File

@ -52,40 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
#includeFunc populationBalanceMoments
(
populationBalance=bubbles,
momentType=integerMoment,
coordinateType=volume,
order=1
)
#includeFunc populationBalanceMoments
(
populationBalance=bubbles,
momentType=integerMoment,
coordinateType=volume,
order=0
)
#includeFunc probes
(
name=probes,
points=((0.5 0.5 0.5)),
integerMoment0(N,v).bubbles,
integerMoment1(N,v).bubbles,
writeControl=writeTime
)
}
// ************************************************************************* //

View File

@ -0,0 +1,50 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
#includeFunc populationBalanceMoments
(
populationBalance=bubbles,
momentType=integerMoment,
coordinateType=volume,
order=1
)
#includeFunc populationBalanceMoments
(
populationBalance=bubbles,
momentType=integerMoment,
coordinateType=volume,
order=0
)
#includeFunc probes
(
name=probes,
points=((0.5 0.5 0.5)),
integerMoment0(N,v).bubbles,
integerMoment1(N,v).bubbles,
writeControl=writeTime
)
// ************************************************************************* //

View File

@ -52,32 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc residuals
(
p_rgh,
f3.air1.bubbles,
f9.air2.bubbles,
f15.air3.bubbles
)
#includeFunc graphCell
(
name=graph,
start=(0.05 0 0.05),
end=(0.05 1.0 0.05),
axis=y,
d.bubbles,
p,
alpha.air1,
alpha.air2,
alpha.air3,
alpha.bubbles
)
#includeFunc cellZoneAverage
#includeFunc writeObjects(d.air1)
#includeFunc writeObjects(d.air2)
#includeFunc writeObjects(d.air3)
}
// ************************************************************************* //

View File

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc residuals
(
p_rgh,
f3.air1.bubbles,
f9.air2.bubbles,
f15.air3.bubbles
)
#includeFunc graphCell
(
name=graph,
start=(0.05 0 0.05),
end=(0.05 1.0 0.05),
axis=y,
d.bubbles,
p,
alpha.air1,
alpha.air2,
alpha.air3,
alpha.bubbles
)
#includeFunc cellZoneAverage
#includeFunc writeObjects(d.air1)
#includeFunc writeObjects(d.air2)
#includeFunc writeObjects(d.air3)
// ************************************************************************* //

View File

@ -52,40 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
#includeFunc populationBalanceMoments
(
populationBalance=bubbles,
momentType=integerMoment,
coordinateType=volume,
order=1
)
#includeFunc populationBalanceMoments
(
populationBalance=bubbles,
momentType=integerMoment,
coordinateType=volume,
order=0
)
#includeFunc probes
(
name=probes,
points=((0.5 0.5 0.5)),
integerMoment0(N,v).bubbles,
integerMoment1(N,v).bubbles,
writeControl=writeTime
)
}
// ************************************************************************* //

View File

@ -0,0 +1,50 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=volume
)
#includeFunc populationBalanceMoments
(
populationBalance=bubbles,
momentType=integerMoment,
coordinateType=volume,
order=1
)
#includeFunc populationBalanceMoments
(
populationBalance=bubbles,
momentType=integerMoment,
coordinateType=volume,
order=0
)
#includeFunc probes
(
name=probes,
points=((0.5 0.5 0.5)),
integerMoment0(N,v).bubbles,
integerMoment1(N,v).bubbles,
writeControl=writeTime
)
// ************************************************************************* //

View File

@ -52,25 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=diameter,
normalise=yes
)
#includeFunc populationBalanceSizeDistribution
(
name=volumeDensity,
populationBalance=bubbles,
functionType=volumeDensity,
coordinateType=diameter,
normalise=yes
)
}
// ************************************************************************* //

View File

@ -0,0 +1,35 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=bubbles,
functionType=numberDensity,
coordinateType=diameter,
normalise=yes
)
#includeFunc populationBalanceSizeDistribution
(
name=volumeDensity,
populationBalance=bubbles,
functionType=volumeDensity,
coordinateType=diameter,
normalise=yes
)
// ************************************************************************* //

View File

@ -52,10 +52,5 @@ maxCo 0.5;
maxDeltaT 1;
functions
{
#includeFunc continuity
#includeFunc plot
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc continuity
#includeFunc plot
// ************************************************************************* //

View File

@ -58,386 +58,5 @@ cacheTemporaryObjects
kEpsilon:G
);
combustionFunctions
{
// Not possible to test here as it needs a case with a combustion model
//#includeFunc Qdot
// Not possible to test here as it needs a XiFoam case
//#includeFunc XiReactionRate
}
controlFunctions
{
#includeFunc stopAtClockTime(stopTime=3600)
#includeFunc stopAtFile
#includeFunc time
#includeFunc writeObjects(kEpsilon:G)
}
fieldsFunctions
{
#includeFunc age
#includeFunc components(U)
#includeFunc CourantNo
#includeFunc ddt(p)
#includeFunc div(phi)
#includeFunc enstrophy
// !!! Takes a list of fields, not a single field like most others. It has
// an inconsistent name convention; i.e., "<fieldName>Mean", rather than
// "mean(<fieldName>)". It also does both "mean" and "prime2Mean". Consider
// fixing the output field naming and splitting into separate
// configurations for the different outputs.
#includeFunc fieldAverage(U, k, epsilon)
#includeFunc flowType
#includeFunc grad(p)
#includeFunc Lambda2
#includeFunc MachNo
#includeFunc mag(U)
#includeFunc magSqr(U)
#includeFunc PecletNo
// Not possible to test here as it needs a multiphase case
//#includeFunc phaseMap
#includeFunc Q
#includeFunc randomise(U, magPerturbation=0.1)
#includeFunc reconstruct(phi)
#includeFunc scale(age, scale=0.1)
#includeFunc shearStress
#includeFunc streamFunction
#includeFunc surfaceInterpolate(rho, result=rhof)
#includeFunc totalEnthalpy
#includeFunc turbulenceFields(nuEff, R, devTau)
#includeFunc turbulenceIntensity
#includeFunc vorticity
#includeFunc wallHeatFlux
#includeFunc wallHeatTransferCoeff(rho=1.225, Cp=1005, Pr=0.7, Prt=0.9)
#includeFunc wallShearStress
#includeFunc writeCellCentres
#includeFunc writeCellVolumes
// !!! Only writes the internal parts of vol fields. The name should really
// be less general to reflect this; e.g., writeInternalFieldsVTK. However,
// a better change would be further library-ise the internals of foamToVTK
// and incorporate it into this object so that it writes patches, surface
// fields, point fields, lagrangian, etc... Then we could deprecate
// foamToVTK in favour of this function.
#includeFunc writeVTK(U, p)
#includeFunc yPlus
}
fieldsOperationsFunctions
{
// Operation sequence to compute normalised direction of velocity
// perturbation from mean
#includeFunc subtract(U, UMean, result=u)
#includeFunc uniform
(
fieldType=volScalarField,
field=mag(smallU),
dimensions=[0 1 -1 0 0 0 0],
value=1e-16
)
#includeFunc add(mag(U), mag(smallU), result=stabilise(mag(U)))
#includeFunc divide(u, stabilise(mag(U)), result=uFrac)
// Operation to compute a tensor by doing an outer vector product
#includeFunc multiply(U, u)
// Operation sequence to compute the log of temperature divided by an
// ambient value
#includeFunc uniform
(
fieldType=volScalarField,
field=Ta,
dimensions=[0 0 0 1 0 0 0],
value=297
)
#includeFunc divide(T, Ta)
#includeFunc log(divide(T,Ta))
}
forcesFunctions
{
#includeFunc forcesIncompressible
(
patches=(walls),
rhoInf=1.225,
CofR=(0 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forceCoeffsIncompressible
(
patches=(walls),
magUInf=20,
lRef=1,
Aref=1,
CofR=(0 0 0),
liftDir=(0 0 1),
dragDir=(1 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forcesCompressible
(
patches=(walls),
CofR=(0 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forceCoeffsCompressible
(
patches=(walls),
magUInf=20,
rhoInf=1.225,
lRef=1,
Aref=1,
CofR=(0 0 0),
liftDir=(0 0 1),
dragDir=(1 0 0),
pitchAxis=(0 1 0)
)
// Not possible to test here as it needs a multiphase Euler-Euler case
//#includeFunc phaseForces(phase=air)
}
graphsFunctions
{
#includeFunc graphUniform
(
start=(-0.5 -0.5 0),
end=(0.5 0.5 0),
nPoints=100,
fields=(p U)
)
#includeFunc graphCell
(
start=(-0.500001 -0.500001 0),
end=(0.500001 0.500001 0),
fields=(p U)
)
#includeFunc graphLayerAverage
(
patches=(inlet),
axis=x,
fields=(p U)
)
}
lagrangianFunctions
{
// Not possible to test here as it needs a DSMC case
//#includeFunc dsmcFields
}
numericalFunctions
{
#includeFunc residuals(p, U, h, k, epsilon)
#includeFunc timeStep
}
pressureFunctions
{
#includeFunc divide(p, rho, result=kinematic(p))
#includeFunc staticPressureIncompressible(kinematic(p), rhoInf=1.2)
#includeFunc totalPressureIncompressible(kinematic(p), rhoInf=1.2)
#includeFunc totalPressureCompressible
}
probesFunctions
{
#includeFunc probes(points=((-0.2 -0.2 0) (0 0 0) (0.2 0.2 0)), p, U, T)
#includeFunc internalProbes(points=((-0.2 -0.2 0) (0.2 0.2 0)), p, U, T)
#includeFunc boundaryProbes
(
points=((-0.2 -0.2 -0.04) (0.2 0.2 -0.04)),
maxDistance=0.02,
p,
U,
T
)
#includeFunc uniform
(
fieldType=volScalarField,
field=alpha.dummy,
dimensions=[],
value=0.2
)
#includeFunc interfaceHeight
(
alpha=alpha.dummy,
points=((-0.2 -0.2 0) (0.2 0.2 0))
)
}
solversFunctions
{
#includeFunc scalarTransport(s, schemesField=h)
#includeFunc phaseScalarTransport
(
s.dummy,
solveAlphaPhi=yes,
p=p_rgh,
rho=rho,
schemesField=h
)
// Not possible to test here as not compatible with compressible solvers
//#includeFunc particles
}
streamlinesFunctions
{
#includeFunc streamlinesSphere
(
centre=(0 0 0),
radius=0.1,
nPoints=100,
p,
U,
direction=forward
)
#includeFunc streamlinesLine
(
start=(-0.5 -0.5 -0.05),
end=(0.5 0.5 0.05),
nPoints=100,
p,
U,
direction=backward
)
#includeFunc streamlinesPatch
(
patch=inlet,
nPoints=100,
p,
U
)
#includeFunc streamlinesPoints
(
points=((-0.2 -0.2 0) (0 0 0) (0.2 0.2 0))
p,
U,
direction=forward
)
}
surfaceFunctions
{
#includeFunc cutPlaneSurface(point=(0 0 0), normal=(0 0 1), p, U)
#includeFunc isoSurface(isoField=nut, isoValue=0.1, p, U)
#includeFunc patchSurface(patch=walls, p, U)
}
surfaceFieldValueFunctions
{
#includeFunc patchAverage(patch=inlet, k)
#includeFunc patchIntegrate(patch=inlet, epsilon)
#includeFunc patchFlowRate(patch=inlet)
#includeFunc patchDifference(patch1=inlet, patch2=outlet, p)
#includeFunc faceZoneAverage(faceZone=f0, U)
#includeFunc faceZoneFlowRate(faceZone=f0)
#includeFunc triSurfaceAverage(triSurface=mid.obj, p)
#includeFunc triSurfaceVolumetricFlowRate(triSurface=mid.obj)
#includeFunc triSurfaceDifference
(
name1=nearInlet.obj,
name2=nearOutlet.obj,
p
)
}
volFieldValueFunctions
{
#includeFunc cellMin(epsilon)
#includeFunc cellMax(k)
#includeFunc cellMinMag(U, writeLocation=yes)
#includeFunc cellMaxMag(U, writeLocation=yes)
#includeFunc volAverage(p)
#includeFunc volIntegrate(rho)
}
functions
{
$combustionFunctions;
$controlFunctions;
$fieldsFunctions;
$fieldsOperationsFunctions;
$forcesFunctions;
$graphsFunctions;
$lagrangianFunctions;
$numericalFunctions;
$pressureFunctions;
$probesFunctions;
$solversFunctions;
$streamlinesFunctions;
$surfaceFunctions;
$surfaceFieldValueFunctions;
$volFieldValueFunctions;
}
// ************************************************************************* //

View File

@ -0,0 +1,397 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionFunctions
{
// Not possible to test here as it needs a case with a combustion model
//#includeFunc Qdot
// Not possible to test here as it needs a XiFoam case
//#includeFunc XiReactionRate
}
controlFunctions
{
#includeFunc stopAtClockTime(stopTime=3600)
#includeFunc stopAtFile
#includeFunc time
#includeFunc writeObjects(kEpsilon:G)
}
fieldsFunctions
{
#includeFunc age
#includeFunc components(U)
#includeFunc CourantNo
#includeFunc ddt(p)
#includeFunc div(phi)
#includeFunc enstrophy
// !!! Takes a list of fields, not a single field like most others. It has
// an inconsistent name convention; i.e., "<fieldName>Mean", rather than
// "mean(<fieldName>)". It also does both "mean" and "prime2Mean". Consider
// fixing the output field naming and splitting into separate
// configurations for the different outputs.
#includeFunc fieldAverage(U, k, epsilon)
#includeFunc flowType
#includeFunc grad(p)
#includeFunc Lambda2
#includeFunc MachNo
#includeFunc mag(U)
#includeFunc magSqr(U)
#includeFunc PecletNo
// Not possible to test here as it needs a multiphase case
//#includeFunc phaseMap
#includeFunc Q
#includeFunc randomise(U, magPerturbation=0.1)
#includeFunc reconstruct(phi)
#includeFunc scale(age, scale=0.1)
#includeFunc shearStress
#includeFunc streamFunction
#includeFunc surfaceInterpolate(rho, result=rhof)
#includeFunc totalEnthalpy
#includeFunc turbulenceFields(nuEff, R, devTau)
#includeFunc turbulenceIntensity
#includeFunc vorticity
#includeFunc wallHeatFlux
#includeFunc wallHeatTransferCoeff(rho=1.225, Cp=1005, Pr=0.7, Prt=0.9)
#includeFunc wallShearStress
#includeFunc writeCellCentres
#includeFunc writeCellVolumes
// !!! Only writes the internal parts of vol fields. The name should really
// be less general to reflect this; e.g., writeInternalFieldsVTK. However,
// a better change would be further library-ise the internals of foamToVTK
// and incorporate it into this object so that it writes patches, surface
// fields, point fields, lagrangian, etc... Then we could deprecate
// foamToVTK in favour of this function.
#includeFunc writeVTK(U, p)
#includeFunc yPlus
}
fieldsOperationsFunctions
{
// Operation sequence to compute normalised direction of velocity
// perturbation from mean
#includeFunc subtract(U, UMean, result=u)
#includeFunc uniform
(
fieldType=volScalarField,
field=mag(smallU),
dimensions=[0 1 -1 0 0 0 0],
value=1e-16
)
#includeFunc add(mag(U), mag(smallU), result=stabilise(mag(U)))
#includeFunc divide(u, stabilise(mag(U)), result=uFrac)
// Operation to compute a tensor by doing an outer vector product
#includeFunc multiply(U, u)
// Operation sequence to compute the log of temperature divided by an
// ambient value
#includeFunc uniform
(
fieldType=volScalarField,
field=Ta,
dimensions=[0 0 0 1 0 0 0],
value=297
)
#includeFunc divide(T, Ta)
#includeFunc log(divide(T,Ta))
}
forcesFunctions
{
#includeFunc forcesIncompressible
(
patches=(walls),
rhoInf=1.225,
CofR=(0 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forceCoeffsIncompressible
(
patches=(walls),
magUInf=20,
lRef=1,
Aref=1,
CofR=(0 0 0),
liftDir=(0 0 1),
dragDir=(1 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forcesCompressible
(
patches=(walls),
CofR=(0 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forceCoeffsCompressible
(
patches=(walls),
magUInf=20,
rhoInf=1.225,
lRef=1,
Aref=1,
CofR=(0 0 0),
liftDir=(0 0 1),
dragDir=(1 0 0),
pitchAxis=(0 1 0)
)
// Not possible to test here as it needs a multiphase Euler-Euler case
//#includeFunc phaseForces(phase=air)
}
graphsFunctions
{
#includeFunc graphUniform
(
start=(-0.5 -0.5 0),
end=(0.5 0.5 0),
nPoints=100,
fields=(p U)
)
#includeFunc graphCell
(
start=(-0.500001 -0.500001 0),
end=(0.500001 0.500001 0),
fields=(p U)
)
#includeFunc graphLayerAverage
(
patches=(inlet),
axis=x,
fields=(p U)
)
}
lagrangianFunctions
{
// Not possible to test here as it needs a DSMC case
//#includeFunc dsmcFields
}
numericalFunctions
{
#includeFunc residuals(p, U, h, k, epsilon)
#includeFunc timeStep
}
pressureFunctions
{
#includeFunc divide(p, rho, result=kinematic(p))
#includeFunc staticPressureIncompressible(kinematic(p), rhoInf=1.2)
#includeFunc totalPressureIncompressible(kinematic(p), rhoInf=1.2)
#includeFunc totalPressureCompressible
}
probesFunctions
{
#includeFunc probes(points=((-0.2 -0.2 0) (0 0 0) (0.2 0.2 0)), p, U, T)
#includeFunc internalProbes(points=((-0.2 -0.2 0) (0.2 0.2 0)), p, U, T)
#includeFunc boundaryProbes
(
points=((-0.2 -0.2 -0.04) (0.2 0.2 -0.04)),
maxDistance=0.02,
p,
U,
T
)
#includeFunc uniform
(
fieldType=volScalarField,
field=alpha.dummy,
dimensions=[],
value=0.2
)
#includeFunc interfaceHeight
(
alpha=alpha.dummy,
points=((-0.2 -0.2 0) (0.2 0.2 0))
)
}
solversFunctions
{
#includeFunc scalarTransport(s, schemesField=h)
#includeFunc phaseScalarTransport
(
s.dummy,
solveAlphaPhi=yes,
p=p_rgh,
rho=rho,
schemesField=h
)
// Not possible to test here as not compatible with compressible solvers
//#includeFunc particles
}
streamlinesFunctions
{
#includeFunc streamlinesSphere
(
centre=(0 0 0),
radius=0.1,
nPoints=100,
p,
U,
direction=forward
)
#includeFunc streamlinesLine
(
start=(-0.5 -0.5 -0.05),
end=(0.5 0.5 0.05),
nPoints=100,
p,
U,
direction=backward
)
#includeFunc streamlinesPatch
(
patch=inlet,
nPoints=100,
p,
U
)
#includeFunc streamlinesPoints
(
points=((-0.2 -0.2 0) (0 0 0) (0.2 0.2 0))
p,
U,
direction=forward
)
}
surfaceFunctions
{
#includeFunc cutPlaneSurface(point=(0 0 0), normal=(0 0 1), p, U)
#includeFunc isoSurface(isoField=nut, isoValue=0.1, p, U)
#includeFunc patchSurface(patch=walls, p, U)
}
surfaceFieldValueFunctions
{
#includeFunc patchAverage(patch=inlet, k)
#includeFunc patchIntegrate(patch=inlet, epsilon)
#includeFunc patchFlowRate(patch=inlet)
#includeFunc patchDifference(patch1=inlet, patch2=outlet, p)
#includeFunc faceZoneAverage(faceZone=f0, U)
#includeFunc faceZoneFlowRate(faceZone=f0)
#includeFunc triSurfaceAverage(triSurface=mid.obj, p)
#includeFunc triSurfaceVolumetricFlowRate(triSurface=mid.obj)
#includeFunc triSurfaceDifference
(
name1=nearInlet.obj,
name2=nearOutlet.obj,
p
)
}
volFieldValueFunctions
{
#includeFunc cellMin(epsilon)
#includeFunc cellMax(k)
#includeFunc cellMinMag(U, writeLocation=yes)
#includeFunc cellMaxMag(U, writeLocation=yes)
#includeFunc volAverage(p)
#includeFunc volIntegrate(rho)
}
$combustionFunctions;
$controlFunctions;
$fieldsFunctions;
$fieldsOperationsFunctions;
$forcesFunctions;
$graphsFunctions;
$lagrangianFunctions;
$numericalFunctions;
$pressureFunctions;
$probesFunctions;
$solversFunctions;
$streamlinesFunctions;
$surfaceFunctions;
$surfaceFieldValueFunctions;
$volFieldValueFunctions;
// ************************************************************************* //

View File

@ -0,0 +1,34 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
$functionSets!combustionFunctions;
$functionSets!controlFunctions;
$functionSets!fieldsFunctions;
$functionSets!fieldsOperationsFunctions;
$functionSets!forcesFunctions;
$functionSets!graphsFunctions;
$functionSets!lagrangianFunctions;
$functionSets!numericalFunctions;
$functionSets!pressureFunctions;
$functionSets!probesFunctions;
$functionSets!solversFunctions;
$functionSets!streamlinesFunctions;
$functionSets!surfaceFunctions;
$functionSets!surfaceFieldValueFunctions;
$functionSets!volFieldValueFunctions;
// ************************************************************************* //

View File

@ -58,32 +58,5 @@ userTime
rpm 1500;
}
functions
{
setDeltaT
{
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
codeInclude
#{
#include "volFields.H"
#};
codeExecute
#{
const Time& runTime = mesh().time();
if (runTime.userTimeValue() >= -15.0)
{
const_cast<Time&>(runTime).setDeltaT
(
runTime.userTimeToTime(0.025)
);
}
#};
}
}
// ************************************************************************* //

View File

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
setDeltaT
{
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
codeInclude
#{
#include "volFields.H"
#};
codeExecute
#{
const Time& runTime = mesh().time();
if (runTime.userTimeValue() >= -15.0)
{
const_cast<Time&>(runTime).setDeltaT
(
runTime.userTimeToTime(0.025)
);
}
#};
}
// ************************************************************************* //

View File

@ -52,41 +52,6 @@ maxCo 0.25;
maxAlphaCo 0.25;
functions
{
#includeFunc cutPlaneSurface
(
point=(0 0 0),
normal=(0 0 1),
interpolate=no,
fields=(alpha.water p_rgh p T U k epsilon)
)
#includeFunc isoSurface
(
isoField=alpha.water,
isoValue=0.5,
writeEmpty=yes
)
#includeFunc patchSurface(patch=".*(Walls|NonCouple)")
cavitationVolume
{
type volFieldValue;
libs ("libfieldFunctionObjects.so");
writeControl timeStep;
writeInterval 1;
writeFields false;
select all;
operation volIntegrate;
fields (alpha.vapour);
}
}
// ************************************************************************* //

View File

@ -0,0 +1,50 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc cutPlaneSurface
(
point=(0 0 0),
normal=(0 0 1),
interpolate=no,
fields=(alpha.water p_rgh p T U k epsilon)
)
#includeFunc isoSurface
(
isoField=alpha.water,
isoValue=0.5,
writeEmpty=yes
)
#includeFunc patchSurface(patch=".*(Walls|NonCouple)")
cavitationVolume
{
type volFieldValue;
libs ("libfieldFunctionObjects.so");
writeControl timeStep;
writeInterval 1;
writeFields false;
select all;
operation volIntegrate;
fields (alpha.vapour);
}
// ************************************************************************* //

View File

@ -53,48 +53,6 @@ maxAlphaCo 0.5;
maxDeltaT 1;
functions
{
probes
{
type probes;
libs ("libsampling.so");
writeControl writeTime;
probeLocations
(
(0 9.95 19.77)
(0 -9.95 19.77)
);
fixedLocations false;
fields
(
p
);
}
wallPressure
{
type surfaces;
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat raw;
fields
(
p
);
interpolationScheme cellPoint;
surfaces
(
walls
{
type patch;
patches (walls);
triangulate false;
}
);
}
}
// ************************************************************************* //

View File

@ -0,0 +1,57 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
probes
{
type probes;
libs ("libsampling.so");
writeControl writeTime;
probeLocations
(
(0 9.95 19.77)
(0 -9.95 19.77)
);
fixedLocations false;
fields
(
p
);
}
wallPressure
{
type surfaces;
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat raw;
fields
(
p
);
interpolationScheme cellPoint;
surfaces
(
walls
{
type patch;
patches (walls);
triangulate false;
}
);
}
// ************************************************************************* //

View File

@ -46,10 +46,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc residuals(p_rgh)
#includeFunc streamlinesLine(name=streamlines, start=(0 0.5 0), end=(9 0.5 0), nPoints=24, U)
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc residuals(p_rgh)
#includeFunc streamlinesLine(name=streamlines, start=(0 0.5 0), end=(9 0.5 0), nPoints=24, U)
// ************************************************************************* //

View File

@ -45,10 +45,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc MachNo
#includeFunc residuals
}
// ************************************************************************* //

View File

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc MachNo
#includeFunc residuals
// ************************************************************************* //

View File

@ -45,11 +45,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc MachNo
#includeFunc residuals
#includeFunc forceCoeffsCompressible
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc MachNo
#includeFunc residuals
#includeFunc forceCoeffsCompressible
// ************************************************************************* //

View File

@ -50,9 +50,5 @@ adjustTimeStep yes;
maxCo 5;
functions
{
#includeFunc scalarTransport(tracer)
}
// ************************************************************************* //

View File

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc scalarTransport(tracer)
// ************************************************************************* //

View File

@ -46,17 +46,6 @@ timePrecision 6;
runTimeModifiable true;
functions
{
libs ("libfieldFunctionObjects.so");
Ma
{
type MachNo;
executeControl writeTime;
writeControl writeTime;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,26 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libfieldFunctionObjects.so");
Ma
{
type MachNo;
executeControl writeTime;
writeControl writeTime;
}
// ************************************************************************* //

View File

@ -50,25 +50,5 @@ adjustTimeStep no;
maxCo 0.5;
functions
{
probes
{
libs ("libsampling.so");
type probes;
name probes;
writeControl timeStep;
writeInterval 1;
fields (p);
probeLocations
(
( -0.045 0 0 )
( -0.045 0.020 0 )
( -0.010 0 0 )
( 0.0125 0 0 )
( 0.0125 0.020 0 )
);
}
}
// ************************************************************************* //

View File

@ -0,0 +1,35 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
probes
{
libs ("libsampling.so");
type probes;
name probes;
writeControl timeStep;
writeInterval 1;
fields (p);
probeLocations
(
( -0.045 0 0 )
( -0.045 0.020 0 )
( -0.010 0 0 )
( 0.0125 0 0 )
( 0.0125 0.020 0 )
);
}
// ************************************************************************* //

View File

@ -46,32 +46,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
age
{
libs ("libfieldFunctionObjects.so");
type age;
diffusion on;
writeControl writeTime;
executeControl writeTime;
}
comfort
{
libs ("libfieldFunctionObjects.so");
type comfort;
clothing 0.5;
metabolicRate 1.2;
extWork 0;
relHumidity 60;
writeControl writeTime;
executeControl writeTime;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
age
{
libs ("libfieldFunctionObjects.so");
type age;
diffusion on;
writeControl writeTime;
executeControl writeTime;
}
comfort
{
libs ("libfieldFunctionObjects.so");
type comfort;
clothing 0.5;
metabolicRate 1.2;
extWork 0;
relHumidity 60;
writeControl writeTime;
executeControl writeTime;
}
// ************************************************************************* //

View File

@ -46,30 +46,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
forces
{
type forceCoeffs;
libs ("libforces.so");
writeControl timeStep;
writeInterval 1;
patches
(
WALL10
);
log true;
rhoInf 1;
CofR (0 0 0);
liftDir (-0.239733 0.970839 0);
dragDir (0.970839 0.239733 0);
pitchAxis (0 0 1);
magUInf 618.022;
lRef 1;
Aref 1;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
forces
{
type forceCoeffs;
libs ("libforces.so");
writeControl timeStep;
writeInterval 1;
patches
(
WALL10
);
log true;
rhoInf 1;
CofR (0 0 0);
liftDir (-0.239733 0.970839 0);
dragDir (0.970839 0.239733 0);
pitchAxis (0 0 1);
magUInf 618.022;
lRef 1;
Aref 1;
}
// ************************************************************************* //

View File

@ -50,9 +50,5 @@ adjustTimeStep no;
maxCo 0.5;
functions
{
#includeFunc fieldAverage(U, p, prime2Mean = yes)
}
// ************************************************************************* //

View File

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc fieldAverage(U, p, prime2Mean = yes)
// ************************************************************************* //

View File

@ -46,9 +46,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc mag(U)
}
// ************************************************************************* //

View File

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc mag(U)
// ************************************************************************* //

View File

@ -46,13 +46,5 @@ timePrecision 6;
runTimeModifiable yes;
functions
{
#includeFunc volIntegrate(cloud:alpha)
#includeFunc patchFlowRate(patch=lowerInlet, cloud:massFlux)
#includeFunc patchFlowRate(patch=upperInlet, cloud:massFlux)
#includeFunc faceZoneFlowRate(faceZone=mid, cloud:massFlux)
#includeFunc patchFlowRate(patch=outlet, cloud:massFlux)
}
// ************************************************************************* //

View File

@ -0,0 +1,23 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc volIntegrate(cloud:alpha)
#includeFunc patchFlowRate(patch=lowerInlet, cloud:massFlux)
#includeFunc patchFlowRate(patch=upperInlet, cloud:massFlux)
#includeFunc faceZoneFlowRate(faceZone=mid, cloud:massFlux)
#includeFunc patchFlowRate(patch=outlet, cloud:massFlux)
// ************************************************************************* //

View File

@ -46,29 +46,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc wallShearStress
#includeFunc graphUniform
(
name=wallShearStressGraph,
start=(0.04075 0.00075 0),
end=(3.04 0.00075 0),
nPoints=100,
axis=x,
wallShearStress
)
#includeFunc graphUniform
(
name=kGraph,
start=(0.04075 0.05 0),
end=(3.04 0.05 0),
nPoints=100,
axis=x,
k
)
}
// ************************************************************************* //

View File

@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc wallShearStress
#includeFunc graphUniform
(
name=wallShearStressGraph,
start=(0.04075 0.00075 0),
end=(3.04 0.00075 0),
nPoints=100,
axis=x,
wallShearStress
)
#includeFunc graphUniform
(
name=kGraph,
start=(0.04075 0.05 0),
end=(3.04 0.05 0),
nPoints=100,
axis=x,
k
)
// ************************************************************************* //

View File

@ -50,41 +50,5 @@ adjustTimeStep yes;
maxCo 5;
functions
{
probes
{
// Where to load it from
libs ("libsampling.so");
type probes;
// Name of the directory for probe data
name probes;
// Write at same frequency as fields
writeControl writeTime;
writeInterval 1;
// Fields to be probed
fields
(
p U
);
probeLocations
(
( 1e-06 0 0.01 ) // at inlet
(0.21 -0.20999 0.01) // at outlet1
(0.21 0.20999 0.01) // at outlet2
(0.21 0 0.01) // at central block
);
}
#includeFunc patchFlowRate(patch=outlet1)
#includeFunc faceZoneFlowRate(faceZone=fz1)
#includeFunc patchFlowRate(patch=outlet2)
#includeFunc faceZoneFlowRate(faceZone=fz2)
}
// ************************************************************************* //

View File

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
probes
{
// Where to load it from
libs ("libsampling.so");
type probes;
// Name of the directory for probe data
name probes;
// Write at same frequency as fields
writeControl writeTime;
writeInterval 1;
// Fields to be probed
fields
(
p U
);
probeLocations
(
( 1e-06 0 0.01 ) // at inlet
(0.21 -0.20999 0.01) // at outlet1
(0.21 0.20999 0.01) // at outlet2
(0.21 0 0.01) // at central block
);
}
#includeFunc patchFlowRate(patch=outlet1)
#includeFunc faceZoneFlowRate(faceZone=fz1)
#includeFunc patchFlowRate(patch=outlet2)
#includeFunc faceZoneFlowRate(faceZone=fz2)
// ************************************************************************* //

View File

@ -50,33 +50,5 @@ adjustTimeStep yes;
maxCo 3;
functions
{
probes
{
// Where to load it from
libs ("libsampling.so");
type probes;
// Name of the directory for probe data
name probes;
// Write at same frequency as fields
writeControl writeTime;
writeInterval 1;
// Fields to be probed
fields (p U);
probeLocations
(
( 1e-06 0 0.01 ) // at inlet
(0.21 -0.20999 0.01) // at outlet1
(0.21 0.20999 0.01) // at outlet2
(0.21 0 0.01) // at central block
);
}
}
// ************************************************************************* //

View File

@ -0,0 +1,43 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
probes
{
// Where to load it from
libs ("libsampling.so");
type probes;
// Name of the directory for probe data
name probes;
// Write at same frequency as fields
writeControl writeTime;
writeInterval 1;
// Fields to be probed
fields (p U);
probeLocations
(
( 1e-06 0 0.01 ) // at inlet
(0.21 -0.20999 0.01) // at outlet1
(0.21 0.20999 0.01) // at outlet2
(0.21 0 0.01) // at central block
);
}
// ************************************************************************* //

View File

@ -50,16 +50,6 @@ adjustTimeStep yes;
maxCo 0.5;
functions
{
#includeFunc patchFlowRate(name=inletFlowRate, patch=inlet)
#includeFunc patchFlowRate(name=lowerOutletFlowRate, patch=lowerOutlet)
#includeFunc patchFlowRate(name=upperOutletFlowRate, patch=upperOutlet)
#includeFunc scalarTransport(s)
#includeFunc reconstruct(phi)
#includeFunc streamlinesPatch(patch=inlet, nPoints=100, U=reconstruct(phi))
#includeFunc wallsSurface
}
// ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc patchFlowRate(name=inletFlowRate, patch=inlet)
#includeFunc patchFlowRate(name=lowerOutletFlowRate, patch=lowerOutlet)
#includeFunc patchFlowRate(name=upperOutletFlowRate, patch=upperOutlet)
#includeFunc scalarTransport(s)
#includeFunc reconstruct(phi)
#includeFunc streamlinesPatch(patch=inlet, nPoints=100, U=reconstruct(phi))
#includeFunc wallsSurface
// ************************************************************************* //

View File

@ -50,9 +50,5 @@ adjustTimeStep yes;
maxCo 5;
functions
{
#includeFunc scalarTransport(tracer)
}
// ************************************************************************* //

View File

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc scalarTransport(tracer)
// ************************************************************************* //

View File

@ -48,9 +48,5 @@ runTimeModifiable true;
graphFormat raw;
functions
{
#includeFunc enstrophy(executeAtStart=no);
}
// ************************************************************************* //

View File

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc enstrophy(executeAtStart=no);
// ************************************************************************* //

View File

@ -46,34 +46,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc fieldAverage(U, p, prime2Mean = yes)
#includeFunc uniform
(
fieldType = volScalarField,
field = half,
dimensions = [],
value = 0.5
)
#includeFunc mag(UPrime2Mean)
#includeFunc multiply(half, mag(UPrime2Mean), result = k)
#includeFunc graphLayerAverage
(
name = layerAverage,
patches = (bottomWall),
axis = y,
symmetric = yes,
pMean,
pPrime2Mean,
UMean,
UPrime2Mean,
k
);
}
// ************************************************************************* //

View File

@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc fieldAverage(U, p, prime2Mean = yes)
#includeFunc uniform
(
fieldType = volScalarField,
field = half,
dimensions = [],
value = 0.5
)
#includeFunc mag(UPrime2Mean)
#includeFunc multiply(half, mag(UPrime2Mean), result = k)
#includeFunc graphLayerAverage
(
name = layerAverage,
patches = (bottomWall),
axis = y,
symmetric = yes,
pMean,
pPrime2Mean,
UMean,
UPrime2Mean,
k
);
// ************************************************************************* //

View File

@ -49,38 +49,5 @@ runTimeModifiable true;
// maxCo 1;
functions
{
#includeFunc forceCoeffsIncompressible
#includeFunc time
#includeFunc streamlinesSphere
(
name=streamlines,
centre=(4 0 0.7),
radius=1,
nPoints=30,
fields=(U)
)
#includeFunc cutPlaneSurface
(
name=xNormal,
point=(4 0 1),
normal=(1 0 0),
fields=(p U)
)
#includeFunc cutPlaneSurface
(
name=yNormal,
point=(-5 0.02 1),
normal=(0 1 0),
fields=(p U)
)
#includeFunc patchSurface(name=car, patch=".*(body|Wheels)", p)
}
// ************************************************************************* //

View File

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// adjustTimeStep yes;
// maxCo 1;
#includeFunc forceCoeffsIncompressible
#includeFunc time
#includeFunc streamlinesSphere
(
name=streamlines,
centre=(4 0 0.7),
radius=1,
nPoints=30,
fields=(U)
)
#includeFunc cutPlaneSurface
(
name=xNormal,
point=(4 0 1),
normal=(1 0 0),
fields=(p U)
)
#includeFunc cutPlaneSurface
(
name=yNormal,
point=(-5 0.02 1),
normal=(0 1 0),
fields=(p U)
)
#includeFunc patchSurface(name=car, patch=".*(body|Wheels)", p)
// ************************************************************************* //

View File

@ -45,10 +45,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc scalarTransport(T, alphal=1, alphat=1)
#includeFunc time
}
// ************************************************************************* //

View File

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc scalarTransport(T, alphal=1, alphat=1)
#includeFunc time
// ************************************************************************* //

View File

@ -48,13 +48,5 @@ timePrecision 6;
runTimeModifiable yes;
functions
{
clouds
{
type fvModel;
#includeModel clouds(name=fvModel)
}
}
// ************************************************************************* //

View File

@ -0,0 +1,23 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
clouds
{
type fvModel;
#includeModel clouds(name=fvModel)
}
// ************************************************************************* //

View File

@ -48,13 +48,5 @@ timePrecision 6;
runTimeModifiable yes;
functions
{
clouds
{
type fvModel;
#includeModel clouds(name=fvModel)
}
}
// ************************************************************************* //

View File

@ -0,0 +1,23 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
clouds
{
type fvModel;
#includeModel clouds(name=fvModel)
}
// ************************************************************************* //

View File

@ -50,25 +50,6 @@ adjustTimeStep yes;
maxCo 1.0;
functions
{
#includeFunc patchFlowRate(name=inletFlowRate, patch=inlet)
#includeFunc patchFlowRate(name=outletFlowRate, patch=outlet)
cartesianToCylindrical
{
type cylindrical;
libs ("libfieldFunctionObjects.so");
origin (0 0 0);
axis (1 0 0);
field U;
writeControl writeTime;
writeInterval 1;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,34 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc patchFlowRate(name=inletFlowRate, patch=inlet)
#includeFunc patchFlowRate(name=outletFlowRate, patch=outlet)
cartesianToCylindrical
{
type cylindrical;
libs ("libfieldFunctionObjects.so");
origin (0 0 0);
axis (1 0 0);
field U;
writeControl writeTime;
writeInterval 1;
}
// ************************************************************************* //

View File

@ -50,40 +50,6 @@ adjustTimeStep yes;
maxCo 0.5;
functions
{
cartesianToCylindrical
{
type cylindrical;
libs ("libfieldFunctionObjects.so");
origin (0 0 0);
axis (0 0 1);
field U;
writeControl writeTime;
writeInterval 1;
}
#includeFunc fieldAverage(cylindrical(U))
cylindricalToCartesian
{
type cylindrical;
libs ("libfieldFunctionObjects.so");
origin (0 0 0);
axis (0 0 1);
field cylindrical(U)Mean;
toCartesian true;
result UMean;
writeControl writeTime;
writeInterval 1;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,49 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
cartesianToCylindrical
{
type cylindrical;
libs ("libfieldFunctionObjects.so");
origin (0 0 0);
axis (0 0 1);
field U;
writeControl writeTime;
writeInterval 1;
}
#includeFunc fieldAverage(cylindrical(U))
cylindricalToCartesian
{
type cylindrical;
libs ("libfieldFunctionObjects.so");
origin (0 0 0);
axis (0 0 1);
field cylindrical(U)Mean;
toCartesian true;
result UMean;
writeControl writeTime;
writeInterval 1;
}
// ************************************************************************* //

View File

@ -48,13 +48,5 @@ timePrecision 6;
runTimeModifiable yes;
functions
{
clouds
{
type fvModel;
#includeModel clouds(name=fvModel)
}
}
// ************************************************************************* //

View File

@ -0,0 +1,23 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
clouds
{
type fvModel;
#includeModel clouds(name=fvModel)
}
// ************************************************************************* //

Some files were not shown because too many files have changed in this diff Show More