power_balance.calc.efficiencies#
Source: power_balance/calc/efficiencies.py
calc_heating_to_elec_eff#
calc_heating_to_elec_eff(heating_profile: str, sim_time: numpy.ndarray, elec_in: numpy.ndarray, plasma_scenario: dict) -> power_balance.calc.Efficiency
Calculate the thermal to electric efficiency Uses the heating in profile and HCD electrical power array to calculate the heating to electric efficiency.
Parameters#
-
heating_profile
:str
path of MAT file containing profile of heating power input to the plasma
-
elec_in
:numpy.ndarray
electrical power consumed
Returns#
-
power_balance.calc.Efficiency
thermal to electric efficiency value
calc_thermal_to_elec_eff#
calc_thermal_to_elec_eff(thermal_in_profile: str, sim_time: numpy.ndarray, total_generated: numpy.ndarray, plasma_scenario: dict) -> power_balance.calc.Efficiency
Calculate the thermal to electric efficiency Uses the thermal out profile and total generated power array to calculate the thermal to electric efficiency.
Parameters#
-
thermal_in_profile
:str
path of MAT file containing profile of thermal output energy from the tokamak
-
total_generated
:numpy.ndarray
total power generated
Returns#
-
power_balance.calc.Efficiency
thermal to electric efficiency value