CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Store Array elements in cell values (http://www.cfd-online.com/Forums/fluent/50459-store-array-elements-cell-values.html)

Leverkin February 3, 2009 05:36

Store Array elements in cell values
 
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.


All times are GMT -4. The time now is 09:11.