Experimental Data into EnSight

In the simulation world, it is quite common to have some type of experimental data which you’d like to compare against your simulation data. Now, if the data is just a table of “location versus value”, you can use EnSight’s built in “Import Query” function to read this 2 column of data into EnSight and graph alongside your simulation. But, what about more complex experimental data? What about a net of data with multiple variables? Perhaps data at a bunch of X,Y,Z locations; each with some amount of variables?   Perhaps some PIV data?…. EnSight can handle that too!

I’ve written a little snippet of code to take an excel comma separated file containing X,Y,Z,Var1,Var2 data, and read that right into EnSight. You can change or adjust the code for more variables, vectors, or even time varying.

You can download the python code and icon file for a UserDefinedTool.

Python code CSV to Point Data

Example Dataset

# ############################################
# Python Script to convert from a comma separated 5 column file (X,Y,Z,Var1,Var2) to
# EnSight Case format
# Assume temperature as Var1
# and strain_rate as Var2
#
# Kevin Colburn
# CEI
# June, 2010
#
# ############################################