def get_pressure_at_reactor(reactor=factory.get_reactor()): return Pa2Bar(reactor.core.pressure)
def get_posion_at_reactor(reactor=factory.get_reactor()): return reactor.core.poison
def get_temperature_water_in_separator_core_circuit( reactor=factory.get_reactor()): return K2C( reactor.core.water_separator.getTemperature(reactor.core.pressure))
def get_steam_in_reactor(reactor=factory.get_reactor()): return reactor.core.water_reactor.getSteam( reactor.core.pressure) * 100. # to percent
def get_temperature_water_before_separator(reactor=factory.get_reactor()): return K2C( reactor.steam_circuit.water_pipe_before_separator.getTemperature( reactor.steam_circuit.pressure_low))
def get_temperature_water_after_reactor(reactor=factory.get_reactor()): return K2C( reactor.core.water_pipe_after_reactor.getTemperature( reactor.core.pressure))
def set_reactor_pump_performance(percent, reactor=factory.get_reactor()): # [0,100] reactor.core.pump_performance = percent / 100.
def do_tick(reactor=factory.get_reactor()): reactor.do_tick()
def get_temperature_water_cooling_output(reactor=factory.get_reactor()): return K2C(reactor.cooling.output_water_temperature)
def set_controlling_rod(percent, reactor=factory.get_reactor()): # [0,100] reactor.core.controlling_rods = percent / 100.
def get_temperature_water_cooling_river(reactor=factory.get_reactor()): return K2C(reactor.cooling.input_water_temperature)
def get_output_power(reactor=factory.get_reactor()): return reactor.steam_circuit.power_output
def get_pressure_at_turbines(reactor=factory.get_reactor()): return Pa2Bar(reactor.steam_circuit.pressure_high)
def get_fuel_amount(reactor=factory.get_reactor()): return reactor.core.fuel
def set_steam_circuit_pump_performance( percent, reactor=factory.get_reactor()): # [0,100] reactor.steam_circuit.pump_performance = percent / 100.
def get_temperature_water_after_separator(reactor=factory.get_reactor()): return K2C( reactor.steam_circuit.water_pipe_after_separator.getTemperature( reactor.steam_circuit.pressure_high))
def get_tick_time(reactor=factory.get_reactor()): return reactor.tick_time
def get_temperature_water_after_turbines(reactor=factory.get_reactor()): return K2C( reactor.steam_circuit.water_pipe_after_turbines.getTemperature( reactor.steam_circuit.pressure_low))
def get_temperature_water_condenser(reactor=factory.get_reactor()): return K2C( reactor.steam_circuit.water_cooler.getTemperature( reactor.steam_circuit.pressure_low))