diff --git a/q3d/config.py b/q3d/config.py index e23d75c..08d6c96 100644 --- a/q3d/config.py +++ b/q3d/config.py @@ -23,14 +23,10 @@ def process_settings(s: FromDict) -> None: pass def process_constants(c: FromDict) -> None: - """ Takes the constants FromDict (c) and adds L0, S0, and dt. + """ Takes the constants FromDict (c) and adds S0, and dt. Note that this function may only be called AFTER calling process_settings(). """ - from math import sqrt, ceil - - # set L0 if not explicitly set - if c.L0 == 'auto': - c.L0 = ceil(2*(c.A+c.B**2/c.C)) + from math import sqrt # set S0 as minimum of double well c.S0 = (c.B + sqrt(c.B**2 + 24.0*c.A*c.C))/(4.0*c.C) diff --git a/scripts/qnondim b/scripts/qnondim index 8588634..3d67900 100755 --- a/scripts/qnondim +++ b/scripts/qnondim @@ -35,7 +35,6 @@ def nondimensionalize(const,R): # Define non-dimensionalized constants - nd_const['L0'] = const['L0'] nd_const['A'] = const['A']/C0 nd_const['B'] = const['B']/C0 nd_const['C'] = const['C']/C0 diff --git a/scripts/qsave b/scripts/qsave index 9ec8337..de3e59f 100755 --- a/scripts/qsave +++ b/scripts/qsave @@ -38,7 +38,6 @@ vis: default_ymls['constants'] = """A: 7.502103740308257 B: 60.97581316589323 C: 66.51906890824715 -L0: 552.2309672093506 L1: 1.0 L2: 0 L3: 0