From c3848b6e98e729e07385e6c3d331bf98a46b3978 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 22 Feb 2017 13:20:15 +0000 Subject: [PATCH] functionObjects::fieldCoordinateSystemTransform: added coordinateSystem sub-dict and updated the description Patch contributed by Bruno Santos Resolves bug-report https://bugs.openfoam.org/view.php?id=2454 --- .../fieldCoordinateSystemTransform.C | 4 ++-- .../fieldCoordinateSystemTransform.H | 13 +++++++++---- .../postProcessingDict | 10 +++++++--- .../coordinateRotation/coordinateRotationNew.C | 4 +--- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.C b/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.C index 4d16100f92..5a60ff859e 100644 --- a/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.C +++ b/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -56,7 +56,7 @@ fieldCoordinateSystemTransform : fvMeshFunctionObject(name, runTime, dict), fieldSet_(), - coordSys_(mesh_, dict) + coordSys_(mesh_, dict.subDict("coordinateSystem")) { read(dict); diff --git a/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.H b/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.H index 2ad43e3ec6..c644bc0acc 100644 --- a/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.H +++ b/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -45,11 +45,16 @@ Description UMean UPrime2Mean ); + coordinateSystem { - origin (0.001 0 0); - e1 (1 0.15 0); - e3 (0 0 -1); + origin (0.001 0 0); + coordinateRotation + { + type axesRotation; + e1 (1 0.15 0); + e3 (0 0 -1); + } } } \endverbatim diff --git a/src/functionObjects/field/fieldCoordinateSystemTransform/postProcessingDict b/src/functionObjects/field/fieldCoordinateSystemTransform/postProcessingDict index 72ab4a8329..32451af5f5 100644 --- a/src/functionObjects/field/fieldCoordinateSystemTransform/postProcessingDict +++ b/src/functionObjects/field/fieldCoordinateSystemTransform/postProcessingDict @@ -40,9 +40,13 @@ functions coordinateSystem { - origin (0.001 0 0); - e1 (1 0.15 0); - e3 (0 0 -1); + origin (0 0 0); + coordinateRotation + { + type axesRotation; + e1 (1 0.15 0); + e3 (0 0 -1); + } } } } diff --git a/src/meshTools/coordinateSystems/coordinateRotation/coordinateRotationNew.C b/src/meshTools/coordinateSystems/coordinateRotation/coordinateRotationNew.C index 02b111038b..e595206f0d 100644 --- a/src/meshTools/coordinateSystems/coordinateRotation/coordinateRotationNew.C +++ b/src/meshTools/coordinateSystems/coordinateRotation/coordinateRotationNew.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -53,7 +53,6 @@ Foam::autoPtr Foam::coordinateRotation::New ) << "Unknown coordinateRotation type " << rotType << nl << nl << "Valid coordinateRotation types are :" << nl - << "[default: axes ]" << dictionaryConstructorTablePtr_->sortedToc() << exit(FatalIOError); } @@ -87,7 +86,6 @@ Foam::autoPtr Foam::coordinateRotation::New ) << "Unknown coordinateRotation type " << rotType << nl << nl << "Valid coordinateRotation types are :" << nl - << "[default: axes ]" << dictionaryConstructorTablePtr_->sortedToc() << exit(FatalIOError); }