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

UDS source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2001, 12: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, 05: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


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
Problem of SOURCE term gradient in UDS wind Fluent UDF and Scheme Programming 6 December 1, 2022 15:21
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 14, 2000 00:03


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