Investigation of a ship resonance through numerical simulation