Skip to content
Snippets Groups Projects

Schiller force model to be used instead of Guo on non-SRT

Merged Michael Kuron requested to merge schiller into master
+ 1
2
@@ -80,7 +80,7 @@ def test_total_momentum(method, force_model, omega):
assert np.allclose(total/np.prod(L)/F/t, 1)
@pytest.mark.parametrize("stencil", ["D2Q9", "D3Q19", "D3Q27"])
@pytest.mark.parametrize("stencil", ["D2Q9", "D3Q15", "D3Q19", "D3Q27"])
def test_stress(stencil):
"""check Schiller's force term in mode space"""
stencil = get_stencil(stencil)
@@ -119,7 +119,6 @@ def test_stress(stencil):
for i in range(dim) for j in range(dim)}
for force_moment, moment in zip(force_moments[dim+1:dim+1+num_stresses],
method.moments[dim+1:dim+1+num_stresses]):
print(moment)
ref = moment.subs(subs)
diff = sp.simplify(ref - force_moment)
assert diff == 0 or isinstance(diff, sp.Rational) # difference should be zero or a constant