Skip to content

Commit

Permalink
source of formula added
Browse files Browse the repository at this point in the history
  • Loading branch information
joda9 committed Jul 25, 2024
1 parent a37c4d5 commit 1b2301a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edisgo/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,10 @@ def calculate_voltage_diff_per_line(
Voltage difference in kV.
"""
sin_phi = np.sqrt(1 - cos_phi**2)
# Calculate the voltage difference using the formula from VDE-AR-N 4105
voltage_diff = np.abs(
(s_max * 1e6 / (v_nom * 1e3)) * (r_total * cos_phi + sign * x_total * sin_phi)
)
) # in V
return voltage_diff / 1e3 # Convert to kV


Expand Down

0 comments on commit 1b2301a

Please sign in to comment.