Skip to content

Commit

Permalink
Force the use of keywords for optional parameters
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Mueller <[email protected]>
  • Loading branch information
maierbn and johannes-mueller authored Oct 10, 2023
1 parent e196deb commit 423cadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pylife/materiallaws/notch_approximation_law.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _d_load_secondary_implicit(self, delta_load, delta_stress):
return -1/delta_stress * self.K_p * self._delta_e_star(delta_load) \
- delta_load/delta_stress * self.K_p * self._d_delta_e_star(delta_load)

def stress(self, load, rtol=1e-4, tol=1e-4):
def stress(self, load, *, rtol=1e-4, tol=1e-4):
'''Calculate the stress of the primary path in the stress-strain diagram at a given
elastic-plastic stress (load), from a FE computation.
This is done by solving for the root of f(sigma) in eq. 2.5-45 of FKM nonlinear.
Expand Down

0 comments on commit 423cadc

Please sign in to comment.