Flash implementation of Cardinal Tides