pylbm.algorithm.PullAlgorithm

class pylbm.algorithm.PullAlgorithm(scheme, sorder, generator, settings=None)

Methods

call_function(self, function_name, simulation)

Call the generated function.

equilibrium(self)

Return the code expression which computes the equilibrium on the whole domain.

equilibrium_local(self, m)

Return symbolic expression which computes the equilibrium.

f2m(self)

Return the code expression which computes the moments from the distributed functions on the whole domain.

f2m_local(self, f, m[, with_rel_velocity])

Return symbolic expression which computes the moments from the distributed functions.

generate(self)

Define the routines which must be generate by code generator of SymPy for a given generator.

m2f(self)

Return the code expression which computes the distributed functions from the moments on the whole domain.

m2f_local(self, m, f[, with_rel_velocity])

Return symbolic expression which computes the distributed functions from the moments.

one_time_step(self)

Return the code expression which makes one time step of LBM algorithm on the whole inner domain.

one_time_step_local(self, f, fnew, m)

Return symbolic expression which makes one time step of LBM algorithm using the pull algorithm.

relaxation(self)

Return the code expression which computes the relaxation on the whole domain.

relaxation_local(self, m[, with_rel_velocity])

Return symbolic expression which computes the relaxation operator.

source_term(self)

Return the code expression which computes the source terms on the whole inner domain.

source_term_local(self, m)

Return symbolic expression which computes the source term using explicit Euler (should be more flexible in a near future).

transport(self)

Return the code expression of the lbm transport on the whole inner domain.

transport_local(self, f, fnew)

Return the symbolic expression of the lbm transport.

coords

relative_velocity

restore_conserved_moments