tutorials: Updated for new preconfigurations

This commit is contained in:
Will Bainbridge
2021-07-09 12:41:06 +01:00
parent 5d0d9a4fa3
commit 98b90398f1
68 changed files with 257 additions and 947 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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',\

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -52,7 +52,7 @@ maxDeltaT 0.001;
functions
{
outflow
outflow
{
type surfaceFieldValue;
functionObjectLibs ( "libfieldFunctionObjects.so" );

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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',\

View File

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

View File

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

View File

@ -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',\