From 160123f5f35d8fe5912b65b88bba237d0f5a8b2d Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Wed, 30 Jan 2019 17:16:22 +0100 Subject: [PATCH] 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 --- boundaries/boundaryconditions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/boundaries/boundaryconditions.py b/boundaries/boundaryconditions.py index 4d191275..f451371f 100644 --- a/boundaries/boundaryconditions.py +++ b/boundaries/boundaryconditions.py @@ -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): -- GitLab