CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

REFPROP.DLL and Fluent UDF: ACCESS_VIOLATION error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 20, 2013, 12:15
Exclamation REFPROP.DLL and Fluent UDF: ACCESS_VIOLATION error
  #1
New Member
 
Amit Singh
Join Date: Feb 2013
Posts: 4
Rep Power: 5
amit112amit is on a distinguished road
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
amit112amit is offline   Reply With Quote

Old   October 20, 2014, 07:37
Default
  #2
New Member
 
wenjue
Join Date: Jul 2014
Posts: 4
Rep Power: 3
wenjue is on a distinguished road
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
wenjue is offline   Reply With Quote

Reply

Tags
access violation error, refprop, udf density

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 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


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