From bf6734ff4eac11db4160a59aaa1eb4ce41e08179 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Wed, 14 Jul 2021 13:46:43 +0100 Subject: [PATCH] plateHole: use a file-based graphUniform function object --- .../solidDisplacementFoam/plateHole/Allrun | 11 +------- .../plateHole/system/graphUniform | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 tutorials/stressAnalysis/solidDisplacementFoam/plateHole/system/graphUniform diff --git a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun index ab4890541a..c7b54bdc70 100755 --- a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun +++ b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun @@ -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 #------------------------------------------------------------------------------ diff --git a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/system/graphUniform b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/system/graphUniform new file mode 100644 index 0000000000..4645019630 --- /dev/null +++ b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/system/graphUniform @@ -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" + +// ************************************************************************* //