diff --git a/etc/caseDicts/functions/fields/cylindrical b/etc/caseDicts/functions/fields/cylindrical new file mode 100644 index 0000000000..6a320eb49f --- /dev/null +++ b/etc/caseDicts/functions/fields/cylindrical @@ -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 ; + +origin ; +axis ; + +// ************************************************************************* // diff --git a/etc/caseDicts/functions/fields/cylindrical.cfg b/etc/caseDicts/functions/fields/cylindrical.cfg new file mode 100644 index 0000000000..467364d45f --- /dev/null +++ b/etc/caseDicts/functions/fields/cylindrical.cfg @@ -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; + +// ************************************************************************* // diff --git a/test/postProcessing/channel/system/functionSets b/test/postProcessing/channel/system/functionSets index 2b4201e429..4a29283b0a 100644 --- a/test/postProcessing/channel/system/functionSets +++ b/test/postProcessing/channel/system/functionSets @@ -43,6 +43,8 @@ fieldsFunctions #includeFunc CourantNo + #includeFunc cylindrical(origin=(0 0 0), axis=(0 0 1), U) + #includeFunc ddt(p) #includeFunc div(phi)