Skip to content

Commit

Permalink
TST: Improve convergence with higher friction coefficient.
Browse files Browse the repository at this point in the history
  • Loading branch information
IvarStefansson committed Jan 22, 2025
1 parent 99e8d35 commit be4d693
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/porepy/applications/test_utils/reference_dense_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -7961,31 +7961,31 @@
"test_anisotropic_damage_values": {
"friction_damage": np.array(
[
[1.08964648],
[1.08990014],
[1.08042241],
[1.08088030],
[1.07850799],
[1.09138658],
[1.09153955],
[1.08421782],
[1.08452635],
[1.08158935],
]
),
# Dilation damage is the same as friction damage due to identical
# parameters.
"dilation_damage": np.array(
[
[1.08964648],
[1.08990014],
[1.08042241],
[1.0808803],
[1.07850799],
[1.09138658],
[1.09153955],
[1.08421782],
[1.08452635],
[1.08158935],
]
),
"damage_history": np.array(
[
[0.21859257],
[0.21294128],
[0.43575474],
[0.42439987],
[0.48393954],
[0.18014312],
[0.17679804],
[0.34352722],
[0.33621384],
[0.40694277],
]
),
}
Expand Down
2 changes: 2 additions & 0 deletions tests/models/test_fracture_damage.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class AnisotropicDamage3D(
def test_anisotropic_damage_values():
params_local = copy.deepcopy(damage.model_params)
solid_params_local = {**damage.solid_params, **additional_solid_params["both"]}
# Set higher friction coefficient to improve convergence.
solid_params_local["friction_coefficient"] = 0.5
params_local["material_constants"] = {
"solid": FractureDamageSolidConstants(**solid_params_local)
}
Expand Down

0 comments on commit be4d693

Please sign in to comment.