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

@ -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)
}
// ************************************************************************* //

View File

@ -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"
}
// ************************************************************************* //

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;
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
cacheTemporaryObjects
(
SpalartAllmarasDDES:LESRegion
);
writeCachedObjects
{
type writeObjects;
libs ("libutilityFunctionObjects.so");
writeControl writeTime;
writeOption anyWrite;
objects
(
SpalartAllmarasDDES:LESRegion
);
}
#include "cutPlane"
#include "streamlines"
#include "forceCoeffs"
// ************************************************************************* //

View File

@ -46,11 +46,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#include "cutPlane"
#include "streamlines"
#include "forceCoeffs"
}
// ************************************************************************* //

View File

@ -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"
// ************************************************************************* //

View File

@ -45,12 +45,6 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#include "cutPlane"
#include "streamlines"
#include "forceCoeffs"
}
// ************************************************************************* //

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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "cutPlane"
#include "streamlines"
#include "forceCoeffs"
// ************************************************************************* //

View File

@ -50,9 +50,5 @@ adjustTimeStep yes;
maxCo 0.5;
functions
{
#include "cutPlane"
}
// ************************************************************************* //

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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "cutPlane"
// ************************************************************************* //

View File

@ -50,11 +50,6 @@ adjustTimeStep true;
maxCo 0.5;
functions
{
#includeFunc patchFlowRate(name=inletFlowRate, patch=inlet)
#includeFunc patchFlowRate(name=outletFlowRate, patch=outlet)
}
// ************************************************************************* //

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 patchFlowRate(name=inletFlowRate, patch=inlet)
#includeFunc patchFlowRate(name=outletFlowRate, patch=outlet)
// ************************************************************************* //

View File

@ -50,9 +50,5 @@ adjustTimeStep yes;
maxCo 5;
functions
{
#includeFunc patchAverage(patch=inlet, fields=(p 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 patchAverage(patch=inlet, fields=(p U))
// ************************************************************************* //

View File

@ -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)
}
// ************************************************************************* //

View 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)
// ************************************************************************* //

View File

@ -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;
}
);
}
}
// ************************************************************************* //

View File

@ -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;
}
);
}
// ************************************************************************* //

View File

@ -50,9 +50,5 @@ adjustTimeStep yes;
maxCo 5;
functions
{
#includeFunc patchAverage(patch=inlet, fields=(p 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 patchAverage(patch=inlet, fields=(p U))
// ************************************************************************* //

View File

@ -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();
}
#};
}
}
// ************************************************************************* //

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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#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();
}
#};
}
// ************************************************************************* //

View File

@ -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)
}
// ************************************************************************* //

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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
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)
// ************************************************************************* //

View File

@ -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;
}
}
}
// ************************************************************************* //

View File

@ -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;
}
}
// ************************************************************************* //

View File

@ -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)
}
// ************************************************************************* //

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 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)
// ************************************************************************* //

View File

@ -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)
}
// ************************************************************************* //

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 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)
// ************************************************************************* //

View File

@ -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];

View File

@ -53,11 +53,5 @@ adjustTimeStep yes;
maxCo 2;
functions
{
#includeFunc Q
#include "surfaces"
#include "forces"
}
// ************************************************************************* //

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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
////- For testing with moveMesh
//deltaT 0.01;
//writeControl timeStep;
//writeInterval 1;
#includeFunc Q
#include "surfaces"
#include "forces"
// ************************************************************************* //

View File

@ -46,9 +46,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc residuals(p, 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 residuals(p, U)
// ************************************************************************* //

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

@ -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);
}
}
// ************************************************************************* //

View File

@ -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);
}
// ************************************************************************* //

View File

@ -50,14 +50,5 @@ adjustTimeStep yes;
maxCo 0.9;
functions
{
sixDoFRigidBodyState
{
type sixDoFRigidBodyState;
libs ("libsixDoFRigidBodyState.so");
angleUnits degrees;
}
}
// ************************************************************************* //

View File

@ -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;
}
// ************************************************************************* //

View File

@ -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);
}
}
// ************************************************************************* //

View 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);
}
// ************************************************************************* //

View File

@ -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);
}
}
// ************************************************************************* //

View 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);
}
// ************************************************************************* //

View File

@ -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