-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GeoMechanicsApplication] Fix for prescribed displacement combined wi…
…th reset_displacement. (#11933) * Fix for prescribed displacement combined with reset_displacement in the python part of GeoMechanics and in the cpp part for settlement.. Regression test added.
- Loading branch information
Showing
6 changed files
with
287 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...tions/GeoMechanicsApplication/tests/shell_with_reset_displacement/MaterialParameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"properties": [{ | ||
"model_part_name": "PorousDomain.bodemplaat", | ||
"properties_id": 1, | ||
"Material": { | ||
"name": "Vloerbeton", | ||
"constitutive_law": { | ||
"name": "LinearElasticPlaneStress2DLaw" | ||
}, | ||
"Variables": { | ||
"YOUNG_MODULUS": 4.32e8, | ||
"POISSON_RATIO": 0.0, | ||
"THICKNESS": 1300, | ||
"DENSITY": 3.6e2 | ||
}, | ||
"Tables": {} | ||
} | ||
}] | ||
} |
172 changes: 172 additions & 0 deletions
172
...ations/GeoMechanicsApplication/tests/shell_with_reset_displacement/ProjectParameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
{ | ||
"problem_data": { | ||
"problem_name": "bodemplaat", | ||
"start_time": 0.0, | ||
"end_time": 1.0, | ||
"echo_level": 1, | ||
"parallel_type": "OpenMP", | ||
"number_of_threads": 1 | ||
}, | ||
"solver_settings": { | ||
"solver_type": "U_Pw", | ||
"model_part_name": "PorousDomain", | ||
"domain_size": 3, | ||
"model_import_settings": { | ||
"input_type": "mdpa", | ||
"input_filename": "bodemplaat" | ||
}, | ||
"material_import_settings": { | ||
"materials_filename": "MaterialParameters.json" | ||
}, | ||
"time_stepping": { | ||
"time_step": 1.0, | ||
"max_delta_time_factor": 1.0 | ||
}, | ||
"buffer_size": 2, | ||
"echo_level": 1, | ||
"clear_storage": false, | ||
"compute_reactions": false, | ||
"move_mesh_flag": false, | ||
"reform_dofs_at_each_step": false, | ||
"nodal_smoothing": false, | ||
"block_builder": true, | ||
"solution_type": "Quasi-Static", | ||
"scheme_type": "Backward_Euler", | ||
"reset_displacements": true, | ||
"newmark_beta": 0.25, | ||
"newmark_gamma": 0.5, | ||
"newmark_theta": 0.5, | ||
"rayleigh_m": 0.0, | ||
"rayleigh_k": 0.0, | ||
"strategy_type": "newton_raphson", | ||
"convergence_criterion": "residual_criterion", | ||
"displacement_relative_tolerance": 1.0E-4, | ||
"displacement_absolute_tolerance": 1.0E-9, | ||
"residual_relative_tolerance": 1.0E-4, | ||
"residual_absolute_tolerance": 1.0E-9, | ||
"water_pressure_relative_tolerance": 1.0E-4, | ||
"water_pressure_absolute_tolerance": 1.0E-9, | ||
"min_iterations": 6, | ||
"max_iterations": 15, | ||
"number_cycles": 1, | ||
"reduction_factor": 1.0, | ||
"increase_factor": 1.0, | ||
"desired_iterations": 4, | ||
"max_radius_factor": 10.0, | ||
"min_radius_factor": 0.1, | ||
"calculate_reactions": true, | ||
"max_line_search_iterations": 5, | ||
"first_alpha_value": 0.5, | ||
"second_alpha_value": 1.0, | ||
"min_alpha": 0.1, | ||
"max_alpha": 2.0, | ||
"line_search_tolerance": 0.5, | ||
"rotation_dofs": true, | ||
"linear_solver_settings": { | ||
"solver_type": "bicgstab", | ||
"tolerance": 1.0e-6, | ||
"max_iteration": 1000, | ||
"scaling": true, | ||
"preconditioner_type": "ilu0" | ||
}, | ||
"problem_domain_sub_model_part_list": ["bodemplaat"], | ||
"processes_sub_model_part_list": ["XZsupport","YZsupport","ZsupportLoadPoint"], | ||
"body_domain_sub_model_part_list": ["bodemplaat"] | ||
}, | ||
"output_processes": { | ||
"gid_output": [{ | ||
"python_module": "gid_output_process", | ||
"kratos_module": "KratosMultiphysics", | ||
"process_name": "GiDOutputProcess", | ||
"Parameters": { | ||
"model_part_name": "PorousDomain.porous_computational_model_part", | ||
"output_name": "bodemplaat", | ||
"postprocess_parameters": { | ||
"result_file_configuration": { | ||
"gidpost_flags": { | ||
"WriteDeformedMeshFlag": "WriteUndeformed", | ||
"WriteConditionsFlag": "WriteElementsOnly", | ||
"GiDPostMode": "GiD_PostAscii", | ||
"MultiFileFlag": "SingleFile" | ||
}, | ||
"file_label": "step", | ||
"output_control_type": "step", | ||
"output_interval": 1, | ||
"body_output": true, | ||
"node_output": false, | ||
"skin_output": false, | ||
"plane_output": [], | ||
"nodal_results": ["DISPLACEMENT","TOTAL_DISPLACEMENT","ROTATION"], | ||
"gauss_point_results": ["GREEN_LAGRANGE_STRAIN_TENSOR","ENGINEERING_STRAIN_TENSOR","CAUCHY_STRESS_TENSOR"] | ||
}, | ||
"point_data_configuration": [] | ||
} | ||
} | ||
}] | ||
}, | ||
"processes": { | ||
"constraints_process_list": [{ | ||
"python_module": "apply_vector_constraint_table_process", | ||
"kratos_module": "KratosMultiphysics.GeoMechanicsApplication", | ||
"process_name": "ApplyVectorConstraintTableProcess", | ||
"Parameters": { | ||
"model_part_name": "PorousDomain.XZsupport", | ||
"variable_name": "DISPLACEMENT", | ||
"active": [true,false,true], | ||
"is_fixed": [true,false,true], | ||
"value": [0.0,0.0,0.0], | ||
"table": [0,0,0] | ||
} | ||
},{ | ||
"python_module": "apply_vector_constraint_table_process", | ||
"kratos_module": "KratosMultiphysics.GeoMechanicsApplication", | ||
"process_name": "ApplyVectorConstraintTableProcess", | ||
"Parameters": { | ||
"model_part_name": "PorousDomain.YZsupport", | ||
"variable_name": "DISPLACEMENT", | ||
"active": [false,true,true], | ||
"is_fixed": [false,true,true], | ||
"value": [0.0,0.0,0.0], | ||
"table": [0,0,0] | ||
} | ||
},{ | ||
"python_module": "apply_vector_constraint_table_process", | ||
"kratos_module": "KratosMultiphysics.GeoMechanicsApplication", | ||
"process_name": "ApplyVectorConstraintTableProcess", | ||
"Parameters": { | ||
"model_part_name": "PorousDomain.XZsupport", | ||
"variable_name": "ROTATION", | ||
"active": [true,true,true], | ||
"is_fixed": [false,true,false], | ||
"value": [0.0,0.0,0.0], | ||
"table": [0,0,0] | ||
} | ||
},{ | ||
"python_module": "apply_vector_constraint_table_process", | ||
"kratos_module": "KratosMultiphysics.GeoMechanicsApplication", | ||
"process_name": "ApplyVectorConstraintTableProcess", | ||
"Parameters": { | ||
"model_part_name": "PorousDomain.YZsupport", | ||
"variable_name": "ROTATION", | ||
"active": [true,true,true], | ||
"is_fixed": [true,false,false], | ||
"value": [0.0,0.0,0.0], | ||
"table": [0,0,0] | ||
} | ||
},{ | ||
"python_module": "apply_vector_constraint_table_process", | ||
"kratos_module": "KratosMultiphysics.GeoMechanicsApplication", | ||
"process_name": "ApplyVectorConstraintTableProcess", | ||
"Parameters": { | ||
"model_part_name": "PorousDomain.ZsupportLoadPoint", | ||
"variable_name": "DISPLACEMENT", | ||
"active": [false,false,true], | ||
"is_fixed": [false,false,true], | ||
"value": [0.0,0.0,-20.0], | ||
"table": [0,0,0] | ||
} | ||
}], | ||
"loads_process_list": [], | ||
"auxiliar_process_list": [] | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
applications/GeoMechanicsApplication/tests/shell_with_reset_displacement/bodemplaat.mdpa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
Begin Properties 1 | ||
End Properties | ||
|
||
Begin Nodes | ||
1 0.0000000000 0.0000000000 0.0000000000 | ||
2 2000.0000000000 0.0000000000 0.0000000000 | ||
3 2000.0000000000 2000.0000000000 0.0000000000 | ||
4 0.0000000000 2000.0000000000 0.0000000000 | ||
End Nodes | ||
|
||
|
||
Begin Elements ShellThinElementCorotational3D4N | ||
1 1 1 2 3 4 | ||
End Elements | ||
|
||
Begin SubModelPart bodemplaat | ||
Begin SubModelPartTables | ||
End SubModelPartTables | ||
Begin SubModelPartNodes | ||
1 | ||
2 | ||
3 | ||
4 | ||
End SubModelPartNodes | ||
Begin SubModelPartElements | ||
1 | ||
End SubModelPartElements | ||
Begin SubModelPartConditions | ||
End SubModelPartConditions | ||
End SubModelPart | ||
|
||
Begin SubModelPart XZsupport | ||
Begin SubModelPartTables | ||
End SubModelPartTables | ||
Begin SubModelPartNodes | ||
1 | ||
4 | ||
End SubModelPartNodes | ||
Begin SubModelPartElements | ||
End SubModelPartElements | ||
Begin SubModelPartConditions | ||
End SubModelPartConditions | ||
End SubModelPart | ||
|
||
Begin SubModelPart YZsupport | ||
Begin SubModelPartTables | ||
End SubModelPartTables | ||
Begin SubModelPartNodes | ||
1 | ||
2 | ||
End SubModelPartNodes | ||
Begin SubModelPartElements | ||
End SubModelPartElements | ||
Begin SubModelPartConditions | ||
End SubModelPartConditions | ||
End SubModelPart | ||
|
||
Begin SubModelPart ZsupportLoadPoint | ||
Begin SubModelPartTables | ||
End SubModelPartTables | ||
Begin SubModelPartNodes | ||
3 | ||
End SubModelPartNodes | ||
Begin SubModelPartElements | ||
End SubModelPartElements | ||
Begin SubModelPartConditions | ||
End SubModelPartConditions | ||
End SubModelPart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters