Ansys Learning Forum Forums Discuss Simulation Fluids Rotating and mass flow inlet Reply To: Rotating and mass flow inlet

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)
    }
}