|
[Sponsors] |
September 15, 2005, 10:21 |
Species mass fraction in each cell
|
#1 |
Guest
Posts: n/a
|
Dear all, I am solving gas-liquid phase (two-fluid model) in bubble column reactor.Liquid is continuum phase and i added a tracer(species) in the liquid phase itself. I want to calculate mass fraction of tracer in all the individual cells.So written a DEFINE ADJUST udf to calculate the mass fraction in the individual cell using C_YI(c,t,i)
mp_thread_loop_c(cell_threads, mixture_domain, pt) { begin_c_loop(cell,cell_threads) { tcr= C_YI(cell,cell_threads,0) ............ ............. }end_c_loop(cell,cell_threads) } After i hook the UDF i get an error: Error: FLUENT received fatal signal (ACCESS_VIOLATION) Please help me to workaround for the problem. Mohan |
|
September 16, 2005, 06:47 |
Re: Species mass fraction in each cell
|
#2 |
Guest
Posts: n/a
|
Maybe in your Fluent's version you can't use species transport option and two-phase model...which is your version???I'm working with 6.1.22 and when I try to use a two-phase model the Species Transport Option is not available...
Regards, Giordano Bruno |
|
September 16, 2005, 06:52 |
Re: Species mass fraction in each cell
|
#3 |
Guest
Posts: n/a
|
I am using Fluent 6.2.16 version, which has the facility for the species transport in multiphase system.
any workaround for me, thanking you in advance Mohan |
|
September 29, 2005, 10:21 |
Re: Species mass fraction in each cell
|
#4 |
Guest
Posts: n/a
|
Access violations often indicate that you are trying to access data, where no data exist. Looking at your udf we will find the error in you second loop. From fluents point of view, a cell with mutiple phases holds 2 kind of data. Data that are shared by all phases are stored at the main cell level and can be accessed with the cell_threads pointer. Other data are phase specific and therefore NOT stored at the main cell level. They are stored in sub level threads with one thread for each phase. Sub level threads can be accessed with the pt pointer array, e.g. pt[2] would return then pointer to the sub level thread for the phase with index 2. Lets assume your liquid phase index is 2 then your udf should look like this
mp_thread_loop_c(cell_threads, mixture_domain, pt) { begin_c_loop(cell,pt[2]) { tcr= C_YI(cell,pt[2],0) ............ ............. }end_c_loop(cell,pt[2]) } Good luck RoM |
|
October 4, 2005, 01:50 |
Re: Species mass fraction in each cell
|
#5 |
Guest
Posts: n/a
|
Thanx a lot RoM, the solution suggested by you is working.
With regards, Mohan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gradient of species mass fraction | zhou | FLUENT | 1 | March 14, 2020 06:28 |
species mass fraction in reacting flow | ma | Main CFD Forum | 8 | February 20, 2013 17:06 |
Mass fraction and volume fraction | eric weddle | CFX | 0 | September 26, 2011 05:02 |
Difference between Volume Fraction and Mass Fraction in CEL | foo7 | CFX | 0 | September 21, 2011 08:45 |
UDF for Species mass fraction | Rahul | FLUENT | 0 | September 20, 2002 04:22 |