Hello all,
sorry for the late update.
So i am able to model the equations and build the pencil matrix with the below specified initial conditions based on the paper Lecoanet et.el (
https://arxiv.org/pdf/1509.03630.pdf). I am using chebyshev grid in the z-axis in contrast to the paper.
I was able to run with what I think are the correct BC and IC. However,
the simulation keeps blowing up after about 10 iterations.
I believe that the simulation becomes unstable after 10 iterations and I tried changing the CFL condition by changing the timestep but it doesn't seem to work I am pasting the IC and BC below:
BC:
problem.add_bc("left(dz(T)) = 0")
problem.add_bc("right(dz(T)) = 0")
problem.add_bc("left(u) = 0.5")
problem.add_bc("right(u) = 0.5")
problem.add_bc("left(w) = 0")
problem.add_bc("right(w) = 0")
problem.add_bc("left(c) = 0")
problem.add_bc("right(c) = 1")
IC: from the paper
z1=0.5
z2=1.5
uflow=1
a=0.05
sigma=0.2
A=0.01
den=0
u['g'] = uflow*(np.tanh((z-z1)/a)-np.tanh((z-z2)/a) -1)
w['g'] = A*np.sin(2*np.pi*x)*(np.exp(-(z-z1)**2/sigma**2) + np.exp(-(z-z2)**2/sigma**2))
Y['g'] = 1+den*0.5*(np.tanh((z-z1)/a) - np.tanh((z-z2)/a))
c['g']=0.5*(np.tanh((z-z2)/a) - np.tanh((z-z1)/a) + 2)
I am attaching the code as well for the reference.
Thanks,
Kesava