|
[Sponsors] |
August 24, 2022, 05:58 |
How to get wall heat flux from reactingFoam?
|
#1 |
Member
|
Dear OpenFomers,
I build a fluid domain for combustion simulation using reactingFoam. When I tried to use Code:
postProcess -func wallHeatFlux Code:
--> FOAM FATAL ERROR: (openfoam-2206) Unable to find compressible turbulence model in the database From virtual bool Foam::functionObjects::wallHeatFlux::execute() in file wallHeatFlux/wallHeatFlux.C at line 255. FOAM exiting By the way, I've tested the wall boundary set at contant temperature or externalWallHeatFluxTemperature. Both boundary can't postProcess wallHeatFlux. Thank you formers! |
|
August 24, 2022, 08:44 |
|
#2 |
Senior Member
|
1/ Suggestion 1
Place wallHeatFlux computation in system/controlDict as in Code:
<existing controlDict> functions { #includeFunc wallHeatFlux } 2/ Suggestion 2 Add to Suggestion 1 your own wallHeatFlux file (thus overriding the default). Example is in the squareBend tutorial of rhoSimpleFoam. Observe that libs is set to fieldFunctionObjects. 3/ Suggestion 3 (requiring more witchcraft) Verify that the wallHeatFlux function is indeed provided by the shared object file as the wallHeatFlux tells us. fieldFunctionObjects is in the directory openfoam2012/platforms/linux64GccDPInt32Opt/lib . To verify that wallHeatFlux is indeed provided, use nm -g libfieldFunctionObjects.so | grep -I wallheatflux Let us know what you learn. |
|
August 24, 2022, 10:04 |
|
#3 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,200
Rep Power: 28 |
Hi,
In addition to Domenico's points, try running: Code:
reactingFoam -postProcess -func wallHeatFlux In your case, postProcess utility does not load the turbulence model, but the wallHeatFlux function object needs it. When using reactingFoam -postProcess, the solver starts, loads all the models it needs, and then execute the function called by the -postProcess option. I don't have experience with reactingFoam so other problems might arise, but this is worth trying. Cheers, Yann |
|
August 24, 2022, 21:33 |
|
#4 |
Member
|
Thank you @dlahaye and @Yann for such thorough procedures to solve my question.
I've tried using Yann's recommendation. It works. It will output a wallHeatFlux_step.dat in the postProcessing/wallHeatFlux folder. The suggestion1 of dlahaye is also working. The wall heat flux will be output to another file wallHeatFlux.dat in the same directory with the same output frequency as the result file. In the file, there are columns of time, patch, min, max, integral, it looks like below. Code:
# Wall heat-flux # Time patch min max integral 73605 air -1.0249754810e-01 2.2350346338e+00 4.4728118225e-02 73605 fuel -2.1019176497e+01 6.6393800060e+01 5.3537524375e-02 73605 outlet1 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 73605 outlet2 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 73605 wall_burner -9.8068755227e+04 6.0199488781e+02 -3.4648932558e+00 73605 wall_chamber -1.2467911377e+06 2.4665724705e+04 -3.0640880412e+05 Does the 'integral' means the total heat flux through the path in unit of kW? For the minus sign (-), it mean the heat is going out through the patch. It makes me wonder, why there is plus (+) heat flux through wall_chamber (see the max)? One other thing which might not related to the postProcessing. I've asked reactingFoam with boundary heat transfer? to know if the OpenFOAM can have thin wall heat transfer as that in fluent. If any former can share, it will be appreciated. |
|
Tags |
combustion, reactingfoam, wall heat transfer |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Best (easiest) way to implement a specific heat flux from a Wall to a Fluid region | FoamerLuc | OpenFOAM | 3 | February 24, 2021 06:07 |
Heat Flux versus Wall Heat Flux: inlet - outlet energy, different values | jmenendez | CFX | 1 | February 14, 2021 17:55 |
Which macro should I use to define the heat flux of a wall ? DEFINE_HEAT_FLUX or DEF | hitzhwan | Fluent UDF and Scheme Programming | 2 | December 25, 2020 10:27 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |