-
Notifications
You must be signed in to change notification settings - Fork 18
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
error when material density < 1 #95
Comments
Hi @LukeLabrie, Thanks for reporting this! It's definitely not intended behavior. I tried changing a couple of material densities in my model, but I didn't see this error show up. Could you let us know what version of the plotter you're using when you have a chance? |
Hi @pshriwise , apologies for the late response. I'm actually having a hard time figuring that out. Tried To install initially I just used |
Hrmmm you're right @LukeLabrie. There isn't an easy way to get that info once you've installed the tool. I've just added an option for that in #98. That might not help us here though. I think you'll need to reinstall and look through the output of the |
@LukeLabrie are you still having problems with this? |
Hi @pshriwise, I uninstalled and reinstalled. Looks like I have version 0.2.0
I still run into the same issue:
Here is the .xml entry for reference:
|
I'm still having trouble reproducing this... The type of error you're seeing looks like it's coming from the OpenMC executable itself. Is it the case that you can run this model, but you cannot view it in the plotter? |
Yes and no. I can run the model but it fails due to lost neutrons. Was hoping to use the plotter to identify overlaps, which I can as long as I go in and raise the densities where needed. |
Hi, I encountered the same problem with a model containing air with a density of 1.293e-3 g/cm3. It request a density >0. Changing the density in the xml file to >=1 g/cm3 fixed it and openmc-plotter launched without error. Attached the model.xml file causing the problem on my side. openmc-plotter 0.3.1 installed via conda on Debian 11. |
@letibdesneiges Very strange -- when I throw your model into the plotter on my end, I don't get any such error 😕 I also tried installing the plotter through conda-forge and still no problems. |
@paulromano Yes, I tried again with a fresh conda install using python 3.10 (the previous one was with python 3.9). |
@letibdesneiges That's an interesting hypothesis and could explain why you are seeing it but not me. If you try to run OpenMC using this model, do you get the same error about positive density, or does this only occur when you load the model in the plotter? |
I sat in the adjacent seat at the NEA and can confirm this bug only occurred when plotting with the plotter. The model ran fine with openmc and produced nice mesh tally plots. I also saw the changes to the XML file and the plotter working afterwards |
This same issue was discussed in #124 and already resolved |
when I run
openmc-plotter
, if any material in my materials.xml file has a density < 1.0 g/cm3, I getI first noticed on a helium material (density on the order of 1e-4 g/cm3), but while debugging I noticed that I still get it even at 0.99 g/cm3, but not at 1.0 g/cm3. Not sure if this is by design perhaps.
The text was updated successfully, but these errors were encountered: