pumps 发表于 2017-5-9 09:39

温度对粘度的影响UDF

DEFINE_PROPERTY(cell_viscosity, cell, thread)
{
    real mu_lam;
    real temp = C_T(cell, thread);

    if (temp > 288.)
      mu_lam = 5.5e-3;
    else if (temp > 286.)
      mu_lam = 143.2135 - 0.49725 * temp;
    else
      mu_lam = 1.;

    return mu_lam;
}
页: [1]
查看完整版本: 温度对粘度的影响UDF