Skip to content

Commit

Permalink
Merge pull request #970 from KratosMultiphysics/mpm/change-applicatio…
Browse files Browse the repository at this point in the history
…n-name

[MPM] Change application name
  • Loading branch information
ncrescenzio authored Jul 19, 2024
2 parents 33036bd + a89b0bc commit 4099af9
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 62 deletions.
4 changes: 2 additions & 2 deletions kratos.gid/apps/MPM/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"name": "MPM",
"prefix": "MPM",
"themed": false,
"kratos_name": "ParticleMechanicsApplication",
"kratos_name": "MPMApplication",
"python_packages": [
"KratosParticleMechanicsApplication",
"KratosMPMApplication",
"KratosLinearSolversApplication"
],
"dimensions": [
Expand Down
2 changes: 1 addition & 1 deletion kratos.gid/apps/MPM/examples/CantileverBeam.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kratos.gid/apps/MPM/examples/FallingSandBall.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kratos.gid/apps/MPM/examples/GranularFlow.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kratos.gid/apps/MPM/examples/StaticCantileverBeam.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions kratos.gid/apps/MPM/write/writeProjectParameters.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 4099af9

Please sign in to comment.