Skip to content
Snippets Groups Projects
Commit 160123f5 authored by Martin Bauer's avatar Martin Bauer
Browse files

More flexible boundary handling

boundary conditions can specify how the index list should be built:
- list coordinates of domain or boundary cells (previous always inner)
- list all links or only the first link
parent cfc49be0
No related merge requests found
......@@ -10,6 +10,9 @@ from lbmpy.boundaries.boundaryhandling import BoundaryOffsetInfo, LbmWeightInfo
class Boundary:
"""Base class all boundaries should derive from"""
inner_or_boundary = True
single_link = False
def __init__(self, name=None):
self._name = name
......@@ -77,7 +80,6 @@ class NoSlip(Boundary):
class UBB(Boundary):
"""Velocity bounce back boundary condition, enforcing specified velocity at obstacle"""
def __init__(self, velocity, adapt_velocity_to_force=False, dim=None, name=None):
......
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