openmc-dev / openmc

OpenMC Monte Carlo Code
https://docs.openmc.org
Other
745 stars 480 forks source link

Addition of Test Not Requiring External Cross Section Libraries #190

Closed mellis13 closed 11 years ago

mellis13 commented 11 years ago

Hello Everyone,

The following is a feature request for OpenMC.

I am working on coupling OpenMC to a multiphysics finite element package. We are building OpenMC as a dynamic library so that its modules can be accessed from the finite element package which is programmed in C++.

We will be storing a copy of OpenMC in a local repo, and we would like to be able to test the most basic functions of OpenMC without needing permission to also host the cross section data for MCNP or JEFF.

Would it be possible to add into the OpenMC test suite a "dummy" cross section file that contains extremely simple and very approximate sample cross section data for running tests? I apologize if this functionality already exists in OpenMC and I missed it.

Thanks for the help,

Matt

paulromano commented 11 years ago

Was this intentionally closed?

We've talked before about making some fake cross sections for various purposes -- testing, academic studies, etc. Just haven't gotten around to actually creating the ACE files for it. Let me know if you have anything specific in mind or if you really just want a fake cross section, regardless of what it is.

mellis13 commented 11 years ago

Thanks for the response, Paul.

I got some offline help that I think will resolve the issue for me. The crux of the idea/need was that I wanted to be able to provide some sort of dummy cross section files so that individuals that might not have immediate access to MCNP and SERPENT could still add features and debug the code. The accuracy of the cross sections would be irrelevant - they would just be needed to be able to write unit tests for proper code maintenance, etc. I think that there is a lot of value in adding this to the main repository. I closed the issue on github because it was no longer an immediate need. However, if you think that this is something you would like to include in the main repository, I would be glad to contribute.

Thanks.

paulromano commented 11 years ago

Glad to hear that you were able to figure something out in the meantime. I agree that there would be a lot of value in adding some simple fake cross sections for testing purposes. That has actually been on my list of possible projects for some time now: https://github.com/mit-crpg/openmc/wiki/Projects

I will go ahead and create a separate issue for this.