--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/72d8e238-9b24-4142-87eb-da558028faa0n%40googlegroups.com.
# Parameters
Lr, Ly = (4., 2*np.pi)
Prandtl = 1.
Rayleigh = 1e6
# Create bases and domain
theta_basis = de.Fourier('theta', 64, interval=(0, Ltheta), dealias=3/2)
r_basis = de.Chebyshev('r', 64, interval=(0, Lr), dealias=3/2)
domain = de.Domain([r_basis, theta_basis], grid_dtype=np.float64)
# 2D Dynamics
problem = de.IVP(domain, variables=['psi','u','v','T0','dT0','w','dw','N','u0','du0'])
problem.parameters['P'] = (Rayleigh * Prandtl)**(-1/2)
problem.parameters['R'] = (Rayleigh / Prandtl)**(-1/2)
problem.parameters['F'] = F = 1
problem.parameters['E'] = E = 1
problem.parameters['L'] = L = 1
problem.parameters['Tm'] = Tm = 1
problem.add_equation("r**2*dt(w) - r*w - r**2*dr(dw) - dtheta(dtheta(w)) - r**2*R*dtheta(T0) = -r**2*u*dr(w) - r*v*dtheta(w)")
problem.add_equation("r**2*dt(u0) + r**2*N + r**2*E**(-0.5)/L*u0 + u0 - r*dr(u0) - r**2*dr(du0) - dtheta(dtheta(u0)) = 0 ")
problem.add_equation("r**2*dt(T0) - P**(-1)*r*dr(T0) - P**(-1)*r**2*dr(dT0) - P**(-1)*dtheta(dtheta(T0)) = -r**2*u*dr(T0) - r*v*dtheta(T0)")
problem.add_equation("du0 - dr(u0) = 0")
problem.add_equation("dT0 - dr(T0) = 0")
problem.add_equation("dw - dr(w) = 0")
problem.add_equation("r*w - r*dr(v) - v + dtheta(u) = 0")
problem.add_equation("v - u0 + dr(psi) = 0")
problem.add_equation("r*N = r*u*dr(v) + v*dtheta(v) + u*v", condition = "(ntheta == 0)")
problem.add_equation("r*u - dtheta(psi) = 0")
problem.add_bc("right(psi) = 0")
problem.add_bc("right(dr(psi)) = 0")
problem.add_bc("right(u0) = 0")
problem.add_bc("left(u0) = 0")
Antonin
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/ced57639-81fe-4953-bbed-1cbb5ba45eabn%40googlegroups.com.