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

Plot array over time in Flow3D Post

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2023, 04:12
Default Plot array over time in Flow3D Post
  #1
New Member
 
Join Date: Feb 2023
Posts: 1
Rep Power: 0
abon is on a distinguished road
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!
abon is offline   Reply With Quote

Reply

Tags
flow 3d post

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
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


All times are GMT -4. The time now is 07:32.