Added Calculations:
Temperature on changed Resistance Resistance on Changed Temperaturemaster
parent
e7a17634fe
commit
717e5116aa
|
@ -0,0 +1,41 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Calculations.Electric
|
||||
{
|
||||
/// <summary>
|
||||
/// Calculations of temperature versus change in conductor resistance and vice versa
|
||||
/// </summary>
|
||||
public class ResistanceTemperatureChange
|
||||
{
|
||||
/// <summary>
|
||||
/// Calculate new Temperature of Start Temperature, Start Resistance, End Resistance and Material Temperature Coeficient of Resistance
|
||||
/// </summary>
|
||||
/// <param name="StarTemperature">Temperature on First Resistance</param>
|
||||
/// <param name="StartResistance">First Resistance</param>
|
||||
/// <param name="EndResistance">Resistance after Resistance Change</param>
|
||||
/// <param name="MaterialCoeficient">Material Temperature Coeficient of Resistance</param>
|
||||
/// <returns>Wire Temperature on Changed Resistance</returns>
|
||||
public static decimal EndTemperature(decimal StarTemperature, decimal StartResistance, decimal EndResistance, decimal MaterialCoeficient)
|
||||
{
|
||||
return ((EndResistance - StartResistance) / (StartResistance * MaterialCoeficient)) + StarTemperature;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Calculate new Resistance of Start Temperature, Start Resistance, End Temperature and Material Temperature Coeficient of Resistance
|
||||
/// </summary>
|
||||
/// <param name="StartTemperature">Temperature on First Resistance</param>
|
||||
/// <param name="StartResistance">First Resistance</param>
|
||||
/// <param name="EndTemperature">Temperature after Temperature Changed</param>
|
||||
/// <param name="MaterialCoeficient">Material Temperature Coeficient of Resistance</param>
|
||||
/// <returns>Wire Resistance on changed Temperature</returns>
|
||||
public static decimal ResistanceChange(decimal StartTemperature, decimal StartResistance, decimal EndTemperature, decimal MaterialCoeficient)
|
||||
{
|
||||
return (StartResistance * MaterialCoeficient * (EndTemperature - StartTemperature)) + StartResistance;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -12,6 +12,7 @@ namespace Calculations.Electric
|
|||
/// </summary>
|
||||
public class TemperatureResistivityCoefficient
|
||||
{
|
||||
|
||||
public static decimal Aluminium = 4.9E-3m;
|
||||
public static decimal Brass50 = 2E-3m;
|
||||
public static decimal Brass99 = 7E-3m;
|
||||
|
@ -29,15 +30,5 @@ namespace Calculations.Electric
|
|||
public static decimal Tin = 4.2E-3m;
|
||||
public static decimal Wolfram = 4.1E-3m;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue