diff --git a/kratos.gid/apps/MPM/app.json b/kratos.gid/apps/MPM/app.json index 614988908..04680dc44 100644 --- a/kratos.gid/apps/MPM/app.json +++ b/kratos.gid/apps/MPM/app.json @@ -3,9 +3,9 @@ "name": "MPM", "prefix": "MPM", "themed": false, - "kratos_name": "ParticleMechanicsApplication", + "kratos_name": "MPMApplication", "python_packages": [ - "KratosParticleMechanicsApplication", + "KratosMPMApplication", "KratosLinearSolversApplication" ], "dimensions": [ diff --git a/kratos.gid/apps/MPM/examples/CantileverBeam.tcl b/kratos.gid/apps/MPM/examples/CantileverBeam.tcl index 63d741bfa..ce4fcd84c 100644 --- a/kratos.gid/apps/MPM/examples/CantileverBeam.tcl +++ b/kratos.gid/apps/MPM/examples/CantileverBeam.tcl @@ -127,7 +127,7 @@ proc ::MPM::examples::CantileverBeam::TreeAssignation2D {args} { set mpm_solid_part [customlib::AddConditionGroupOnXPath $mpm_solid_parts_route HyperelasticBeam] $mpm_solid_part setAttribute ov surface set constitutive_law_name "HyperElasticNeoHookeanPlaneStrain${nd}Law" - 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] + 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] spdAux::SetValuesOnBaseNode $mpm_solid_part $props ## Grid diff --git a/kratos.gid/apps/MPM/examples/FallingSandBall.tcl b/kratos.gid/apps/MPM/examples/FallingSandBall.tcl index 47cc81446..ea02008e6 100644 --- a/kratos.gid/apps/MPM/examples/FallingSandBall.tcl +++ b/kratos.gid/apps/MPM/examples/FallingSandBall.tcl @@ -114,7 +114,7 @@ proc ::MPM::examples::FallingSandBall::TreeAssignation2D {args} { set mpm_solid_part [customlib::AddConditionGroupOnXPath $mpm_solid_parts_route Sand] $mpm_solid_part setAttribute ov surface set constitutive_law_name "HenckyMCPlasticPlaneStrain${nd}Law" - 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] + 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] spdAux::SetValuesOnBaseNode $mpm_solid_part $props ## Grid diff --git a/kratos.gid/apps/MPM/examples/GranularFlow.tcl b/kratos.gid/apps/MPM/examples/GranularFlow.tcl index 0dd2ba2c5..ada892092 100644 --- a/kratos.gid/apps/MPM/examples/GranularFlow.tcl +++ b/kratos.gid/apps/MPM/examples/GranularFlow.tcl @@ -127,7 +127,7 @@ proc ::MPM::examples::GranularFlow::TreeAssignation2D {args} { set mpm_solid_part [customlib::AddConditionGroupOnXPath $mpm_solid_parts_route GranularMaterial] $mpm_solid_part setAttribute ov surface set constitutive_law_name "HenckyMCPlasticPlaneStrain${nd}Law" - 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] + 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] spdAux::SetValuesOnBaseNode $mpm_solid_part $props ## Grid diff --git a/kratos.gid/apps/MPM/examples/StaticCantileverBeam.tcl b/kratos.gid/apps/MPM/examples/StaticCantileverBeam.tcl index d64afd43c..5497158eb 100644 --- a/kratos.gid/apps/MPM/examples/StaticCantileverBeam.tcl +++ b/kratos.gid/apps/MPM/examples/StaticCantileverBeam.tcl @@ -132,7 +132,7 @@ proc ::MPM::examples::StaticCantileverBeam::TreeAssignation2D {args} { set mpm_solid_part [customlib::AddConditionGroupOnXPath $mpm_solid_parts_route LinearElasticBeam] $mpm_solid_part setAttribute ov surface set constitutive_law_name "LinearElasticIsotropicPlaneStrain{nd}Law" - 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] + 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] spdAux::SetValuesOnBaseNode $mpm_solid_part $props ## Grid diff --git a/kratos.gid/apps/MPM/write/writeProjectParameters.tcl b/kratos.gid/apps/MPM/write/writeProjectParameters.tcl index 80c488f6a..cb9014861 100644 --- a/kratos.gid/apps/MPM/write/writeProjectParameters.tcl +++ b/kratos.gid/apps/MPM/write/writeProjectParameters.tcl @@ -3,7 +3,7 @@ proc ::MPM::write::getParametersDict { } { set project_parameters_dict [Structural::write::getParametersDict] # Analysis stage field - dict set project_parameters_dict analysis_stage "KratosMultiphysics.ParticleMechanicsApplication.particle_mechanics_analysis" + dict set project_parameters_dict analysis_stage "KratosMultiphysics.MPMApplication.mpm_analysis" # Quasi-static must be written as Quasi-static... set solutiontype [write::getValue STSoluType] @@ -98,9 +98,9 @@ proc ::MPM::write::getParametersDict { } { set activate_gravity [write::getValue ActivateGravity] if {$activate_gravity eq "On"} { set gravity_dict [dict create ] - dict set gravity_dict python_module assign_gravity_to_particle_process - dict set gravity_dict kratos_module "KratosMultiphysics.ParticleMechanicsApplication" - dict set gravity_dict process_name AssignGravityToParticleProcess + dict set gravity_dict python_module assign_gravity_to_material_point_process + dict set gravity_dict kratos_module "KratosMultiphysics.MPMApplication" + dict set gravity_dict process_name AssignGravityToMaterialPointProcess set gravity_parameters_dict [dict create ] dict set gravity_parameters_dict model_part_name MPM_Material dict set gravity_parameters_dict variable_name MP_VOLUME_ACCELERATION @@ -156,9 +156,9 @@ proc ::MPM::write::GetOutputProcessesList { } { set body_output_configuration_dict [lindex [dict get $project_parameters_dict output_processes gid_output] 0] set grid_output_configuration_dict [lindex [dict get $project_parameters_dict output_processes gid_output] 0] - dict set body_output_configuration_dict python_module particle_gid_output_process - dict set body_output_configuration_dict kratos_module KratosMultiphysics.ParticleMechanicsApplication - dict set body_output_configuration_dict process_name ParticleMPMGiDOutputProcess + dict set body_output_configuration_dict python_module mpm_gid_output_process + dict set body_output_configuration_dict kratos_module KratosMultiphysics.MPMApplication + dict set body_output_configuration_dict process_name MPMGiDOutputProcess dict set body_output_configuration_dict Parameters model_part_name MPM_Material dict set grid_output_configuration_dict Parameters model_part_name Background_Grid 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 { } { set grid_output_configuration_dict [lindex [dict get $project_parameters_dict output_processes vtk_output] 0] - dict set body_output_configuration_dict python_module particle_vtk_output_process - dict set body_output_configuration_dict kratos_module KratosMultiphysics.ParticleMechanicsApplication - dict set body_output_configuration_dict process_name ParticleVtkOutputProcess + dict set body_output_configuration_dict python_module mpm_vtk_output_process + dict set body_output_configuration_dict kratos_module KratosMultiphysics.MPMApplication + dict set body_output_configuration_dict process_name MPMVtkOutputProcess dict set body_output_configuration_dict Parameters model_part_name MPM_Material dict unset body_output_configuration_dict Parameters nodal_data_value_variables dict unset body_output_configuration_dict Parameters element_data_value_variables diff --git a/kratos.gid/apps/MPM/xml/ConstitutiveLaws.xml b/kratos.gid/apps/MPM/xml/ConstitutiveLaws.xml index 7a9b9679a..27c9bd31a 100644 --- a/kratos.gid/apps/MPM/xml/ConstitutiveLaws.xml +++ b/kratos.gid/apps/MPM/xml/ConstitutiveLaws.xml @@ -5,9 +5,9 @@ - + - + @@ -16,7 +16,7 @@ - + @@ -26,9 +26,9 @@ - + help="Linear Elastic Behaviour in 2D Axis-symmetric" Dimension="2Da" App="MPM" FormulationType="Irreducible" ImplementedInApplication="MPMApplication" > @@ -39,7 +39,7 @@ - + @@ -50,7 +50,7 @@ - + @@ -59,8 +59,8 @@ - + @@ -70,7 +70,7 @@ - + @@ -80,7 +80,7 @@ - + @@ -90,7 +90,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -114,8 +114,8 @@ - + @@ -127,7 +127,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -157,7 +157,7 @@ - + @@ -173,7 +173,7 @@ - + @@ -190,7 +190,7 @@ - + @@ -205,8 +205,8 @@ - + @@ -220,7 +220,7 @@ - + @@ -234,7 +234,7 @@ - + @@ -243,7 +243,7 @@ - + diff --git a/kratos.gid/apps/MPM/xml/Elements.xml b/kratos.gid/apps/MPM/xml/Elements.xml index 1e1f89f22..2b525d42e 100644 --- a/kratos.gid/apps/MPM/xml/Elements.xml +++ b/kratos.gid/apps/MPM/xml/Elements.xml @@ -1,7 +1,7 @@ - + @@ -20,7 +20,7 @@ - + @@ -32,7 +32,7 @@ - + @@ -51,7 +51,7 @@ - + @@ -62,7 +62,7 @@ - + @@ -82,7 +82,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -112,7 +112,7 @@ - + @@ -123,7 +123,7 @@ - + @@ -141,7 +141,7 @@ - + @@ -154,7 +154,7 @@ - + @@ -173,7 +173,7 @@ - + @@ -192,7 +192,7 @@ - + diff --git a/kratos.gid/apps/MPM/xml/Main.spd b/kratos.gid/apps/MPM/xml/Main.spd index 98aca659e..3d237ffa4 100644 --- a/kratos.gid/apps/MPM/xml/Main.spd +++ b/kratos.gid/apps/MPM/xml/Main.spd @@ -1,5 +1,5 @@ - + diff --git a/kratos.gid/apps/MPM/xml/Parts.spd b/kratos.gid/apps/MPM/xml/Parts.spd index 98ee8525d..d88d77dd4 100644 --- a/kratos.gid/apps/MPM/xml/Parts.spd +++ b/kratos.gid/apps/MPM/xml/Parts.spd @@ -1,4 +1,4 @@ - + diff --git a/kratos.gid/apps/MPM/xml/Processes.xml b/kratos.gid/apps/MPM/xml/Processes.xml index 5372fa49f..c9dbd5bd1 100644 --- a/kratos.gid/apps/MPM/xml/Processes.xml +++ b/kratos.gid/apps/MPM/xml/Processes.xml @@ -1,15 +1,15 @@ - - + + + kratos_module="KratosMultiphysics" help="" > - + + kratos_module="KratosMultiphysics.MPMApplication" help="" > diff --git a/kratos.gid/apps/MPM/xml/XmlController.tcl b/kratos.gid/apps/MPM/xml/XmlController.tcl index ab6b2ec3e..707ebc6f7 100644 --- a/kratos.gid/apps/MPM/xml/XmlController.tcl +++ b/kratos.gid/apps/MPM/xml/XmlController.tcl @@ -19,7 +19,7 @@ proc MPM::xml::Init { } { foreach strategy $::Model::SolutionStrategies { $strategy setAttribute NeedElements false foreach scheme [$strategy getSchemes] { - $scheme addElementFilter ImplementedInApplication ParticleMechanicsApplication + $scheme addElementFilter ImplementedInApplication MPMApplication } }