CFD Online Logo CFD Online URL
Home > Forums > FLUENT

On how to initialize a UDS

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

LinkBack Thread Tools Display Modes
Old   November 12, 2003, 21:14
Default On how to initialize a UDS
Angelo Sozzi
Posts: n/a

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.

  Reply With Quote

Old   November 14, 2003, 13:58
Default Re: On how to initialize a UDS
Posts: n/a

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.

  Reply With Quote

Old   November 19, 2003, 17:31
Default Re: On how to initialize a UDS
Angelo Sozzi
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

  Reply With Quote


Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 07: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

All times are GMT -4. The time now is 06:24.