Skip to content

[MPM] Create Initial Conditions associated to the Material_domain model part #968

@lauramoremar

Description

@lauramoremar

Hi,

I am trying to incorporate the Initial Condition in the Interface for the MPM app.
Usually, the conditions are created over the Background_Grid, but for the Initial Condition I will need to impose it in a submodel part that belongs to the Material_domain and I am not sure how to do it.

In my branch MPM/laura I have incorporate the new option, that looks like that:

Screenshot from 2024-02-20 10-53-52

and it write the condition properly in the .json. Everything works well except the model_part_name.

"initial_conditions_processes" : [{
          "python_module" : "assign_initial_condition_to_particle_process",
          "kratos_module" : "KratosMultiphysics.ParticleMechanicsApplication",
          "process_name"  : "AssignInitialConditionToParticleProcess",
          "Parameters"    : {
              "model_part_name" : "Background_Grid.0",
              "variable_name"   : "MP_VELOCITY",
              "component"       : ["1.667*z",0.0,0.0]
          }
      }]

In this case, we need to write a submodel_part from the Material_Domain (for example),
"model_part_name" : "Parts_Material_domain_Column".

I attach here one small case with the proper setting (it works well using my branch).
twist2.gid.zip

Thank you very much in advance

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions