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

Store Array elements in cell values

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 3, 2009, 05:36
Default Store Array elements in cell values
  #1
Leverkin
Guest
 
Posts: n/a
Hello dear people.

I am simulating a surface reaction within a CVD reactor. I have defined the surface reaction rate with a UDF. The pre-expotantinal factor in the reaction rate is deifferent in each cell of the surface.

I have calculated the pre-expotantinal factor from a home made code and i want to impose it in my UDF. For example:

I have computed an array PRE_EXP[i] in my homemade code and in the expresion of the UDF I want to have something lke this

*rr = pow(PP,H2_EXP)*PRE_EXP[i]*exp(-ACTIVE/(UNIVERSAL_GAS_CONSTANT*temp));

but i want the PRE_EXP[i] in each cell.

meaning something like this: PRE_EXP(cell,thread) = PRE_EXP[i]

Any ideas? Using UDS can solve my problem?

Thanks in advance.
  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
Ensight - node values -cell values leo FLUENT 1 May 12, 2010 08:47
GAMBIT: Export values of an Array into a file Marcus FLUENT 0 January 4, 2007 09:23
node values or cell values? aPpA FLUENT 0 November 10, 2006 09:56
call parameter that store surface area of cell tipakorn CD-adapco 0 October 3, 2006 23:12
location of per-cell residuals in f-array? Patti Phoenics 1 September 12, 2006 13:28


All times are GMT -4. The time now is 07:44.