|
[Sponsors] |
[General] Time-averaging of slices of velocity fields for FLow3D data |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 11, 2023, 12:39 |
Time-averaging of slices of velocity fields for FLow3D data
|
#1 |
New Member
Join Date: Sep 2020
Posts: 1
Rep Power: 0 |
Hello everyone,
I am trying to do a time-averaging of a a velocity field of an LES simulation. Simulation time is 200s, I only would like to average from 74 s to 200s. In the end I would like to display the average velocity field in the centreline of my simulation. My strategy is: Extract time steps (time steps 73 to 200) Create a 2D slice at the centreline Apply temporal statistics and show velocity_average as a color Add velocity vectors with glyphs My Makro: import paraview.simple as pvs # Acess loaded dataset data_source = pvs.GetActiveSource() # Extract specific time steps extract_time_steps = pvs.ExtractTimeSteps(Input=data_source, TimeStepIndices=range(73, 200)) # Create a 2D slice at y=-0.395 slice_filter = pvs.Slice(Input=extract_time_steps) slice_filter.SliceType.Origin = [0.0, -0.395, 0.0] slice_filter.SliceType.Normal = [0, 1, 0] # Apply the TemporalStatistics (time average) temporal_stats = pvs.TemporalStatistics(Input=slice_filter) temporal_stats.ComputeAverage = 1 # Update the pipeline pvs.UpdatePipeline() # visualize temporal_stats (time-averaged velocity for the slice) representation = pvs.Show(temporal_stats) representation.ColorArrayName = ("POINT_DATA", "Velocity_average") Now I come across the problem, that the extracted slices only show the flow velocities on the outline of the fluid domain and do not show results over the whole domain. Addtitionally the color array velocity_average has an additional (?) attached. Of course, the temporal stats are also not working then... I figured out that the slice function does not show the field data when I apply it to the fluid part. I only get field data when I use the flsgrsimple slice function. I assume that there is a difference in both? Can somebody help me with that? Thank you a lot in advance! Chris |
|
Tags |
paraview, slices, time average, velocity field |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import .csv - velocity profile - error | eSKa | CFX | 9 | April 3, 2021 14:38 |
Determination of the time period for averaging of the velocity field at periodic flow | mo92 | OpenFOAM Running, Solving & CFD | 0 | December 18, 2018 13:24 |
How to export time series of variables for one point? | mary mor | OpenFOAM Post-Processing | 8 | July 19, 2017 11:54 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
PostChannel | maka | OpenFOAM Post-Processing | 5 | July 22, 2009 10:15 |