From 7d849d312c90837c224cf6adfdd9970934ec9645 Mon Sep 17 00:00:00 2001 From: HarukiST Date: Wed, 18 Sep 2024 14:10:11 +0900 Subject: [PATCH] f_psi_sign has been added for signed Bp --- hypnotoad/cases/circular.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypnotoad/cases/circular.py b/hypnotoad/cases/circular.py index 29c8e24f..48ad47f3 100644 --- a/hypnotoad/cases/circular.py +++ b/hypnotoad/cases/circular.py @@ -124,6 +124,8 @@ def __init__(self, settings=None, nonorthogonal_settings=None): # Core-only geometry: add connection so domain is periodic in y self.makeConnection("circular", 0, "circular", 0) + self.f_psi_sign = np.sign(self.psi_r(1.0) - self.psi_r(0.0)) + def makeRegion(self): """ Create the EquilibriumRegion to build the grid around