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

Heat equation with nonconstant coefficient #9

Open
ignace-computing opened this issue May 28, 2021 · 3 comments
Open

Heat equation with nonconstant coefficient #9

ignace-computing opened this issue May 28, 2021 · 3 comments

Comments

@ignace-computing
Copy link

ignace-computing commented May 28, 2021

Hello.
Do you currently have support for the heat equation with non-constant coefficients?

$$\frac{\partial u}{\partial t} = \frac{\partial}{\partial x} \left( k(x) \frac{\partial u}{\partial x} \right),$$

or, alternatively,

$$\frac{\partial u}{\partial t} =\frac{\partial^2}{\partial x^2} \left( k(x) u \right),$$

where u(x,t) is the solution and k(x) is the variable coefficient.

Thank you for considering this question.

@dlfivefifty
Copy link
Member

I believe that works fine

@ignace-computing
Copy link
Author

Great. Could you please give me some hints (to an example?), to show how this is possible?
Thanks!

@dlfivefifty
Copy link
Member

Pretty straight forward if you look at

https://github.com/JuliaApproximation/ApproxFunExamples/blob/master/PDEs/Rectangle%20PDEs.ipynb

Check out for example the convection example. Using an operator like Dt-Dx*(k*Dx) should work

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