functionObjects::cylindrical: Added packaged configuration

This function can now be run interactively using the following command:

    foamPostProcess -func "cylindrical(origin=(0 0 0), axis=(0 0 1), U)"

Or it can be executed at run time by adding the following entry in the
system/functions file:

    #includeFunc cylindrical(origin=(0 0 0), axis=(0 0 1), U)
This commit is contained in:
Will Bainbridge
2024-02-28 10:41:15 +00:00
parent 66835ba9a9
commit 1622e19021
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Transforms a vector field into cylindrical coordinates
\*---------------------------------------------------------------------------*/
#includeEtc "caseDicts/functions/fields/cylindrical.cfg"
field <fieldName>;
origin <origin>;
axis <axis>;
// ************************************************************************* //

View File

@ -0,0 +1,15 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
type cylindrical;
libs ("libfieldFunctionObjects.so");
executeControl writeTime;
writeControl writeTime;
// ************************************************************************* //

View File

@ -43,6 +43,8 @@ fieldsFunctions
#includeFunc CourantNo
#includeFunc cylindrical(origin=(0 0 0), axis=(0 0 1), U)
#includeFunc ddt(p)
#includeFunc div(phi)