Effacer les filtres
Effacer les filtres

Solving a set of PDEs

5 vues (au cours des 30 derniers jours)
tensorisation
tensorisation le 14 Mar 2016
Commenté : Po-Chien Huang le 2 Août 2020

i need to solve a set of 5 PDEs for functions u(x,t).

i looked up the function pdepe of matlab: http://www.mathworks.com/help/matlab/math/partial-differential-equations.html?refresh=true#f1-697343

it looked perfect for my case, untill i read the line "f(x,t,u,∂u/∂x) is a flux term and s(x,t,u,∂u/∂x) is a source term. The flux term must depend on ∂u/∂x."

in my problem for 4/5 of my equations f(x,t,u,∂u/∂x) doesn't depend on ∂u/∂x, and in 1/5 of my equations f(x,t,u,∂u/∂x)=0. in my equations, theres no second derivative of u with respect to x.

does this mean i can't use pdepe in order to obtain a solution for my problem?

oddly enough, in the link for the pdepe function: http://www.mathworks.com/help/matlab/ref/pdepe.html

that line i mentioned before: "...The flux term must depend on ∂u/∂x." does not there. also, i would expect that since having f(x,t,u,∂u/∂x) that does not depend on ∂u/∂x is just a special case, it wouldn't in any way prevent me from obtaining a solution.

so all in all, i want to know if i can use pdepe even if f(x,t,u,∂u/∂x) does not depend on ∂u/∂x?

if not, what would happen if i try to solve it anyways? and what other method i can use to solve my set of PDEs?

  1 commentaire
Po-Chien Huang
Po-Chien Huang le 2 Août 2020
I think the link below might help you. Because f is treated as a matrix in Matlab, you can try to set only some elements in f to depend of dudx. And of cource you can set the f to be independent of dudx,

Connectez-vous pour commenter.

Réponses (0)

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by