trixi-framework / trixi-framework/Trixi.jl

Initial condition for parabolic terms requires defining `diffusivity` as global function

Open
#1,503 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
731
Forks
166
Avg merge
2d 18h
Merged PRs (30d)
25

Description

Yeah, this is one of the open issues with parabolic terms in Trixi.jl.

The initial condition (and thus the analysis routines) dispatch on the hyperbolic equation type. However, this makes it impossible to pass in parabolic parameters. Thus, if the exact solution is stored in the `initial_condition` but depends on parabolic parameters we can't access them. As a workaround, we create a global `diffusivity() = ...` function that can be called from within `initial_condition`.

I tried working around this in https://github.com/trixi-framework/Trixi.jl/pull/1160 by introducing a combined equation type, but it was a bit messy.

_Originally posted by @jlchan in https://github.com/trixi-framework/Trixi.jl/pull/1490#discussion_r1213212418_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.