Skip to content

Export Simulation Output to File #134

@sbrandstaeter

Description

@sbrandstaeter

Summary:

Add functionality to write the output of a MIRCO simulation to a file. This includes both the displacement field and the active contact set on the structured grid.

Motivation:

Currently, MIRCO runs simulations but does not provide a built-in way to persist simulation results for later use. Being able to export key output data would greatly enhance the workflow for post-processing, visualization, and potential continuation of simulations.

Proposed Feature:

  • Implement a mechanism to write simulation results — particularly the displacement field and the active contact set — to a file.
  • The output format should ideally be a standard binary format suitable for interoperability with visualization and post-processing tools (e.g., .bin, .h5, .vtk, etc.).
  • The feature should include an option for selecting the output file path.

Use Cases:

  1. Visualization and Analysis: Exported data can be imported into standard visualization tools to inspect the results of a simulation.

  2. Post-processing: Enables further numerical or analytical processing of the displacement and contact data.

  3. Future Extensions (Restart / Load Steps):
    While out of scope for this issue, the same mechanism could support future capabilities such as restarting simulations or running multiple load steps sequentially. In such cases, the active set from one load step could serve as an initial guess for the next, making this output mechanism foundational for later developments.

Benefits:

  • Facilitates integration with external tools.
  • Improves reproducibility and analysis capabilities.
  • Lays groundwork for future restart and load-step functionality.

Related Issues and Merge Requests

Additional Information

Interested Parties

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions