Velocity inlet: With if clauses

Hi,

Is it possible to define a velocity inlet condition that is time-dependent but also with an if condition? Something like

if (t < tmin)
v = 0
else
v = some function
endif

Thanks

I found the answer. You can define velocity inlet one as

v = 0*(t < tmin)

and then a second condition as

v = function*(t>tmin)

I believe this should work.

1 Like