|
[Sponsors] |
externalWallHeatFluxTemperature BC in turbulent flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 11, 2020, 08:09 |
externalWallHeatFluxTemperature BC in turbulent flow
|
#1 |
Member
Piotr Ładyński
Join Date: Apr 2017
Posts: 55
Rep Power: 9 |
I wanted to find the easiest way to simulate flow in the channel with one patch being specified as a constant heat flux or constant heat power source.
There is a BC called externalWallHeatFluxTemperature which provides varying temperature field according to required heat flux/power. It seems to work well, unless you turn turbulenece model on. It crashes on the first iteration with division by zero exception. I've tried to reduce relaxation factors to 0.1 and changed my schemes to upwind for max stability, but it didn't help at all. Is there any chance to make it work this way ? Code:
Starting time loop Time = 1 DILUPBiCGStab: Solving for h, Initial residual = 0.986233, Final residual = 0.00220438, No Iterations 1 GAMG: Solving for p_rgh, Initial residual = 0.999392, Final residual = 0.0018794, No Iterations 1 GAMG: Solving for p_rgh, Initial residual = 0.196606, Final residual = 0.00138496, No Iterations 9 GAMG: Solving for p_rgh, Initial residual = 3.1198e-05, Final residual = 1.18706e-07, No Iterations 10 time step continuity errors : sum local = 0.00354071, global = -0.000519767, cumulative = -0.000519767 rho max/min : 997 978.866 DILUPBiCGStab: Solving for epsilon, Initial residual = 0.112274, Final residual = 8.83977e-05, No Iterations 1 bounding epsilon, min: -0.00162638 max: 0.27328 average: 0.000906018 DILUPBiCGStab: Solving for k, Initial residual = 1, Final residual = 8.26542e-05, No Iterations 1 #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 ? in "/lib/x86_64-linux-gnu/libm.so.6" #4 pow in "/lib/x86_64-linux-gnu/libm.so.6" #5 Foam::compressible::alphatJayatillekeWallFunctionFvPatchScalarField::Psmooth(double) const at ??:? #6 Foam::compressible::alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs() at ??:? #7 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::evaluate() in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/buoyantSimpleFoam" #8 Foam::EddyDiffusivity<Foam::ThermalDiffusivity<Foam::CompressibleTurbulenceModel<Foam::fluidThermo> > >::correctNut() at ??:? #9 Foam::RASModels::kEpsilon<Foam::EddyDiffusivity<Foam::ThermalDiffusivity<Foam::CompressibleTurbulenceModel<Foam::fluidThermo> > > >::correctNut() at ??:? #10 Foam::RASModels::kEpsilon<Foam::EddyDiffusivity<Foam::ThermalDiffusivity<Foam::CompressibleTurbulenceModel<Foam::fluidThermo> > > >::correct() at ??:? #11 ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/buoyantSimpleFoam" #12 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #13 ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/buoyantSimpleFoam" Code:
Heater { type externalWallHeatFluxTemperature; mode power; Q 300; value uniform 298.15; kappaMethod fluidThermo; } |
|
February 11, 2020, 08:37 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
any setup you can provide? so that the readers can try to replicate the issue?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 11, 2020, 09:42 |
|
#3 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
Hi!
I have used this BC many times with turbulent flow without any problems... The problem should be something else not the BC itself.. Check your BCs related to the turbuelnce (alphat, nut, etc..) since your solver crashes there... But you can try to just simply set this BC to some fixedValue to see if the problem is still there... |
|
February 11, 2020, 11:57 |
|
#4 |
Member
Piotr Ładyński
Join Date: Apr 2017
Posts: 55
Rep Power: 9 |
Thanks for your reply
I pepared a version with some sharable, similiar geometry. blockMesh + snappyHexMesh (any layers) |
|
February 11, 2020, 12:58 |
|
#5 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
I don't use `groovyBC`, I'm afraid. So couldn't replicate the issue on the test case you provided.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 11, 2020, 14:38 |
|
#6 | |
Member
Piotr Ładyński
Join Date: Apr 2017
Posts: 55
Rep Power: 9 |
Quote:
This file set works without groovyBC (i generated non-uniform list, so it might not fit other mesh settings). I used groovyBC to provide non-uniform velocity field with ease, but my issue applies to uniform inlet velocity field too, so you can delete non-uniform list as well and set Inlet velocity to uniform (0.12 0 0), still crashes at the first time step. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Turbulent flow entering laminar domain | arjdk | FLUENT | 0 | November 21, 2017 04:38 |
Why can i use a laminar solver for a turbulent flow? [Heat transfer problem] | blackbow | CFX | 1 | November 22, 2016 04:42 |
Particle deposition on circular cylinder in turbulent flow | Julian K. | CFX | 1 | October 3, 2011 17:51 |
Difference between recirculation zone and turbulent flow region | ashtonJ | Main CFD Forum | 0 | September 16, 2011 03:46 |
Inviscid Drag at subsonic, subcritical Mach # | Axel Rohde | Main CFD Forum | 1 | November 19, 2001 12:19 |