You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I've tracked down the cause of failing errors in #72
Basically we are trying to cram too much functionality into one package and finding conflicts between the packages
To get everything working I'm thinking we need to be more modular.
We can't have situations where cubit and moab are imported into the same python environment. It causes hdf5 conflicts and would be hard for users to resolve.
But the workflow works when the export to stp then convert to h5m and then run openmc are all separate files and are executed separately with python ... but it doesn't work as one big file.
So we could make the package more modular
make a new package called stl_to_h5m that uses moab / pymoab to convert a list of stl files and their material tags into a h5m geometry.
then remove export_h5m_with_pymoab from the paramak and remove moab as a dependency. This means the package can be installed on windows which is a nice bonus
as we already have a package cad_to_h5m which takes a list of stp files and their material tags and makes a h5m file so we can remove the export_to_h5m_with_cubit method
We could then remove the general export_to_h5m method and all the method = cubit or method = pymoab parts scattered in the code.
To make it convenient for users we would still have a neutronics_description that provides all the stp filenames and the material_tags in a dictionary form that cad_to_h5m accepts
So I've tracked down the cause of failing errors in #72
Basically we are trying to cram too much functionality into one package and finding conflicts between the packages
To get everything working I'm thinking we need to be more modular.
We can't have situations where cubit and moab are imported into the same python environment. It causes hdf5 conflicts and would be hard for users to resolve.
But the workflow works when the export to stp then convert to h5m and then run openmc are all separate files and are executed separately with
python ...
but it doesn't work as one big file.So we could make the package more modular
make a new package called stl_to_h5m that uses moab / pymoab to convert a list of stl files and their material tags into a h5m geometry.
then remove export_h5m_with_pymoab from the paramak and remove moab as a dependency. This means the package can be installed on windows which is a nice bonus
as we already have a package
cad_to_h5m
which takes a list of stp files and their material tags and makes a h5m file so we can remove theexport_to_h5m_with_cubit
methodWe could then remove the general
export_to_h5m
method and all themethod = cubit
ormethod = pymoab
parts scattered in the code.To make it convenient for users we would still have a
neutronics_description
that provides all the stp filenames and the material_tags in a dictionary form that cad_to_h5m acceptsSo the files would look like this
python make_stp_files.py
python convert_stp_files_to_h5m.py
python build_openmc_model_from_h5m.py
Any thoughts on this @RemDelaporteMathurin @billingsley-john
The text was updated successfully, but these errors were encountered: