Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relaxation for dissipative semidiscretizations #46

Open
JoshuaLampert opened this issue Sep 24, 2023 · 1 comment
Open

Relaxation for dissipative semidiscretizations #46

JoshuaLampert opened this issue Sep 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@JoshuaLampert
Copy link
Owner

To date, the RelaxationCallback only conserves the given quantity. It is also possible to preserve dissipative semidiscretizations via relaxation.

@JoshuaLampert JoshuaLampert added the enhancement New feature or request label Sep 24, 2023
@JoshuaLampert
Copy link
Owner Author

Instead of solving

$$ r(\gamma) = J(u_\gamma^{n + 1}) - J(u^n) = 0 $$

for $\gamma$, for explicit Runge-Kutta methods we need to solve

$$ r(\gamma) = J(u_\gamma^{n + 1}) - J(u^n) - \gamma\Delta t\sum_{i = 1}^sb_iJ^\prime(y_i)\cdot k_i = 0 $$

for $\gamma$. This requires the values $b_i$ from the Butcher tableau (can be obtained from deduce_Butcher_tableau), the stages $k_i$ (obtained from integrator.k) and the definition of entropy_variables returning $J^\prime$ (alternatively, use AD?). The values

$$y_i = u^n + \Delta t\sum_{j = 1}^sa_{ij}k_j$$

need to be computed again as OrdinaryDiffEq.jl does not save them. Again, $a_{ij}$ are from deduce_Butcher_tableau.

The user could then add a parameter conservation to RelaxationCallback that specifies if the quantity should be conserved or dissipated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant