|
[Sponsors] |
Spanwise averaging of three-dimensional field |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 23, 2017, 10:16 |
|
#21 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
I attached syntactically updated version of the tool, which could be compiled with OF1612+.
Without warranty of any kind, of course. :] PS: In contrast to 'postChannel's collapsing fields onto a line, 'postSpanwiseAverage' returns volScalarFields of the size of the entire computational grid. Yet, each slice of computational domain's fields in the homogeneous direction is the same. Then, therefore, it is your responsibility to sample the fields onto whatever shape you want. Last edited by HakikiCanakkaleli; July 7, 2017 at 14:12. Reason: addition to the comments |
|
July 3, 2017, 07:28 |
|
#22 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hello
how does it work, this tool? I remember that there was one around the forum that provides you the nodes values, not the cell ones. For the moment, what I do is to add in my control dict some surfaces definition, and then I average them using Python. Maybe it would be easier with PyFOAM, but I have no idea about it. |
|
July 4, 2017, 06:38 |
|
#23 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
Your question is ambiguous to me, I'm afraid. What do you mean by 'how does it work, this tool?': you want to know how to use the tool or how the tool performs its assigned task?
|
|
January 15, 2018, 10:18 |
|
#24 | |
New Member
benqing Liu
Join Date: Sep 2017
Posts: 8
Rep Power: 9 |
Quote:
I met the same question ,when used Gregory's utility,but "velocity range is half of that which should be!!",did you slove this problem? Regards, benqing |
||
January 16, 2018, 04:36 |
|
#25 |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
||
January 16, 2018, 07:56 |
|
#26 |
New Member
benqing Liu
Join Date: Sep 2017
Posts: 8
Rep Power: 9 |
||
February 20, 2019, 11:36 |
Averaging Tool in the Cyclic Direction (avgCyclicDir)
|
#27 |
New Member
Arnau Pont Vílchez
Join Date: Jun 2018
Location: Terrassa, Barcelona, Spain
Posts: 1
Rep Power: 0 |
Hi everybody,
I think that this tool can be useful for those who are interested in this post. https://github.com/arnaupv/avgCyclicDir (version 0.9.0). Main features: * OpenFoam v1706. * Cyclic direction is automatically detected. * It averages all *Mean files (accepts any kind of field). * A mesh with a unique control volume in the cyclic direction is created. So, sampling tools can be used without problems). * Fields are saved in postPorcessing/avgCyclicDir/ Main shortcomings: * Only one cyclic direction is currently allowed. * Patches are not included (set to 0 by default). * Sequential (not parallelized). * The mesh must be structured in the cyclic direction. As it can be seen in the GitHub repository, the tool is underdevelopment but the results are pretty good! I will highly appreciate your comments and help for addressing the current shortcomings. I hope it helps! Arnau |
|
September 22, 2019, 11:02 |
|
#28 |
New Member
Han
Join Date: Dec 2017
Location: USA
Posts: 9
Rep Power: 8 |
Hi Arnau,
The avgCyclicDir utility that you developed is just what I need in postProcessing LES results of a turbulent pipe flow. However, there are some errors when I compiled your code, which I believe is due to the syntactics because my OpenFOAM is version 4.0. So I was wondering if you could test other versions of OpenFOAM and make relevant modifications to your codes. Thanks a lot. Han |
|
September 22, 2019, 11:07 |
|
#29 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
IMHO,
The new OpenFOAM utilities such as: columnAverage patchEdgeSet might be used for spanwise averaging channel-like flow statistics.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
September 23, 2019, 10:39 |
|
#30 | |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
Quote:
The other user-provided tools did not work for me (of6) but the columnAverage function executed by of1906 for of6 cases works like a charm. edit: i realized that it does indeed work for U and p. However, if I try to average fields such as Q or vorticitiy I get an error saying the fields are not found. Any idea how to fix this issue? Last edited by Bazinga; September 24, 2019 at 04:16. |
||
October 17, 2019, 10:24 |
Update
|
#31 | |
New Member
Han
Join Date: Dec 2017
Location: USA
Posts: 9
Rep Power: 8 |
Quote:
Arnau has updated the original codes to other versions of OpenFOAM. I tested it using my LES results on the heat transfer of supercritical fluids in a circular pipe under OpenFOAM 4.x and 6, it works pretty well in these two versions. It is highly recommended to use this tool in postProcessing the spanwise averaging of flow or temperature field in cylinder coordinate. Han |
||
November 14, 2019, 07:32 |
|
#32 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Have you executed 'Q' or 'vorticity' function objects before executing 'columnAverage'?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
November 14, 2019, 08:56 |
|
#33 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
||
November 14, 2019, 09:40 |
|
#34 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
No, I meant this: in controlDict, did you execute the function objects in that order?
Code:
functions { #include "vorticity" #include "columnAverage" } Code:
functions { #include "columnAverage" #include "vorticity" }
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
November 14, 2019, 09:55 |
|
#35 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
I did not. IIRC I added Q and vorticity to the time directories by something like "pimpleFoam -postProcess -func Q" in the terminal. I'll check your approach and come back to this thread during the weekend.
Thanks for your help! |
|
November 20, 2019, 09:45 |
|
#36 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
The suggestion above works for vorticity and Q.
There is only one more challenge: The columnAverage seems to average for each half of the span-wise direction, i.e., I get an averaged field till the half length of my cylinder, after which a second averaged field for the remaining half is shown. This happens for all values, also p, U etc. Any ideas? I can upload my files in necessary of course. |
|
November 20, 2019, 09:48 |
|
#37 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Could you please upload your cases for the reproduction?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
November 20, 2019, 10:00 |
|
#38 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
Sure, here it is
https://www.dropbox.com/sh/wnwqum10if415bs/AADAj-0HM77k2HyKgv_dvI8Ia?dl=0 Its like 1.2 GB. In the 33 time directory I zipped the results of the following command Code:
pimpleFoam -postProcess -latestTime Thanks for your help! |
|
November 26, 2019, 06:06 |
|
#39 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Curious.
On the other hand, `postProcess` utility does not contain `columnAverage` yet. If you execute `postProcess -list` command, you will see that `columnAverage` is not there. So it should not affect `columnAverage` results. Or did it? Since you have the `columnAverage` fields, and I took a slice downstream of the cylinder, and you are right: There is an asymmetric pattern. This utility AFAIK is experimental, and community supported. Would you mind to issue a ticket in the bug tracker: https://develop.openfoam.com/Develop...AM-plus/issues EDIT: A minimal working example would be great. EDIT-2: If this is not possible for you, I may pursue this issue in the medium term.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
November 26, 2019, 06:18 |
|
#40 | |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
Quote:
Thanks for the help. I should find some time during the weekend and come back to this thread afterwards. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 05:49 |
Starting field averaging using libFunctionObject after certain time | eelcovv | OpenFOAM Programming & Development | 25 | December 7, 2015 23:28 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Averaging field over a spatial direction | fs82 | OpenFOAM | 10 | August 12, 2009 11:44 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |