PyMPDATA_examples.Jarecka_et_al_2015.settings
1from pystrict import strict 2 3from PyMPDATA import Options 4 5 6@strict 7class Settings: 8 def __init__(self): 9 self.dt = 0.01 10 self.dx = 0.05 11 self.dy = 0.05 12 self.nx = 401 13 self.ny = 401 14 self.eps = 1e-7 15 self.lx0 = 2 16 self.ly0 = 1 17 self.options = Options(nonoscillatory=True, infinite_gauge=True) 18 19 @property 20 def nt(self): 21 return int(7 / self.dt) 22 23 @property 24 def outfreq(self): 25 return int(1 / self.dt)
@strict
class
Settings:
7@strict 8class Settings: 9 def __init__(self): 10 self.dt = 0.01 11 self.dx = 0.05 12 self.dy = 0.05 13 self.nx = 401 14 self.ny = 401 15 self.eps = 1e-7 16 self.lx0 = 2 17 self.ly0 = 1 18 self.options = Options(nonoscillatory=True, infinite_gauge=True) 19 20 @property 21 def nt(self): 22 return int(7 / self.dt) 23 24 @property 25 def outfreq(self): 26 return int(1 / self.dt)