You can access the current simulation time with the variable time from the run module. You also need to call set_bc0_flow to make sure the new value of bc_v_g is accounted for. Please see attached. I guess you will bound the inlet velocity at some time, otherwise it will keep increasing.
usr1.f (2.3 KB)