using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Calculations.Electric
{
///
/// Calculations of temperature versus change in conductor resistance and vice versa
///
public class ResistanceTemperatureChange
{
///
/// Calculate new Temperature of Start Temperature, Start Resistance, End Resistance and Material Temperature Coeficient of Resistance
///
/// Temperature on First Resistance
/// First Resistance
/// Resistance after Resistance Change
/// Material Temperature Coeficient of Resistance
/// Wire Temperature on Changed Resistance
public static decimal EndTemperature(decimal StarTemperature, decimal StartResistance, decimal EndResistance, decimal MaterialCoeficient)
{
return ((EndResistance - StartResistance) / (StartResistance * MaterialCoeficient)) + StarTemperature;
}
///
/// Calculate new Resistance of Start Temperature, Start Resistance, End Temperature and Material Temperature Coeficient of Resistance
///
/// Temperature on First Resistance
/// First Resistance
/// Temperature after Temperature Changed
/// Material Temperature Coeficient of Resistance
/// Wire Resistance on changed Temperature
public static decimal ResistanceChange(decimal StartTemperature, decimal StartResistance, decimal EndTemperature, decimal MaterialCoeficient)
{
return (StartResistance * MaterialCoeficient * (EndTemperature - StartTemperature)) + StartResistance;
}
}
}