Open MicahGale opened 1 month ago
I've resolved the NameError
and MCNPSemanticError
errors with commit fe4593630d425071ee23881d8ee559a907aed89e, but PyMCNP has other issues with the input file. PyMCNP does not recognize the following syntax:
Those cards syntax are not mentioned in the manual, so PyMCNP only accepts the following:
Do you have any references for the syntax used in the input file?
The 0 R
syntax is allowed essentially anywhere by section 4.4.5.1.
The transform with a multi-universe fill
is allowed under note 1 of section 5.5.5.3.1.
No rotation matrix for the transform is allowed under note 3 of Section 5.5.3
Similarly the rotation matrix is optional in fill
given the same note (referred to in section 5.5.5.3.1)
All PHYS:P
options are optional as they have default values in section 5.7.2.3. J
ump is allowed anywhere default values are provided in the aforementioned section 4.4.5.1
MCNP syntax is defined by more by the exceptions and the rule, and it has been really frustrating trying to truly figure out what is, and what isn't valid. I've previously asked the MCNP developers to write a more rigorous syntax, and it sounds like they aren't able to due to how MCNP works internally, there is no formal grammar.
Describe the bug
When I was trying to play around with an MCNP input file I received a
NameError
that seems unrelated to a problem with the file.To Reproduce
A short code snippet of what you have ran. Please change or remove any specific values or anything that can't be public. For example:
Error Message (if any)
If an error message was printed please include the entire stacktrace. If it includes any specific values please change or remove them. For example:
MCNP input file snippet
This is taken from the MontePy test suite
Version