Skip to content
Snippets Groups Projects
Commit 83d9bf86 authored by Martin Bauer's avatar Martin Bauer Committed by Martin Bauer
Browse files

lbmpy: improved boundary setup + testcase for pressure driven channel

parent 83e87342
No related merge requests found
......@@ -47,6 +47,10 @@ def normalizeSlice(slices, sizes):
return tuple(result)
def shiftSlice(slices, offset):
return [slice(k.start+offset, k.stop + offset, k.step) for k in slices]
def sliceFromDirection(directionName, dim, normalOffset=0, tangentialOffset=0):
"""
Create a slice from a direction named by compass scheme:
......
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