From fd257cb0115176aecd2270204d8756bdcdd11b5c Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Mon, 13 Dec 2021 10:34:20 +0000 Subject: [PATCH] TUT: propeller - added example use of propellerInfo function object --- .../RAS/propeller/system/controlDict | 1 + .../RAS/propeller/system/propellerInfo | 48 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 tutorials/incompressible/pimpleFoam/RAS/propeller/system/propellerInfo diff --git a/tutorials/incompressible/pimpleFoam/RAS/propeller/system/controlDict b/tutorials/incompressible/pimpleFoam/RAS/propeller/system/controlDict index 4302a66ae6..2bd5deaf0f 100644 --- a/tutorials/incompressible/pimpleFoam/RAS/propeller/system/controlDict +++ b/tutorials/incompressible/pimpleFoam/RAS/propeller/system/controlDict @@ -54,6 +54,7 @@ functions #include "surfaces" #include "forces" #include "AMIWeights" + #include "propellerInfo" } diff --git a/tutorials/incompressible/pimpleFoam/RAS/propeller/system/propellerInfo b/tutorials/incompressible/pimpleFoam/RAS/propeller/system/propellerInfo new file mode 100644 index 0000000000..b246fb4e3e --- /dev/null +++ b/tutorials/incompressible/pimpleFoam/RAS/propeller/system/propellerInfo @@ -0,0 +1,48 @@ +propellerInfo1 +{ + type propellerInfo; + libs (forces); + writeControl writeTime; + + patches ("propeller.*"); + + // Setting reference back to wake average Uz velocity computed by [this] + // function object + URef functionObjectValue; + functionObject propellerInfo1; + functionObjectResult UzMean; + + rho rhoInf; // incompressible + rhoInf 1.2; + + + // Propeller data: + + writePropellerPerformance yes; + + // Radius + radius 0.1; + + rotationMode specified; + + // rotationMode = specified: + origin (0 -0.1 0); + n 25.15; + axis (0 1 0); + + // Optionally write wake text files + // Note: controlled by writeControl + writeWakeFields yes; + + // Sample plane (disk) properties + // Note: controlled by writeControl + sampleDisk + { + r1 0.05; + r2 0.2; + nTheta 36; + nRadial 10; + interpolationScheme cellPoint; + surfaceWriter vtk; + } +}