CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

On how to initialize a UDS

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 12, 2003, 21:14
Default On how to initialize a UDS
  #1
Angelo Sozzi
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
  Reply With Quote

Old   November 14, 2003, 13:58
Default Re: On how to initialize a UDS
  #2
ccc
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.

  Reply With Quote

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

Reply

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
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
UDS Flux Function Choice Yang Chung FLUENT 0 August 10, 2008 06:57
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 14:32.