Skip to content
Snippets Groups Projects

Fixed extraction of common srt eq term

Merged Frederik Hennig requested to merge da15siwa/lbmpy:fix_feqcommon_simplification into master
2 files
+ 24
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -385,10 +385,15 @@ def __get_common_quadratic_and_constant_terms(cr: LbmCollisionRule):
t = t.subs({ft: 0 for ft in sh['force_terms']})
weight = t
weight = weight.subs(sh['density_deviation'], 1)
weight = weight.subs(sh['density'], 1)
for u in sh['velocity']:
weight = weight.subs(u, 0)
weight = weight / sh['density']
# weight = weight / sh['density']
if weight == 0:
return None
# t = t.subs(sh['density_deviation'], 0)
return t / weight
Loading