diff --git a/Electric/ConnectionTriangleStar.cs b/Electric/ConnectionTriangleStar.cs new file mode 100644 index 0000000..96a2b4d --- /dev/null +++ b/Electric/ConnectionTriangleStar.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Calculations.Electric +{ + /// + /// Calculations parameters if winding of synchronous/asynchronous motor/generator/transformer change connection between star and triangle + /// + public class ConnectionTriangleStar + { + + /// + /// Calculate voltage in triangle from star voltage + /// + /// Voltage in Star + /// Voltage in Triangle + public static decimal VoltageStarToTriangle(decimal Voltage) + { + return Voltage / (decimal)Math.Sqrt(3); + } + + /// + /// Calculate voltage in star from triangle voltage + /// + /// Voltage in Triangle + /// Voltage in Star + public static decimal VoltageTriangleToStar(decimal Voltage) + { + return Voltage * (decimal)Math.Sqrt(3); + } + + /// + /// Calculate current in triangle from star current + /// + /// Current in Star + /// Current in Triangle + public static decimal CurrentStarToTriangle(decimal Current) + { + return Current * (decimal)Math.Sqrt(3); + } + + /// + /// Calculate current in star from triangle current + /// + /// Current in Triangle + /// Current in Star + public static decimal CurrentTriangleToStar(decimal Current) + { + return Current / (decimal)Math.Sqrt(3); + } + + + + } +}