# fluidsim.solvers.sw1l.init_fields¶

## Initialisation of the fields (fluidsim.solvers.sw1l.init_fields)¶

Provides:

class fluidsim.solvers.sw1l.init_fields.InitFieldsNoise(sim)[source]
class fluidsim.solvers.sw1l.init_fields.InitFieldsWave(sim)[source]

Bases: fluidsim.base.init_fields.SpecificInitFields

class fluidsim.solvers.sw1l.init_fields.InitFieldsVortexGrid(sim)[source]

Bases: fluidsim.base.init_fields.SpecificInitFields

Initializes the vorticity field with n_vort^2 Gaussian vortices in a square grid.

Vortices are randomly assigned clockwise / anti-clockwise directions; with equal no of vortices for each direction.

Parameters
omega_maxMax vorticity of a single vortex at its center
n_vort :

No. of vortices along one edge of the square grid, should be even integer

sdStandard Deviation of the gaussian, optional

If not specified, follows six-sigma rule based on half vortex spacing

_random_plus_minus_list(self)[source]

Returns a list with of length n_vort^2, with equal number of pluses and minuses.

class fluidsim.solvers.sw1l.init_fields.InitFieldsSW1L(sim)[source]

Init the fields for the solver SW1L.

static _complete_info_solver(info_solver)[source]

Complete the ParamContainer info_solver.

Classes

 Init the fields for the solver SW1L. Initializes the vorticity field with n_vort^2 Gaussian vortices in a square grid.