Conversation
python/OpenMCInput.py
Outdated
| from OpenMCSurface import SurfaceCard,surface_from_attribute, write_openmc_surface | ||
| from OpenMCCell import cell_from_attribute, write_openmc_cell | ||
| from OpenMCMaterial import material_from_attribute, write_openmc_material | ||
| from OpenMCLattice import lattice_from_attribute, write_openmc_lattice |
There was a problem hiding this comment.
@makeclean Andrew, I'm interested in helping with building out the functionality in this branch. I have an interest in supporting translation back and forth between MCNP and OpenMC. I am curious though, if this addition is just a placeholder, or if you happen to have an uncommitted OpenMCLattice.py file (there doesn't seem to be one in this branch). Thanks.
There was a problem hiding this comment.
Hi @rtswanson I think I have a partial file somewhere, I'll push it and then feel free to work from that. I basically hit a wall that I didn't have the bandwidth for, at my inspection from the MCNP manual and the https://openmc.readthedocs.io/en/stable/io_formats/geometry.html#lattice-element OpenMC - I couldnt see an easy 1-1 mapping. But I would be thrilled if you want to take this on :)
29f8df5 to
ae35403
Compare
ae35403 to
38318e4
Compare
This PR adds the ability to import OpenMC geometry and translate to other functions.
It still needs work on geometries that have lattices & universes, but other than that should be functional