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

How to calculate UMean pMean and prime2Means when post processing?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2018, 20:55
Smile How to calculate UMean pMean and prime2Means when post processing?
  #1
New Member
 
Join Date: Apr 2018
Posts: 14
Rep Power: 8
eric-meng is on a distinguished road
Hi everyone, I just finished a lot of cases for my project, while I found there were two cases I forgot to uncomment the fieldAverage section in my controlDict so that it did not wrote down the average information in run-time for velocity and pressure fields.

my question is, is it possible using any post processing utilities to obtain the mean and prime2Mean values for these two fields?

I tried postProcess -func fieldAverage -time xxx but got prompt "Cannot find functionObject file fieldAverage", while fieldAverage is indeed a function object listed in the mannual

There seems be an utility called valueAverage for postProcessing while it can not return prime2Mean, I am not sure

Does any one have any solution?

BTW I hope this can be done only using the data in processors, and no need to reconstruct
eric-meng is offline   Reply With Quote

Old   December 18, 2018, 14:08
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
This utility is averaging in the fly. So I doubt it is possible. Did you store the fields at the time steps.
mAlletto is offline   Reply With Quote

Old   December 19, 2018, 02:57
Default
  #3
New Member
 
Join Date: Apr 2018
Posts: 14
Rep Power: 8
eric-meng is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
This utility is averaging in the fly. So I doubt it is possible. Did you store the fields at the time steps.
Hi Michael

Thank you for your reply

I actually stored the results in processors

and I can reconstruct the result calculate the average one by one

but this is a bit huge project for me, and may involve some programming job,

I have been searching for a couple of days while it seems no good solution

so I have to use the reconstruct way
eric-meng is offline   Reply With Quote

Old   December 19, 2018, 04:57
Default
  #4
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
You can try to make a small utility which loops over the time folders and calculated the statistics. But maybe the best would be to just restart the simulations in order that the results are comparable
mAlletto is offline   Reply With Quote

Old   December 19, 2018, 06:58
Default
  #5
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7
ssa_cfd is on a distinguished road
If you have your time steps, you can reconstruct and then run temporal statistics filter in paraview which gives mean. But the results are not accurate as fieldAverage function object. It depends on how many time steps you have.

If its difficult to reconstruct, go to 'paraFoam -builtin' where u can see the data without reconstructing and then try temporal statistics filter.
ssa_cfd is offline   Reply With Quote

Old   December 20, 2018, 00:43
Default
  #6
New Member
 
Join Date: Apr 2018
Posts: 14
Rep Power: 8
eric-meng is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
You can try to make a small utility which loops over the time folders and calculated the statistics. But maybe the best would be to just restart the simulations in order that the results are comparable
yes it can be but I am not very familiar with openfoam programming for the moment, may be try it in the future
eric-meng is offline   Reply With Quote

Old   December 20, 2018, 00:46
Default
  #7
New Member
 
Join Date: Apr 2018
Posts: 14
Rep Power: 8
eric-meng is on a distinguished road
Quote:
Originally Posted by ssa_cfd View Post
If you have your time steps, you can reconstruct and then run temporal statistics filter in paraview which gives mean. But the results are not accurate as fieldAverage function object. It depends on how many time steps you have.

If its difficult to reconstruct, go to 'paraFoam -builtin' where u can see the data without reconstructing and then try temporal statistics filter.
This is also another concern about it, my dt is 0.0025 thats as so small one

can the fluid field are also in transition to turbulence, so I think I'd better just run another enough time steps to keep my result in safe

Thank you for your reply and suggestion
eric-meng is offline   Reply With Quote

Reply

Tags
field average, openfoam, post processing


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 21:48.