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.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
- class fluidsim.solvers.sw1l.init_fields.InitFieldsSW1L(sim)[source]
Bases:
InitFieldsBase
Init the fields for the solver SW1L.
Classes
|
|
|
Init the fields for the solver SW1L. |
|
Initializes the vorticity field with n_vort^2 Gaussian vortices in a square grid. |
|