|
[Sponsors] |
UFD to report mass fraction at the outlet cells |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 7, 2005, 11:14 |
UFD to report mass fraction at the outlet cells
|
#1 |
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, 21:51 |
Re: UFD to report mass fraction at the outlet cell
|
#2 |
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, 04:32 |
Re: UFD to report mass fraction at the outlet cell
|
#3 |
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, 18:48 |
Re: UFD to report mass fraction at the outlet cell
|
#4 |
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, 04:42 |
Re: UFD to report mass fraction at the outlet cell
|
#5 |
Guest
Posts: n/a
|
Thanks a lot my friend.
Best regards. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Difference between Volume Fraction and Mass Fraction in CEL | foo7 | CFX | 0 | September 21, 2011 09:45 |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 06:50 |
Net mass flow inlet vs outlet | Nigui28 | FLUENT | 1 | August 12, 2011 11:09 |
physical boundary error!! | kris | Siemens | 2 | August 3, 2005 01:32 |
Mass fraction via Cel file at outlet | Jens | CFX | 3 | April 28, 2003 10:14 |