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

mass sink UDF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2004, 00:00
Default mass sink UDF
  #1
H
Guest
 
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
  #2
H
Guest
 
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

Reply

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
UDF to measure Mass Flow Rate a.lynchy Fluent UDF and Scheme Programming 31 October 4, 2018 15:10
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
mass sink as a function of concentration ranjith CFX 4 May 10, 2010 00:26
UDF mass flow rate Juan FLUENT 2 December 22, 2007 10:29
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 12:29


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