Ansys Learning Forum › Forums › Discuss Simulation › Fluids › UDF crash › Reply To: UDF crash
November 25, 2023 at 6:13 am
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.