orbitx/physics/electroconstants.py
def _use_orbitv_constants(name: str, hab_component: bool, power_inefficiency: float,
                          passive_heat_loss: float, secondary_loop_conductivity: float,
                          primary_loop_conductivity: float, resting_temperature: float):
    """Helper only for use in this file. Values here were just imported from obitsej.txt.
    That's why this function is allowed to be so ugly."""
    # Note: we're modifying globals here. We don't need a `global` statement
    # since we're only modifying elements of an array, but just pointing it out.

    POWER_INEFFICIENCY[strings.COMPONENT_NAMES.index(name)] = power_inefficiency
    PASSIVE_HEAT_LOSS[strings.COMPONENT_NAMES.index(name)] = passive_heat_loss
    COOLANT_CONDUCTIVITY_MATRIX[1][strings.COMPONENT_NAMES.index(name)] = secondary_loop_conductivity
    RESTING_TEMPERATURE[strings.COMPONENT_NAMES.index(name)] = resting_temperature

    if hab_component:
        COOLANT_CONDUCTIVITY_MATRIX[0][strings.COMPONENT_NAMES.index(name)] = primary_loop_conductivity
    else:
        # This is an AYSE component
        COOLANT_CONDUCTIVITY_MATRIX[2][strings.COMPONENT_NAMES.index(name)] = primary_loop_conductivity
Helper only for use in this file. Values here were just imported from obitsej.txt.
    That's why this function is allowed to be so ugly.
Helper only for use in this file. Values here were just imported from obitsej.txt.
That's why this function is allowed to be so ugly.
Helper only for use in this file . Values here were just imported from obitsej . txt . That ' s why this function is allowed to be so ugly .
def _use_orbitv_constants(name: str, hab_component: bool, power_inefficiency: float,
                          passive_heat_loss: float, secondary_loop_conductivity: float,
                          primary_loop_conductivity: float, resting_temperature: float):
    POWER_INEFFICIENCY[strings.COMPONENT_NAMES.index(name)] = power_inefficiency
    PASSIVE_HEAT_LOSS[strings.COMPONENT_NAMES.index(name)] = passive_heat_loss
    COOLANT_CONDUCTIVITY_MATRIX[1][strings.COMPONENT_NAMES.index(name)] = secondary_loop_conductivity
    RESTING_TEMPERATURE[strings.COMPONENT_NAMES.index(name)] = resting_temperature
    if hab_component:
        COOLANT_CONDUCTIVITY_MATRIX[0][strings.COMPONENT_NAMES.index(name)] = primary_loop_conductivity
    else:
        COOLANT_CONDUCTIVITY_MATRIX[2][strings.COMPONENT_NAMES.index(name)] = primary_loop_conductivity
def _use_orbitv_constants ( name : str , hab_component : bool , power_inefficiency : float , passive_heat_loss : float , secondary_loop_conductivity : float , primary_loop_conductivity : float , resting_temperature : float ) : POWER_INEFFICIENCY [ strings . COMPONENT_NAMES . index ( name ) ] = power_inefficiency PASSIVE_HEAT_LOSS [ strings . COMPONENT_NAMES . index ( name ) ] = passive_heat_loss COOLANT_CONDUCTIVITY_MATRIX [ 1 ] [ strings . COMPONENT_NAMES . index ( name ) ] = secondary_loop_conductivity RESTING_TEMPERATURE [ strings . COMPONENT_NAMES . index ( name ) ] = resting_temperature if hab_component : COOLANT_CONDUCTIVITY_MATRIX [ 0 ] [ strings . COMPONENT_NAMES . index ( name ) ] = primary_loop_conductivity else : COOLANT_CONDUCTIVITY_MATRIX [ 2 ] [ strings . COMPONENT_NAMES . index ( name ) ] = primary_loop_conductivity
Helper only for use in this file.
Helper only for use in this file .
"""Helper only for use in this file. Values here were just imported from obitsej.txt.
    That's why this function is allowed to be so ugly.""" # Note: we're modifying globals here. We don't need a `global` statement # since we're only modifying elements of an array, but just pointing it out. # This is an AYSE component
name
str
hab_component
bool
power_inefficiency
float
passive_heat_loss
float
secondary_loop_conductivity
float
primary_loop_conductivity
float
resting_temperature
float