BC: Edit: Add X and Y column name for not defined bc type.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-05-09 15:40:27 +02:00
1 parent 0546b304be
commit e987962510
4 files changed
+15 -5

No files matched your search

@@ -13,7 +13,7 @@ class BoundaryCondition(object):
self._node = None
self._data = []
self._header = []
self._types = [int, float]
self._types = [float, float]
def __len__(self):
return len(self._data)
@@ -10,7 +10,11 @@ class NotDefined(BoundaryCondition):
super(NotDefined, self).__init__(name=name)
self._type = "ND"
self._header = ["", ""]
self._header = ["x", "y"]
@property
def _default_0(self):
return 0.0
class PonctualContribution(BoundaryCondition):
def __init__(self, name:str = ""):
@@ -18,6 +22,7 @@ class PonctualContribution(BoundaryCondition):
self._type = "PC"
self._header = ["time", "debit"]
self._types = [int, float]
@classmethod
def compatibility(cls):
@@ -29,6 +34,7 @@ class TimeOverZ(BoundaryCondition):
self._type = "TZ"
self._header = ["time", "z"]
self._types = [int, float]
@classmethod
def compatibility(cls):
@@ -40,6 +46,7 @@ class TimeOverDebit(BoundaryCondition):
self._type = "TD"
self._header = ["time", "debit"]
self._types = [int, float]
@classmethod
def compatibility(cls):