gtopt::line_thermal namespace

Classes

struct LinearResistance
struct ThermalState
Steady-state operating point of one branch at a given current.

Functions

auto alpha_from_inferred_zero(double reference_temperature, double inferred_zero = kAluminumInferredZero) -> double noexcept
α = 1 / (T_ref + T_F): temperature coefficient [1/°C] at T_ref.
auto from_ieee738(const ieee738::ConductorParams& conductor) -> LinearResistance noexcept
auto ieee738_conductor_temperature(const ieee738::ConductorParams& conductor, const ieee738::SpanWeather& weather, double current, double max_temperature = 400.0) -> std::optional<double> noexcept
auto resistance_at(const LinearResistance& r, double temperature) -> double noexcept
R(T).
auto steady_state(const LinearResistance& r, double thermal_resistance, double ambient_temperature, double current) -> std::optional<ThermalState> noexcept
auto steady_state_from_loss(const LinearResistance& r, double thermal_resistance, double ambient_temperature, double loss) -> ThermalState noexcept
auto temperature_from_loss(double ambient_temperature, double thermal_resistance, double loss) -> double noexcept
T = T_amb + R_Θ · P_loss: lumped steady-state conductor temperature.
auto thermal_resistance_from_rated_rise(const LinearResistance& r, double rated_current, double rated_rise = kDefaultRatedRise) -> double noexcept

Variables

double kAluminumInferredZero
double kDefaultRatedRise
Frank's default rated temperature rise over ambient [°C].

Function documentation

double gtopt::line_thermal::alpha_from_inferred_zero(double reference_temperature, double inferred_zero = kAluminumInferredZero) noexcept

α = 1 / (T_ref + T_F): temperature coefficient [1/°C] at T_ref.

LinearResistance gtopt::line_thermal::from_ieee738(const ieee738::ConductorParams& conductor) noexcept

The IEEE 738 two-point resistance (r25, r75) as a linear model referenced at 25 °C; resistance_at then equals ieee738::resistance_at everywhere.

std::optional<double> gtopt::line_thermal::ieee738_conductor_temperature(const ieee738::ConductorParams& conductor, const ieee738::SpanWeather& weather, double current, double max_temperature = 400.0) noexcept

IEEE Std 738 steady-state conductor temperature [°C] at current [A per sub-conductor]: the root of q_c(T) + q_r(T) − q_s − I²·R(T) in [T_a, max_temperature] (bisection to ~1e-10 °C). std::nullopt when even max_temperature cannot shed the heat.

double gtopt::line_thermal::resistance_at(const LinearResistance& r, double temperature) noexcept

R(T).

std::optional<ThermalState> gtopt::line_thermal::steady_state(const LinearResistance& r, double thermal_resistance, double ambient_temperature, double current) noexcept

Steady state of the coupled laws T = T_amb + R_Θ·I²·R(T) and the linear R(T) at current current (closed form of the fixed point). std::nullopt on thermal runaway (α·R_Θ·I²·R_ref ≥ 1) or a non-finite result. A zero resistance gives T = T_amb, zero loss.

ThermalState gtopt::line_thermal::steady_state_from_loss(const LinearResistance& r, double thermal_resistance, double ambient_temperature, double loss) noexcept

Steady state from a known loss instead of a current: T = T_amb + R_Θ·P_loss, R = R(T) (no fixed point needed). The current is then sqrt(P_loss / R).

double gtopt::line_thermal::temperature_from_loss(double ambient_temperature, double thermal_resistance, double loss) noexcept

T = T_amb + R_Θ · P_loss: lumped steady-state conductor temperature.

double gtopt::line_thermal::thermal_resistance_from_rated_rise(const LinearResistance& r, double rated_current, double rated_rise = kDefaultRatedRise) noexcept

Simplified rated-rise thermal resistance R_Θ = ΔT_rated / (I_rated² · R(t_ref + ΔT_rated)) [°C per loss unit]. Units follow the inputs: per-unit current and resistance give °C per pu loss (divide by S_base for °C/MW); A and Ω/m give °C·m/W. Returns +∞ for a zero-resistance or zero-rated branch (transformer or ideal link: no conductor heating), as Frank's data import does.

Variable documentation

double gtopt::line_thermal::kAluminumInferredZero

Inferred zero-resistance temperature T_F of aluminium [°C] (Frank et al. 2013; IEEE/IEC conductor tables).

double gtopt::line_thermal::kDefaultRatedRise

Frank's default rated temperature rise over ambient [°C].