Skip to content

Commit

Permalink
Replace calls to tensor log sqrt with new function name
Browse files Browse the repository at this point in the history
  • Loading branch information
btalamini committed Jan 17, 2024
1 parent ba74053 commit 3d0cee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optimism/J2PlasticPhaseField.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def compute_logarithmic_elastic_strain(dispGrad, state):
Fp = state[PLASTIC_STRAIN].reshape((3,3))
FeT = solve(Fp.T, F.T)
Ce = FeT@FeT.T
return TensorMath.mtk_log_sqrt(Ce)
return TensorMath.log_sqrt_symm(Ce)


def compute_state_increment(elasticTrialStrain, stateOld, props):
Expand Down
2 changes: 1 addition & 1 deletion optimism/material/HyperViscoelastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ def _compute_elastic_logarithmic_strain(dispGrad, stateOld):
Fv_old = stateOld.reshape((3, 3))

Fe_trial = F @ np.linalg.inv(Fv_old)
return TensorMath.mtk_log_sqrt(Fe_trial.T @ Fe_trial)
return TensorMath.log_sqrt_symm(Fe_trial.T @ Fe_trial)

0 comments on commit 3d0cee7

Please sign in to comment.