pylbm.algorithm.BaseAlgorithm.one_time_step_local

method

BaseAlgorithm.one_time_step_local(f, fnew, m)

Return symbolic expression which makes one time step of LBM algorithm:

  • transport

  • compute the moments from the distributed functions

  • source terms with dt/2 (with the moments)

  • relaxation (with the moments)

  • source terms with dt/2 (with the moments)

  • compute the new distributed functions from the moments

Parameters:
fSymPy Matrix

indexed objects for the old distributed functions

fnewSymPy Matrix

indexed objects for the new distributed functions

mSymPy Matrix

indexed objects for the moments