|
[Sponsors] |
July 19, 2022, 08:50 |
buoyantSimpleFoam check wall heat flux
|
#1 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Hello all,
I try to set-up a case in buoyantSimpleFoam using the "externalWallHeatFluxTemperature" BC. In my 0/T I have: Code:
Cooler_wall_heat_in { type externalWallHeatFluxTemperature; mode flux; q uniform 1; // 1W/m2 kappaMethod fluidThermo; value $internalField; } I want to check this and came across the "wallHeatFlux" function object. I added the following in my system/controlDict: Code:
wallHeatFlux { type wallHeatFlux; libs ("libfieldFunctionObjects.so"); patches (Cooler_wall_heat_in); // (wall1 "(wall2|wall3)"); qr qr; writePrecision 8; writeToFile false; useUserTime true; region region0; enabled true; log true; timeStart 0; timeEnd 1000; executeControl timeStep; executeInterval 1; writeControl timeStep; writeInterval 1; }
|
|
August 28, 2022, 11:43 |
|
#2 | ||
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
Quote:
Quote:
|
|||
August 29, 2022, 03:01 |
|
#3 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
Furthermore, how comes that min and max values are both larger than integral (=sum?). |
||
August 30, 2022, 18:10 |
|
#4 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
Here is the source code for the wallHeatFlux function object in the current version, where the integral value is calculated: https://github.com/OpenFOAM/OpenFOAM...eatFlux.C#L266
It is in fact the integral, meaning the sum over all faces of a patch of heat flux * face area. So if your face is small enough, the integral of the heat flux = power [W] can be smaller than the miniumum of the heat flux [W/mē]. Regarding the difference between between the boundary condition and the output of the function object: You might have to compare really the source code, how both are calculating it. By the way, as you wrote the whole heat flux field. What is the integral using paraview? |
|
September 6, 2022, 11:29 |
|
#5 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Thanks for the feedback so far. I checked a few things and made some progress:
1. I am using Openfoam v1906. The wallFUnction integral is the overall integral heat given in (in W). This now is reasonable and fine for me. 2. I am still getting the whole field written for all time-steps even though I have "writeField off" in my controlDict: Code:
wallHeatFlux_coolant { // Mandatory entries (unmodifiable) type wallHeatFlux; libs ("libfieldFunctionObjects.so"); // Optional entries (runtime modifiable) patches (Cooler_wall_heat_in); // (wall1 "(wall2|wall3)"); qr qr; // Optional (inherited) entries writePrecision 8; writeToFile false; writeField false; useUserTime true; region coolant-fluid; enabled true; log true; timeStart 0; timeEnd 1000; executeControl timeStep; executeInterval 1; writeControl timeStep; writeInterval 1; } |
|
September 8, 2022, 21:07 |
|
#6 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
I looked at the source code and it seems that you can not turn off writing the field into the time directories. Also, I missed an "s" above. The options for other function objects is called writeFields.
|
|
September 9, 2022, 09:18 |
|
#7 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hi,
Even if you cannot turn off the field writing, you can probably play with the executeControl and writeControl parameters to have all the data in your .dat file but to write the fields only at writeTime, or at the end of the simulation. https://www.openfoam.com/documentati...n-objects.html Yann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conjugate Heat Transfer: Wall Heat Flux at Coupled Walls? | MaxHeat | FLUENT | 4 | September 14, 2017 11:44 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
Wall heat flux | cujo | CFX | 3 | November 6, 2002 04:43 |