Skip to content

Commit

Permalink
Removed references to double well const L0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlhicks committed Dec 13, 2023
1 parent b48eb35 commit c50a699
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions q3d/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion scripts/qnondim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion scripts/qsave
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c50a699

Please sign in to comment.