From 8b44230384bc6d9f73c8c93df73b6306e7d79637 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 5 Jan 2018 15:13:46 +0000 Subject: [PATCH] MRF tutorials: Change rotor velocity boundary condition to fixedValue Using the noSlip boundary condition for rotating wall in an MRF region interferes with post-processing by resetting the wall velocity to 0 rather than preserving the value set by the MRF zone. --- .../movingWallVelocityFvPatchVectorField.H | 3 +-- tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/0/U | 3 ++- .../chtMultiRegionSimpleFoam/heatExchanger/0.orig/air/U | 6 +++++- tutorials/incompressible/simpleFoam/mixerVessel2D/0/U | 3 ++- tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/0/U | 6 +++++- tutorials/multiphase/interFoam/laminar/mixerVessel2D/0/U | 6 +++++- .../multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.air | 3 ++- .../multiphaseEulerFoam/mixerVessel2D/0/U.mercury | 3 ++- .../multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.oil | 3 ++- .../multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.water | 3 ++- .../multiphaseInterFoam/laminar/mixerVessel2D/0.orig/U | 6 +++++- .../laminar/mixerVessel2D/0/U.air | 3 ++- .../laminar/mixerVessel2D/0/U.mercury | 3 ++- .../laminar/mixerVessel2D/0/U.oil | 3 ++- .../laminar/mixerVessel2D/0/U.water | 3 ++- .../reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.air | 3 ++- .../laminar/mixerVessel2D/0/U.water | 3 ++- 17 files changed, 45 insertions(+), 18 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.H index 0c8a8295d5..89d95c8f32 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.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-2018 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -43,7 +43,6 @@ Usage See also Foam::fixedValueFvPatchVectorField - Foam::MRFZone SourceFiles movingWallVelocityFvPatchVectorField.C diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/0/U b/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/0/U index 96fb64189c..d48e8ff198 100644 --- a/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/0/U +++ b/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/0/U @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/0.orig/air/U b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/0.orig/air/U index 1391d618d5..2b3780e327 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/0.orig/air/U +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/0.orig/air/U @@ -25,20 +25,24 @@ boundaryField { type noSlip; } + inlet { type fixedValue; value uniform (0 0 5); } + outlet { type inletOutlet; inletValue uniform (0 0 0); value uniform (0 0 0); } + blades { - type noSlip; + type fixedValue; + value uniform (0 0 0); } } diff --git a/tutorials/incompressible/simpleFoam/mixerVessel2D/0/U b/tutorials/incompressible/simpleFoam/mixerVessel2D/0/U index 96fb64189c..d48e8ff198 100644 --- a/tutorials/incompressible/simpleFoam/mixerVessel2D/0/U +++ b/tutorials/incompressible/simpleFoam/mixerVessel2D/0/U @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/0/U b/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/0/U index 068d6f9dcc..27d718d526 100644 --- a/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/0/U +++ b/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/0/U @@ -23,16 +23,20 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } + stator { type noSlip; } + front { type empty; } + back { type empty; diff --git a/tutorials/multiphase/interFoam/laminar/mixerVessel2D/0/U b/tutorials/multiphase/interFoam/laminar/mixerVessel2D/0/U index 068d6f9dcc..27d718d526 100644 --- a/tutorials/multiphase/interFoam/laminar/mixerVessel2D/0/U +++ b/tutorials/multiphase/interFoam/laminar/mixerVessel2D/0/U @@ -23,16 +23,20 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } + stator { type noSlip; } + front { type empty; } + back { type empty; diff --git a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.air b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.air index 97e363446e..5069d3c37f 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.air +++ b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.air @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.mercury b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.mercury index 5358842a01..4426626815 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.mercury +++ b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.mercury @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.oil b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.oil index 3d3b713308..c20fab56f2 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.oil +++ b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.oil @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.water b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.water index 2e44bf22ee..727511416c 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.water +++ b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/U.water @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/0.orig/U b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/0.orig/U index 068d6f9dcc..27d718d526 100644 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/0.orig/U +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/0.orig/U @@ -23,16 +23,20 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } + stator { type noSlip; } + front { type empty; } + back { type empty; diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.air b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.air index 97e363446e..5069d3c37f 100644 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.air +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.air @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.mercury b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.mercury index 5358842a01..4426626815 100644 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.mercury +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.mercury @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.oil b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.oil index 3d3b713308..c20fab56f2 100644 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.oil +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.oil @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.water b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.water index 2e44bf22ee..727511416c 100644 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.water +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/0/U.water @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.air b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.air index d81cc4bddb..0a6596ffbc 100644 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.air +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.air @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.water b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.water index 72155a0b32..22105cd897 100644 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.water +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/0/U.water @@ -22,7 +22,8 @@ boundaryField { rotor { - type noSlip; + type fixedValue; + value uniform (0 0 0); } stator