Skip to content

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

Merged
ncrescenzio merged 2 commits intomasterfrom
mpm/allow-modeler-import
Apr 15, 2026
Merged

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

Conversation

@ncrescenzio
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

jginternational commented Mar 5, 2026

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

@ncrescenzio
Copy link
Copy Markdown
Contributor Author

I am waiting from someone in @KratosMultiphysics/mpm to approve it...

@jginternational
Copy link
Copy Markdown
Member

Any info @KratosMultiphysics/mpm ?

Copy link
Copy Markdown
Contributor

@lauramoremar lauramoremar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Nicolò!!

@ncrescenzio ncrescenzio merged commit ebd5e53 into master Apr 15, 2026
10 checks passed
@ncrescenzio ncrescenzio deleted the mpm/allow-modeler-import branch April 15, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants