From e7f75df23f34e084d7a73f79860cdba4130fd452 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Fri, 7 Jul 2023 12:06:50 +0100 Subject: [PATCH] coolingSphere tutorial: update for consistency with singleFluidCHT template case --- .../CHT/coolingSphere/templates/0/fluid/U | 9 +++++---- .../CHT/coolingSphere/templates/0/fluid/p | 4 ++-- .../CHT/coolingSphere/templates/0/fluid/p_rgh | 6 +++--- .../templates/constant/solid/fvModels | 12 ------------ .../templates/system/solid/fvConstraints | 16 +++++++++------- 5 files changed, 19 insertions(+), 28 deletions(-) diff --git a/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/U b/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/U index 8ba9dd9d89..fce3591a6e 100644 --- a/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/U +++ b/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/U @@ -13,7 +13,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -Uinlet (10 0 0); +Uinlet 10; dimensions [0 1 -1 0 0 0 0]; @@ -23,14 +23,15 @@ boundaryField { inlet { - type fixedValue; - value uniform $Uinlet; + type flowRateInletVelocity; + meanVelocity constant $Uinlet; + value uniform (0 0 0); } outlet { type pressureInletOutletVelocity; - value uniform $Uinlet; + value uniform (0 0 0); } wall diff --git a/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/p b/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/p index 5807dd2f1a..eeefd700c6 100644 --- a/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/p +++ b/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/p @@ -24,13 +24,13 @@ boundaryField outlet { type calculated; - value uniform $pInitial; + value $internalField; } inlet { type calculated; - value uniform $pInitial; + value $internalField; } wall diff --git a/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/p_rgh b/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/p_rgh index 3952952bc3..ac9bb586a0 100644 --- a/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/p_rgh +++ b/tutorials/multiRegion/CHT/coolingSphere/templates/0/fluid/p_rgh @@ -15,7 +15,7 @@ FoamFile #include "$FOAM_CASE/constant/initialConditions" -dimensions [ 1 -1 -2 0 0 0 0 ]; +dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; @@ -24,13 +24,13 @@ boundaryField outlet { type fixedValue; - value uniform 0; + value $internalField; } inlet { type fixedFluxPressure; - value uniform 0; + value $internalField; } wall diff --git a/tutorials/multiRegion/CHT/coolingSphere/templates/constant/solid/fvModels b/tutorials/multiRegion/CHT/coolingSphere/templates/constant/solid/fvModels index 797eafdc8b..2c85ce6ba8 100644 --- a/tutorials/multiRegion/CHT/coolingSphere/templates/constant/solid/fvModels +++ b/tutorials/multiRegion/CHT/coolingSphere/templates/constant/solid/fvModels @@ -13,18 +13,6 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -/* -fixedTemperature -{ - type fixedTemperatureConstraint; - select all; - - mode uniform; - - temperature constant 300; // Set temperature (K) -} -*/ - /* fixedPower { diff --git a/tutorials/multiRegion/CHT/coolingSphere/templates/system/solid/fvConstraints b/tutorials/multiRegion/CHT/coolingSphere/templates/system/solid/fvConstraints index fb8952aef7..0c3aedf6ab 100644 --- a/tutorials/multiRegion/CHT/coolingSphere/templates/system/solid/fvConstraints +++ b/tutorials/multiRegion/CHT/coolingSphere/templates/system/solid/fvConstraints @@ -13,14 +13,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// fixedTemperature -// { -// type fixedTemperatureConstraint; -// select all; +/* +fixedTemperature +{ + type fixedTemperatureConstraint; + select all; -// mode uniform; + mode uniform; -// temperature constant 300; // Set temperature (K) -// } + temperature constant 300; // Set temperature (K) +} +*/ //************************************************************************** //