Skip to main content
Tweeted twitter.com/StackSciComp/status/1430726784111218694
deleted 81 characters in body
Source Link
Linda
  • 43
  • 4

$\phi(0)_{M = 2.55} = 0.023$, $\phi(10)_{M = 2.55} = 0$
$\phi(0)_{M = 2.57} = 0.037$, $\phi(12)_{M = 2.57} = 0$
$\phi(0)_{M = 2.55} = 0.046$, $\phi(14)_{M = 2.59} = 0$

$\phi(0)_{M = 2.55} = 0.023$, $\phi(10)_{M = 2.55} = 0$
$\phi(0)_{M = 2.57} = 0.037$, $\phi(12)_{M = 2.57} = 0$
$\phi(0)_{M = 2.55} = 0.046$, $\phi(14)_{M = 2.59} = 0$

$\phi(0)_{M = 2.55} = 0.023$
$\phi(0)_{M = 2.57} = 0.037$
$\phi(0)_{M = 2.55} = 0.046$

deleted 3 characters in body; edited title
Source Link
Anton Menshov
  • 8.7k
  • 7
  • 41
  • 94

How to solve the intergalintegral-like energy equation with Sagdeev potential numerically in Python? (Updated)

In the code below, I first define a function for the first order-order differential equation. Then, set boundary conditions for each mach number, $M$, and finally, I use odeint from the scipy.integrate module in Python to solve the boundary value problem. The plot of the solutions is shown in the last figure.

OuputOutput:

How to solve the intergal-like energy equation with Sagdeev potential numerically in Python? (Updated)

In the code below, I first define a function for the first order differential equation. Then, set boundary conditions for each mach number, $M$, and finally, I use odeint from the scipy.integrate module in Python to solve the boundary value problem. The plot of the solutions is shown in the last figure.

Ouput:

How to solve the integral-like energy equation with Sagdeev potential numerically in Python?

In the code below, I first define a function for the first-order differential equation. Then, set boundary conditions for each mach number, $M$, and finally, I use odeint from the scipy.integrate module in Python to solve the boundary value problem. The plot of the solutions is shown in the last figure.

Output:

added 16 characters in body
Source Link
Linda
  • 43
  • 4

$\phi(0)_{M = 2.55} = \phi_{0, M = 2.55} = 0.023$$\phi(0)_{M = 2.55} = 0.023$, $\phi(10)_{M = 2.55} = 0$
$\phi(0)_{M = 2.57} = \phi_{0, M = 2.57} = 0.037$$\phi(0)_{M = 2.57} = 0.037$, $\phi(12)_{M = 2.57} = 0$
$\phi(0)_{M = 2.59} = \phi_{0, M = 2.59} = 0.046$$\phi(0)_{M = 2.55} = 0.046$, $\phi(14)_{M = 2.59} = 0$

$\phi(0)_{M = 2.55} = \phi_{0, M = 2.55} = 0.023$
$\phi(0)_{M = 2.57} = \phi_{0, M = 2.57} = 0.037$
$\phi(0)_{M = 2.59} = \phi_{0, M = 2.59} = 0.046$

$\phi(0)_{M = 2.55} = 0.023$, $\phi(10)_{M = 2.55} = 0$
$\phi(0)_{M = 2.57} = 0.037$, $\phi(12)_{M = 2.57} = 0$
$\phi(0)_{M = 2.55} = 0.046$, $\phi(14)_{M = 2.59} = 0$

added 384 characters in body; edited title
Source Link
Linda
  • 43
  • 4
Loading
added 88 characters in body; edited tags
Source Link
nicoguaro
  • 8.6k
  • 6
  • 26
  • 51
Loading
added 240 characters in body
Source Link
Linda
  • 43
  • 4
Loading
Source Link
Linda
  • 43
  • 4
Loading