Skip to content
Snippets Groups Projects
Commit c397b55e authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix Walllaw

parent 0b077f93
No related branches found
No related tags found
No related merge requests found
Pipeline #38627 failed
......@@ -63,6 +63,8 @@ class WallFunctionBounce(LbBoundary):
def __call__(self, f_out, f_in, dir_symbol, inv_dir, lb_method, index_field):
# needed symbols for offsets and indices
neighbor_offset = NeighbourOffsetArrays.neighbour_offset(dir_symbol, lb_method.stencil)
tangential_offset = tuple(offset + normal for offset, normal in zip(neighbor_offset, self.normal_direction))
mirrored_stencil_symbol = MirroredStencilDirections._mirrored_symbol(self.mirror_axis)
mirrored_direction = inv_dir[sp.IndexedBase(mirrored_stencil_symbol, shape=(1,))[dir_symbol]]
......@@ -130,6 +132,6 @@ class WallFunctionBounce(LbBoundary):
neighbor_offset = NeighbourOffsetArrays.neighbour_offset(dir_symbol, lb_method.stencil)
drag = neighbor_offset[0] * factor * tau_w_x + neighbor_offset[2] * factor * tau_w_z
result.append(Assignment(f_in(inv_dir[dir_symbol]), f_in[normal_direction](mirrored_direction) - drag))
result.append(Assignment(f_in.center(inv_dir[dir_symbol]), f_out[tangential_offset](mirrored_direction) - drag))
return result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment