plateHole: use a file-based graphUniform function object

This commit is contained in:
Chris Greenshields
2021-07-14 13:46:43 +01:00
parent e9733e50ba
commit bf6734ff4e
2 changed files with 26 additions and 10 deletions

View File

@ -9,15 +9,6 @@ application=$(getApplication)
runApplication blockMesh
runApplication $application
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
)"
runApplication -s graphUniform postProcess -func graphUniform
#------------------------------------------------------------------------------

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 |
-------------------------------------------------------------------------------
Description
Writes graph data for specified fields along a line, specified by start and
end points. A specified number of graph points are used, distributed
uniformly along the line.
\*---------------------------------------------------------------------------*/
start (0 0.5 0.25);
end (0 2 0.25);
nPoints 100;
fields (sigmaxx);
axis y;
#includeEtc "caseDicts/postProcessing/graphs/graphUniform.cfg"
// ************************************************************************* //