From 522569754268ae6acc1ccbd5e3fd2265bca720b9 Mon Sep 17 00:00:00 2001 From: Kutalmis Bercin <kutalmis.bercin@esi-group.com> Date: Wed, 17 Jun 2020 08:54:05 +0100 Subject: [PATCH] GIT: add missing function object examples for MachNo, log, pow --- .../RAS/aerofoilNACA0012/system/FOMachNo | 29 +++++++++++++++ .../pisoFoam/RAS/cavity/system/FOlog | 36 +++++++++++++++++++ .../pisoFoam/RAS/cavity/system/FOpow | 36 +++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/system/FOMachNo create mode 100644 tutorials/incompressible/pisoFoam/RAS/cavity/system/FOlog create mode 100644 tutorials/incompressible/pisoFoam/RAS/cavity/system/FOpow diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/system/FOMachNo b/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/system/FOMachNo new file mode 100644 index 00000000000..36652804878 --- /dev/null +++ b/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/system/FOMachNo @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2006 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +MachNo1 +{ + // Mandatory entries + type MachNo; + libs (fieldFunctionObjects); + + // Optional (inherited) entries + field U; + region region0; + enabled true; + log true; + timeStart 0; + timeEnd 1000; + executeControl timeStep; + executeInterval 1; + writeControl writeTime; + writeInterval -1; +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/pisoFoam/RAS/cavity/system/FOlog b/tutorials/incompressible/pisoFoam/RAS/cavity/system/FOlog new file mode 100644 index 00000000000..6f4a4967cd9 --- /dev/null +++ b/tutorials/incompressible/pisoFoam/RAS/cavity/system/FOlog @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2006 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +log1 +{ + // Mandatory entries + type log; + libs (fieldFunctionObjects); + field k; + + // Optional entries + clip 1e-3; + checkDimensions false; + scale 1.0; + offset 0.0; + + // Optional (inherited) entries + result logk; + region region0; + enabled true; + log true; + timeStart 0.1; + timeEnd 1000; + executeControl timeStep; + executeInterval 5; + writeControl writeTime; + writeInterval -1; +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/pisoFoam/RAS/cavity/system/FOpow b/tutorials/incompressible/pisoFoam/RAS/cavity/system/FOpow new file mode 100644 index 00000000000..a8535ea2d89 --- /dev/null +++ b/tutorials/incompressible/pisoFoam/RAS/cavity/system/FOpow @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2006 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +pow1 +{ + // Mandatory entries + type pow; + libs (fieldFunctionObjects); + field k; + n 0.25; + + // Optional entries + checkDimensions false; + scale 0.5; + offset 2.5; + + // Optional (inherited) entries + result powk; + region region0; + enabled true; + log true; + timeStart 0.1; + timeEnd 1000; + executeControl timeStep; + executeInterval 5; + writeControl writeTime; + writeInterval -1; +} + + +// ************************************************************************* // -- GitLab