Skip to content

Conversation

@PhilipOesterlePekrun
Copy link
Collaborator

@PhilipOesterlePekrun PhilipOesterlePekrun commented Dec 18, 2025

Description and Context

This addresses #134 by providing the option to export the simulation output to a .vti file. The CMake variable MIRCO_ENABLE_VISUALIZATIONEXPORT needs to be turned ON to enable simulation export. Then, one can set the following two parameters in the .yaml file to export the visualization:

ExportVisualization: true
ExportVisualizationPath: relative/or/absolute/path

I made enabling simulation an extra step in CMake so that VTK is not required if one does not need visualizations.

I went back and forth between either using some sort of struct which I pass to Evaluate(), and then doing the visualization in main(), or just doing the visualization export in Evaluate(). I suppose the latter has the benefit that visualizations can also be exported when MIRCO is used as a library. But I'm not entirely sure about this structure, as it mixes the visualization export in with the actual computation..

Also, I made a change in the CMakeLists.txt such that the public headers are now explicitly listed. I think this is standard practice, as not all headers need to be accessible from outside MIRCO.

P.S. It currently shows the shape factor computation commits here because I rebased onto that branch. I think this will be resolved when that PR (#138) is merged.

Related Issues and Pull Requests

Some pictures of the visualization in Paraview:

2_Img3 2_Img2 2_Img1 2_Img6

Interested Parties / Possible Reviewers

@mayrmt
@sbrandstaeter
@RShaw026

…shape factor arrays into mirco_shapefactors.cpp, add a unit test to check the new shape factors against the old ones, and add two framework tests

Signed-off-by: Philip Oesterle-Pekrun <philipoesterlepekrun@gmail.com>
- Add throw in front of runtime errors
- Remove unnecessary namespaces
- Change MaxAndMean() to GetMax()
- Fix variable redundancies
- Fix README
- Suppress developer warnings when fetching ryml

Signed-off-by: Philip Oesterle-Pekrun <philipoesterlepekrun@gmail.com>
Signed-off-by: Philip Oesterle-Pekrun <philipoesterlepekrun@gmail.com>
Signed-off-by: Philip Oesterle-Pekrun <philipoesterlepekrun@gmail.com>
Signed-off-by: Philip Oesterle-Pekrun <philipoesterlepekrun@gmail.com>
Signed-off-by: Philip Oesterle-Pekrun <philipoesterlepekrun@gmail.com>
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.

Export Simulation Output to File

1 participant