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

UDF source file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2003, 18:52
Default UDF source file
  #1
zhou
Guest
 
Posts: n/a
I defined several UDF (DEFINE_ADJUST,DEFINE_PROPERTY,DEFINE_SOURCE) in one source files. However,after i complied the source file and hook into FLUENT, i can only see one UDF that is available in FLUENT. Why couldn't i see others UDF in FLUENT?
  Reply With Quote

Old   September 29, 2003, 05:51
Default Re: UDF source file
  #2
Martin
Guest
 
Posts: n/a
hi,

canīt answer. can you post your source? then it could be easier to understand...
  Reply With Quote

Old   September 29, 2003, 11:42
Default Re: UDF source file
  #3
zhou
Guest
 
Posts: n/a
Following is source terms DEFINE_PROPERTY(cell_density,c,t) {

real density;

density=2967.7679;

return density; }

DEFINE_SR_RATE(my_rate,f,t,r,mw,yi,rr) {

*rr=1.03643e-4; }

DEFINE_SOURCE(species_K,c,t,dS,eqn) {

real K_source;

K_source=C_UDSI(c,t,14)+C_UDSI(c,t,15);

dS[eqn]=0.0;

return K_source; }

Please take a look. I don't know if there are some problems with C compiler in our systems. I guess there are some confliction between different edition.
  Reply With Quote

Old   September 29, 2003, 12:53
Default Re: UDF source file
  #4
Martin
Guest
 
Posts: n/a
it is working, but only with: #include "udf.h" at the beginning ...
  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
tecio compilation errors in latest 1.6.x rsamuel OpenFOAM Bugs 2 June 25, 2021 09:10
polynomial thermophysical properties II sebastian OpenFOAM Running, Solving & CFD 54 November 21, 2019 08:12
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


All times are GMT -4. The time now is 06:15.