Skip to content
Snippets Groups Projects

Cumulant LBM

Merged Frederik Hennig requested to merge da15siwa/lbmpy:mr_cumulant_lbm into master
Viewing commit d5d2e8c9
Show latest version
3 files
+ 14
22
Preferences
Compare changes
Files
3
@@ -119,7 +119,7 @@ def relax_polynomial_cumulants(monomial_exponents, polynomials, relaxation_rates
class CenteredCumulantBasedLbMethod(AbstractLbMethod):
def __init__(self, stencil, cumulant_to_relaxation_info_dict, conserved_quantity_computation, force_model,
def __init__(self, stencil, cumulant_to_relaxation_info_dict, conserved_quantity_computation, force_model=None,
galilean_correction=False,
central_moment_transform_class=PdfsToCentralMomentsByMatrix,
cumulant_transform_class=CentralMomentsToCumulantsByGeneratingFunc):
@@ -363,8 +363,7 @@ class CenteredCumulantBasedLbMethod(AbstractLbMethod):
# 8) Maybe add forcing terms if CenteredCumulantForceModel was not used
if self._force_model is not None and \
not isinstance(self._force_model, CenteredCumulantForceModel) and \
include_force_terms:
not isinstance(self._force_model, CenteredCumulantForceModel) and include_force_terms:
force_model_terms = self._force_model(self)
force_term_symbols = sp.symbols("forceTerm_:%d" % (len(force_model_terms,)))
force_subexpressions = [Assignment(sym, force_model_term)