Example
- class mcnpy.example.Pincell(filename='pincell.mcnp')[source]
Bases:
objectA simple pin-cell model
- Parameters
filename (str, optional) – Name of file to be written.
- filename
Name of file to be written.
- Type
str
- deck
The MCNP model object.
- Type
mcnp.Deck
- class mcnpy.example.RCF(filename='rcf_full_api.mcnp', water=68.0, bank=0.0, sporty=False)[source]
Bases:
objectA full core model of RPI’s Reactor Critical Facility. A very critical reactor that will live on in the virtual world no matter what Shirley, Marty, Shekhar, Rebecca, and/or the RPI administration does. This example will generate a new MCNP deck, build the RCF, and write the model to file.`water` sets the height of the water in the reactor in inches (default is 68.0in). bank sets the control rod bank height in inches (default is rods fully bottomed at 0.0in). sporty when set to True removes the center fuel pin which puts the RCF in sport mode. filename specifies the name of the new MCNP input (default is ./rcf_full_api.mcnp). The model can be accessed with the deck attribute.
- Parameters
filename (str, optional) – Name of file to be written.
water (float, optional) – RCF water height in inches.
bank (float, optional) – RCF control rod bank height in inches.
sporty (boolean, optional) – Whether or not sport mode is engaged.
- filename
Name of file to be written.
- Type
str
- water
RCF water height in inches.
- Type
float
- bank
RCF control rod bank height in inches.
- Type
float
- sporty
Whether or not sport mode is engaged.
- Type
boolean
- deck
The MCNP model object.
- Type
mcnp.Deck