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

RGP Files

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 15, 2023, 08:52
Default RGP Files
  #1
New Member
 
Tahmineh
Join Date: Apr 2022
Posts: 8
Rep Power: 4
TahminehAd is on a distinguished road
Hello everyone, I am using Python to create a RGP file, I am using the following commands that have been suggested by ANSYS to create such file. But I get the error: No module named pyExt.RefProp. I have installed all the pip packages in Python but I still get this error. Can anyone help me to understand how I can solve this problem?

Python commands:

import pyExt.RefProp as arp
fluidsPath = arp.getFluidsPath()
mat = arp.RefPropLib()

fluidList = ['fluids/water.fld']
mat.setup(fluidsPath, fluidList)

interpError = 1.0e-3
Tmin = 300.0
Tmax = 700.0
Pmin = 100000.0
Pmax = 25000000.0

# Generate both the liquid and vapor components, independent settings possible
h2ollow = arp.RGPLiquid("H2OL", Tmin, Tmax, Pmin, Pmax, interpError)
h2ollow.setMetastable(False)
h2ovlow = arp.RGPVapor("H2OV", Tmin, Tmax, Pmin, Pmax, interpError)
h2ovlow.setMetastable(False)
arp.generateRGPfile("H2O-low.rgp", h2ollow, h2ovlow)

# Generate both the liquid and vapor components in the RGP file in one go
h2omed = arp.RGPSettings("H2O", Tmin, Tmax, Pmin, Pmax, 1.0e-4, arp.ADAPT_AUTO_TP)
arp.generateRGPfile("H2O-med.rgp", h2omed)

# Generate just the vapor component in the RGP file, for entire range
h2ovapor = arp.RGPVapor("H2OV", interpError)
arp.generateRGPfile("H2O-vapor.rgp", h2ovapor)
TahminehAd is offline   Reply With Quote

 

Tags
ansys fluent 2019r3, python module, rgp file


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
[ICEM] Import multi-block files Adrian_chaves ANSYS Meshing & Geometry 1 February 1, 2021 11:09
problem compiling with header files jreiter164 Fluent UDF and Scheme Programming 2 August 14, 2015 17:31
attaching trn files hossein_sml CFX 1 August 5, 2015 19:17
Problem Reading Fluent Files. Spy-k14 Tecplot 1 April 29, 2015 08:17
Writing Case and Data Files Using Journal/Scheme Files svp Fluent UDF and Scheme Programming 0 April 5, 2011 11:04


All times are GMT -4. The time now is 19:12.