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(
18            nonoscillatory=True, infinite_gauge=True, dynamic_advector=True
19        )
20
21    @property
22    def nt(self):
23        return int(7 / self.dt)
24
25    @property
26    def outfreq(self):
27        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(
19            nonoscillatory=True, infinite_gauge=True, dynamic_advector=True
20        )
21
22    @property
23    def nt(self):
24        return int(7 / self.dt)
25
26    @property
27    def outfreq(self):
28        return int(1 / self.dt)
dt
dx
dy
nx
ny
eps
lx0
ly0
options
nt
22    @property
23    def nt(self):
24        return int(7 / self.dt)
outfreq
26    @property
27    def outfreq(self):
28        return int(1 / self.dt)