Speedup and linearization on variational propagators
Compare changes
Beginning with 2nd June, only the "Single Sign On" option for login to the GitLab web interface will be possible. If you don't have an MPCDF wide second factor so far, please get one at our SelfService (https://selfservice.mpcdf.mpg.de). The GitLab internal second factor will not work.
Solves the following issue(s):
Closes #330 (closed)
Core changes:
Few updates for the variational propagators (mostly for performance reasons).
Those changes results in a roughly 3 time speedup in the propagators (mostly because the number of iteration is greatly reduced).
Model-specific changes:
Add a linearize
flag to the variational propagator. When set to true it remove the initial forces caused by the fact that our equilibrium are approximate. This can be interpreted as modifying the MHD lagrangian to
l = \int \rho \frac{|u|^2}{2} - e(\rho,s) + \frac{\partial \rho e}{\partial \rho}|_{\rho_0, s_0} (\rho-\rho_0) + \frac{\partial \rho e}{\partial s}|_{\rho_0, s_0} (s-s_0) + e(\rho_0,s_0) + \frac{|B-B_0|^2}{2},
so that (\rho_0, s_0, B_0) is now a 0 energy equilibrium.
Add the possibility to have a linear dissipation (to stabilize more) \partial_t u + \alpha u=0.
Add the L^2 norm of \nabla \cdot B to the scalar quantities of ViscoresistiveMHD
Documentation changes:
None
Other
Formated struphy/models/fluid.py