|
[Sponsors] |
February 11, 2015, 14:53 |
editing species flux
|
#1 |
New Member
Tomas
Join Date: Feb 2015
Posts: 4
Rep Power: 11 |
Hello Everyone,
I study species separation produced by imposing a pressure gradient in gaseous mixtures. So I have to add a so called pressure diffusion term to the flux in order to take this effect into account. I have been doing this using UDS: I have my own DEFINE_UDS_FLUX function in which I add the pressure diffusion term to the F_FLUX(f,t) macro. So far it's been working good, but now species separation generates large mean molar weights variations, and I want to include this in the cfd problem. I could do this by: 1. build my own UDRGM (user defined real gas models) and calculate tha gas constant as a function of the UDS's. --- but I don't know how to call C_UDSI(c,t) inside UDRGM 2. Add the pressure diffusion term as sources using species --- wouldn't be eloquent to derivate a flux term using the finite volume method 3. Editing the flux of each of the species as in UDS --- ??? 4. ... Any ideas? Thanks, Tomás.- |
|
November 26, 2015, 06:36 |
Hello tguozden
|
#2 |
New Member
Francesco
Join Date: Aug 2015
Posts: 4
Rep Power: 11 |
Hello tguozden,
Have you found a way to use C_UDSI(c,t) in your UDRGM? I'm working on a UDRGM and I need to define some properties as a function of a User-defined-scalar, hence your reply would be very useful for my work. Thank you very much! |
|
November 26, 2015, 10:16 |
|
#3 |
New Member
Tomas
Join Date: Feb 2015
Posts: 4
Rep Power: 11 |
Hello francesco! I was suggested to create a DEFINE_PROFILE and hook this with "fixed value" definition in cellzone conditions.
Didn't try, if you please let me know. DEFINE_PROFILE(fixed_species, thread, i) { /* * Prescribe species mass fraction value. */ cell_t cell;/* loop over the cells */ begin_c_loop(cell, thread) { C_YI(c,t,0) = C_UDSI(c,t,0); } end_c_loop(cell, thread) } |
|
Tags |
flux, species, udrgm, uds |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to specify surface flux of a species? | ked | FLUENT | 18 | February 15, 2022 16:03 |
Species Transport: How to determine the mass flux from concentration gradients? | Zaphod'sSecondHead | FLUENT | 2 | January 9, 2016 09:16 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
Boundary condition for species flux | Leverkin | FLUENT | 0 | June 9, 2008 03:19 |
Calculate net species/ UDS flux | PK57 | FLUENT | 3 | August 4, 2004 10:59 |