mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Apply suggestions from code review
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
b9683dbdba
commit
a7e1bca6da
9 changed files with 19 additions and 19 deletions
|
|
@ -84,14 +84,14 @@ class Integrator(ABC):
|
|||
dt : float
|
||||
Time in [s] for the entire depletion interval
|
||||
power : float
|
||||
Power of the system [W]
|
||||
Power of the system in [W]
|
||||
i : int
|
||||
Current depletion step index
|
||||
|
||||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
conc_list : list of numpy.ndarray
|
||||
Concentrations at each of the intermediate points with
|
||||
the final concentration as the last element
|
||||
|
|
@ -177,7 +177,7 @@ class Integrator(ABC):
|
|||
power, index, proc_time)
|
||||
|
||||
def _write_statepoint(self, step_index):
|
||||
"""Use capi to write a statepoint for this index"""
|
||||
"""Use C API to write a statepoint for this index"""
|
||||
statepoint_write(
|
||||
"openmc_simulation_n{}.h5".format(step_index + self._ires),
|
||||
write_source=False)
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class CECMIntegrator(Integrator):
|
|||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
conc_list : list of numpy.ndarray
|
||||
Concentrations at each of the intermediate points with
|
||||
the final concentration as the last element
|
||||
|
|
|
|||
|
|
@ -37,14 +37,14 @@ class CELIIntegrator(Integrator):
|
|||
dt : float
|
||||
Time in [s] for the entire depletion interval
|
||||
power : float
|
||||
Power of the system [W]
|
||||
Power of the system in [W]
|
||||
_i : int
|
||||
Current iteration count. Not used
|
||||
|
||||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
conc_list : list of numpy.ndarray
|
||||
Concentrations at each of the intermediate points with
|
||||
the final concentration as the last element
|
||||
|
|
@ -56,7 +56,7 @@ class CELIIntegrator(Integrator):
|
|||
proc_time, conc_ce = timed_deplete(self.chain, bos_conc, rates, dt)
|
||||
res_ce = self.operator(conc_ce, power)
|
||||
|
||||
# deplete using two matrix exponeitials
|
||||
# deplete using two matrix exponentials
|
||||
list_rates = list(zip(rates, res_ce.rates))
|
||||
|
||||
time_le1, conc_inter = timed_deplete(
|
||||
|
|
|
|||
|
|
@ -42,14 +42,14 @@ class CF4Integrator(Integrator):
|
|||
dt : float
|
||||
Time in [s] for the entire depletion interval
|
||||
power : float
|
||||
Power of the system [W]
|
||||
Power of the system in [W]
|
||||
i : int
|
||||
Current depletion step index
|
||||
|
||||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
conc_list : list of numpy.ndarray
|
||||
Concentrations at each of the intermediate points with
|
||||
the final concentration as the last element
|
||||
|
|
|
|||
|
|
@ -37,14 +37,14 @@ class EPC_RK4_Integrator(Integrator):
|
|||
dt : float
|
||||
Time in [s] for the entire depletion interval
|
||||
power : float
|
||||
Power of the system [W]
|
||||
Power of the system in [W]
|
||||
i : int
|
||||
Current depletion step index, unused.
|
||||
|
||||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
conc_list : list of numpy.ndarray
|
||||
Concentrations at each of the intermediate points with
|
||||
the final concentration as the last element
|
||||
|
|
|
|||
|
|
@ -51,14 +51,14 @@ class LEQIIntegrator(Integrator):
|
|||
dt : float
|
||||
Time in [s] for the entire depletion interval
|
||||
power : float
|
||||
Power of the system [W]
|
||||
Power of the system in [W]
|
||||
i : int
|
||||
Current depletion step index
|
||||
|
||||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
conc_list : list of numpy.ndarray
|
||||
Concentrations at each of the intermediate points with
|
||||
the final concentration as the last element
|
||||
|
|
|
|||
|
|
@ -51,14 +51,14 @@ class PredictorIntegrator(Integrator):
|
|||
dt : float
|
||||
Time in [s] for the entire depletion interval
|
||||
power : float
|
||||
Power of the system [W]
|
||||
Power of the system in [W]
|
||||
_i : int or None
|
||||
Iteration index. Not used
|
||||
|
||||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
conc_list : list of numpy.ndarray
|
||||
Concentrations at end of interval
|
||||
op_results : empty list
|
||||
|
|
|
|||
|
|
@ -32,14 +32,14 @@ class SI_CELI_Integrator(SI_Integrator):
|
|||
dt : float
|
||||
Time in [s] for the entire depletion interval
|
||||
power : float
|
||||
Power of the system [W]
|
||||
Power of the system in [W]
|
||||
_i : int
|
||||
Current depletion step index. Unused
|
||||
|
||||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
bos_conc_list : list of numpy.ndarray
|
||||
Concentrations at each of the intermediate points with
|
||||
the final bos_concentration as the last element
|
||||
|
|
|
|||
|
|
@ -36,14 +36,14 @@ class SI_LEQI_Integrator(SI_Integrator):
|
|||
dt : float
|
||||
Time in [s] for the entire depletion interval
|
||||
power : float
|
||||
Power of the system [W]
|
||||
Power of the system in [W]
|
||||
i : int
|
||||
Current depletion step index
|
||||
|
||||
Returns
|
||||
-------
|
||||
proc_time : float
|
||||
Time spent in CRAM routines for all materials
|
||||
Time spent in CRAM routines for all materials in [s]
|
||||
conc_list : list of numpy.ndarray
|
||||
Concentrations at each of the intermediate points with
|
||||
the final concentration as the last element
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue