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

Fokker-Planck equation #497

Open
ignace-computing opened this issue Mar 25, 2021 · 1 comment
Open

Fokker-Planck equation #497

ignace-computing opened this issue Mar 25, 2021 · 1 comment

Comments

@ignace-computing
Copy link

Hello.
Could someone please comment on the ease of using Trixi for the simulation of a multidimensional Fokker-Planck equation (for particle distributions)? In essence, I want to simulate an advection-diffusion equation with a nonconstant advection coefficient.
Thank you!
PS: sorry if this is not the right place for such questions.

@sloede
Copy link
Member

sloede commented Mar 27, 2021

PS: sorry if this is not the right place for such questions.

Hi @ignace-computing! Thank you for this issue - this is exactly the right place for such questions!

TL;DR

I am sorry to say this, but at the moment, advection-diffusion problems with variable advection coefficients are not supported in Trixi.

Longer explanation

Let me split your question into two separate issues:

  • support for advection-diffusion equations
  • support for variable coefficients

Support for advection-diffusion equations

At the moment we only support purely hyperbolic problems, thus with the current Trixi release it is not possible to simulate advection-diffusion problems out of the box. There is an open PR (#378), which will hopefully be merged soon (~April), that will add support for parabolic and hyperbolic-parabolic problems. However, the initial implementation is going to be very experimental and not fully thought out, so I'd not yet depend on it for longer-term projects.

Variable coefficient problems

Right now, we have no first-class support for variable coefficient problems in Trixi. Having said that, we do have an equation system AcousticPerturbationEquations2D that uses variable coefficients by storing them as extra state variables that are ignored during the time step evolution. It is not the most efficient approach, but it is easy to set up and it works. We have some ideas how to add proper support for variable coefficients, which is tracked in #358 (see specifically #358 (comment)), but there is no timeline on when this will be tackled yet. To conclude, I'd say you can have variable coefficients in Trixi, if you are willing to accept a certain amount of ugliness in the implementation :-)

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

No branches or pull requests

2 participants