Implemented proper boundary conditions handling

This commit is contained in:
André R. Brodtkorb
2018-11-08 22:07:31 +01:00
parent fd337e7d53
commit bdf7b4292c
5 changed files with 401229 additions and 456 deletions

View File

@@ -66,6 +66,12 @@ class BoundaryCondition(object):
self.south = types['south']
self.east = types['east']
self.west = types['west']
if (self.north == BoundaryCondition.Type.Neumann \
or self.south == BoundaryCondition.Type.Neumann \
or self.east == BoundaryCondition.Type.Neumann \
or self.west == BoundaryCondition.Type.Neumann):
raise(NotImplementedError("Neumann boundary condition not supported"))
def asCodedInt(self):
@@ -87,6 +93,9 @@ class BoundaryCondition(object):
class BaseSimulator(object):
def __init__(self, \