|
[Sponsors] |
March 25, 2015, 06:36 |
How to add a new header (.h) in a UDF
|
#1 |
Member
Join Date: Jul 2013
Posts: 80
Rep Power: 13 |
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. |
|
March 25, 2015, 06:49 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
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" |
|
|
|
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 |