From aa12a81474cdeef940c76143ee55c718a3e19413 Mon Sep 17 00:00:00 2001 From: Chris Greenshields <http://cfd.direct> Date: Fri, 17 Jun 2016 08:18:41 +0100 Subject: [PATCH] pitzDaily tutorial: replaced streamline function object with new #includeFunc directive --- .../simpleFoam/pitzDaily/system/controlDict | 42 +------------------ .../simpleFoam/pitzDaily/system/streamlines | 21 ++++++++++ 2 files changed, 22 insertions(+), 41 deletions(-) create mode 100644 tutorials/incompressible/simpleFoam/pitzDaily/system/streamlines diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict b/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict index ee8b85eb239..3907fadcc57 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict +++ b/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict @@ -47,47 +47,7 @@ runTimeModifiable true; functions { - streamLines - { - type streamLine; - - // Where to load it from (if not already in solver) - libs ("libfieldFunctionObjects.so"); - - // Output every - writeControl writeTime; - // writeInterval 10; - - setFormat vtk; //gnuplot;//xmgr;//raw;//jplot;//csv;//ensight; - - // Tracked forwards (+U) or backwards (-U) - trackForward true; - - // Names of fields to sample. Should contain above velocity field! - fields (p k U); - - // Steps particles can travel before being removed - lifeTime 10000; - - // Number of steps per cell (estimate). Set to 1 to disable subcycling. - nSubCycle 5; - - // Cloud name to use - cloudName particleTracks; - - // Seeding method. - seedSampleSet uniform; //cloud; //triSurfaceMeshPointSet; - - uniformCoeffs - { - type uniform; - axis x; //distance; - - start (-0.0205 0.001 0.00001); - end (-0.0205 0.0251 0.00001); - nPoints 10; - } - } + #includeFunc streamlines } // ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/system/streamlines b/tutorials/incompressible/simpleFoam/pitzDaily/system/streamlines new file mode 100644 index 00000000000..83354b269d7 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pitzDaily/system/streamlines @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes out files of streamlines with interpolated field data in VTK format. + +\*---------------------------------------------------------------------------*/ + +nLines 10; +start (-0.0205 0.001 0.00001); +end (-0.0205 0.0251 0.00001); +fields (p k U); + +// Must be last entry +#includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg" + +// ************************************************************************* // -- GitLab