pylbm.storage.AOS

class pylbm.storage.AOS(nv, gspace_size, vmax, mpi_topo, dtype=<class 'numpy.float64'>, gpu_support=False)

This class defines an array of structures to store the unknowns of the lattice Boltzmann schemes.

Parameters:
nv: int

number of velocities

gspace_size: list

number of points in each direction including the fictitious point

vmax: list

the size of the fictitious points in each direction

mpi_topo: MpiTopology

the mpi topology

dtype: type

the type of the array. Default is numpy.double

gpu_support: bool

True if GPU is needed

Attributes:
array
nspace

the space size.

nv

the number of velocities.

shape

the shape of the array that stores the data.

size

the size of the array that stores the data.

Methods

generate(generator)

generate periodic conditions functions for loo.py backend.

reshape()

set_conserved_moments(consm)

add conserved moments information to have a direct access.

update()

update ghost points on the interface with the datas of the neighbors.

Attributes

nspace

the space size.

nv

the number of velocities.

shape

the shape of the array that stores the data.

size

the size of the array that stores the data.