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

pvbatch all pvtu files at once

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2021, 05:37
Default pvbatch all pvtu files at once
  #1
New Member
 
NSW
Join Date: May 2020
Posts: 20
Rep Power: 7
pipi is on a distinguished road
Hi Hans,

I am trying to extract data from .pvtu using pvbatch and pvpython for large data sets from the simulations - instead of ParaView GUI. However, I am only able to use pvbatch for one .pvtu at a time using the following file specification:

# create a new 'XML Partitioned Unstructured Grid Reader'
rEEF3DCFD00 = XMLPartitionedUnstructuredGridReader(registrationN ame='REEF3D-CFD-00*', FileName=['/home/uqdliu17/Para_REEF3D_CFD_VTU/REEF3D-CFD-000001.pvtu' ])
rEEF3DCFD00.PointArrayStatus = ['velocity', 'pressure', 'eddyv', 'phi', 'topo', 'elevation']

However, I am not able to process all pvtu at once using the below:
rEEF3DCFD00 = XMLPartitionedUnstructuredGridReader(registrationN ame='REEF3D-CFD-00*', FileName=['/home/uqdliu17/Para_REEF3D_CFD_VTU/REEF3D-CFD-00*.pvtu' ])

Do you know how to modify the FileName to be able to process all the pvtu in a folder? Many thanks!
pipi is offline   Reply With Quote

Old   October 13, 2021, 10:54
Default
  #2
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19
valgrinda is on a distinguished road
Hm, not sure, I can help.

Other ideas: You could try the state files, they contain the raw data from the staggered mesh.

Or, in case you need point or line data, you could use REEF3D point or line probes. Then you will get the data you need directly.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   October 13, 2021, 22:53
Default
  #3
New Member
 
NSW
Join Date: May 2020
Posts: 20
Rep Power: 7
pipi is on a distinguished road
Hi Hans,
I used the options below to output state files, but I still get the same outputs with VTU, no additional statefiles generated. Could you please suggest the correct specification to output state files? Thank you!
P 10 0
P 30 0.01
P 40 2
Attached Files
File Type: txt ctrl.txt (238 Bytes, 0 views)
pipi is offline   Reply With Quote

Reply


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
Help with reading RGP files into ANSYS Fluent aprlina FLUENT 0 January 21, 2021 18:51
The udf.h headers are unable to open- in VISUAL STUDIO 13 sanjeetlimbu Fluent UDF and Scheme Programming 4 May 2, 2016 06:38
UDF help for Rapid compression machine ECM. sanjeetlimbu Fluent UDF and Scheme Programming 0 March 17, 2015 23:45
Writing Case and Data Files Using Journal/Scheme Files svp Fluent UDF and Scheme Programming 0 April 5, 2011 12:04
Problems with result files Kasper CFX 5 December 14, 2006 03:41


All times are GMT -4. The time now is 00:58.