def __init__(self, Nrr=150., Izz=10., Kt1=0.1, zb=0., Mqq=100., ycp=0., xb=0., zcp=0., Yvv=100., yg=0., Ixx=10., Kt0=0.1, Xuu=1., xg=0., Zww=100., W=15.4*9.81, m=15.4, B=15.4*9.81, zg=0., Kpp=100., Qt1=-0.001, Qt0=0.001, Iyy=10., yb=0., xcp=0.1): # become dynamics model Dynamics.__init__(self) # constant parameters self.Nrr, self.Izz, self.Kt1, self.zb, self.Mqq, self.ycp, self.xb, self.zcp, self.Yvv, self.yg, self.Ixx, self.Kt0, self.Xuu, self.xg, self.Zww, self.W, self.m, self.B, self.zg, self.Kpp, self.Qt1, self.Qt0, self.Iyy, self.yb, self.xcp = Nrr, Izz, Kt1, zb, Mqq, ycp, xb, zcp, Yvv, yg, Ixx, Kt0, Xuu, xg, Zww, W, m, B, zg, Kpp, Qt1, Qt0, Iyy, yb, xcp
def __init__(self, model, noisemodel, state, breakpoints=None): """ May be used when noise is added to a problem, i. e. for stochastic differential equations. All responsibility for handling the stochastics is placed on a "noisemodel" function that is used together with the derivative model normally used by the solver methods of the solvers of the Dynamics and StiffDynamics classes. """ # First take care of what is inherited: Dynamics.__init__(self, model, state, breakpoints) # Then add the separate noise model self.__noisemodel = noisemodel
def __init__(self, model, state, breakpoints=None): """ Basic initialization for the class. Cf. the Dynamics class for an explanation of the input parameters. """ # First take care of what is inherited: Dynamics.__init__(self, model, state, breakpoints) # The explicit solvers presently only work for stacks, lists # and 'd' arrays: assert self._mode == 'list', \ "StiffDynamics only handles stacks, lists and 'd' arrays at the moment!" # History array for the gearX solvers: self.__prev = [] # For the gearX solvers
def __init__(self, x0, xf): Dynamics.__init__(self) self.x0 = np.array(x0, float) self.xf = np.array(xf, float)
def __init__(self, **kwargs): # become dynamics model Dynamics.__init__(self, **kwargs)