|
[Sponsors] |
April 2, 2024, 09:44 |
How to get wallHeatFlux.dat
|
#1 |
New Member
Gustavo
Join Date: Mar 2024
Location: Brazil
Posts: 7
Rep Power: 2 |
Hello foamers. I'm running a simulation using buyoantPimpleFoam and my main goal is to obtain the heat flux values in a external flow over a cylinder.
So, i've added the wallHeatFlux function into my controlDict file, as follows: Code:
wallHeatFlux1 { type wallHeatFlux; libs (fieldFuncTionObjects); region parede_cilindro; executeControl writeTime; writeControl writeTime; } buoyantPimpleFoam -postprocess -function wallHeatFlux or wallHeatFlux -latestTime What are the difference between these? And I would also like to get a .dat file that shows me the heat flux value over each time step, but i can't figure out how to make that happen. |
|
April 9, 2024, 07:07 |
|
#2 |
Member
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9 |
Hi Gustavo,
Both approaches should give u the same result unless you are solving multiregion/compressible type of problem statement. But offcourse the more appropriate way is to specifically mention the solver . buoyantPimpleFoam -postprocess -function wallHeatFlux This gives more insight about the exact thermo-physical model (that was used to solve the energy equation) and hence more accurate method to compute the wallHeatFlux. You can find all different methods within 196 to 258 at https://develop.openfoam.com/Develop...wallHeatFlux.C For the second part, HTML Code:
And I would also like to get a .dat file that shows me the heat flux value over each time step, but i can't figure out how to make that happen. Code:
writeControl writeTime; Code:
writeControl timeStep; |
|
April 9, 2024, 23:09 |
|
#3 |
New Member
Gustavo
Join Date: Mar 2024
Location: Brazil
Posts: 7
Rep Power: 2 |
Thank you so much for this explanation, it sure helped me to clarify things! Turns out i don't have to worry so much, as I only need the latest time data.
On the other hand, I did apply your suggestion for writeControl and it still did not work as I expected to, but it doesn't really affect my research so i don't need to worry about it. Thanks for your attention and time! |
|
Tags |
buoyantpimplefoam, dat file, wallheatflux |
|
|