Deck ----------------- The over-arching structure of the MCNP model that contains all other cards. In MCNPy, each card becomes a Python object that can be added to (or removed from) an instance of ``mcnpy.Deck``. This is simplified with operators. .. csv-table:: Deck Operators :header: "Operator", "Syntax", "Function" :widths: 20, 20, 20 :align: center "Add card to deck", ``deck = deck + card``, "``add(card)``, ``add_all(list)``" "Remove card from deck", ``deck = deck - card``, "``remove(card)``, ``remove_all(list)``" .. csv-table:: Deck In-Place Operators :header: "Operator", "Syntax", "Function" :widths: 20, 20, 20 :align: center "Add card to deck", ``deck += card``, "``add(card)``, ``add_all(list)``" "Remove card from deck", ``deck -= card``, "``remove(card)``, ``remove_all(list)``" .. note:: ``card`` is any MCNPy object that is a standalone MCNP card. ``list`` is a list of cards. .. .. automodule:: mcnpy.deck :members: :undoc-members: :show-inheritance: .. autoclass:: mcnpy.Deck :members: :show-inheritance: .. autofunction:: mcnpy.deck.run_mcnp .. autofunction:: mcnpy.deck.run_script