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

UFD to report mass fraction at the outlet cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2005, 10:14
Default UFD to report mass fraction at the outlet cells
  #1
Laura
Guest
 
Posts: n/a
Hi,

For transient calculations of a non reacting system with 2 inlets (one for gas A and one for gas B) and one outlet for a mixture A+B,

I have to report the mass fraction of B as a function of time step for ALL the cells at the outlet.

Any one know hows to start/writte an UDF to make that possible?

Thanks a lot.

Laura
  Reply With Quote

Old   June 7, 2005, 20:51
Default Re: UFD to report mass fraction at the outlet cell
  #2
cg
Guest
 
Posts: n/a
There is a text interface command

report/species-mass-flow

You could use this in a journal file and post-process the transcript file.
  Reply With Quote

Old   June 8, 2005, 03:32
Default Re: UFD to report mass fraction at the outlet cell
  #3
Laura
Guest
 
Posts: n/a
Hi thanks for the answer.

I tried to use the text interface command but I couldn't find how to specifie each cell of the outlet and report it's mass fraction for each time step?

can't we do that with an UDF?

Thanks a lot for the help.

Laura
  Reply With Quote

Old   June 9, 2005, 17:48
Default Re: UFD to report mass fraction at the outlet cell
  #4
cg
Guest
 
Posts: n/a
Yes, you can use a UDF...

DEFINE_ON_DEMAND(species_mass_flow) { Domain *domain = Get_Domain(1); Thread *t; face_t f; thread_loop_f(t,domain)

if( THREAD_TYPE(t)==THREAD_F_POUTLET )

begin_f_loop (f,t)

{

int species_index = 0;

real smf = F_FLUX(f,t)*F_YI(f,t);

Message("%i %e\n",f,smf);

}

end_f_loop (f,t) }
  Reply With Quote

Old   June 10, 2005, 03:42
Default Re: UFD to report mass fraction at the outlet cell
  #5
Laura
Guest
 
Posts: n/a
Thanks a lot my friend.

Best regards.
  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
Difference between Volume Fraction and Mass Fraction in CEL foo7 CFX 0 September 21, 2011 08:45
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 05:50
Net mass flow inlet vs outlet Nigui28 FLUENT 1 August 12, 2011 10:09
physical boundary error!! kris Siemens 2 August 3, 2005 00:32
Mass fraction via Cel file at outlet Jens CFX 3 April 28, 2003 09:14


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