|
[Sponsors] |
Spanwise averaging of three-dimensional field |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 13, 2020, 22:57 |
|
#41 |
New Member
zein elserfy
Join Date: May 2018
Posts: 25
Rep Power: 8 |
how anyone tried to use columnAverage?as i tried to use it but it does not work properly
or may be i am not defining the function correctly I used it in order to perform a spatial average in the span-wise direction (z-direction) but the results are not correct. The function is added to controlDict Code:
{ type columnAverage; libs ("libfieldFunctionObjects.so"); writeControl writeTime; patches (front); fields (p pPrime2Mean wallShearStressMean); } The result of pPrime2Mean wallShearStressMean are shown below pPrime The columnAverage results seems to be incorrect |
|
February 14, 2020, 03:32 |
|
#42 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hi,
where can we access to the source code of that functionObject? Otherwise it is a bit hard to understand how it works |
|
February 14, 2020, 16:10 |
|
#43 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
You cant use columAverage for patch fields. wallShearStress is a patch field.
And also, the mesh in spanwise direction should be like blocks put side by side. For example, grid refinement is not allowed. columnAverage is somewhat improved postChannel utility. At least these are my understanding.
__________________
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 |
|
July 18, 2020, 12:15 |
|
#44 | |
New Member
M. Nasr
Join Date: Jul 2020
Posts: 4
Rep Power: 6 |
Quote:
|
||
July 20, 2020, 04:12 |
|
#45 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
You can install both (or even more versions) simultaneously and apply alias in your bashrc file. Search for something like "install multiple versions of opefoam"
|
|
July 20, 2020, 06:26 |
|
#46 | |
New Member
M. Nasr
Join Date: Jul 2020
Posts: 4
Rep Power: 6 |
Quote:
because when I activate both versions in bashrc, openfoam uses only one of them "the one in the last line of the bashrc". for example, I want to use "columnAverage" utility (which is available in v2006) in v7. Is that possible? |
||
July 20, 2020, 09:29 |
|
#47 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
Well, you just execute the utility of one version in a folder of a simulation that ran on a different version.
You need to create aliases in your bashrc to switch between versions. Again, just google. Here is the first link that I got when googling where aliases are explained https://openfoamwiki.net/index.php/I...with_the_Shell |
|
December 1, 2021, 09:59 |
Question about avgCyclicDir
|
#48 | |
New Member
Maryam
Join Date: Mar 2021
Posts: 3
Rep Power: 5 |
Quote:
I have compiled your tool on OF4.1, but unfortunately, it is not working for my pipe case. I have simulated a turbulent pipe and mapped the final results on a polar grid so that the mesh is easier for the tool to process. But as I use the command "avgCyclicDir cellPoint", I don't get the proper results. Only the values for U are halved, but no averaging happens. Could you please help me with it? Is there anything I am doing wrong? Thanks in advance, Maryam |
||
|
|
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 |