I could not find any definitive description in PDE toolbox documentation. However, by trial and error I found that a function defined in a separate script file can be made to work. Write the initial condition function, say uic(), with inputs x and y, and return value equal to the desired u0 array. Then, in the solver parameter dialog box for u0, include the function name in quotes, i.e. 'uic(x,y)' and select OK. That's all.
pde toolbox - setting initial conditions
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Graham W Griffiths
il 17 Ott 2017
Commentato: NGENDAHAYO Jean Pierre
il 25 Ago 2022
How to apply a script to set initial conditions in 'solve parameters' dialog box when using PDE Modeler. The problem is a 2D hyperbolic PDE with two intersecting geometric areas.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su PDE Solvers in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!