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:
20
etc/caseDicts/functions/fields/cylindrical
Normal file
20
etc/caseDicts/functions/fields/cylindrical
Normal 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>;
|
||||
|
||||
// ************************************************************************* //
|
||||
15
etc/caseDicts/functions/fields/cylindrical.cfg
Normal file
15
etc/caseDicts/functions/fields/cylindrical.cfg
Normal 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;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -43,6 +43,8 @@ fieldsFunctions
|
||||
|
||||
#includeFunc CourantNo
|
||||
|
||||
#includeFunc cylindrical(origin=(0 0 0), axis=(0 0 1), U)
|
||||
|
||||
#includeFunc ddt(p)
|
||||
|
||||
#includeFunc div(phi)
|
||||
|
||||
Reference in New Issue
Block a user