tutorials: Moved the functions entry from controlDict into a functions file
This commit is contained in:
@ -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)
|
||||
);
|
||||
}
|
||||
#};
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
42
tutorials/XiFluid/kivaTest/system/functions
Normal file
42
tutorials/XiFluid/kivaTest/system/functions
Normal 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)
|
||||
);
|
||||
}
|
||||
#};
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
50
tutorials/compressibleVoF/ballValve/system/functions
Normal file
50
tutorials/compressibleVoF/ballValve/system/functions
Normal 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);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
57
tutorials/compressibleVoF/sloshingTank2D/system/functions
Normal file
57
tutorials/compressibleVoF/sloshingTank2D/system/functions
Normal 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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
20
tutorials/fluid/BernardCells/system/functions
Normal file
20
tutorials/fluid/BernardCells/system/functions
Normal 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)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -45,10 +45,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc MachNo
|
||||
#includeFunc residuals
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
19
tutorials/fluid/aerofoilNACA0012/system/functions
Normal file
19
tutorials/fluid/aerofoilNACA0012/system/functions
Normal 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
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -45,11 +45,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc MachNo
|
||||
#includeFunc residuals
|
||||
#includeFunc forceCoeffsCompressible
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
20
tutorials/fluid/aerofoilNACA0012Steady/system/functions
Normal file
20
tutorials/fluid/aerofoilNACA0012Steady/system/functions
Normal 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
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,9 +50,5 @@ adjustTimeStep yes;
|
||||
|
||||
maxCo 5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc scalarTransport(tracer)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
19
tutorials/fluid/blockedChannel/system/functions
Normal file
19
tutorials/fluid/blockedChannel/system/functions
Normal 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)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,17 +46,6 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
Ma
|
||||
{
|
||||
type MachNo;
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
26
tutorials/fluid/forwardStep/system/functions
Normal file
26
tutorials/fluid/forwardStep/system/functions
Normal 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;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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 )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
35
tutorials/fluid/helmholtzResonance/system/functions
Normal file
35
tutorials/fluid/helmholtzResonance/system/functions
Normal 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 )
|
||||
);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
42
tutorials/fluid/hotRoomComfort/system/functions
Normal file
42
tutorials/fluid/hotRoomComfort/system/functions
Normal 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;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
40
tutorials/fluid/nacaAirfoil/system/functions
Normal file
40
tutorials/fluid/nacaAirfoil/system/functions
Normal 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;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,9 +50,5 @@ adjustTimeStep no;
|
||||
|
||||
maxCo 0.5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc fieldAverage(U, p, prime2Mean = yes)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
19
tutorials/fluid/pitzDaily/system/functions
Normal file
19
tutorials/fluid/pitzDaily/system/functions
Normal 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)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,9 +46,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc mag(U)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
19
tutorials/fluid/shockTube/system/functions
Normal file
19
tutorials/fluid/shockTube/system/functions
Normal 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)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
39
tutorials/incompressibleFluid/T3A/system/functions
Normal file
39
tutorials/incompressibleFluid/T3A/system/functions
Normal 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
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
51
tutorials/incompressibleFluid/TJunction/system/functions
Normal file
51
tutorials/incompressibleFluid/TJunction/system/functions
Normal 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)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
43
tutorials/incompressibleFluid/TJunctionFan/system/functions
Normal file
43
tutorials/incompressibleFluid/TJunctionFan/system/functions
Normal 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
|
||||
);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
25
tutorials/incompressibleFluid/ballValve/system/functions
Normal file
25
tutorials/incompressibleFluid/ballValve/system/functions
Normal 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
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,9 +50,5 @@ adjustTimeStep yes;
|
||||
|
||||
maxCo 5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc scalarTransport(tracer)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -48,9 +48,5 @@ runTimeModifiable true;
|
||||
|
||||
graphFormat raw;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc enstrophy(executeAtStart=no);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
19
tutorials/incompressibleFluid/boxTurb16/system/functions
Normal file
19
tutorials/incompressibleFluid/boxTurb16/system/functions
Normal 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);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
44
tutorials/incompressibleFluid/channel395/system/functions
Normal file
44
tutorials/incompressibleFluid/channel395/system/functions
Normal 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
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -45,10 +45,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc scalarTransport(T, alphal=1, alphat=1)
|
||||
#includeFunc time
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -48,13 +48,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
functions
|
||||
{
|
||||
clouds
|
||||
{
|
||||
type fvModel;
|
||||
#includeModel clouds(name=fvModel)
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -48,13 +48,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
functions
|
||||
{
|
||||
clouds
|
||||
{
|
||||
type fvModel;
|
||||
#includeModel clouds(name=fvModel)
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
34
tutorials/incompressibleFluid/impeller/system/functions
Normal file
34
tutorials/incompressibleFluid/impeller/system/functions
Normal 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;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
49
tutorials/incompressibleFluid/mixerVessel2D/system/functions
Normal file
49
tutorials/incompressibleFluid/mixerVessel2D/system/functions
Normal 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;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -48,13 +48,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
functions
|
||||
{
|
||||
clouds
|
||||
{
|
||||
type fvModel;
|
||||
#includeModel clouds(name=fvModel)
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,26 +50,5 @@ cacheTemporaryObjects
|
||||
SpalartAllmarasDDES:LESRegion
|
||||
);
|
||||
|
||||
functions
|
||||
{
|
||||
writeCachedObjects
|
||||
{
|
||||
type writeObjects;
|
||||
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
|
||||
writeControl writeTime;
|
||||
writeOption anyWrite;
|
||||
|
||||
objects
|
||||
(
|
||||
SpalartAllmarasDDES:LESRegion
|
||||
);
|
||||
}
|
||||
|
||||
#include "cutPlane"
|
||||
#include "streamlines"
|
||||
#include "forceCoeffs"
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
40
tutorials/incompressibleFluid/motorBike/lesFiles/functions
Normal file
40
tutorials/incompressibleFluid/motorBike/lesFiles/functions
Normal 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;
|
||||
object functions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
cacheTemporaryObjects
|
||||
(
|
||||
SpalartAllmarasDDES:LESRegion
|
||||
);
|
||||
|
||||
writeCachedObjects
|
||||
{
|
||||
type writeObjects;
|
||||
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
|
||||
writeControl writeTime;
|
||||
writeOption anyWrite;
|
||||
|
||||
objects
|
||||
(
|
||||
SpalartAllmarasDDES:LESRegion
|
||||
);
|
||||
}
|
||||
|
||||
#include "cutPlane"
|
||||
#include "streamlines"
|
||||
#include "forceCoeffs"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,11 +46,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#include "cutPlane"
|
||||
#include "streamlines"
|
||||
#include "forceCoeffs"
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
/*--------------------------------*- 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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "cutPlane"
|
||||
#include "streamlines"
|
||||
#include "forceCoeffs"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -45,12 +45,6 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#include "cutPlane"
|
||||
#include "streamlines"
|
||||
#include "forceCoeffs"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "cutPlane"
|
||||
#include "streamlines"
|
||||
#include "forceCoeffs"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,9 +50,5 @@ adjustTimeStep yes;
|
||||
|
||||
maxCo 0.5;
|
||||
|
||||
functions
|
||||
{
|
||||
#include "cutPlane"
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
19
tutorials/incompressibleFluid/movingCone/system/functions
Normal file
19
tutorials/incompressibleFluid/movingCone/system/functions
Normal 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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "cutPlane"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,11 +50,6 @@ adjustTimeStep true;
|
||||
|
||||
maxCo 0.5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc patchFlowRate(name=inletFlowRate, patch=inlet)
|
||||
#includeFunc patchFlowRate(name=outletFlowRate, patch=outlet)
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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 patchFlowRate(name=inletFlowRate, patch=inlet)
|
||||
#includeFunc patchFlowRate(name=outletFlowRate, patch=outlet)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,9 +50,5 @@ adjustTimeStep yes;
|
||||
|
||||
maxCo 5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc patchAverage(patch=inlet, fields=(p U))
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
19
tutorials/incompressibleFluid/pitzDaily/system/functions
Normal file
19
tutorials/incompressibleFluid/pitzDaily/system/functions
Normal 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 patchAverage(patch=inlet, fields=(p U))
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,59 +46,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
probes
|
||||
{
|
||||
type probes;
|
||||
libs ("libsampling.so");
|
||||
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
|
||||
fields (p);
|
||||
|
||||
probeLocations
|
||||
(
|
||||
(0.0254 0.0253 0)
|
||||
(0.0508 0.0253 0)
|
||||
(0.0762 0.0253 0)
|
||||
(0.1016 0.0253 0)
|
||||
(0.127 0.0253 0)
|
||||
(0.1524 0.0253 0)
|
||||
(0.1778 0.0253 0)
|
||||
);
|
||||
}
|
||||
|
||||
#includeFunc fieldAverage(U, p, prime2Mean = yes)
|
||||
|
||||
surfaceSampling
|
||||
{
|
||||
type surfaces;
|
||||
libs ("libsampling.so");
|
||||
|
||||
writeControl writeTime;
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaceFormat vtk;
|
||||
|
||||
fields (U);
|
||||
|
||||
surfaces
|
||||
(
|
||||
nearWall
|
||||
{
|
||||
type patchInternalField;
|
||||
patches (lowerWall);
|
||||
distance 1e-6;
|
||||
interpolate true;
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#includeFunc scalarTransport(s)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
69
tutorials/incompressibleFluid/pitzDailyLES/system/functions
Normal file
69
tutorials/incompressibleFluid/pitzDailyLES/system/functions
Normal file
@ -0,0 +1,69 @@
|
||||
/*--------------------------------*- 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 timeStep;
|
||||
writeInterval 1;
|
||||
|
||||
fields (p);
|
||||
|
||||
probeLocations
|
||||
(
|
||||
(0.0254 0.0253 0)
|
||||
(0.0508 0.0253 0)
|
||||
(0.0762 0.0253 0)
|
||||
(0.1016 0.0253 0)
|
||||
(0.127 0.0253 0)
|
||||
(0.1524 0.0253 0)
|
||||
(0.1778 0.0253 0)
|
||||
);
|
||||
}
|
||||
|
||||
#includeFunc fieldAverage(U, p, prime2Mean = yes)
|
||||
|
||||
surfaceSampling
|
||||
{
|
||||
type surfaces;
|
||||
libs ("libsampling.so");
|
||||
|
||||
writeControl writeTime;
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaceFormat vtk;
|
||||
|
||||
fields (U);
|
||||
|
||||
surfaces
|
||||
(
|
||||
nearWall
|
||||
{
|
||||
type patchInternalField;
|
||||
patches (lowerWall);
|
||||
distance 1e-6;
|
||||
interpolate true;
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#includeFunc scalarTransport(s)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,67 +46,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
probes
|
||||
{
|
||||
type probes;
|
||||
libs ("libsampling.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
|
||||
fields
|
||||
(
|
||||
p
|
||||
);
|
||||
|
||||
probeLocations
|
||||
(
|
||||
(0.0254 0.0253 0)
|
||||
(0.0508 0.0253 0)
|
||||
(0.0762 0.0253 0)
|
||||
(0.1016 0.0253 0)
|
||||
(0.127 0.0253 0)
|
||||
(0.1524 0.0253 0)
|
||||
(0.1778 0.0253 0)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
#includeFunc fieldAverage(U, p, prime2Mean = yes)
|
||||
|
||||
surfaceSampling
|
||||
{
|
||||
// Sample near-wall velocity
|
||||
|
||||
type surfaces;
|
||||
|
||||
// Where to load it from (if not already in solver)
|
||||
libs ("libsampling.so");
|
||||
writeControl writeTime;
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaceFormat vtk;
|
||||
|
||||
// Fields to be sampled
|
||||
fields
|
||||
(
|
||||
U
|
||||
);
|
||||
|
||||
surfaces
|
||||
(
|
||||
nearWall
|
||||
{
|
||||
type patchInternalField;
|
||||
patches ( lowerWall );
|
||||
distance 1e-6;
|
||||
interpolate true;
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,77 @@
|
||||
/*--------------------------------*- 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 timeStep;
|
||||
writeInterval 1;
|
||||
|
||||
fields
|
||||
(
|
||||
p
|
||||
);
|
||||
|
||||
probeLocations
|
||||
(
|
||||
(0.0254 0.0253 0)
|
||||
(0.0508 0.0253 0)
|
||||
(0.0762 0.0253 0)
|
||||
(0.1016 0.0253 0)
|
||||
(0.127 0.0253 0)
|
||||
(0.1524 0.0253 0)
|
||||
(0.1778 0.0253 0)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
#includeFunc fieldAverage(U, p, prime2Mean = yes)
|
||||
|
||||
surfaceSampling
|
||||
{
|
||||
// Sample near-wall velocity
|
||||
|
||||
type surfaces;
|
||||
|
||||
// Where to load it from (if not already in solver)
|
||||
libs ("libsampling.so");
|
||||
writeControl writeTime;
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaceFormat vtk;
|
||||
|
||||
// Fields to be sampled
|
||||
fields
|
||||
(
|
||||
U
|
||||
);
|
||||
|
||||
surfaces
|
||||
(
|
||||
nearWall
|
||||
{
|
||||
type patchInternalField;
|
||||
patches ( lowerWall );
|
||||
distance 1e-6;
|
||||
interpolate true;
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,9 +50,5 @@ adjustTimeStep yes;
|
||||
|
||||
maxCo 5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc patchAverage(patch=inlet, fields=(p U))
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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 patchAverage(patch=inlet, fields=(p U))
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,41 +50,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc scalarTransport(T, diffusivity=constant, D = 0.01)
|
||||
|
||||
mixingQualityCheck
|
||||
{
|
||||
type coded;
|
||||
|
||||
// Load the library containing the 'coded' functionObject
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
|
||||
codeInclude
|
||||
#{
|
||||
#include "volFields.H"
|
||||
#};
|
||||
|
||||
codeExecute
|
||||
#{
|
||||
const volScalarField& T
|
||||
(
|
||||
mesh().lookupObject<volScalarField>("T")
|
||||
);
|
||||
|
||||
const scalar maxT = max(T).value();
|
||||
const scalar meanT = T.weightedAverage(mesh().V()).value();
|
||||
|
||||
const scalar mixingQuality = meanT/maxT;
|
||||
Info << "mixingQuality = " << mixingQuality << endl;
|
||||
|
||||
if (mixingQuality > 0.9)
|
||||
{
|
||||
const_cast<Time&>(mesh().time()).writeAndEnd();
|
||||
}
|
||||
#};
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#includeFunc scalarTransport(T, diffusivity=constant, D = 0.01)
|
||||
|
||||
mixingQualityCheck
|
||||
{
|
||||
type coded;
|
||||
|
||||
// Load the library containing the 'coded' functionObject
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
|
||||
codeInclude
|
||||
#{
|
||||
#include "volFields.H"
|
||||
#};
|
||||
|
||||
codeExecute
|
||||
#{
|
||||
const volScalarField& T
|
||||
(
|
||||
mesh().lookupObject<volScalarField>("T")
|
||||
);
|
||||
|
||||
const scalar maxT = max(T).value();
|
||||
const scalar meanT = T.weightedAverage(mesh().V()).value();
|
||||
|
||||
const scalar mixingQuality = meanT/maxT;
|
||||
Info << "mixingQuality = " << mixingQuality << endl;
|
||||
|
||||
if (mixingQuality > 0.9)
|
||||
{
|
||||
const_cast<Time&>(mesh().time()).writeAndEnd();
|
||||
}
|
||||
#};
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -51,20 +51,5 @@ cacheTemporaryObjects
|
||||
kEpsilon:G
|
||||
);
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc streamlinesLine
|
||||
(
|
||||
name=streamlines,
|
||||
start=(-0.0205 0.001 0.00001),
|
||||
end=(-0.0205 0.0251 0.00001),
|
||||
nPoints=10,
|
||||
fields=(p k U)
|
||||
)
|
||||
|
||||
#includeFunc writeObjects(kEpsilon:G)
|
||||
|
||||
#includeFunc strainRate(writeControl=writeTime)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
cacheTemporaryObjects
|
||||
(
|
||||
kEpsilon:G
|
||||
);
|
||||
|
||||
#includeFunc streamlinesLine
|
||||
(
|
||||
name=streamlines,
|
||||
start=(-0.0205 0.001 0.00001),
|
||||
end=(-0.0205 0.0251 0.00001),
|
||||
nPoints=10,
|
||||
fields=(p k U)
|
||||
)
|
||||
|
||||
#includeFunc writeObjects(kEpsilon:G)
|
||||
|
||||
#includeFunc strainRate(writeControl=writeTime)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,44 +46,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
streamlines
|
||||
{
|
||||
type streamlines;
|
||||
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
// Output every
|
||||
writeControl writeTime;
|
||||
|
||||
// Write format
|
||||
setFormat vtk;
|
||||
|
||||
// Track forward (+U) or backward (-U) or both
|
||||
direction forward;
|
||||
|
||||
// Names of fields to sample. Should contain above velocity field!
|
||||
fields (p k U);
|
||||
|
||||
// Steps particles can travel before being removed
|
||||
lifeTime 10000;
|
||||
|
||||
// Number of steps per cell (estimate). Set to 1 to disable subcycling.
|
||||
nSubCycle 5;
|
||||
|
||||
// Cloud name to use
|
||||
cloudName particleTracks;
|
||||
|
||||
// Seeding method.
|
||||
seedSampleSet
|
||||
{
|
||||
type lineUniform;
|
||||
start (-0.0205 0.001 0.00001);
|
||||
end (-0.0205 0.0251 0.00001);
|
||||
nPoints 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,54 @@
|
||||
/*--------------------------------*- 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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
streamlines
|
||||
{
|
||||
type streamlines;
|
||||
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
// Output every
|
||||
writeControl writeTime;
|
||||
|
||||
// Write format
|
||||
setFormat vtk;
|
||||
|
||||
// Track forward (+U) or backward (-U) or both
|
||||
direction forward;
|
||||
|
||||
// Names of fields to sample. Should contain above velocity field!
|
||||
fields (p k U);
|
||||
|
||||
// Steps particles can travel before being removed
|
||||
lifeTime 10000;
|
||||
|
||||
// Number of steps per cell (estimate). Set to 1 to disable subcycling.
|
||||
nSubCycle 5;
|
||||
|
||||
// Cloud name to use
|
||||
cloudName particleTracks;
|
||||
|
||||
// Seeding method.
|
||||
seedSampleSet
|
||||
{
|
||||
type lineUniform;
|
||||
start (-0.0205 0.001 0.00001);
|
||||
end (-0.0205 0.0251 0.00001);
|
||||
nPoints 10;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -45,11 +45,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc graphCell(name=lineA, start=(-0.0016 0 0), end=(-0.0016 0.0128 0), U)
|
||||
#includeFunc graphCell(name=lineB, start=(-0.0048 0 0), end=(-0.0048 0.0128 0), U)
|
||||
#includeFunc graphCell(name=lineC, start=(-0.0032 0 0), end=(-0.0032 0.0128 0), U)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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 graphCell(name=lineA, start=(-0.0016 0 0), end=(-0.0016 0.0128 0), U)
|
||||
#includeFunc graphCell(name=lineB, start=(-0.0048 0 0), end=(-0.0048 0.0128 0), U)
|
||||
#includeFunc graphCell(name=lineC, start=(-0.0032 0 0), end=(-0.0032 0.0128 0), U)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -45,11 +45,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc residuals(p, sigma)
|
||||
#includeFunc graphCell(name=graph, start=(0 0 0), end=(0 1 0), U)
|
||||
#includeFunc probes(name=probes, points=((0 1 0)), U)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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 residuals(p, sigma)
|
||||
#includeFunc graphCell(name=graph, start=(0 0 0), end=(0 1 0), U)
|
||||
#includeFunc probes(name=probes, points=((0 1 0)), U)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -45,6 +45,5 @@ const dictionary& gradPDict =
|
||||
fvModels.subDict("momentumSource").subDict("sources");
|
||||
const scalar K(vector(gradPDict.subDict("U").lookup("explicit")).x());
|
||||
|
||||
const dictionary& probesDict =
|
||||
runTime.controlDict().subDict("functions").subDict("probes");
|
||||
const dictionary& probesDict = runTime.functionObjects().subDict("probes");
|
||||
const point location = pointField(probesDict.lookup("probeLocations"))[0];
|
||||
|
||||
@ -53,11 +53,5 @@ adjustTimeStep yes;
|
||||
|
||||
maxCo 2;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc Q
|
||||
#include "surfaces"
|
||||
#include "forces"
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
26
tutorials/incompressibleFluid/propeller/system/functions
Normal file
26
tutorials/incompressibleFluid/propeller/system/functions
Normal 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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
////- For testing with moveMesh
|
||||
//deltaT 0.01;
|
||||
//writeControl timeStep;
|
||||
//writeInterval 1;
|
||||
|
||||
#includeFunc Q
|
||||
#include "surfaces"
|
||||
#include "forces"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,9 +46,5 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc residuals(p, U)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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 residuals(p, U)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -49,8 +49,5 @@ runTimeModifiable true;
|
||||
|
||||
// maxCo 1;
|
||||
|
||||
functions
|
||||
{
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,21 +46,6 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
forces
|
||||
{
|
||||
type forces;
|
||||
libs ("libforces.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 10;
|
||||
patches (wing);
|
||||
rho rhoInf;
|
||||
log true;
|
||||
rhoInf 1;
|
||||
CofR (0.4974612746 -0.01671895744 0.125);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
/*--------------------------------*- 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 forces;
|
||||
libs ("libforces.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 10;
|
||||
patches (wing);
|
||||
rho rhoInf;
|
||||
log true;
|
||||
rhoInf 1;
|
||||
CofR (0.4974612746 -0.01671895744 0.125);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,14 +50,5 @@ adjustTimeStep yes;
|
||||
|
||||
maxCo 0.9;
|
||||
|
||||
functions
|
||||
{
|
||||
sixDoFRigidBodyState
|
||||
{
|
||||
type sixDoFRigidBodyState;
|
||||
libs ("libsixDoFRigidBodyState.so");
|
||||
angleUnits degrees;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
/*--------------------------------*- 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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
sixDoFRigidBodyState
|
||||
{
|
||||
type sixDoFRigidBodyState;
|
||||
libs ("libsixDoFRigidBodyState.so");
|
||||
angleUnits degrees;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,19 +46,6 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
functions
|
||||
{
|
||||
forces
|
||||
{
|
||||
type forces;
|
||||
libs ("libforces.so");
|
||||
patches (hull);
|
||||
log on;
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
CofR (2.929541 0 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
28
tutorials/incompressibleVoF/DTCHull/system/functions
Normal file
28
tutorials/incompressibleVoF/DTCHull/system/functions
Normal file
@ -0,0 +1,28 @@
|
||||
/*--------------------------------*- 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 forces;
|
||||
libs ("libforces.so");
|
||||
patches (hull);
|
||||
log on;
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
CofR (2.929541 0 0.2);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -52,19 +52,6 @@ maxCo 25;
|
||||
maxAlphaCo 15;
|
||||
maxDeltaT 0.01;
|
||||
|
||||
functions
|
||||
{
|
||||
forces
|
||||
{
|
||||
type forces;
|
||||
libs ("libforces.so");
|
||||
patches (hull);
|
||||
log on;
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
CofR (2.929541 0 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
28
tutorials/incompressibleVoF/DTCHullMoving/system/functions
Normal file
28
tutorials/incompressibleVoF/DTCHullMoving/system/functions
Normal file
@ -0,0 +1,28 @@
|
||||
/*--------------------------------*- 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 forces;
|
||||
libs ("libforces.so");
|
||||
patches (hull);
|
||||
log on;
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
CofR (2.929541 0 0.2);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -52,34 +52,6 @@ maxCo 10;
|
||||
maxAlphaCo 5;
|
||||
maxDeltaT 0.01;
|
||||
|
||||
functions
|
||||
{
|
||||
surfaces
|
||||
{
|
||||
type surfaces;
|
||||
libs ("libsampling.so");
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
writeInterval 0.01;
|
||||
|
||||
surfaceFormat vtk;
|
||||
writeFormat binary;
|
||||
fields (p_rgh U);
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
interface
|
||||
{
|
||||
type isoSurface;
|
||||
isoField alpha.water;
|
||||
isoValue 0.5;
|
||||
interpolate true;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user