Commit 32e796ff authored by Frederik Hennig's avatar Frederik Hennig
Browse files

removed duplicate code

parent fb03ba0c
Pipeline #27678 waiting for manual action with stage
in 24 minutes and 8 seconds
......@@ -264,10 +264,7 @@ class StreamInConstant(LbBoundary):
# ------------------------- Old, Deprecated Implementation -------------------------
class Boundary:
inner_or_boundary = True
single_link = False
class Boundary(LbBoundary):
def __init__(self, name=None):
from lbmpy.boundaries.boundaryhandling import deprecation_message
......@@ -275,45 +272,4 @@ class Boundary:
self._name = name
def __call__(self, pdf_field, direction_symbol, lb_method, index_field):
This function defines the boundary behavior and must therefore be implemented by all boundaries.
Here the boundary is defined as a list of sympy equations, from which a boundary kernel is generated.
pdf_field: pystencils field describing the pdf. The current cell is cell next to the boundary,
which is influenced by the boundary cell i.e. has a link from the boundary cell to
direction_symbol: a sympy symbol that can be used as index to the pdf_field. It describes
the direction pointing from the fluid to the boundary cell
lb_method: an instance of the LB method used. Use this to adapt the boundary to the method
(e.g. compressibility)
index_field: the boundary index field that can be used to retrieve and update boundary data
:return: list of sympy equations
raise NotImplementedError("Boundary class has to overwrite __call__")
def additional_data(self):
"""Return a list of (name, type) tuples for additional data items required in this boundary
These data items can either be initialized in separate kernel see additional_data_kernel_init or by
Python callbacks - see additional_data_callback """
return []
def additional_data_init_callback(self):
"""Return a callback function called with a boundary data setter object and returning a dict of
data-name to data for each element that should be initialized"""
return None
def name(self):
if self._name:
return self._name
return type(self).__name__
def name(self, new_value):
self._name = new_value
Supports Markdown
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