2

I have used the (amazing) work done by @xzczd

In this question: How to solve a system of PDEs with zip condition?

in order to solve a similar problem. I ran into a problem to define S(0)=0 (same as in the attacked question). when i plot S(t) Vs time i see that in both my case and the example mentioned S(0) starts at x=1. Is there a way to change it to S(0)=0? Thanks, Ofek.

Ofek Peretz
  • 397
  • 1
  • 8
  • Oh that's because I forgot to add the $S(0)=0$ to the discretized system so NDSolve has automatically chosen $S(0)=1$. Now the code has been revised. Thanks for pointing out. – xzczd Oct 26 '18 at 11:34
  • Thanks again for your time and effort, the codes you wrote made so much help for me. – Ofek Peretz Oct 29 '18 at 16:31

0 Answers0