I want to set a boundary condition that can make the inlet gas velocity increase linearly with time. For example, in the tutorial case “fluid_bed_tfm_2d”, how to make bc_v_g(1)=0.125*dt, where dt is the time step.
Thank you so much. Following your suggestions, I have written a usr1.f, which is attached here. However, although it can be built successfully, it did not work at all. In fact, there is no an option in BOUNDARY CONDITION for udf. Therefore, the real inlet gas velocity will still follow the set value (in the tutorial case “fluid_bed_tfm_2d”, it is 0.25 m/s).
Thanks very much for your reply. Indeed, it should be the physical time of the simulation, but not the time step. Do you know which variable I should use?
Another question, even though I have enabled the udf, the udf did not work. For example, when the udf is BC_V_g(1)=0+0.125*dt, which is attached previously and results in a very small value, the inlet gas velocity can still make the bed expand (obviously wrong).
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.
does someone know why the same udf that was provided here does not work if I try to set a boundary conditions for solids? I tried to change BC_V_g(4) to either BC_V_s(4,1) or bc_massflow_s(4,1) but in both cases nothing happened. Thanks!
You should update the PI_FACTOR(BCV_I) based on how many particles injected per DTSOLID.
Note that the BCV_I is different from the Boundary ID you defined.