CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

How to get wallHeatFlux.dat

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By SHUBHAM9595

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2024, 09:44
Default How to get wallHeatFlux.dat
  #1
New Member
 
Gustavo
Join Date: Mar 2024
Location: Brazil
Posts: 7
Rep Power: 2
gushrqcosta is on a distinguished road
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;
}
And here lies my problem. I know of two "functions", which both get me the heat flux value:

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.
gushrqcosta is offline   Reply With Quote

Old   April 9, 2024, 07:07
Default
  #2
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9
SHUBHAM9595 is on a distinguished road
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.
change the
Code:
 writeControl        writeTime;
to
Code:
 writeControl        timeStep;
gushrqcosta likes this.
SHUBHAM9595 is offline   Reply With Quote

Old   April 9, 2024, 23:09
Default
  #3
New Member
 
Gustavo
Join Date: Mar 2024
Location: Brazil
Posts: 7
Rep Power: 2
gushrqcosta is on a distinguished road
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!
gushrqcosta is offline   Reply With Quote

Reply

Tags
buoyantpimplefoam, dat file, wallheatflux


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 13:01.