mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
add more property functions for WMP
This commit is contained in:
parent
2b6f8a3094
commit
d6a6eb2aa8
1 changed files with 14 additions and 4 deletions
|
|
@ -726,10 +726,8 @@ class WindowedMultipole(EqualityMixin):
|
|||
|
||||
Attributes
|
||||
----------
|
||||
fit_order : int
|
||||
Order of the windowed curvefit.
|
||||
fissionable : bool
|
||||
Whether or not the target nuclide has fission data.
|
||||
name : str
|
||||
Name of the nuclide using the GND naming convention
|
||||
spacing : float
|
||||
The width of each window in sqrt(E)-space. For example, the frst window
|
||||
will end at (sqrt(E_min) + spacing)**2 and the second window at
|
||||
|
|
@ -784,6 +782,18 @@ class WindowedMultipole(EqualityMixin):
|
|||
def fissionable(self):
|
||||
return self.data.shape[1] == 4
|
||||
|
||||
@property
|
||||
def n_poles(self):
|
||||
return self.data.shape[0]
|
||||
|
||||
@property
|
||||
def n_windows(self):
|
||||
return self.windows.shape[0]
|
||||
|
||||
@property
|
||||
def poles_per_window(self):
|
||||
return (self.windows[:, 1] - self.windows[:, 0] + 1).mean()
|
||||
|
||||
@property
|
||||
def spacing(self):
|
||||
return self._spacing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue