CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Help with UDS FLUX

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

LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2005, 08:35
Default Help with UDS FLUX
Andrew Garrard
Posts: n/a
If there is anyone who can help me with this I would be very, very grateful. I have been trying to do this for two weeks now with no luck.

I am trying to model the species mass fraction in an electrochemical system. The charged ions are drawn towards an oppositely charged electrode. I know the equation for the flux of the species. There is NO flow.

I have reduced the problem to a 2D, rectangular grid. At the top a flux of species in using a UDS flux. At the Bottom an opposite flux of species out. The net gain of species in the system should be zero.

I set my UDS_FLUX term so that is returns a constant * area of horizontal face. The constant is the same as the flux on the top and bottom wall, but that shouldn't matter. The UDS_FLUX takes the retuned value and multiplies it by the value of the UDS I have removed diffusion by setting the value to zero.

I cannot get the value of the UDS to settle on a fixed value, it just keeps going up.

I know that you shouldn't set two NEUMANN B.C's, but when you do it with diffusion, it settles nicely to a constant species mass fraction gradient. Why dose it not with my model?

Please, Please help me, anyone.
  Reply With Quote

Old   February 11, 2005, 10:13
Default Re: Help with UDS FLUX
Posts: n/a
Andrew, Maybe you could post the main part of the your define uds flux udf and there may be a clue in there.
  Reply With Quote

Old   February 14, 2005, 05:47
Default Re: Help with UDS FLUX
Andrew Garrard
Posts: n/a
OK, I am using a massivly simplified 2d model to try to understand what is going on - a 5 x 5 2D grid. Fluxes on the top and bottom face, say 0.001.

The UDF is a little like this. I just want the mass flux to be the same through each cell (later I will link it as a function of another variable)



F_AREA(A, f, thread);

if(f == internal face); return 0.001 * A[1]; else return 0;


This should mean that the flux of the UDS through each plane (where y = const) is the same, right?
  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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 01:14
setting UDS Flux Andrew Garrard FLUENT 9 February 10, 2015 13:26
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 08:53
UDS flux through wall and interior face. shuqin FLUENT 2 July 29, 2006 03:54
UDS flux and boundaries Kasper Skriver FLUENT 0 April 18, 2006 08:36

All times are GMT -4. The time now is 00:37.