Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Rotating and mass flow inlet › Reply To: Rotating and mass flow inlet
September 10, 2024 at 1:40 pm
warhammer975
Subscriber
I set the value ( real mass_flow = 2;) and used this cycle to set the mass flow:
Â
begin_c_loop(c, t)
    {
Â
      cell_dist = C_WALL_DIST(c, t);
Â
Â
      if (cell_dist < 0.001) Â
      {
Â
        C_UDMI(c, t, 0) = mass_flow; Â
      }
    }
    end_c_loop(c, t)
  }
}