tutorials: Updated for new preconfigurations
This commit is contained in:
@ -50,7 +50,7 @@ maxCo 5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc scalarTransport
|
||||
#includeFunc scalarTransport(tracer)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Solves a transport equation for a scalar field.
|
||||
|
||||
The name of the scalar field is specified in this file. A sample scalar
|
||||
field file, that must be initialised for the case, typically in the 0
|
||||
directory, is available in $FOAM_ETC/caseDicts/solvers/scalarTransport.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/solvers/scalarTransport/scalarTransport.cfg"
|
||||
|
||||
field tracer;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -47,7 +47,7 @@ runTimeModifiable true;
|
||||
functions
|
||||
{
|
||||
#includeFunc residuals(p_rgh)
|
||||
#includeFunc streamlines
|
||||
#includeFunc streamLinesLine(funcName=streamlines, start=(0 0.5 0), end=(9 0.5 0), nPoints=24, U)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,28 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes out files of streamlines with interpolated field data in VTK format.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
direction both;
|
||||
|
||||
seedSampleSet
|
||||
{
|
||||
type lineUniform;
|
||||
start (0 0.5 0);
|
||||
end (9 0.5 0);
|
||||
nPoints 24;
|
||||
axis x;
|
||||
}
|
||||
|
||||
fields (U);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/visualisation/streamlines.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -53,8 +53,22 @@ maxDeltaT 1;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc "patchAverage(funcName=cylinderT, region=fluid, name=fluid_to_solid, field=T)"
|
||||
#includeFunc "patchAverage(funcName=inletU, region=fluid, name=inlet, field=U)"
|
||||
#includeFunc patchAverage
|
||||
(
|
||||
funcName=cylinderT,
|
||||
region=fluid,
|
||||
patch=fluid_to_solid,
|
||||
field=T
|
||||
)
|
||||
#includeFunc patchAverage
|
||||
(
|
||||
funcName=inletU,
|
||||
region=fluid,
|
||||
patch=inlet,
|
||||
field=U
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Calculates the heat release rate Qdot, outputting the data as a Qdot field.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/combustion/Qdot.cfg"
|
||||
|
||||
region gas;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -52,7 +52,7 @@ adjustTimeStep yes;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc Qdot
|
||||
#includeFunc Qdot(region=gas)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc scalarTransport
|
||||
#includeFunc scalarTransport(T, alphaD=1, alphaDt=1)
|
||||
#includeFunc time
|
||||
}
|
||||
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Solves a transport equation for a scalar field.
|
||||
|
||||
The name of the scalar field is specified in this file. A sample scalar
|
||||
field file, that must be initialised for the case, typically in the 0
|
||||
directory, is available in $FOAM_ETC/caseDicts/solvers/scalarTransport.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/solvers/scalarTransport/scalarTransport.cfg"
|
||||
|
||||
field T;
|
||||
alphaD 1;
|
||||
alphaDt 1;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,7 +50,7 @@ maxCo 5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc patchAverage(name=inlet, fields=(p U))
|
||||
#includeFunc patchAverage(patch=inlet, fields=(p U))
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -50,7 +50,7 @@ maxCo 5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc scalarTransport
|
||||
#includeFunc scalarTransport(tracer)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Solves a transport equation for a scalar field.
|
||||
|
||||
The name of the scalar field is specified in this file. A sample scalar
|
||||
field file, that must be initialised for the case, typically in the 0
|
||||
directory, is available in $FOAM_ETC/caseDicts/solvers/scalarTransport.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/solvers/scalarTransport/scalarTransport.cfg"
|
||||
|
||||
field tracer;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,7 +50,7 @@ maxCo 5;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc patchAverage(name=inlet, fields=(p U))
|
||||
#includeFunc patchAverage(patch=inlet, fields=(p U))
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -45,7 +45,9 @@ runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc graphs
|
||||
#includeFunc graphCell(funcName=lineA, start=(-0.0016 0 0), end=(-0.0016 0.0128 0), U)
|
||||
#includeFunc graphCell(funcName=lineB, start=(-0.0048 0 0), end=(-0.0048 0.0128 0), U)
|
||||
#includeFunc graphCell(funcName=lineC, start=(-0.0032 0 0), end=(-0.0032 0.0128 0), U)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,59 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
type sets;
|
||||
libs ("libsampling.so");
|
||||
|
||||
writeControl writeTime;
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
setFormat raw;
|
||||
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis distance; // x, y, z, xyz
|
||||
}
|
||||
|
||||
sets
|
||||
(
|
||||
lineA
|
||||
{
|
||||
$setConfig;
|
||||
start (-0.0016 0 0);
|
||||
end (-0.0016 0.0128 0);
|
||||
}
|
||||
|
||||
lineB
|
||||
{
|
||||
$setConfig;
|
||||
start (-0.0048 0 0);
|
||||
end (-0.0048 0.0128 0);
|
||||
}
|
||||
|
||||
lineC
|
||||
{
|
||||
$setConfig;
|
||||
start (-0.032 0 0);
|
||||
end (-0.032 0.0128 0);
|
||||
}
|
||||
);
|
||||
|
||||
fields (U);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,8 +46,8 @@ runTimeModifiable true;
|
||||
functions
|
||||
{
|
||||
#includeFunc residuals(p, sigma)
|
||||
#includeFunc singleGraph
|
||||
#includeFunc probes
|
||||
#includeFunc graphCell(funcName=graph, start=(0 0 0), end=(0 1 0), U)
|
||||
#includeFunc probes(funcName=probes, points=((0 1 0)), U)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes out values of fields from cells nearest to specified locations.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
|
||||
|
||||
fields (U);
|
||||
probeLocations
|
||||
(
|
||||
(0 1 0)
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,45 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
type sets;
|
||||
libs ("libsampling.so");
|
||||
|
||||
writeControl writeTime;
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
setFormat raw;
|
||||
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis distance; // x, y, z, xyz
|
||||
}
|
||||
|
||||
sets
|
||||
(
|
||||
line
|
||||
{
|
||||
$setConfig;
|
||||
start (0 0 0);
|
||||
end (0 1 0);
|
||||
}
|
||||
);
|
||||
|
||||
fields (U);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -53,5 +53,6 @@ const dictionary& gradPDict =
|
||||
fvModels.subDict("momentumSource").subDict("sources");
|
||||
const scalar K(vector(gradPDict.subDict("U").lookup("explicit")).x());
|
||||
|
||||
dictionary probes(IFstream(runTime.system()/"probes")());
|
||||
const point location = pointField(probes.lookup("probeLocations"))[0];
|
||||
const dictionary& probesDict =
|
||||
runTime.controlDict().subDict("functions").subDict("probes");
|
||||
const point location = pointField(probesDict.lookup("probeLocations"))[0];
|
||||
|
||||
@ -50,13 +50,11 @@ functions
|
||||
{
|
||||
type probes;
|
||||
libs ("libsampling.so");
|
||||
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
|
||||
fields
|
||||
(
|
||||
p
|
||||
);
|
||||
fields (p);
|
||||
|
||||
probeLocations
|
||||
(
|
||||
@ -68,37 +66,29 @@ functions
|
||||
(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)
|
||||
type surfaces;
|
||||
libs ("libsampling.so");
|
||||
|
||||
writeControl writeTime;
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaceFormat vtk;
|
||||
surfaceFormat vtk;
|
||||
|
||||
// Fields to be sampled
|
||||
fields
|
||||
(
|
||||
U
|
||||
);
|
||||
fields (U);
|
||||
|
||||
surfaces
|
||||
(
|
||||
nearWall
|
||||
{
|
||||
type patchInternalField;
|
||||
patches ( lowerWall );
|
||||
patches (lowerWall);
|
||||
distance 1e-6;
|
||||
interpolate true;
|
||||
triangulate false;
|
||||
@ -106,7 +96,7 @@ functions
|
||||
);
|
||||
}
|
||||
|
||||
#includeFunc scalarTransport
|
||||
#includeFunc scalarTransport(s)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -47,8 +47,26 @@ runTimeModifiable true;
|
||||
functions
|
||||
{
|
||||
#includeFunc wallShearStress
|
||||
#includeFunc wallShearStressGraph
|
||||
#includeFunc kGraph
|
||||
|
||||
#includeFunc graphUniform
|
||||
(
|
||||
funcName=wallShearStressGraph,
|
||||
start=(0.04075 0.00075 0),
|
||||
end=(3.04 0.00075 0),
|
||||
nPoints=100,
|
||||
axis=x,
|
||||
wallShearStress
|
||||
)
|
||||
|
||||
#includeFunc graphUniform
|
||||
(
|
||||
funcName=kGraph,
|
||||
start=(0.04075 0.05 0),
|
||||
end=(3.04 0.05 0),
|
||||
nPoints=100,
|
||||
axis=x,
|
||||
k
|
||||
)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,30 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (0.04075 0.05 0);
|
||||
end (3.04 0.05 0);
|
||||
fields (k);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
setConfig
|
||||
{
|
||||
axis x;
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,30 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (0.04075 0.00075 0);
|
||||
end (3.04 0.00075 0);
|
||||
fields (wallShearStress);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
setConfig
|
||||
{
|
||||
axis x;
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,30 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes out surface files with interpolated field data in VTK format, e.g.
|
||||
cutting planes, iso-surfaces and patch boundary surfaces.
|
||||
|
||||
This file includes a selection of example surfaces, each of which the user
|
||||
should configure and/or remove.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/visualisation/surfaces.cfg"
|
||||
|
||||
fields (p);
|
||||
|
||||
surfaces
|
||||
(
|
||||
car
|
||||
{
|
||||
$patchSurface;
|
||||
patches ( ".*(body|Wheels)" );
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,10 +50,35 @@ runTimeModifiable true;
|
||||
functions
|
||||
{
|
||||
#includeFunc forceCoeffsIncompressible
|
||||
|
||||
#includeFunc time
|
||||
#includeFunc car
|
||||
#includeFunc streamlines
|
||||
#includeFunc slices
|
||||
|
||||
#includeFunc streamLinesSphere
|
||||
(
|
||||
funcName=streamlines,
|
||||
centre=(4 0 0.7),
|
||||
radius=1,
|
||||
nPoints=30,
|
||||
fields=(U)
|
||||
)
|
||||
|
||||
#includeFunc cutPlaneSurface
|
||||
(
|
||||
funcName=xNormal,
|
||||
point=(4 0 1),
|
||||
normal=(1 0 0),
|
||||
fields=(p U)
|
||||
)
|
||||
|
||||
#includeFunc cutPlaneSurface
|
||||
(
|
||||
funcName=yNormal,
|
||||
point=(-5 0.02 1),
|
||||
normal=(0 1 0),
|
||||
fields=(p U)
|
||||
)
|
||||
|
||||
#includeFunc patchSurface(funcName=car, patch=".*(body|Wheels)", p)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -7,25 +7,26 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Calculates lift, drag and moment coefficients by summing forces on
|
||||
specified patches for a case where the solver is incompressible (pressure
|
||||
is kinematic, e.g. m^2/s^2).
|
||||
specified patches for a case where the solver is incompressible; i.e.,
|
||||
pressure is kinematic and has units of m^2/s^2.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "$FOAM_CASE/0/U"
|
||||
|
||||
patches ( ".*(body|Wheels)" );
|
||||
|
||||
magUInf $Uinlet;
|
||||
lRef $wheelBase;
|
||||
Aref 2.154;
|
||||
|
||||
liftDir (0 0 1);
|
||||
dragDir (1 0 0);
|
||||
|
||||
CofR (1.391 0 0);
|
||||
pitchAxis (0 1 0);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/forces/forceCoeffsIncompressible.cfg"
|
||||
|
||||
#include "$FOAM_CASE/0/U"
|
||||
|
||||
patches (".*(body|Wheels)"); // Patches on which to calculate forces
|
||||
|
||||
magUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s
|
||||
lRef $wheelBase; // Reference length scale for moment calculations;
|
||||
// e.g., 1 m
|
||||
Aref 2.154; // Reference area; e.g., 1 m^2
|
||||
|
||||
CofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)
|
||||
|
||||
liftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)
|
||||
dragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)
|
||||
pitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,46 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes out surface files with interpolated field data in VTK format, e.g.
|
||||
cutting planes, iso-surfaces and patch boundary surfaces.
|
||||
|
||||
This file includes a selection of example surfaces, each of which the user
|
||||
should configure and/or remove.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/visualisation/surfaces.cfg"
|
||||
|
||||
fields (p U);
|
||||
|
||||
surfaces
|
||||
(
|
||||
xNormal
|
||||
{
|
||||
$cuttingPlane;
|
||||
pointAndNormalDict
|
||||
{
|
||||
point (4 0 1);
|
||||
normal $x;
|
||||
}
|
||||
filtering full;
|
||||
}
|
||||
|
||||
yNormal
|
||||
{
|
||||
$cuttingPlane;
|
||||
pointAndNormalDict
|
||||
{
|
||||
point (-5 0.02 1);
|
||||
normal $y;
|
||||
}
|
||||
filtering full;
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,28 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes out files of streamlines with interpolated field data in VTK format.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/visualisation/streamlines.cfg"
|
||||
|
||||
fields (U);
|
||||
|
||||
direction both;
|
||||
|
||||
seedSampleSet
|
||||
{
|
||||
type sphereRandom;
|
||||
centre (4 0 0.7);
|
||||
radius 1;
|
||||
nPoints 30;
|
||||
axis x;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -51,7 +51,15 @@ cacheTemporaryObjects
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc streamlines
|
||||
#includeFunc streamLinesLine
|
||||
(
|
||||
funcName=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)
|
||||
}
|
||||
|
||||
|
||||
@ -1,28 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes out files of streamlines with interpolated field data in VTK format.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
direction both;
|
||||
|
||||
seedSampleSet
|
||||
{
|
||||
type lineUniform;
|
||||
start (-0.0205 0.001 0.00001);
|
||||
end (-0.0205 0.0251 0.00001);
|
||||
nPoints 10;
|
||||
axis x;
|
||||
}
|
||||
|
||||
fields (p k U);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/visualisation/streamlines.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -6,10 +6,12 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication simpleFoam
|
||||
runApplication -s age simpleFoam -latestTime -postProcess -func age
|
||||
runApplication -s age simpleFoam -postProcess -latestTime \
|
||||
-func "age(diffusion=true)"
|
||||
runApplication -s probes1 postProcess -func probes1 -latestTime
|
||||
runApplication -s probes2 postProcess -func probes2 -latestTime
|
||||
runApplication -s flowRatePatch postProcess -func flowRatePatch -latestTime
|
||||
runApplication -s patchFlowRate postProcess -latestTime \
|
||||
-func "patchFlowRate(funcName=inletFlowRate,patch=inlet)" -latestTime
|
||||
|
||||
(cd validation && ./Allrun $*)
|
||||
|
||||
|
||||
@ -1,31 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Solves a transport equation to determine the time taken for a particle to
|
||||
convect from an inlet to the location in the flow.
|
||||
|
||||
This will output a field, age, with units of time. This field needs a
|
||||
solver setting in fvSolution and a div(phi,age) scheme in fvSchemes.
|
||||
Alternatively, a schemesField entry can be used to reuse settings from
|
||||
another field.
|
||||
|
||||
The number of correctors, nCorr, determines how many times the solution is
|
||||
repeated to iterate away any non-linearities in the choice of scheme. If
|
||||
the divergence scheme is set to upwind, no corrections will be necessary.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
type age;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
diffusion true;
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,7 +46,7 @@ runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc residuals
|
||||
#includeFunc residuals(p, U)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,19 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Calculates the flow rate through a specified patch by summing the flux on
|
||||
patch faces. For solvers where the flux is volumetric, the flow rate is
|
||||
volumetric; where flux is mass flux, the flow rate is mass flow rate.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
name inlet;
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/flowRate/flowRatePatch.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -10,10 +10,7 @@ Description
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
|
||||
|
||||
fields (age);
|
||||
probeLocations
|
||||
points
|
||||
(
|
||||
(1.13 1.8 0.0)
|
||||
(1.13 1.8 0.1)
|
||||
@ -47,4 +44,8 @@ probeLocations
|
||||
(1.13 1.8 3.0)
|
||||
);
|
||||
|
||||
fields (age);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -10,10 +10,7 @@ Description
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
|
||||
|
||||
fields (age);
|
||||
probeLocations
|
||||
points
|
||||
(
|
||||
(3.2 1.8 0.0)
|
||||
(3.2 1.8 0.1)
|
||||
@ -47,4 +44,8 @@ probeLocations
|
||||
(3.2 1.8 3.0)
|
||||
);
|
||||
|
||||
fields (age);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -7,7 +7,7 @@ head -n 30 ../postProcessing/probes1/*/age | cut -d' ' -f6 | cut -d')' -f1 > pos
|
||||
|
||||
# Build dimless age value
|
||||
V=45.36
|
||||
Vdot=`cat ../postProcessing/flowRatePatch/0/surfaceFieldValue.dat | tail -n 1 | xargs | cut -d' ' -f2`
|
||||
Vdot=`cat ../postProcessing/inletFlowRate/*/surfaceFieldValue.dat | tail -n 1 | xargs | cut -d' ' -f2`
|
||||
Vdot=`echo $Vdot | sed 's/e/*10^/'`
|
||||
|
||||
while IFS= read -r line
|
||||
|
||||
@ -52,7 +52,14 @@ maxDeltaT 0.001;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc singleGraph
|
||||
#includeFunc graphCell
|
||||
(
|
||||
funcName=graph,
|
||||
start=(0.0101 0 0),
|
||||
end=(0.0101 0.01905 0),
|
||||
fields=(alpha.gas)
|
||||
)
|
||||
|
||||
#includeFunc yPlus(phase=liquid)
|
||||
}
|
||||
|
||||
|
||||
@ -1,34 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (0.0101 0 0);
|
||||
end (0.0101 0.01905 0);
|
||||
fields
|
||||
(
|
||||
alpha.gas
|
||||
);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis y; // y, z, xyz
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -17,7 +17,7 @@ gnuplot<<EOF
|
||||
set xrange [0:1]
|
||||
set yrange [0:0.15]
|
||||
|
||||
file = system("ls ../postProcessing/singleGraph/$(foamListTimes -case .. | tail -1)/*.xy")
|
||||
file = system("ls ../postProcessing/graph/$(foamListTimes -case .. | tail -1)/*.xy")
|
||||
|
||||
plot file u (\$1/0.01905):2 w lp lt 1 t 'Simulation', \
|
||||
'./exptData/alpha.gas' u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
@ -56,7 +56,22 @@ functions
|
||||
#includeFunc writeObjects(d.air1)
|
||||
#includeFunc writeObjects(d.air2)
|
||||
#includeFunc phaseForces(phase=water)
|
||||
#includeFunc singleGraph
|
||||
#includeFunc graphUniform
|
||||
(
|
||||
funcName=graph,
|
||||
start=(0 0 0.89),
|
||||
end=(0.025 0 0.89),
|
||||
nPoints=100,
|
||||
fields=
|
||||
(
|
||||
alpha.air1
|
||||
alpha.air2
|
||||
alpha.bubbles
|
||||
liftForce.water
|
||||
wallLubricationForce.water
|
||||
turbulentDispersionForce.water
|
||||
)
|
||||
)
|
||||
|
||||
probabilityDensity.injection
|
||||
{
|
||||
|
||||
@ -1,41 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (0 0 0.89);
|
||||
end (0.025 0 0.89);
|
||||
fields
|
||||
(
|
||||
alpha.air1
|
||||
alpha.air2
|
||||
alpha.bubbles
|
||||
liftForce.water
|
||||
wallLubricationForce.water
|
||||
turbulentDispersionForce.water
|
||||
);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
/*
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis x; // y, z, xyz
|
||||
}
|
||||
*/
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -13,8 +13,8 @@ gnuplot<<EOF
|
||||
set xlabel 'r (mm)'
|
||||
set ylabel '{/Symbol a} (-)'
|
||||
|
||||
alpha = system("ls ../postProcessing/singleGraph/$(foamListTimes -case .. -latestTime)/line_alpha*.xy")
|
||||
forces = system("ls ../postProcessing/singleGraph/$(foamListTimes -case .. -latestTime)/line_lift*.xy")
|
||||
alpha = system("ls ../postProcessing/graph/$(foamListTimes -case .. -latestTime)/line_alpha*.xy")
|
||||
forces = system("ls ../postProcessing/graph/$(foamListTimes -case .. -latestTime)/line_lift*.xy")
|
||||
|
||||
plot alpha u (\$1*1000):4 w l lw 3 lc rgb 'black' t 'total',\
|
||||
alpha u (\$1*1000):2 w l lw 2 lc rgb 'green' t 'd < 5.5mm',\
|
||||
|
||||
@ -20,7 +20,15 @@ then
|
||||
fi
|
||||
|
||||
runApplication reconstructPar -latestTime
|
||||
runApplication postProcess -func singleGraph -latestTime
|
||||
runApplication postProcess -latestTime -func "
|
||||
graphCell
|
||||
(
|
||||
funcName=graph,
|
||||
start=(3.4901 0 0),
|
||||
end=(3.4901 0.0096 0),
|
||||
fields=(alpha.gas T.liquid T.gas)
|
||||
)"
|
||||
|
||||
./validation/createGraphs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -52,7 +52,7 @@ maxDeltaT 0.001;
|
||||
|
||||
functions
|
||||
{
|
||||
outflow
|
||||
outflow
|
||||
{
|
||||
type surfaceFieldValue;
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
@ -122,7 +122,6 @@ functions
|
||||
weightField alphaRhoPhi.liquid;
|
||||
fields ( h.liquid );
|
||||
}
|
||||
|
||||
writeObjects1
|
||||
{
|
||||
type writeObjects;
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (3.4901 0 0);
|
||||
end (3.4901 0.0096 0);
|
||||
|
||||
fields
|
||||
(
|
||||
alpha.gas
|
||||
T.liquid
|
||||
T.gas
|
||||
);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis y;
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -26,14 +26,14 @@ gnuplot<<EOF
|
||||
|
||||
set ylabel 'Void fraction (-)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):2 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/vof_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set ylabel 'Liquid temperature (K)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):3 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/T_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
@ -20,7 +20,15 @@ then
|
||||
fi
|
||||
|
||||
runApplication reconstructPar -latestTime
|
||||
runApplication postProcess -func singleGraph -latestTime
|
||||
runApplication postProcess -latestTime -func "
|
||||
graphCell
|
||||
(
|
||||
funcName=graph,
|
||||
start=(3.4901 0 0),
|
||||
end=(3.4901 0.0096 0),
|
||||
fields=(alpha.gas T.liquid T.gas d.gas)
|
||||
)"
|
||||
|
||||
./validation/createGraphs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -52,7 +52,7 @@ maxDeltaT 0.001;
|
||||
|
||||
functions
|
||||
{
|
||||
outflow
|
||||
outflow
|
||||
{
|
||||
type surfaceFieldValue;
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (3.4901 0 0);
|
||||
end (3.4901 0.0096 0);
|
||||
|
||||
fields
|
||||
(
|
||||
alpha.gas
|
||||
T.liquid
|
||||
T.gas
|
||||
d.gas
|
||||
);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis y;
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -26,21 +26,21 @@ gnuplot<<EOF
|
||||
|
||||
set ylabel 'Void fraction (-)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):2 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/vof_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set ylabel 'Liquid temperature (K)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):3 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/T_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set ylabel 'Sauter mean diameter (mm)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):(\$5*1000) w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/d_deb1.txt' \
|
||||
u 1:(\$2*1000) w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
@ -21,7 +21,15 @@ then
|
||||
fi
|
||||
|
||||
runApplication reconstructPar -latestTime
|
||||
runApplication postProcess -func singleGraph -latestTime
|
||||
runApplication postProcess -latestTime -func "
|
||||
graphCell
|
||||
(
|
||||
funcName=graph,
|
||||
start=(3.4901 0 0),
|
||||
end=(3.4901 0.0096 0),
|
||||
fields=(alpha.gas T.liquid T.gas d.gas)
|
||||
)"
|
||||
|
||||
./validation/createGraphs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (3.4901 0 0);
|
||||
end (3.4901 0.0096 0);
|
||||
|
||||
fields
|
||||
(
|
||||
alpha.gas
|
||||
T.liquid
|
||||
T.gas
|
||||
d.gas
|
||||
);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis y;
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -26,21 +26,21 @@ gnuplot<<EOF
|
||||
|
||||
set ylabel 'Void fraction (-)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):2 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/vof_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set ylabel 'Liquid temperature (K)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):3 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/T_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set ylabel 'Sauter mean diameter (mm)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):(\$5*1000) w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/d_deb1.txt' \
|
||||
u 1:(\$2*1000) w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
@ -21,7 +21,15 @@ then
|
||||
fi
|
||||
|
||||
runApplication reconstructPar -latestTime
|
||||
runApplication postProcess -func singleGraph -latestTime
|
||||
runApplication postProcess -latestTime -func "
|
||||
graphCell
|
||||
(
|
||||
funcName=graph,
|
||||
start=(3.4901 0 0),
|
||||
end=(3.4901 0.0096 0),
|
||||
fields=(alpha.gas alpha.gas2 alpha.liquid T.liquid T.gas d.bubbles)
|
||||
)"
|
||||
|
||||
./validation/createGraphs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,41 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (3.4901 0 0);
|
||||
end (3.4901 0.0096 0);
|
||||
|
||||
fields
|
||||
(
|
||||
alpha.gas
|
||||
alpha.gas2
|
||||
alpha.liquid
|
||||
T.liquid
|
||||
T.gas
|
||||
d.bubbles
|
||||
);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis y;
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -26,21 +26,21 @@ gnuplot<<EOF
|
||||
|
||||
set ylabel 'Void fraction (-)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):(1-\$4) w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/vof_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set ylabel 'Liquid temperature (K)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):5 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/T_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set ylabel 'Sauter mean diameter (mm)'
|
||||
plot \
|
||||
"postProcessing/singleGraph/$graphFile" \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
u (\$1/0.0096):(\$7*1000) w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/d_deb1.txt' \
|
||||
u 1:(\$2*1000) w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
@ -52,7 +52,13 @@ maxDeltaT 1e-3;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc singleGraph
|
||||
#includeFunc graphCell
|
||||
(
|
||||
funcName=graph,
|
||||
start=(0 0 1e-3),
|
||||
end=(0.44 0 1e-3),
|
||||
fields=(TiCl4.vapor O2.vapor Cl2.vapor alpha.particles)
|
||||
)
|
||||
|
||||
numberConcentration
|
||||
{
|
||||
|
||||
@ -1,37 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (0 0 1e-3);
|
||||
end (0.44 0 1e-3);
|
||||
fields
|
||||
(
|
||||
TiCl4.vapor
|
||||
O2.vapor
|
||||
Cl2.vapor
|
||||
alpha.particles
|
||||
);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis x; // y, z, xyz
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -17,7 +17,7 @@ gnuplot<<EOF
|
||||
set y2tics nomirror
|
||||
set key center
|
||||
|
||||
file = system("ls ../postProcessing/singleGraph/$(foamListTimes -case .. | tail -1)/*.xy")
|
||||
file = system("ls ../postProcessing/graph/$(foamListTimes -case .. | tail -1)/*.xy")
|
||||
|
||||
plot file u 1:2 w l t 'TiCl4',\
|
||||
file u 1:3 w l t 'O2',\
|
||||
|
||||
@ -52,7 +52,13 @@ maxDeltaT 1e-3;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc singleGraph
|
||||
#includeFunc graphCell
|
||||
(
|
||||
funcName=graph,
|
||||
start=(0 0 1e-3),
|
||||
end=(0.44 0 1e-3),
|
||||
fields=(TiCl4.vapor O2.vapor Cl2.vapor alpha.particles)
|
||||
)
|
||||
|
||||
numberConcentration
|
||||
{
|
||||
|
||||
@ -1,37 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Writes graph data for specified fields along a line, specified by start
|
||||
and end points.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (0 0 1e-3);
|
||||
end (0.44 0 1e-3);
|
||||
fields
|
||||
(
|
||||
TiCl4.vapor
|
||||
O2.vapor
|
||||
Cl2.vapor
|
||||
alpha.particles
|
||||
);
|
||||
|
||||
// Sampling and I/O settings
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
// Override settings here, e.g.
|
||||
setConfig
|
||||
{
|
||||
type lineCell;
|
||||
axis x; // y, z, xyz
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -17,7 +17,7 @@ gnuplot<<EOF
|
||||
set y2tics nomirror
|
||||
set key center
|
||||
|
||||
file = system("ls ../postProcessing/singleGraph/$(foamListTimes -case .. | tail -1)/*.xy")
|
||||
file = system("ls ../postProcessing/graph/$(foamListTimes -case .. | tail -1)/*.xy")
|
||||
|
||||
plot file u 1:2 w l t 'TiCl4',\
|
||||
file u 1:3 w l t 'O2',\
|
||||
|
||||
@ -8,7 +8,16 @@ application=$(getApplication)
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication $application
|
||||
runApplication -s sigma postProcess -func "components(sigma)"
|
||||
runApplication -s singleGraph postProcess -func singleGraph
|
||||
runApplication -s sigma postProcess -func "components(sigma)"
|
||||
runApplication -s singleGraph postProcess -func "
|
||||
graphUniform
|
||||
(
|
||||
funcName=graph,
|
||||
start=(0 0.5 0.25),
|
||||
end=(0 2 0.25),
|
||||
nPoints=100,
|
||||
axis=y,
|
||||
sigmaxx
|
||||
)"
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
start (0 0.5 0.25);
|
||||
end (0 2 0.25);
|
||||
fields (sigmaxx);
|
||||
|
||||
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||
|
||||
setConfig
|
||||
{
|
||||
axis y;
|
||||
}
|
||||
|
||||
// Must be last entry
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user