Skip to content

Using dataview.py

Rohit Duggal edited this page Jun 8, 2021 · 1 revision

Steps to use dataview.py

Simple type,

python dataview.py <filename.h5> <fluid property>

For example, to plot heatmap of pressure, just read the file and specify fluid property as pressure

python.exe .\dataview.py .\minc_15_cells_1500m.h5 pressure

notes

unless a normal is specified, the model is considered horizontal by default, see results here

folium

Zip = [TfList[::-1], zList[::-1]] with open("list1.txt", "w") as file: for x in zip(*Zip): file.write("{0}\t{1}\n".format(*x))

pyplot.rcParams['font.size'] = 18 pyplot.rcParams["figure.figsize"] = (20,3) # inch pyplot.rcParams["font.family"] = "Times New Roman"

from CoolProp.CoolProp import PropsSI rho_air = PropsSI('D','T',<Temp, K>,'P',<Pressure, Pa>,'<Fluid_Name>') # kg/m3, density of air

from iapws import IAPWS97 water = IAPWS97(T = <Temp, degC>+273.15, P = <Pressure, bar>*1e-1)

Clone this wiki locally