fusion-energy / openmc-dagmc-wrapper

A Python package that extends OpenMC base classes to provide convenience features and standardized tallies when simulating DAGMC geometry with OpenMC.
https://openmc-dagmc-wrapper.readthedocs.io/
MIT License
7 stars 2 forks source link

disable automatic processing of tet mesh results #66

Open shimwell opened 2 years ago

shimwell commented 2 years ago

The default behaviour when running a tet mesh is to process the results and produce a vtk file.

However this can be disabled with UnstructuredMesh.output = False

Then we can call the write_data_to_vtk function in the wrapper https://github.com/openmc-dev/openmc/blob/eacd8f6bba414cac12f65059a3c17226fd0a201f/openmc/mesh.py#L722

We could do with adding a scaling factor to the write_data_to_vtk so that the results can be written out in whatever units required (e.g Watts would need scaling from eV to joules and by fusion power)

RemDelaporteMathurin commented 2 years ago

@shimwell can we close this?