# fluidsim.solvers.models0d.lorenz.solver¶

## Lorenz model solver (fluidsim.solvers.models0d.lorenz.solver)¶

This module provides classes to solve the Lorenz model.

class fluidsim.solvers.models0d.lorenz.solver.InfoSolverLorenz(**kargs)[source]

Bases: fluidsim.base.solvers.info_base.InfoSolverBase

Contain the information on the solver predaprey.

class fluidsim.solvers.models0d.lorenz.solver.Simul(*args, **kargs)[source]

Solve the Lorenz equations.

InfoSolver

alias of InfoSolverLorenz

static _complete_params_with_default(params)[source]

Complete the params container (static method).

tendencies_nonlin(self, state=None, old=None)[source]

Compute the nonlinear tendencies.

Parameters
statefluidsim.base.setofvariables.SetOfVariables

optional

Array containing the state. If state is not None, the variables are computed from it, otherwise, they are taken from the global state of the simulation, self.state.

These two possibilities are used during the Runge-Kutta time-stepping.

Returns
tendenciesfluidsim.base.setofvariables.SetOfVariables

An array containing the tendencies for the variables.

Notes

The Lotka-Volterra equations can be written

$\dot X = \sigma (Y - X), \dot Y = \rho X - Y - XZ. \dot Z = X Y - \beta Z.$
class fluidsim.solvers.models0d.lorenz.solver.StateLorenz(sim, oper=None)[source]
static _complete_info_solver(info_solver)[source]

Complete the info_solver container (static method).

Classes

 InfoSolverLorenz(**kargs) Contain the information on the solver predaprey. Simul(*args, **kargs) Solve the Lorenz equations. StateLorenz(sim[, oper])