A boundary condition for arbitrary shaped inlets in lattice–Boltzmann simulations