Coupled system of 1st order PDEs

  • Context: Graduate 
  • Thread starter Thread starter hunt_mat
  • Start date Start date
  • Tags Tags
    Coupled Pdes System
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
0 replies · 2K views
Messages
1,816
Reaction score
33
I have the following system of first order PDEs
[tex] \begin{array}{rcl}<br /> \frac{\partial v}{\partial t}+v\frac{\partial v}{\partial x} & = & -\varepsilon\gamma^{-3}(v)E \\<br /> \frac{\partial n}{\partial t}+\frac{\partial}{\partial x}(nv) & = & 0 \\<br /> \frac{\partial E}{\partial t}+E & = & nv<br /> \end{array}[/tex]
With inital conditions [itex]v(t,0)=\beta_{0},n(0,x)=1,E(x/\beta_{0},x)=0[/itex]. Now it is possible to solve for E explicitly to obtain:
[tex] E(t,x)=\int_{\frac{x}{\beta_{0}}}^{t}e^{s-t}n(s,x)v(s,x)ds[/tex]
Now I have decided to solve this system numerically using a predictor corrector method for v and n and the solution above to find E. Now I have got the predictor-corrector to work (such that it gives no errors when I run it) but I am having a little trouble coding up the integral for E, can anyone suggest something? I am working in MATLAB.

Cheers

Mat