Inconsistency in wallHeatFlux utility
Hello FOAMers!
I am studying a simple case with chtMultiRegionSimpleFoam (just to practice the set up for radiation and heat generation) consisting of 2 cubic solid regions (one is generating heat power, actually its temperature is defined as a constant of 600K because I still don't know how to set up a volumetric heat source) surrounded by a bigger cubic region of air. All of the boundary faces for the air region are isolated (using externalWallHeatFluxTemperature wit q=0) except one (defined as externalWallHeatFluxTemperature with Ta=293K and h=1). The purpose of this simple case is, of course, study what happens when the heating region heats the whole system, either considering radiation or not. Then, here comes the point! I executed the wallHeatFlux utility to check the energy balance in the system and I found something that is making me crazy. Below you can see the results I got. Code:
air Code:
heater Code:
object Have anyone experinced something similar any time? Am I doing anything wrong? Is there something going wrong with the utility? Any hint or advice will be more than welcome! Thanks in advance! Alex PS: The results are extracted fom a case without radiation, but the same occurs adding the radiation component. |
Dear Alex,
I did not check you post in details, but today we made a simulation with chtMultiRegionSimpleFoam solver and the externalWallHeatFluxTemperature boundary condition with Ta and h. It did not work for us. Nothing happened it was just like an adiabatic wall. :confused: Hope it help. Best Regards, Jean |
Quote:
Check the values you gave to Ta and h. If Ta is close to the wall temperature then the heat flux will be close to 0. Likewise if you gave h a value close to 0. Regards, Alex |
hello,
Which OF version do you use ? Because there where some bug in 2.2 and 2.3 corrected in 2.3.x. See http://www.openfoam.org/mantisbt/view.php?id=1258 and http://www.openfoam.org/mantisbt/view.php?id=1108 regards, olivier |
I using 2.2.1 version. Does it mean that I need to install 2.3.x in order to be capable to get the correct results?
Thanks olivierG |
the 2.2.x and 2.3.x should work.
regards, olivier |
Thank you so much olivier for your information. I will try to install ot when I have time for that.
By the way, in the bugs reported im your links above it is said that this occurs with the externalWallHeatFlux BC. However my main problem occurs in the interface between a solid region and a fluid region and the BC in there is turbulent::TemperatureCoupledBaffleMixed (written from memory, maybe the spelling is not correct). Would your approach solve that issue aswell? Many thanks! |
I don't know for turbulentTemperatureCoupledBaffleMixed, but there where improvement in 2.3 about that (see http://www.openfoam.org/version2.3.0/thermal.php ).
regards, olivier |
Hi Alex,
From my experience, chtMultiRegionSimpleFoam takes sometimes a really large number of iterations to reach thermal convergence (correct energy balance). I suggest you to set probes on walls between fluid and solid regions to monitor temperature. Add this to your controlDict : Code:
functions If this temperature is converged and energy balance is still wrong, your BCs are probably not correct. Laurent. |
Thanks for your advices Olivier and Laurent!
@Laurent, I would like to be able to understand the piece of code you posted because it's the first time I add something like that to the controlDict file and I am getting errors all the time when I try to run the case. Could you please explain briefly the use and meaning of every field within probes, mainly the probeLocation one. Otherwise, if you can, give me some link or site where I can reveiw some useful documentation. Thanks again! Alex |
Hi,
Here is some general information about functionObjects : http://foam.sourceforge.net/docs/cpp/a00002.html ProbeLocation is a set of points (x, y, z coordinates) where you want to measure the field written in the "fields" token ("T" in my example). 2 points are set in my example, but you can add more if you want. Laurent. |
Thank you so much Laurent, that was exactly what I needed!! I will take a look into it later
|
After some days away from OpenFOAM, finally today I got back on track. I could run the case using probes function object, but I didn't see anything. Is it supposed to create some files with the requested results, isn't it? Although I couldn't get anything from function objects functionality, I tried something more visual, that is, I displayed the patches between both surfaces and I found out that the temeprature distribution is the same in both patches. So, where can be the error in my case? What can be wrong in my setup? Or is it something related to the issue mentioned above in the wallHeatFlux utility?
Thanks in advance, any hint will be welcome! Regards, Alex |
Dear Laurent,
sorry for my previous response, I wrote too quick. After looking a little further into the case folder I found the info inside the PostProcessing folder and, indeed, you were right, the temperature seems not to be equal in the same point. These are the results in the latest time of my simulation for the air region Code:
417.9127 423.2814 -1e+300 428.8006 Code:
350.2071 350.2188 350.1326 -1e+300 On the other hand, as I said in my previous post, I tried to check the temperature values in the walls by using ParaView, this is, I displayed the temperature distribution in the boundary faces (air_to_object and object_to_air) but both distributions were equal! Did I do anything wrong? Is this method not able to identify this issue with thermal convergence? Many thanks in advance! Alex |
Hi Alex,
Quote:
http://www.cfd-online.com/Forums/ope...tml#post338430 Quote:
Laurent. |
Quote:
Quote:
Thanks for your explanations, Laurent Alex |
All times are GMT -4. The time now is 03:34. |