Skip to content

Commit

Permalink
set rot_interp automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHilder committed Jul 23, 2023
1 parent 66051e6 commit b668d63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/wakeflow/model_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def __init__(self, config: dict) -> None:
self.box_warp = bool (config["box_warp"])
self.use_box_IC = bool (config["use_box_IC"])
self.tf_fac = float(config["tf_fac"])
self.rot_interp = bool (config["rot_interp"])
self.r_cut_inner_fac = float(config["r_cut_inner_fac"])

# Choice of physics
Expand All @@ -151,6 +150,12 @@ def __init__(self, config: dict) -> None:
# self.a_cw = -1
#else:
self.a_cw = 1

# check if phi planet is not zero
if self.phi_planet != 0.:
self.rot_interp = True
else:
self.rot_interp = False

# get height scale at reference radius
self.h_ref = self.hr * self.r_ref
Expand Down
2 changes: 1 addition & 1 deletion src/wakeflow/wakeflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def configure(
r_outer: float = 500,
r_inner: float = 100,
r_planet: float = 250,
phi_planet: float = 0,
phi_planet: float = 0.0,
r_ref: float = None,
r_c: float = 0,
z_max: float = 3,
Expand Down

0 comments on commit b668d63

Please sign in to comment.