Numerical simulation of flow pattern and sediment processes of a tidal inlet