CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Flux in UDS

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

LinkBack Thread Tools Display Modes
Old   May 29, 2000, 11:43
Default Flux in UDS
Posts: n/a
Hi, I want to define 2 scalars with fluxfunction. The fluxfunctions are different in each direction and different for each scalar. That's why I want to compile the following source code:

#include "udf.h"

DEFINE_UDS_FLUX(scalar1,face,thread,1) { real F[ND_ND] /* for each direction(x,y,z)*/; real a,b,c;

F[0] = a; F[1] = b; F[2] = c; }

DEFINE_UDS_FLUX(scalar2,face,thread,2) { real F[ND_ND]; real u,v,w;

F[0] = u; F[1] = v; F[2] = w; }

Is this source code correct?

Tanks's for help.

  Reply With Quote

Old   May 30, 2000, 12:37
Default Re: Flux in UDS
Posts: n/a
You can not specify the value of the last argument to the UDF (where you have a "1" and a "2"). Fluent will pass an integer value indicating the scalar, you just need to hook the proper function to each scalar from the BCs panel.

Also, your functions don't do anything (they assign values from local variables "a", "b", and "c" to another local variable "F"). You probably want to store your fluxes someplace where Fluent will use them...
  Reply With Quote


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
setting UDS Flux Andrew Garrard FLUENT 9 February 10, 2015 14:26
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 09:53
UDS Flux Function Choice Yang Chung FLUENT 0 August 10, 2008 06:57
UDS flux through wall and interior face. shuqin FLUENT 2 July 29, 2006 03:54
Help with UDS FLUX Andrew Garrard FLUENT 2 February 14, 2005 06:47

All times are GMT -4. The time now is 04:46.