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

Python Mesh and C++ Mesh classes #428

Open
GiudGiud opened this issue Jul 11, 2019 · 0 comments
Open

Python Mesh and C++ Mesh classes #428

GiudGiud opened this issue Jul 11, 2019 · 0 comments

Comments

@GiudGiud
Copy link
Contributor

Currently, OpenMOC has two mesh classes to tally reaction rates with.
process.Mesh (defined in process.py) is only for uniform meshes, and is very easy to use from the Python side. It can be created straight from a Lattice object

openmoc.Mesh (defined in Mesh.cpp) can do non-uniform meshes as well, and is created slightly differently. SWIG bindings make sure it's callable from Python. It is defined on the C++ side, and is faster which can be important for large 3D problems.

In the future, we want to merge these classes or keep only one Mesh class. The process.py class is the one that should go, since the C++ build also needs the capability to tally reaction rates.

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

1 participant