Modifications for general waveform

This commit is contained in:
seogi_macbook
2016-01-12 18:52:39 -08:00
parent cdf0ebf8d0
commit 32f3ef301a
3 changed files with 34 additions and 8 deletions
+8
View File
@@ -158,6 +158,9 @@ class BaseProblem(object):
class BaseTimeProblem(BaseProblem):
"""Sets up that basic needs of a time domain problem."""
waveformType = "STEPOFF"
current = None
@property
def timeSteps(self):
@@ -184,6 +187,11 @@ class BaseTimeProblem(BaseProblem):
self._timeSteps = Utils.meshTensor(value)
del self.timeMesh
def currentwaveform(self, wave):
self._timeSteps = np.diff(wave[:,0])
self.current = wave[:,1]
self.waveformType = "GENERAL"
@property
def nT(self):
"Number of time steps."