CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Read and average fields over different time steps (https://www.cfd-online.com/Forums/openfoam-solving/142159-read-average-fields-over-different-time-steps.html)

yanyanh September 24, 2014 09:32

Read and average fields over different time steps
 
Hi guys,

I'm doing a transient simulation of two counter-rotating propellers using sliding mesh (pimpleDyMFoam). Since transient simulations use a lot of resources I split the whole domain (wind tunnel) into a transient part and a steady part.

With mapFields I could map an instantaneous step from the transient simulation to the steady-state, but what I'm looking for is a tool to average the transient field over a time range of for example 0.2 seconds and then map it to the steady-state part of the simulation.

I already dit a test, where I modified the pimpleDyMFoam solver, so that it created a new field U_mean, where the velocity field of every time step is added and the divided by the number of steps. But is there another more elegant way already built in OpenFOAM or how can I write a tool, where I can read in velocity fields and manipulated them without using the modified solver?

Thanks a lot in advance!
Yanyan


All times are GMT -4. The time now is 20:17.