I would like to plot the solutions to the system of ODEs that is written below:
smax = -0.668;
t = Flatten@Table[0.2 + i, {i, 0, 1, 1.5}]
Sol = NDSolveValue[{F'[s] == dF[s], Δ0'[s] == dΔ0[s]*Dsonic[s],
R'[s] == Dsonic[s], F[0] == #, Δ0[0] == Δinit,
R[0] == Rinit}, {F, Δ0, R}, {s, 0, smax}] & /@ t
Plot[Evaluate@Through[Sol[s]], {s, 0, smax}, PlotRange -> All]
Plot[{#[s]}, {s, 0, smax}, PlotRange -> All] & /@ Sol
The NDSolve
works but iIcan't plot it with what I have written.
I would like to plot F[s] over R[s].
I haven't included the odes in the code because are a bit lengthy.
I can include a script if it is necessary.
Sol
— avoid starting with capitals, by the way — is a list of a list. You need to access its parts properly. For instancePlot[Through[#[s]], {s, 0, smax}, PlotRange -> All] & /@ Sol
. Not sure what you really want. Sounds to me like this:ParametricPlot[Evaluate[{#[[3]][s], #[[1]][s]} & /@ Sol], {s, 0, smax}, PlotRange -> All]
$\endgroup$Show[plot1,plot2]
withplot1
being what @MichaelE2 suggested andplot2=Plot[G[s],{s,0,max},PlotRange->All]
$\endgroup$