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

UDS source term

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 19, 2001, 11:33
Default UDS source term
  #1
Mark Richardson
Guest
 
Posts: n/a
Hello Fluent Users, I am experimenting with the UDF features of FLUENT 5.5 I have coded a UDS:

mr_radius_adjust mr_radius_src mr_radius_dfx mr_radius_bc

These are rudimentary routines and I have set diffusivity to zero for a pure convection condition. This seems to be working okay. However, on my way to this point I was following some guidelines on protective coding and tried to access n_uds in the DEFINE_ADJUST but I do not know which header file to access (even grep'ing for n_uds did not locate a declaration). Another declaration problem is Thread *t0= thread->t0 which also caused compilation problems protecting access in the boundary condition.

Anyway these are not show stoppers and I have coped without them, but any guidance is appreciated.

My next question is: why is the source term for the scalar set within the fluid bcs?

Well thats all for now, I will take this opportunity to thank those who helped me solve the transient analysis problem - I was going the right way after all.

Thanks, Mark Richardson
  Reply With Quote

Old   August 21, 2001, 04:41
Default Re: UDS source term
  #2
Ola Nordblom
Guest
 
Posts: n/a
Hi,

I use compiled UDFs with Fluent 5.5 on both NT and SGI Unix platforms. The variable n_uds is referred to from within a DEFINE_ADJUST function. I have found that the variable n_uds is always zero when I run the NT version, regardless of the number of activated user-defined scalars. On the SGI Unix version of Fluent 5.5, however, n_uds takes the right value. I use the standard "udf.h" header. I make no declaration of the variable n_uds in my code.

Ola Nordblom
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
Problem of SOURCE term gradient in UDS wind Fluent UDF and Scheme Programming 5 June 21, 2013 05:39
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03


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