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

How to add a new header (.h) in a UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2015, 06:36
Default How to add a new header (.h) in a UDF
  #1
Member
 
Join Date: Jul 2013
Posts: 80
Rep Power: 13
upeksa is on a distinguished road
I want to use the header file of REFPROP in a UDF. I have the .h file, but I don't know how to set Fluent or Visual Studio to understand this new header file.

Any ideas?

Thanks in advance.
upeksa is offline   Reply With Quote

Old   March 25, 2015, 06:49
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Copy the header file to your Fluent source folder; for example "C:\Program Files\ANSYS Inc\v150\fluent\fluent15.0.0\src". Then include this header file inside your UDF code with the line:

Code:
#include "REFPROP.h"
`e` is offline   Reply With Quote

Reply


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
Disappearing mass when using udf inlet profile divergence Fluent UDF and Scheme Programming 5 January 2, 2021 15:56
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 08:26
add source term to energy equation by udf tomas Fluent UDF and Scheme Programming 7 September 10, 2013 03:08
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 10:13
has someone use udf to add source term? yinyue FLUENT 2 April 15, 2005 10:08


All times are GMT -4. The time now is 17:28.