|April 20, 2013, 12:15||
REFPROP.DLL and Fluent UDF: ACCESS_VIOLATION error
Join Date: Feb 2013
Posts: 4Rep Power: 4
I have written UDFs using DEFINE_PROPERTY to calculate Density, Viscosity, Thermal Conductivity and Sound Speed.
Inside DEFINE_PROPERTY I have a function call to another C function called CELL_DENSITY(press, temp).
When compiled and executed outside Fluent, these other C functions are able to calculate and return values of density etc. using refprop.dll, provided the DLL and CO2.FLD files are present in the same directory. Co2.fld is REFPROP's pure fluid file.
But when run from inside Fluent they give ACCESS_VIOLATION error. I have tried putting the additional files (.DLL and .FLD) under libudf\src and libudf\win64\3d. But it did not work.
I cannot use the NIST real gas models (which use REFPROP 7.0) provided by Fluent. NIST real gas models allow only one pure-fluid or real-gas mixture in the entire domain. I need to use Air and CO2 both.
|October 20, 2014, 07:37||
Join Date: Jul 2014
Posts: 4Rep Power: 3
Did you solve this problem at last? I want to use c code to obtain material properties by linking FLUENT to NIST refprop 9.0, but I failed. It seems like that FLUENT cannot compile windows.h correctly. Did you come across errors like this? Looking forward to your reply!!
Besides, I complied your code, the error appears in the driverspecs.h
|access violation error, refprop, udf density|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit)||Yogini||Fluent UDF and Scheme Programming||7||October 3, 2012 07:24|
|FLUENT UDF Simple error.||startup0820||Fluent UDF and Scheme Programming||0||August 14, 2012 03:54|
|UDF error - FLUENT received fatal signal (ACCESS_VIOLATION)||Eliasjal||Fluent UDF and Scheme Programming||1||March 7, 2012 12:11|
|Parse Error Message While interpreting UDF in FLUENT||dhimans||Fluent UDF and Scheme Programming||1||July 10, 2009 06:29|
|PARSE ERROR Message when interpreting UDF in FLUENT||dhimans||FLUENT||0||May 24, 2009 11:40|