Skip to content

Commit

Permalink
Extend the parameter ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Jan 24, 2025
1 parent f1eaba7 commit 8d455ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jafit/jafit.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def do_fit(
k_p=_perhaps(k_p, max(H_c, 1.0)), # For soft materials, k_p≈H_ci. For others this is still a good guess.
alpha=_perhaps(alpha, 0.001),
)
x_min = Coef(c_r=1e-9, M_s=M_s_min, a=1e-6, k_p=1e-6, alpha=1e-12)
x_min = Coef(c_r=1e-12, M_s=M_s_min, a=1e-6, k_p=1e-6, alpha=1e-12)
# TODO: We need a better way of setting the upper bound. The sensible limits also depend on the model used.
x_max = Coef(c_r=0.999999, M_s=3e6, a=3e6, k_p=3e6, alpha=0.9)
x_max = Coef(c_r=0.999999999, M_s=3e6, a=3e6, k_p=3e6, alpha=0.9)
_logger.info("Initial, minimum, and maximum coefficients:\n%s\n%s\n%s", coef, x_min, x_max)

# Ensure that the saturation detection heuristic does not mistakenly terminate the sweep too early.
Expand Down

0 comments on commit 8d455ea

Please sign in to comment.