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

Scale geometry when making DAGMCUniverse #3200

Open
shimwell opened this issue Nov 15, 2024 · 1 comment
Open

Scale geometry when making DAGMCUniverse #3200

shimwell opened this issue Nov 15, 2024 · 1 comment
Assignees

Comments

@shimwell
Copy link
Member

shimwell commented Nov 15, 2024

Description

Ability to scale DAGMC surface mesh when making DAGMCUniverse. For example if someone makes a CAD geometry meshes it and then exports a h5m file in meters format it would need scaling to get it into cm units needed by OpenMC.

For example if someone sends you a stellarator dagmc.h5m file in meters format 😆

Alternatives

Yes it would also be possible to scale the mesh when produced but assuming you don't have the workflow to remesh or you don't have the CAD then it would be super convenient to scale the geometry when making the DAGMCUniverse.

Compatibility

Compatibility would be the same as default would be to have a scaling factor of 1

@pshriwise pshriwise self-assigned this Dec 10, 2024
@pshriwise
Copy link
Contributor

pshriwise commented Jan 14, 2025

This should be able to be accomplished with code similar to that which is in place for the MOABMesh class that supports unstructured tet tally meshes.

https://github.com/openmc-dev/openmc/blob/0d4a85d3a81b74c013fc30435870ea3f7ed4eb41/src/mesh.cpp#L2290-L316

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

No branches or pull requests

2 participants