- class openmc.CellInstanceFilter(bins, filter_id=None)¶
Bins tally events based on which cell instance a particle is in.
This filter is similar to
DistribcellFilterbut allows one to select particular instances to be tallied (instead of obtaining all instances by default) and allows instances from different cells to be specified in a single filter.
New in version 0.12.
- classmethod from_xml_element(elem, **kwargs)¶
Generate a filter from an XML element
- get_pandas_dataframe(data_size, stride, **kwargs)¶
Builds a Pandas DataFrame for the Filter’s bins.
This method constructs a Pandas DataFrame object for the filter with columns annotated by filter bin information. This is a helper method for
A Pandas DataFrame with a multi-index column for the cell instance. The number of rows in the DataFrame is the same as the total number of bins in the corresponding tally, with the filter bin appropriately tiled to map to the corresponding tally bins.
- Return type