diff --git a/tutorials/incompressible/simpleFoam/motorBike/system/controlDict b/tutorials/incompressible/simpleFoam/motorBike/system/controlDict index 6a42118c71..937a96613b 100644 --- a/tutorials/incompressible/simpleFoam/motorBike/system/controlDict +++ b/tutorials/incompressible/simpleFoam/motorBike/system/controlDict @@ -51,6 +51,9 @@ functions #include "cuttingPlane" #include "forceCoeffs" #include "ensightWrite" + + #include "solverInfo" + #include "graphFunctionObject" } diff --git a/tutorials/incompressible/simpleFoam/motorBike/system/graphFunctionObject b/tutorials/incompressible/simpleFoam/motorBike/system/graphFunctionObject new file mode 100644 index 0000000000..ba4f9a4a67 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/motorBike/system/graphFunctionObject @@ -0,0 +1,142 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +residualGraph1 +{ + // Mandatory entries + type graphFunctionObject; + libs (utilityFunctionObjects); + + functions + { + Ux + { + // Mandatory entries + object solverInfo1; + entry Ux_initial; + + // Optional entries + // title ; + // colour ; + // dashes ; + } + Uy + { + object solverInfo1; + entry Uy_initial; + } + Uz + { + object solverInfo1; + entry Uz_initial; + } + p + { + object solverInfo1; + entry p_initial; + } + } + + // Optional entries + logScaleX no; + logScaleY yes; + xlabel "Iteration"; + ylabel "log10(Initial residual)"; + // xMin ; + // xMax ; + // yMin ; + // yMax ; + // width