|
[Sponsors] |
March 1, 2023, 04:12 |
Plot array over time in Flow3D Post
|
#1 |
New Member
Join Date: Feb 2023
Posts: 1
Rep Power: 0 |
Hello,
I am a new user in using flow3D and flow3D post, I want to know how is it possible to plot over time of a generic array. Let me explain: I have been filtering data from a result provided by flow3D via python and I would like to plot this data against the raw one. Do you know if it is possible to plot over time of this derived data? I report a simple example of the data I would like to plot: from paraview.simple import * import numpy as np CellSize = GetActiveSource() raw_data_handle = servermanager.Fetch(CellSize) raw_data= np.asarray(raw_data_handle.GetFieldData().GetArray ('Control Volume Chamber 1: Fill Fraction')) raw_time= np.asarray(raw_data_handle.GetFieldData().GetArray ('Time')) data=raw_data.tolist() time=raw_time.tolist() D=[] for i in range (0,len(data)-1): D.append([time[i],(data[i+1]-data[i])/(time[i+1]-time[i])]) print (D) Thanks for the help! |
|
Tags |
flow 3d post |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Slow calculation time on CFD server | killian153 | Hardware | 4 | July 27, 2021 07:28 |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 04:13 |
LES, Courant Number, Crash, Sudden | Alhasan | OpenFOAM Running, Solving & CFD | 5 | November 22, 2019 02:05 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 11:08 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |