Variable inlet boundary condition

Hi, is it possible to implement a variable boundary condition?

For e.g.: inlet vel = V_constsin(2pift)

In this case, the inlet velocity varies with time.

Else, where in the source code can we modify it to add this feature?

Thanks.

Hi, the way to do this is to make a variable and assign a param_ranges in the boundary condition. For example:
t = Symbol(‘t’)
Wall = rec.boundary_bc(outvar_sympy={‘u’: t},
param_ranges={t: (0, 1.)},
batch_size_per_area=100)
self.add(Wall, name=“Wall”)

For more detail, you may take a look at section 4 Transient physics: 1D Wave Equation, Case Setup.
Hope this can help!