fluidsim.solvers.ad1d.solver

AD1D solver (fluidsim.solvers.ad1d.solver)

Provides:

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

Bases: fluidsim.base.solvers.base.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(self, state_phys=None, old=None)[source]

Compute the “nonlinear” tendencies.

linear_operator(self)[source]

Compute the linear operator as a matrix.

Classes

InfoSolverAD1D(**kargs)

Simul(params)

Advection-diffusion solver 1D.