fluidsim.solvers.ad1d.solver

AD1D solver (fluidsim.solvers.ad1d.solver)

Provides:

class fluidsim.solvers.ad1d.solver.Simul(params)[source]

Bases: SimulBase

Advection-diffusion solver 1D.

Notes

We use a finite difference method with the Crank-Nicolson time scheme to solve the equation

\[\partial_t s + U \partial_x s = D(s),\]

where \(d(s)\) is the dissipation term and \(U\) is a constant velocity.

InfoSolver

alias of InfoSolverAD1D

static _complete_params_with_default(params)[source]

This static method is used to complete the params container.

tendencies_nonlin(state_phys=None, old=None)[source]

Compute the “nonlinear” tendencies.

linear_operator()[source]

Compute the linear operator as a matrix.

Classes

InfoSolverAD1D([only_root])

Simul(params)

Advection-diffusion solver 1D.