In [2]:
%matplotlib inline
In [3]:
import optoanalysis.sde_solver as sde_solver
In [4]:
import numpy as np
import matplotlib.pyplot as plt
In [5]:
Gamma0 = 4000 # radians/second
Omega0 = 75e3*2*np.pi # radians/second
eta = 0.0
T_0 = 300 # K
m = 3.1e-19 # KG
In [6]:
sim1 = sde_solver.sde_solver(Omega0, Gamma0, m, seed=88, TimeTuple=[0, 100e-6])
In [7]:
sim1.solve()
Out[7]:
In [8]:
%timeit sim1.solve();
In [9]:
plt.plot(sim1.tArray*1e6, sim1.q)
plt.xlabel("t (us)")
plt.ylabel("q")
Out[9]:
In [10]:
plt.plot(sim1.tArray*1e6, sim1.v)
plt.xlabel("t (us)")
plt.ylabel("v")
Out[10]:
In [ ]: