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

Location of the udf.h File

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nb92

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2014, 22:24
Default Location of the udf.h File
  #1
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 407
Rep Power: 14
Светлана is on a distinguished road
Section 5.1.1. of user manual says that "before you compile your source file, the udf.h header file will need to be accessible in your path, or saved locally within your working folder." How do I do that -- make it accessible in my path -- under Linux? Say, I have these files in /somewhere/ansys/v145/fluent/fluent14.5.0/src/udf.h
Светлана is offline   Reply With Quote

Old   April 3, 2014, 02:49
Default
  #2
New Member
 
Nick
Join Date: Feb 2014
Posts: 5
Rep Power: 12
nb92 is on a distinguished road
Hi,
In my case the header files are located here: C:\Program Files\ANSYS Inc\v140\fluent\fluent14.0.0\src
I use Windows so i am unsure about Linux. In my case Fluent found the header files without problem, i think by 'path' it means that the file will be in the fluent directory.
I would suggest attempting to compile and if you have issues, move the required header files to your working directory.

Hope this helps

Nick
kardgar likes this.
nb92 is offline   Reply With Quote

Old   June 15, 2018, 06:08
Default
  #3
Member
 
Anomymous
Join Date: May 2018
Posts: 31
Rep Power: 7
Nishant_Sharma is on a distinguished road
Hi all,

do the folder as you(nb92) have mentioned shows the udf.h file after loading, because in my case it is not showing in that folder, and I could not find the .h file of my source file.

Thank you
Nishant_Sharma is offline   Reply With Quote

Old   June 15, 2018, 06:28
Default
  #4
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
The udf.h file should be located at .../src/udf/udf.h. Although when writing your UDF, this file is included with:

Code:
#include "udf.h"
at the top of your code.
`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
patch error OF v2.2.2 mac hewei OpenFOAM Installation 4 November 30, 2013 16:55
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
2.0.x on Mac OSX niklas OpenFOAM Installation 74 March 28, 2012 16:46
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 00:10.