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

Flux in UDS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2000, 12:43
Default Flux in UDS
  #1
Ulrich
Guest
 
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.

Ulrich
  Reply With Quote

Old   May 30, 2000, 13:37
Default Re: Flux in UDS
  #2
Chris
Guest
 
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

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
UDS Flux Function Choice Yang Chung FLUENT 1 November 17, 2015 02:14
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 through wall and interior face. shuqin FLUENT 2 July 29, 2006 04:54
Help with UDS FLUX Andrew Garrard FLUENT 2 February 14, 2005 06:47


All times are GMT -4. The time now is 20:38.