DamFormer: Generalizing Morphologies in Dam Break Simulations Using Transformer Model