Skip to content
Snippets Groups Projects
Commit efcbd7fc authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Actually make D3Q15 orthogonal

parent adefba32
Branches
Tags
1 merge request!15Fluctuating MRT: requires weighted-orthogonal method
Pipeline #19940 passed with stage
in 8 minutes and 34 seconds
......@@ -396,7 +396,7 @@ def create_mrt_orthogonal(stencil, relaxation_rate_getter=None, maxwellian_momen
nested_moments = [
[one, x, y, z], # [0, 3, 5, 7]
[sq - 1], # [1]
[3 * sq ** 2 - 6 * sq + 1], # [2]
[3 * sq ** 2 - 9 * sq + 4], # [2]
[(3 * sq - 5) * x, (3 * sq - 5) * y, (3 * sq - 5) * z], # [4, 6, 8]
[3 * x ** 2 - sq, y ** 2 - z ** 2, x * y, y * z, x * z], # [9, 10, 11, 12, 13]
[x * y * z]
......
......@@ -72,6 +72,9 @@ def test_mrt_orthogonal():
m = create_mrt_orthogonal(get_stencil("D2Q9"), maxwellian_moments=True)
assert m.is_orthogonal
m = create_mrt_orthogonal(get_stencil("D3Q15"), maxwellian_moments=True)
assert m.is_weighted_orthogonal
m = create_mrt_orthogonal(get_stencil("D3Q19"), maxwellian_moments=True)
assert m.is_weighted_orthogonal
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment