Skip to content

[MPM] Improvement "Results -> On nodes" output fields configuration#1034

Merged
lauramoremar merged 5 commits into
masterfrom
mpm/results-on-nodes
May 26, 2026
Merged

[MPM] Improvement "Results -> On nodes" output fields configuration#1034
lauramoremar merged 5 commits into
masterfrom
mpm/results-on-nodes

Conversation

@lauramoremar
Copy link
Copy Markdown
Contributor

Changes

  • Adds missing nodal result fields in Results > On nodes:

    • ACCELERATION
    • VELOCITY
    • PRESSURE
  • Shows and enables PRESSURE by default only when a mixed UP formulation is used.

  • The pressure result options are hidden for non-mixed formulations to avoid exposing unavailable output fields.

  • Applies the same mixed-formulation visibility logic to MP_PRESSURE in Results > On element.

image

I would appreciate it if you could try this locally, in case I missed anything. Suggestions for improvement are also very welcome.

@lauramoremar lauramoremar self-assigned this May 21, 2026
@lauramoremar lauramoremar changed the title [MPM] Improve Results output fields configuration [MPM] Improvement "Results -> On nodes" output fields configuration May 21, 2026
Copy link
Copy Markdown
Contributor

@ncrescenzio ncrescenzio left a comment

Choose a reason for hiding this comment

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

I tested the feature you are proposing and it works on my computer.

Just a small request... can you please put the variables in the same order in the two sections?

Image

@lauramoremar
Copy link
Copy Markdown
Contributor Author

I tested the feature you are proposing and it works on my computer.

Just a small request... can you please put the variables in the same order in the two sections?
Image

When I modified it, I thought the same thing. But it is not easy to change the order of the fields in that section due to the structure of the file:
kratos.gid/apps/MPM/xml/NodalConditions.xml.

It seems that Reaction and Pressure internally "depend" on Displacement.
I’m not sure how we could modify that. Any ideas, @jginternational?

Another option could be trying to change the order of the fields "on element", which seems easier to implement.

@lauramoremar
Copy link
Copy Markdown
Contributor Author

I modified Elements.xml :

image

Now, both sections follow the same order.

Copy link
Copy Markdown
Contributor

@ncrescenzio ncrescenzio left a comment

Choose a reason for hiding this comment

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

Thanks @lauramoremar

@lauramoremar lauramoremar merged commit 6c0e2c4 into master May 26, 2026
@lauramoremar lauramoremar deleted the mpm/results-on-nodes branch May 26, 2026 10:22
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