NuclearEng12 said:
I am running a simple MCNPX input code and am getting a fatal error that says:
"Fatal Error: no m card for material no. X".
I thought it was something with my data card or my cell cards but can not figure out what the problem is.
Check the cell cards and the corresponding material card.
Cell card syntax:
j m d geom params
j = cell number; 1 ≤ j ≤ 99999.
m = 0 if the cell is a void.
or,= material number if the cell is not a void. This indicates that the cell is
to contain material m, which is specified on the Mm card.
"Cell, surface, and data cards must all begin within the first five columns. Entries are
separated by one or more blanks. Numbers can be integer or floating point. MCNP makes the
appropriate conversion. A data entry item must be completed on one line.
Blanks filling the first five columns indicate a continuation of the data from the last named
card. An '&' (ampersand) ending a line indicates data will continue on the following card,
where data on the continuation card can be in columns 1~80.
MCNP makes extensive checks of the input file for user errors. A FATAL error occurs if a
basic constraint of the input specification is violated, and MCNP will terminate before
running any particles. The first fatal error is real; subsequent error messages may or may not
be real because of the nature of the first fatal message."
"The material specification gives a material number to be referenced by cell cards, the atomic
number, the atomic mass and the weight fraction or the atomic fraction of each constituent
(element) in the material. The format of material cards is shown below:
Mm ZAID
1 fraction
1 ZAID
2 fraction
2 ... ZAID
n fraction
nwhere m corresponds to the material number on the cell cards, ZAID
i (i = 1, ..., n) is in the format ZZZAAA where ZZZ is the atomic number and AAA is the atomic mass for constituent i, fraction
i is the weight fraction if entered as a negative number, or the atomic fraction if entered as a positive number of constituent i in the material, and n is total number of constituents in the material."
The fractions must add to 1 with the appropriate precision, otherwise there will be a fatal error.
Ref:
http://scholar.lib.vt.edu/theses/available/etd-07252000-10110036/unrestricted/14Appendix.pdf