User defined function:
#include “udf.h”
DEFINE_SOURCE(second, c, t, dS, eqn)
{
real source;
source = −0.00004461296 * C_P(c, t) * exp(1/C_T(c, t));
dS eqn = −0.00004461296 * exp(1/C_T(c, t));
return source;
}
#include “udf.h”
DEFINE_SOURCE(third, c, t, dS, eqn)
{
real source;
source = −0.000108218 * C_P(c, t) * exp(1/C_T(c, t));
dS eqn = −0.000108218 * exp(1/C_T(c, t));
return source;
}
Algorithm 1: User defined function.