Skip to content
Snippets Groups Projects

add DiffusionDirichlet boundary condition

Merged Daniel Bauer requested to merge he66coqe/lbmpy:bc-diffusion-dirichlet into master
Viewing commit d3e266d6
Show latest version
1 file
+ 6
4
Preferences
Compare changes
@@ -79,6 +79,11 @@ class LbBoundary:
@@ -79,6 +79,11 @@ class LbBoundary:
def name(self, new_value):
def name(self, new_value):
self._name = new_value
self._name = new_value
 
def __eq__(self, other):
 
if isinstance(other, type(self)):
 
return self.__dict__ == other.__dict__
 
return False
 
# end class Boundary
# end class Boundary
@@ -98,10 +103,7 @@ class NoSlip(LbBoundary):
@@ -98,10 +103,7 @@ class NoSlip(LbBoundary):
def __call__(self, f_out, f_in, dir_symbol, inv_dir, lb_method, index_field):
def __call__(self, f_out, f_in, dir_symbol, inv_dir, lb_method, index_field):
return Assignment(f_in(inv_dir[dir_symbol]), f_out(dir_symbol))
return Assignment(f_in(inv_dir[dir_symbol]), f_out(dir_symbol))
def __hash__(self):
return hash(self.name)
# end class NoSlip
# end class NoSlip