lbm_utils

Functions

compute_grid_parameters(n, N[, verbose])

Compute parameters of the simulation grid.

compute_scheme_velocities(n, m)

Compute velocities along angular directions of lattice scheme.

compute_scheme_adjacencies(n, m, idxs_dir, cs)

Construct matrix indicating angular direction adjacencies.

compute_scheme_boundaries(n, m[, idxs_dir, cs])

Construct lists of directions along each boundary of the simulation grid.

Module Contents

lbm_utils.compute_grid_parameters(n, N, verbose=False)

Compute parameters of the simulation grid.

lbm_utils.compute_scheme_velocities(n, m)

Compute velocities along angular directions of lattice scheme.

lbm_utils.compute_scheme_adjacencies(n, m, idxs_dir, cs)

Construct matrix indicating angular direction adjacencies.

lbm_utils.compute_scheme_boundaries(n, m, idxs_dir=None, cs=None)

Construct lists of directions along each boundary of the simulation grid.

IMPORTANT - Left and right boundary indices are switched because of numpy array indexing (technically these are top and bottom in the numpy array, but we transpose in post-processing).