Skip to content

Commit 02f22e2

Browse files
committed
Updated files due to change of application name from ParticleMechanicsApplication to MPMApplication
1 parent 03d6838 commit 02f22e2

12 files changed

Lines changed: 63 additions & 63 deletions

kratos.gid/apps/MPM/app.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"name": "MPM",
44
"prefix": "MPM",
55
"themed": false,
6-
"kratos_name": "ParticleMechanicsApplication",
6+
"kratos_name": "MPMApplication",
77
"python_packages": [
8-
"KratosParticleMechanicsApplication",
8+
"KratosMPMApplication",
99
"KratosLinearSolversApplication"
1010
],
1111
"dimensions": [
@@ -44,7 +44,7 @@
4444
},
4545
"write": {
4646
"coordinates": "all",
47-
"materials_file": "ParticleMaterials.json",
47+
"materials_file": "MaterialPointsMaterials.json",
4848
"properties_location": "json",
4949
"model_part_name": "Background_Grid"
5050
},

kratos.gid/apps/MPM/examples/CantileverBeam.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ proc ::MPM::examples::CantileverBeam::TreeAssignation2D {args} {
127127
set mpm_solid_part [customlib::AddConditionGroupOnXPath $mpm_solid_parts_route HyperelasticBeam]
128128
$mpm_solid_part setAttribute ov surface
129129
set constitutive_law_name "HyperElasticNeoHookeanPlaneStrain${nd}Law"
130-
set props [list Element MPMUpdatedLagrangian$nd ConstitutiveLaw $constitutive_law_name Material HyperelasticBeam DENSITY 1000 YOUNG_MODULUS 90000000 POISSON_RATIO 0.49 THICKNESS 0.1 PARTICLES_PER_ELEMENT 6]
130+
set props [list Element MPMUpdatedLagrangian$nd ConstitutiveLaw $constitutive_law_name Material HyperelasticBeam DENSITY 1000 YOUNG_MODULUS 90000000 POISSON_RATIO 0.49 THICKNESS 0.1 MATERIAL_POINTS_PER_ELEMENT 6]
131131
spdAux::SetValuesOnBaseNode $mpm_solid_part $props
132132

133133
## Grid

kratos.gid/apps/MPM/examples/FallingSandBall.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ proc ::MPM::examples::FallingSandBall::TreeAssignation2D {args} {
114114
set mpm_solid_part [customlib::AddConditionGroupOnXPath $mpm_solid_parts_route Sand]
115115
$mpm_solid_part setAttribute ov surface
116116
set constitutive_law_name "HenckyMCPlasticPlaneStrain${nd}Law"
117-
set props [list Element MPMUpdatedLagrangian$nd ConstitutiveLaw $constitutive_law_name Material Sand DENSITY 2300 YOUNG_MODULUS 6e6 POISSON_RATIO 0.3 THICKNESS 0.1 PARTICLES_PER_ELEMENT 6]
117+
set props [list Element MPMUpdatedLagrangian$nd ConstitutiveLaw $constitutive_law_name Material Sand DENSITY 2300 YOUNG_MODULUS 6e6 POISSON_RATIO 0.3 THICKNESS 0.1 MATERIAL_POINTS_PER_ELEMENT 6]
118118
spdAux::SetValuesOnBaseNode $mpm_solid_part $props
119119

120120
## Grid

kratos.gid/apps/MPM/examples/GranularFlow.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ proc ::MPM::examples::GranularFlow::TreeAssignation2D {args} {
127127
set mpm_solid_part [customlib::AddConditionGroupOnXPath $mpm_solid_parts_route GranularMaterial]
128128
$mpm_solid_part setAttribute ov surface
129129
set constitutive_law_name "HenckyMCPlasticPlaneStrain${nd}Law"
130-
set props [list Element MPMUpdatedLagrangian$nd ConstitutiveLaw $constitutive_law_name Material GranularMaterial DENSITY 2650 YOUNG_MODULUS 840000 POISSON_RATIO 0.3 INTERNAL_FRICTION_ANGLE 19.8 THICKNESS 0.1 PARTICLES_PER_ELEMENT 3]
130+
set props [list Element MPMUpdatedLagrangian$nd ConstitutiveLaw $constitutive_law_name Material GranularMaterial DENSITY 2650 YOUNG_MODULUS 840000 POISSON_RATIO 0.3 INTERNAL_FRICTION_ANGLE 19.8 THICKNESS 0.1 MATERIAL_POINTS_PER_ELEMENT 3]
131131
spdAux::SetValuesOnBaseNode $mpm_solid_part $props
132132

133133
## Grid

kratos.gid/apps/MPM/examples/StaticCantileverBeam.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ proc ::MPM::examples::StaticCantileverBeam::TreeAssignation2D {args} {
132132
set mpm_solid_part [customlib::AddConditionGroupOnXPath $mpm_solid_parts_route LinearElasticBeam]
133133
$mpm_solid_part setAttribute ov surface
134134
set constitutive_law_name "LinearElasticIsotropicPlaneStrain{nd}Law"
135-
set props [list Element MPMUpdatedLagrangian$nd ConstitutiveLaw $constitutive_law_name Material LinearElasticBeam DENSITY 7850 YOUNG_MODULUS 206.9e9 POISSON_RATIO 0.29 THICKNESS 0.1 PARTICLES_PER_ELEMENT 6]
135+
set props [list Element MPMUpdatedLagrangian$nd ConstitutiveLaw $constitutive_law_name Material LinearElasticBeam DENSITY 7850 YOUNG_MODULUS 206.9e9 POISSON_RATIO 0.29 THICKNESS 0.1 MATERIAL_POINTS_PER_ELEMENT 6]
136136
spdAux::SetValuesOnBaseNode $mpm_solid_part $props
137137

138138
## Grid

kratos.gid/apps/MPM/write/writeProjectParameters.tcl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ proc ::MPM::write::getParametersDict { } {
33
set project_parameters_dict [Structural::write::getParametersDict]
44

55
# Analysis stage field
6-
dict set project_parameters_dict analysis_stage "KratosMultiphysics.ParticleMechanicsApplication.particle_mechanics_analysis"
6+
dict set project_parameters_dict analysis_stage "KratosMultiphysics.MPMApplication.mpm_analysis"
77

88
# Quasi-static must be written as Quasi-static...
99
set solutiontype [write::getValue STSoluType]
@@ -98,9 +98,9 @@ proc ::MPM::write::getParametersDict { } {
9898
set activate_gravity [write::getValue ActivateGravity]
9999
if {$activate_gravity eq "On"} {
100100
set gravity_dict [dict create ]
101-
dict set gravity_dict python_module assign_gravity_to_particle_process
102-
dict set gravity_dict kratos_module "KratosMultiphysics.ParticleMechanicsApplication"
103-
dict set gravity_dict process_name AssignGravityToParticleProcess
101+
dict set gravity_dict python_module assign_gravity_to_material_point_process
102+
dict set gravity_dict kratos_module "KratosMultiphysics.MPMApplication"
103+
dict set gravity_dict process_name AssignGravityToMaterialPointProcess
104104
set gravity_parameters_dict [dict create ]
105105
dict set gravity_parameters_dict model_part_name MPM_Material
106106
dict set gravity_parameters_dict variable_name MP_VOLUME_ACCELERATION
@@ -156,9 +156,9 @@ proc ::MPM::write::GetOutputProcessesList { } {
156156

157157
set body_output_configuration_dict [lindex [dict get $project_parameters_dict output_processes gid_output] 0]
158158
set grid_output_configuration_dict [lindex [dict get $project_parameters_dict output_processes gid_output] 0]
159-
dict set body_output_configuration_dict python_module particle_gid_output_process
160-
dict set body_output_configuration_dict kratos_module KratosMultiphysics.ParticleMechanicsApplication
161-
dict set body_output_configuration_dict process_name ParticleMPMGiDOutputProcess
159+
dict set body_output_configuration_dict python_module mpm_gid_output_process
160+
dict set body_output_configuration_dict kratos_module KratosMultiphysics.MPMApplication
161+
dict set body_output_configuration_dict process_name MPMGiDOutputProcess
162162
dict set body_output_configuration_dict Parameters model_part_name MPM_Material
163163
dict set grid_output_configuration_dict Parameters model_part_name Background_Grid
164164
dict set body_output_configuration_dict Parameters output_name [dict get $project_parameters_dict solver_settings model_import_settings input_filename]
@@ -188,9 +188,9 @@ proc ::MPM::write::GetOutputProcessesList { } {
188188
set grid_output_configuration_dict [lindex [dict get $project_parameters_dict output_processes vtk_output] 0]
189189

190190

191-
dict set body_output_configuration_dict python_module particle_vtk_output_process
192-
dict set body_output_configuration_dict kratos_module KratosMultiphysics.ParticleMechanicsApplication
193-
dict set body_output_configuration_dict process_name ParticleVtkOutputProcess
191+
dict set body_output_configuration_dict python_module mpm_vtk_output_process
192+
dict set body_output_configuration_dict kratos_module KratosMultiphysics.MPMApplication
193+
dict set body_output_configuration_dict process_name MPMVtkOutputProcess
194194
dict set body_output_configuration_dict Parameters model_part_name MPM_Material
195195
dict unset body_output_configuration_dict Parameters nodal_data_value_variables
196196
dict unset body_output_configuration_dict Parameters element_data_value_variables

0 commit comments

Comments
 (0)