|
[Sponsors] |
November 12, 2003, 21:14 |
On how to initialize a UDS
|
#1 |
Guest
Posts: n/a
|
Hello,
I am currently trying to simulate photolysis in an annular reactor. (H2O2+I --> 2OH). I would like to fix a pre calculated gradient in a part of the grid. Eg. 2D case, rectangular RK: entry zone (square)- reaction zone (square)- outflow zone(square) where I is a mirrored gradient in the reaction zone. Water+H2O2 enters and is (partialy)converted to OH in the raction zone. My understanding is that I should be able to Initialize a UDS using DEFINE_INIT, unhook the UDS from the solver and use I as a fixed source through a DEFINE_VR_RATE macro. Question: I can't find out how to use DEFINIE_INIT on a UDS. Do I just loop over al the cells in the reaction_zone thread? is there a way to read the distance of the cell to the center of the square and write I as a function of that distance? Sorry if I'm asking obvious stuff, and thanks for any help. Angelo |
|
November 14, 2003, 13:58 |
Re: On how to initialize a UDS
|
#2 |
Guest
Posts: n/a
|
hi,
1. For the initialization, you understanding is fairly right. loop over all the cells and set the values with C_UDS(cell_t, thrad). 2. C_CENTROID(pos, cell_t, thread) will give the coordinates of the centroid of the cell. |
|
November 19, 2003, 17:31 |
Re: On how to initialize a UDS
|
#3 |
Guest
Posts: n/a
|
Thanks for the info, it helped and its working now! But I am using UDM now since UDS would only be needed to add the term to the flow.
Still gotta do some fancy footwork getting the vector calculation right Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDS Flux Function Choice | Yang Chung | FLUENT | 1 | November 17, 2015 02:14 |
PEM modeling UDS diffusivity in mixture | gemini | FLUENT | 6 | August 7, 2012 08:37 |
Doubts UDS Flux, UDS Unsteady for VOF model | kel85uk | FLUENT | 0 | March 17, 2010 09:53 |
set UDS value at interior BC | Simon | FLUENT | 0 | December 12, 2008 14:14 |
Associating profile files for the UDS though a UDF | Bharath | FLUENT | 0 | December 1, 2006 16:58 |