Gas container example in the paper GFINNs: GENERIC Formalism Informed Neural Networks for Deterministic and Stochastic Dynamical Systems We use the Pytorch-based framework Learner.
To run the example:
python example_gc.py --net=gnode2a/gnode2b/gfinn2a/gfinn2b