|
[Sponsors] |
OpenFOAM: Writing out time-averaged fields to Probes |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Maziar
Join Date: Jul 2019
Posts: 14
Rep Power: 3 ![]() |
Hello,
The examples of probes in OpenFOAM (e.g. https://cfd.direct/openfoam/user-gui...hs-monitoring/) include examples for the pressure and velocity vector fields. I am doing LES simulations. I would like to also write out probe values for the time-averaged fields of velocity (<U>, <V> and <W>) and the square of the velocity fluctuations (<u'u'>, <v'v'> and <w'w'>) - actually the TKE which I can derive from the aforementioned fluctuation correlations. I understand that there is a fieldAverage function (https://www.openfoam.com/documentati...d-average.html). But this appears to write out entire field data as opposed to probe data. Is it possible to do what I am looking for, and if so, can you direct me to the link which provides additional information? I am not a C++ programmmer. Thank you. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 186
Rep Power: 12 ![]() |
Hello Maziar,
You have already found the fieldAverage funtionObject, allowing to calculate time averaged fields. If you use it on the velocity field, it will create a new variable named UMean. You can then use the probes function object with UMean as field to achieve what you want. Just make sure to execute the function in the proper order (fieldAverage first, then Probes) If you don't want to write the whole field data to save storage space, I guess you should use a setting like "writeFields false;" in your fieldAverage function. It will still compute the whole volume field and keep it in RAM (so you can use it in your probe function) but it will not write it on disk. Cheers, Yann |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Maziar
Join Date: Jul 2019
Posts: 14
Rep Power: 3 ![]() |
Yann,
Thank you very much for your response. I will try out what you suggest. It sounds simple enough. Best wishes, Maziar. |
|
![]() |
![]() |
![]() |
Tags |
openfoam 1912, probes |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh/splitMeshRegion : region1 in zone "-1" | GuiMagyar | OpenFOAM Meshing & Mesh Conversion | 1 | September 10, 2019 10:59 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 12:25 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 08:56 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |