UDS source term
I need little help to write my UDS source term.
My equation represents reaction rate and is represented as:
(dX/dt) = k_a*e^(-Ea/(R_u*T))*((P_i - P_eq)/P_eq)*(1-X)
X is concentration at any time instant 't' [0< X <1]
k_a is reaction constant
E_a is activation energy (Constant)
R_u is universal gas constant
T is temperature of cell
P_i is initial supply pressure (constant)
P_eq is equilibrium pressure (dependent on 'T') defined as
ln(P_eq) = (DELTA_S/R_u)-(DELTA_H/(R_u*T))
Here, DELTA_S & DELTA_H are again constants
R_u & T are as defined above.
I wrote this, But it doesn't seem to work properly as the temperature of my domain vary radially (an annular cylinder) and hence reaction rate is different at different radii, Ideally as 'x' reaches '1' reaction should stop but when I plot 'X' contours it shows values > 1 in colder regions (suggesting reaction continues even after reaching a value >1) as this should't be.
UDS source is not returning value to Energy source term
Someone please help!
What I figured out was my UDS source is calculating values for various cells but I guess it is not returning the values to energy source term.
What could be the reason.
Monitoring 'rate' (UDS source) shows variations spatially (as temperature is varying spatially) But this variation is not taken up by the Energy source term although it is directly dependent on the 'rate' (UDS source).
Please, please ......someone help me out.
Sorry I didn't updated the status on my work. And yes you are correct to suggest using UDM. I solved the problem using UDM. Thanks.
I'm working on the model of hydrogen storage by metal hydride. So, I'm very confused about the UDF code for source term. Could you share with me your UDF code just for reference?
Thank you very much
|All times are GMT -4. The time now is 16:24.|