Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated use of cad-to-dagmc for latest API changes #33

Merged
merged 2 commits into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ runs:
sudo apt-get install -y libgl1-mesa-glx libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0
mamba activate
mamba install -y -c conda-forge moab gmsh python-gmsh "openmc=0.14.0=dagmc*nompi*"
pip install cadquery-ocp==7.7.2
pip install cadquery==2.4.0
pip install cad_to_dagmc openmc_data_downloader
pip install CAD_to_OpenMC
Expand Down
7 changes: 4 additions & 3 deletions src/model_benchmark_zoo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ def export_h5m_file_with_cad_to_dagmc(

ctd = CadToDagmc()

ctd.add_cadquery_object(self.cadquery_assembly(), material_tags=material_tags)
ctd.add_cadquery_object(self.cadquery_assembly())
ctd.export_dagmc_h5m_file(
h5m_filename,
material_tags=material_tags,
filename=h5m_filename,
min_mesh_size=min_mesh_size,
max_mesh_size=max_mesh_size
max_mesh_size=max_mesh_size,
)

def export_h5m_file_with_cad_to_openmc(
Expand Down
Loading