|
[Sponsors] |
limitTemperature in buoyantBoussinesqSimpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 8, 2021, 06:58 |
limitTemperature in buoyantBoussinesqSimpleFoam
|
#1 |
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10 |
Hi everyone,
I am using OpenFOAM v2006. I use a modified version of buoyantBoussinesqSimpleFoam (removing buoyant effects) in order to study forced convetion on internal flows. I want to use limitTemperaure option in fvOptions but I got an error about thermophysicalProperties, as these are not utilised in buoyantBoussinesqSimpleFoam (I tried to add them in constant but does not work) Code:
request for basicThermo thermophysicalProperties from objectRegistry region0 failed available objects of type basicThermo are 0() Thanks. |
|
February 8, 2021, 07:00 |
|
#2 |
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10 |
Or any other alternatives to use temperature limiters?
|
|
February 11, 2021, 05:52 |
|
#3 |
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10 |
anyone has a clue?
|
|
February 11, 2021, 06:30 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
is there any way to test a tutorial, so that we can replicate the issue of yours locally? And then potentially, find a solution. To my knowledge, there is no other temperature limiter fvOption available in OpenFOAM.
__________________
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, 2021, 06:44 |
|
#5 |
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10 |
Sure thing, thanks for your reply. In order to recreate the error easily, I just added the fvOptions to the iglooWithFridges tutorial (buoyantBoussinesqSimpleFoam solver):
fvOptions: Code:
limitT { type limitTemperature; min 0; max 2000; selectionMode all; active yes; } Code:
Selecting finite volume options type limitTemperature Source: limitT - selecting all cells - selected 7197 cell(s) with volume 129.524 --> FOAM FATAL ERROR: request for basicThermo thermophysicalProperties from objectRegistry region0 failed available objects of type basicThermo are 0() From const Type& Foam::objectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam::basicThermo] in file /home/pawan/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 463. |
|
February 21, 2021, 13:30 |
|
#6 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
You are right, the existing limitTemperatue fvOption does not work with buoyantBoussinesqSimple/PimpleFoam solvers. You have to implement them yourself.
You can do this by copying the existing one, giving it a new name and compile it into seperate library. I think, the only thing you need to change is this line: https://github.com/OpenFOAM/OpenFOAM...tTemperature.C Code:
fieldNames_.setSize(1, thermo.he().name()); Code:
fieldNames_.setSize(1, "T"); |
|
February 22, 2021, 04:17 |
|
#7 |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 7 |
Hi,
I have had the more or less the same issue when I wanted to use limitTemperature with rhoCentralFoam. I have implemented it myself, which is described in this thread: Sudden Increase of residuals. I am using openfoam4. |
|
February 24, 2021, 05:37 |
|
#8 |
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10 |
Thanks both for your answers. I will try to modify the existing limitTemperature as suggested by Joachim. Do you have any guidance about how to compile a new library? So far, I just have compiled new solvers, which is more straighforward.
|
|
February 24, 2021, 18:25 |
|
#9 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
These links should help (even if the first two are about a new boundary condtions instead of fvOptions):
https://openfoamwiki.net/index.php/H...dary_condition https://www.youtube.com/watch?v=t0Vj2O_9HBQ http://www.tfd.chalmers.se/~hani/kur..._Segersson.pdf |
|
May 19, 2022, 15:43 |
|
#10 |
Member
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9 |
As mentioned here fvOptions: temperatureLimitsConstraint or limitTemperature not working on V3.0+ if u r using recent versions then this issue might be fixed already.....
However, if u r old school and still using former versions (like me)....Here's the attached file that have all the necessary modifications required to limit the Temperature...... Thanks to Joachim for the hint limitTemperature in buoyantBoussinesqSimpleFoam However only commenting out that part wont solve the problem............The issue seems to arise bcz of the 'he' (either enthalpy or specific internal energy)based formulation of the Energy equation....thus the inherent version will try to limit "he" instead of directly putting constraints on T...... 1)Extract the zip file,move its contents to $FOAM_SRC/fvOptions/corrections/customLimitTemp 2)Dont forget to update fvoptions/Make/file to Code:
/* Corrections */ corrections/limitTemperature/limitTemperature.C corrections/limitVelocity/limitVelocity.C corrections/customLimitTemp/customLimitTemp.C LIB = $(FOAM_USER_LIBBIN)/libfvOptions |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fvOptions limitTemperature crashing in compressibleInterFoam | JM27 | OpenFOAM Running, Solving & CFD | 38 | November 29, 2023 04:55 |
fvOptions: temperatureLimitsConstraint or limitTemperature not working on V3.0+ | derekm | OpenFOAM Running, Solving & CFD | 6 | February 1, 2021 02:16 |
No limitScalar in fvOptions? Only limitTemperature | superkelle | OpenFOAM Programming & Development | 2 | May 31, 2020 20:38 |
twoPhaseEulerFoam + fvOptions limitTemperature | hanness | OpenFOAM Running, Solving & CFD | 5 | July 19, 2018 09:53 |