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?


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.)},
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!

Thanks, I will give it a try!