non linear partial diferential equation
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello
I need to insert this equation in MATLAB
would you please help me. I have no Idea
It may similar to heat equation, but there are some extra terms which I do not know how to deal with.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597921/image.png)
1 commentaire
Xianglin
le 23 Jan 2024
Déplacé(e) : Dyuman Joshi
le 24 Jan 2024
May I ask which term you do not know how to deal with?
Réponse acceptée
Torsten
le 24 Jan 2024
Déplacé(e) : Torsten
le 24 Jan 2024
I don't see a similarity to the heat equation.
You will have to discretize the left-hand side of the equation and use ode15s to solve for H in the grid points in X-direction.
Look up "method-of-lines" for more details.
"sign" is "sign" in MATLAB and "absolute value" is "abs" in MATLAB.
2 commentaires
Torsten
le 25 Jan 2024
Modifié(e) : Torsten
le 25 Jan 2024
I don't know which discretization is optimal in your case, but you could consider approximating
d/dx (H * ( sqrt(1+4*N*abs(dH/dx)) - 1) ) @ X(i) as
{[H * ( sqrt(1+4*N*abs(dH/dx)) - 1)] @ X(i+1/2) - [H * ( sqrt(1+4*N*abs(dH/dx)) - 1)] @X(i-1/2)} / ( X(i+1/2)-X(i-1/2) ) ~
{[(H(i+1)+H(i))/2 * (sqrt(1+4*N*abs((H(i+1)-H(i))/(X(i+1)-X(i))))-1)] - ...
[(H(i)+H(i-1))/2 * (sqrt(1+4*N*abs((H(i)-H(i-1))/(X(i)-X(i-1))))-1)]} / ( X(i+1/2)-X(i-1/2) )
where
X(i+1/2) = (X(i+1)+X(i))/2
X(i-1/2) = (X(i)+X(i-1))/
and assuming that N is a constant.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!