Skip to content

[MPM] Allow "use_input_model_part" in "model_import_settings" ProjectParameters.json#14243

Open
ncrescenzio wants to merge 2 commits intomasterfrom
mpm/allow-modeler-import
Open

[MPM] Allow "use_input_model_part" in "model_import_settings" ProjectParameters.json#14243
ncrescenzio wants to merge 2 commits intomasterfrom
mpm/allow-modeler-import

Conversation

@ncrescenzio
Copy link
Contributor

@ncrescenzio ncrescenzio commented Mar 1, 2026

📝 Description
Allow ProjectParameters.json to contain

 "model_import_settings"           : {
     "input_type" : "use_input_model_part"
 },
 "grid_model_import_settings"      : {
     "input_type" : "use_input_model_part"
 },
  • The value "use_input_model_part" is used when using modelers to laod MDPA files.
  • Up to now it was not possible to use "use_input_model_part" because an exception was raised if "input_type" was different from "mdpa"/"rest".
  • The check on the value of "input_type" is still performed in _ImportModelPart, so an exception is still raised if the value is not "mdpa"/"rest"/"use_input_model_part".

Related to KratosMultiphysics/GiDInterface#1004 and KratosMultiphysics/GiDInterface#1026.

FYI @jginternational

@ncrescenzio ncrescenzio requested a review from a team as a code owner March 1, 2026 21:52
@jginternational
Copy link
Member

Tested against KratosMultiphysics/GiDInterface#1026

It works

@ncrescenzio ncrescenzio changed the title [MPM] [MPM] Allow "use_input_model_part" in "model_import_settings" ProjectParameters.json Mar 2, 2026
@jginternational
Copy link
Member

Once you merge this PR, I'll merge the GUI PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants