-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests, compute Reynolds number as in Cigre207 report
- Loading branch information
Halvor Lund
committed
May 30, 2024
1 parent
2e22bcb
commit fe42a31
Showing
8 changed files
with
346 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,27 @@ | ||
from typing import Union | ||
|
||
from linerate.units import OhmPerMeter, Ampere, SquareMeter, Unitless, SquareMeterPerAmpere | ||
from linerate.units import OhmPerMeter | ||
|
||
|
||
def correct_resistance_acsr_magnetic_core_loss_simple( | ||
ac_resistance: OhmPerMeter, | ||
current: Ampere, | ||
aluminium_cross_section_area: SquareMeter, | ||
constant_magnetic_effect: Union[Unitless, None], | ||
current_density_proportional_magnetic_effect: Union[SquareMeterPerAmpere, None], | ||
max_relative_increase: Unitless, | ||
def correct_resistance_for_skin_effect( | ||
dc_resistance: OhmPerMeter, | ||
) -> OhmPerMeter: | ||
r""" | ||
Return resistance with constant correction for magnetic effects, using simple method from | ||
Return resistance with constant correction for skin effect, using simple method from | ||
Cigre 207, see section 2.1.1. | ||
Parameters | ||
---------- | ||
ac_resistance: | ||
:math:`R~\left[\Omega\right]`. The AC resistance of the conductor. | ||
current: | ||
:math:`I~\left[\text{A}\right]`. The current going through the conductor. | ||
aluminium_cross_section_area: | ||
:math:`A_{\text{Al}}~\left[\text{m}^2\right]`. The cross sectional area of the aluminium | ||
strands in the conductor. | ||
constant_magnetic_effect: | ||
:math:`b`. The constant magnetic effect, most likely equal to 1. If ``None``, then no | ||
correction is used (useful for non-ACSR cables). | ||
current_density_proportional_magnetic_effect: | ||
:math:`m`. The current density proportional magnetic effect. If ``None``, then it is | ||
assumed equal to 0. | ||
max_relative_increase: | ||
:math:`c_\text{max}`. Saturation point of the relative increase in conductor resistance. | ||
dc_resistance: | ||
:math:`R~\left[\Omega\right]`. The DC resistance of the conductor. | ||
Returns | ||
------- | ||
Union[float, float64, ndarray[Any, dtype[float64]]] | ||
:math:`R_\text{corrected}~\left[\Omega\right]`. The resistance of the conductor after | ||
taking steel core magnetization effects into account. | ||
taking skin effect into account. | ||
""" | ||
return 1.0123 * ac_resistance | ||
return 1.0123 * dc_resistance | ||
|
||
|
||
# TODO: Implement section 2.1.2? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.