|
[Sponsors] |
REFPROP.DLL and Fluent UDF: ACCESS_VIOLATION error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 20, 2013, 13:15 |
REFPROP.DLL and Fluent UDF: ACCESS_VIOLATION error
|
#1 |
New Member
Amit Singh
Join Date: Feb 2013
Posts: 4
Rep Power: 13 |
Hi.
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. Please help. Regards, Amit Singh My_UDFS.c CELL_PROPS.c REFPROP2.H CELL_PROPS_HEADER.h |
|
October 20, 2014, 08:37 |
|
#2 |
New Member
wenjue
Join Date: Jul 2014
Posts: 4
Rep Power: 12 |
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 |
|
Tags |
access violation error, refprop, udf density |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
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 08:24 |
FLUENT UDF Simple error. | startup0820 | Fluent UDF and Scheme Programming | 0 | August 14, 2012 04: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 07:29 |
PARSE ERROR Message when interpreting UDF in FLUENT | dhimans | FLUENT | 0 | May 24, 2009 12:40 |