Skip to content

Commit

Permalink
[GeoMechanicsApplication] Remove the "solution_type" = "K0-procedure" (
Browse files Browse the repository at this point in the history
…#12701)

* replaced k0-procedure with quasi_static

* removed k0-procedure at line 196

---------

Co-authored-by: Gennady Markelov <[email protected]>
  • Loading branch information
markelov208 and Gennady Markelov authored Sep 30, 2024
1 parent ebea8be commit 9e60964
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,22 +187,12 @@ def _ConstructScheme(self, scheme_type, solution_type):
elif (solution_type.lower() == "dynamic"):
KratosMultiphysics.Logger.PrintInfo("GeoMechanics_U_Pw_Solver, scheme", "Dynamic.")
scheme = KratosGeo.NewmarkDynamicUPwScheme(beta,gamma,theta)
elif (solution_type.lower() == "k0-procedure" or solution_type.lower() == "k0_procedure"):
if (rayleigh_m < 1.0e-20 and rayleigh_k < 1.0e-20):
KratosMultiphysics.Logger.PrintInfo("GeoMechanics_U_Pw_Solver, scheme", "Quasi-UnDamped.")
scheme = KratosGeo.NewmarkQuasistaticUPwScheme(beta,gamma,theta)
else:
KratosMultiphysics.Logger.PrintInfo("GeoMechanics_U_Pw_Solver, scheme", "Quasi-Damped.")
scheme = KratosGeo.NewmarkQuasistaticDampedUPwScheme(beta,gamma,theta)
else:
raise RuntimeError(f"Undefined solution type '{solution_type}'")
elif (scheme_type.lower() == "backward_euler"or scheme_type.lower() == "backward-euler"):
if (solution_type.lower() == "quasi-static" or solution_type.lower() == "quasi_static"):
KratosMultiphysics.Logger.PrintInfo("GeoMechanics_U_Pw_Solver, scheme", "Backward Euler.")
scheme = KratosGeo.BackwardEulerQuasistaticUPwScheme()
elif (solution_type.lower() == "k0-procedure" or solution_type.lower() == "k0_procedure"):
KratosMultiphysics.Logger.PrintInfo("GeoMechanics_U_Pw_Solver, scheme", "Backward Euler.")
scheme = KratosGeo.BackwardEulerQuasistaticUPwScheme()
else:
raise RuntimeError(f"Undefined/incompatible solution type with Backward Euler: '{solution_type}'")
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"rotation_dofs": true,
"scheme_type": "Newmark",
"second_alpha_value": 1.0,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"solver_type": "U_Pw",
"strategy_type": "linear",
"time_stepping": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": false,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Newmark",
"reset_displacements": true,
"strategy_type": "line_search",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": false,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Newmark",
"reset_displacements": true,
"strategy_type": "linear",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": false,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Newmark",
"reset_displacements": true,
"strategy_type": "linear",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": false,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Newmark",
"reset_displacements": true,
"strategy_type": "linear",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": false,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Backward_Euler",
"reset_displacements": true,
"newmark_beta": 0.25,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": false,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Backward_Euler",
"reset_displacements": true,
"newmark_beta": 0.25,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": false,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Newmark",
"reset_displacements": true,
"strategy_type": "linear",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
"rotation_dofs": true,
"scheme_type": "Newmark",
"second_alpha_value": 1.0,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"solver_type": "U_Pw",
"strategy_type": "linear",
"time_stepping": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
"rotation_dofs": true,
"scheme_type": "Newmark",
"second_alpha_value": 1.0,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"solver_type": "U_Pw",
"strategy_type": "linear",
"time_stepping": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": true,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Backward_Euler",
"reset_displacements": true,
"newmark_beta": 0.25,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": true,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Backward_Euler",
"reset_displacements": true,
"newmark_beta": 0.25,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": true,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Backward_Euler",
"reset_displacements": true,
"newmark_beta": 0.25,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": true,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Backward_Euler",
"reset_displacements": true,
"newmark_beta": 0.25,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": true,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Backward_Euler",
"reset_displacements": true,
"newmark_beta": 0.25,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"reform_dofs_at_each_step": true,
"nodal_smoothing": false,
"block_builder": true,
"solution_type": "K0-Procedure",
"solution_type": "quasi_static",
"scheme_type": "Backward_Euler",
"reset_displacements": true,
"newmark_beta": 0.25,
Expand Down

0 comments on commit 9e60964

Please sign in to comment.