CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Spanwise averaging - Python script

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2016, 22:29
Default Spanwise averaging - Python script
Join Date: Jan 2016
Posts: 53
Rep Power: 8
pvpnrao is on a distinguished road
Dear All

I am working on python script in paraview. My aim is to carryout spanwise averaging of all the fields in the domain. I do have a working script in to this end. Currently,
1. the script applies a "Plotoverline filter" between [X1,Y1,Z1] and [X2 Y2 Z2]. 2.Then it writes a csv file for the "Plotoverline" data
3. Then it moves the "Plotoverline filter" to a new location [X1new,Y1new,Z1new] and [X2new Y2new Z2new] and repeats step 2.

Steps 1 to 3 are repeated for all the time steps. My problem is that I am ending up with humongous number of CSV files even for spanning a small section of my domain.

Can some one suggest a better way of doing this?
pvpnrao is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Using python script for automatic post processing of openFoam vPaquet ParaView 12 December 16, 2021 03:30
python script to create geometry for salome, and then mesh 6863523 Mesh Generation & Pre-Processing 4 March 18, 2017 09:00
[General] Transfer variables into python script from bash-shell cfdFreshman ParaView 0 December 3, 2015 03:33
[General] Python script: Auto-scale color scale julien.decharentenay ParaView 2 December 9, 2013 05:39
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36

All times are GMT -4. The time now is 18:12.