# UFD to report mass fraction at the outlet cells

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

 June 7, 2005, 10:14 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

 June 7, 2005, 20:51 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.

 June 8, 2005, 03:32 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

 June 9, 2005, 17:48 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) }

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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post foo7 CFX 0 September 21, 2011 08:45 hsieh Open Source Meshers: Gmsh, Netgen, CGNS, ... 32 September 13, 2011 05:50 Nigui28 FLUENT 1 August 12, 2011 10:09 kris Siemens 2 August 3, 2005 00:32 Jens CFX 3 April 28, 2003 09:14

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