Skip to content
Snippets Groups Projects
Commit 2ff05c44 authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

periodic jet initialization

parent 1671b4b4
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ def init_phi(data, coords, L):
Di = np.empty_like(phi)
X,Y = coords
Ly, Lx = L
R = Lx/16*(2.5 - 0.75*np.sin(2*np.pi*Y))
R = Lx*(0.15 - 0.05*np.sin(2*np.pi*Y))
Di[...] = (X-0.5*Lx)**2 - R**2
mask = (np.abs(Di)<np.abs(phi))
phi[mask] = Di[mask]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment