CFD Online Logo CFD Online URL
Home > Forums > FLUENT

mass sink UDF

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

LinkBack Thread Tools Display Modes
Old   November 8, 2004, 00:00
Default mass sink UDF
Posts: n/a
I am modeling a diffusion problem 2D axisymmetric geometry. I am using mixture template (CO2, N2, O2) The model is for a cylindrical tank with conical headspace. CO2 gas source terms are at the bottom of the tank. Gravity is OFF in my model. Thus only force is the diffusive force. There are vents at the top of the tank and I want to maintain concentration of CO2, N2, O2 at those vents the same as that found in ambient air. How do I do this in fluent? I guess modeling vents as pressure outlet will not work. I NEED SOME TYPE OF MASS SINK TERMS AT THE VENT BOUNDARIES. I AM THINKING I SHOULD WRITE A UDF TO MAINTAIN CONCENTRATION OF CO2, N2 AND O2 IN VENT BOUNDARY CELLS SAME AS AMBIENT AIR. Will this automatically work as the mass sinks that I am trying to put? What macro should I use to write my UDF?
  Reply With Quote

Old   November 8, 2004, 23:44
Default Re: mass sink UDF
Posts: n/a
If species transport is ON (Define --> Models --> Species --> Species transport) how do I access mass fraction of a particular gas species in a UDF? For example, in a cell, you get mass fractions for all the species present, but how do I access it in a UDF? plz do let me know as soon as possible.
  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
UDF to measure Mass Flow Rate a.lynchy Fluent UDF and Scheme Programming 21 February 15, 2014 03:18
mass sink as a function of concentration ranjith CFX 4 May 9, 2010 23:26
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
UDF mass flow rate Juan FLUENT 2 December 22, 2007 10:29
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29

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