From 20cfa7c6aefe1550914c70b7231c2b60303e238f Mon Sep 17 00:00:00 2001 From: sergio Date: Thu, 7 Feb 2013 11:32:40 +0000 Subject: [PATCH] BUG: Correcting axesRotation.C virtual member functions and tutorials using coordinates systems dictionary --- .../coordinateRotation/axesRotation.C | 14 ++------- .../angledDuct/system/fvOptions | 10 +++++-- .../iglooWithFridges/system/snappyHexMeshDict | 30 ++++++++++++++----- .../heatExchanger/system/air/fvOptions | 10 +++++-- 4 files changed, 40 insertions(+), 24 deletions(-) diff --git a/src/meshTools/coordinateSystems/coordinateRotation/axesRotation.C b/src/meshTools/coordinateSystems/coordinateRotation/axesRotation.C index 039e3fb253..a502eb02fd 100644 --- a/src/meshTools/coordinateSystems/coordinateRotation/axesRotation.C +++ b/src/meshTools/coordinateSystems/coordinateRotation/axesRotation.C @@ -171,12 +171,7 @@ Foam::tmp Foam::axesRotation::transform const vectorField& st ) const { - notImplemented - ( - "tmp Foam::axesRotation:: " - "transform(const vectorField& st) const" - ); - return tmp(NULL); + return (R_ & st); } @@ -185,12 +180,7 @@ Foam::tmp Foam::axesRotation::invTransform const vectorField& st ) const { - notImplemented - ( - "tmp Foam::axesRotation::" - "invTransform(const vectorField& st) const" - ); - return tmp(NULL); + return (Rtr_ & st); } diff --git a/tutorials/compressible/rhoPimplecFoam/angledDuct/system/fvOptions b/tutorials/compressible/rhoPimplecFoam/angledDuct/system/fvOptions index b150d51b8f..66a2b80752 100644 --- a/tutorials/compressible/rhoPimplecFoam/angledDuct/system/fvOptions +++ b/tutorials/compressible/rhoPimplecFoam/angledDuct/system/fvOptions @@ -33,8 +33,14 @@ porosity1 coordinateSystem { - e1 (0.70710678 0.70710678 0); - e3 (0 0 1); + type cartesian; + origin (0 0 0); + coordinateRotation + { + type axesRotation; + e1 (0.70710678 0.70710678 0); + e3 (0 0 1); + } } } } diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict index c5e80f8d1a..a6e206d525 100644 --- a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict @@ -54,10 +54,17 @@ geometry scale (1.0 1.0 2.1); transform { - type cartesian; - origin (2 2 0); - e1 (1 0 0); - e3 (0 0 1); + coordinateSystem + { + type cartesian; + origin (2 2 0); + coordinateRotation + { + type axesRotation; + e1 (1 0 0); + e3 (0 0 1); + } + } } } herring @@ -66,10 +73,17 @@ geometry scale (1.0 1.0 2.1); transform { - type cartesian; - origin (3.5 3 0); - e1 (1 0 0); - e3 (0 0 1); + coordinateSystem + { + type cartesian; + origin (3.5 3 0); + coordinateRotation + { + type axesRotation; + e1 (1 0 0); + e3 (0 0 1); + } + } } } } diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/system/air/fvOptions b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/system/air/fvOptions index 475ac8e040..e0562a3851 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/system/air/fvOptions +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/system/air/fvOptions @@ -51,8 +51,14 @@ porosityBlockage coordinateSystem { - e1 (0 1 0); - e2 (0 0 1); + type cartesian; + origin (0 0 0); + coordinateRotation + { + type axesRotation; + e1 (0 1 0); + e2 (0 0 1); + } } } }