Ansys Learning Forum Forums Discuss Simulation Fluids UDF crash Reply To: UDF crash

ll00023
Subscriber
    if (C_D(TP_CELL(p), TP_CELL_THREAD(p)) > 0)
    {
        l_int = C_mu*pow(C_K(TP_CELL(p), TP_CELL_THREAD(p)), 1.5)/C_D(TP_CELL(p), TP_CELL_THREAD(p));
    }
    else
    {
l_int = 1.;
    }
when testing this code, it crashed FLUENT.