Skip to content
Snippets Groups Projects
Commit 7cf77c24 authored by Girish Kumatagi's avatar Girish Kumatagi
Browse files

Merge branch 'FixFreeSlip' into 'master'

[BugFix] FreeSlip

See merge request walberla/walberla!649
parents 262aba0e ef235a56
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ class FreeSlipAdditionalDataHandler(AdditionalDataHandler): ...@@ -76,7 +76,7 @@ class FreeSlipAdditionalDataHandler(AdditionalDataHandler):
f" element.wnx = {inv_offset[0]};", f" element.wnx = {inv_offset[0]};",
f" element.wny = {inv_offset[1]};", f" element.wny = {inv_offset[1]};",
f" element.wnz = {inv_offset[2]};", f" element.wnz = {inv_offset[2]};",
f" ref_dir = {direction};", f" ref_dir = {self._walberla_stencil.index(inv_offset)};",
"}"] "}"]
elif self._dim == 2: elif self._dim == 2:
init_list += ["// concave corner (neighbors are non-fluid)", init_list += ["// concave corner (neighbors are non-fluid)",
...@@ -84,7 +84,7 @@ class FreeSlipAdditionalDataHandler(AdditionalDataHandler): ...@@ -84,7 +84,7 @@ class FreeSlipAdditionalDataHandler(AdditionalDataHandler):
"{", "{",
f" element.wnx = {inv_offset[0]};", f" element.wnx = {inv_offset[0]};",
f" element.wny = {inv_offset[1]};", f" element.wny = {inv_offset[1]};",
f" ref_dir = {direction};", f" ref_dir = {self._walberla_stencil.index(inv_offset)};",
"}"] "}"]
init_list.append("element.ref_dir = ref_dir;") init_list.append("element.ref_dir = ref_dir;")
......
...@@ -14,7 +14,7 @@ import sympy as sp ...@@ -14,7 +14,7 @@ import sympy as sp
with CodeGeneration() as ctx: with CodeGeneration() as ctx:
data_type = "float64" if ctx.double_accuracy else "float32" data_type = "float64" if ctx.double_accuracy else "float32"
stencil = LBStencil(Stencil.D3Q19) stencil = LBStencil(Stencil.D3Q27)
pdfs, pdfs_tmp = fields(f"pdfs({stencil.Q}), pdfs_tmp({stencil.Q}): {data_type}[{stencil.D}D]", pdfs, pdfs_tmp = fields(f"pdfs({stencil.Q}), pdfs_tmp({stencil.Q}): {data_type}[{stencil.D}D]",
layout='fzyx') layout='fzyx')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment