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

custom header file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2015, 22:42
Default custom header file
  #1
New Member
 
Join Date: Apr 2015
Posts: 16
Rep Power: 11
why? is on a distinguished road
Hi
Has anyone ever made a custom header file for a custom function not available in Fluent.
Shed some light or give an example please?
Thanks
why? is offline   Reply With Quote

Old   April 27, 2015, 05:20
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Are you having trouble including a header file? A common header file to include for UDFs is:

Code:
#include "udf.h"
However, you can include any file you wish; including header/source files. You may require an absolute path instead of relative (for example, Fluent knows where to look for the udf.h).
`e` is offline   Reply With Quote

Old   April 27, 2015, 05:25
Default
  #3
Senior Member
 
Join Date: Mar 2014
Posts: 375
Rep Power: 13
hwet is on a distinguished road
Yes but for a macro not defined in Fluent do I have to make my own header file. For example if I want to write a new DPM law.
hwet is offline   Reply With Quote

Old   April 27, 2015, 06:12
Default
  #4
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
I'm not sure I understand your goal. You can write functions in a source file alongside your macros such as DEFINE_DPM_LAW.
`e` is offline   Reply With Quote

Old   April 27, 2015, 07:13
Default
  #5
Senior Member
 
Join Date: Mar 2014
Posts: 375
Rep Power: 13
hwet is on a distinguished road
Hmm, actually I think I will see for myself too what I mean and then get back
hwet 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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 14:52.