class SimulationExperiment: def __init__(self): self.model = EulerSubsystemTest("EulSub") self.simulator = CBDsimulator(self.model) def run(self, num_steps=10): # one step = {NOW} for i in range(num_steps): self.simulator.step() def dumpModel(self): self.model.dump() def dumpSignals(self): self.model.dumpSignals() def showScopes(self,t): self.model.showScopes(t)
def __init__(self): self.model = EulerSubsystemTest("EulSub") self.simulator = CBDsimulator(self.model)