|
[Sponsors] |
May 29, 2000, 12:43 |
Flux in UDS
|
#1 |
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 |
|
May 30, 2000, 13:37 |
Re: Flux in UDS
|
#2 |
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... |
|
|
|
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 |