Physics-guided generative adversarial network to learn physical models