|
[Sponsors] |
April 24, 2015, 22:42 |
custom header file
|
#1 |
New Member
Join Date: Apr 2015
Posts: 16
Rep Power: 11 |
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 |
|
April 27, 2015, 05:20 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Are you having trouble including a header file? A common header file to include for UDFs is:
Code:
#include "udf.h" |
|
April 27, 2015, 05:25 |
|
#3 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
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.
|
|
April 27, 2015, 06:12 |
|
#4 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
I'm not sure I understand your goal. You can write functions in a source file alongside your macros such as DEFINE_DPM_LAW.
|
|
April 27, 2015, 07:13 |
|
#5 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
Hmm, actually I think I will see for myself too what I mean and then get back
|
|
|
|
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 |