fluidsim.solvers.sw1l.init_fields

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

Provides:

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

Bases: InitFieldsNoise

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

Bases: SpecificInitFields

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

Bases: 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()[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]

Bases: InitFieldsBase

Init the fields for the solver SW1L.

static _complete_info_solver(info_solver)[source]

Complete the ParamContainer info_solver.

Classes

InitFieldsNoise(sim)

InitFieldsSW1L(sim)

Init the fields for the solver SW1L.

InitFieldsVortexGrid(sim)

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

InitFieldsWave(sim)