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)
21 lines
753 B
C++
21 lines
753 B
C++
/*--------------------------------*- 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>;
|
|
|
|
// ************************************************************************* //
|