I am a 2nd yr student of IISER Kolkata, India and I am trying to learn this as an intern in IIT Kharagpur, India.
1. u['g']=? , how it is defined , why taking any arbitrary function, what is the concept.
In periodic shear 2D (IVP) example
# Initial conditions
# Background shear
u['g'][0] = 1/2 + 1/2 * (np.tanh((z-0.5)/0.1) - np.tanh((z+0.5)/0.1))
# Match tracer to shear
s['g'] = u['g'][0]
# Add small vertical velocity perturbations localized to the shear layers
u['g'][1] += 0.1 * np.sin(2*np.pi*x/Lx) * np.exp(-(z-0.5)**2/0.01)
u['g'][1] += 0.1 * np.sin(2*np.pi*x/Lx) * np.exp(-(z+0.5)**2/0.01)
2. tau method,
first i thought it is to impose the condition then, i saw some examples where it is using even when no condition is needed to impose on the equation. also don't get the below red marked lines.
# Tau polynomials
tau_basis = xbasis.derivative_basis(2)
p1 = dist.Field(bases=tau_basis)
p2 = dist.Field(bases=tau_basis)
p1['c'][-1] = 1
p2['c'][-2] = 2
If someone can provide me some material or video lec. it will be really beneficial, i have already gone through the tutorial and example section of the dedalus.
Best,
- Ritik