public static void Main()
ForceConductionRevised(0.2f);
public static void ForceConduction(float dt)
float conductivity = System.Math.Min(0.6f, 20f) * dt;
float totalEnergyA = 300.15f * 4.179f * 1000;
Console.WriteLine("BEFORE Water energy: " + totalEnergyA);
float startingTempA = 300.15f;
float totalEnergyB = 673.15f * 1.0f * 100;
Console.WriteLine("BEFORE Uranium energy: " + totalEnergyB);
float startingTempB = 673.15f;
float energyRatio = (totalEnergyB / (totalEnergyA + totalEnergyB)) * conductivity;
float newB = (totalEnergyA + totalEnergyB)/(4.179f * 1000 + 1.0f * 100f);
Console.WriteLine("Water: " + newA);
Console.WriteLine("Uranium: " + newB);
totalEnergyA = newA * 4.179f * 1000;
Console.WriteLine("AFTER Water energy: " + totalEnergyA);
Console.WriteLine("AFTER Water TEMP: " + ((totalEnergyA / 4.179f) / 1000));
totalEnergyB = newB * 1.0f * 100;
Console.WriteLine("AFTER Uranium energy: " + totalEnergyB);
Console.WriteLine("AFTER Uranium TEMP: " + ((totalEnergyB / 1.0f) / 100));
public static void ForceConductionRevised(float dt)
float conductivity = System.Math.Min(0.6f, 20f) * dt;
float totalEnergyA = 300.15f * 4.179f * 1000;
Console.WriteLine("BEFORE Water energy: " + totalEnergyA);
float startingTempA = 300.15f;
float totalEnergyB = 673.15f * 1.0f * 100;
Console.WriteLine("BEFORE Uranium energy: " + totalEnergyB);
float startingTempB = 673.15f;
float massRatio = bMass / aMass;
massRatio = 1 / massRatio;
float addToA = (bTemp - aTemp) * (massRatio) * conductivity * dt;
Console.WriteLine("Add to A: " + addToA);
float newA = ((totalEnergyA + addToA) / aSHC) / aMass;
float newB = ((totalEnergyB - addToA) / bSHC) / bMass;
Console.WriteLine("Water: " + newA);
Console.WriteLine("Uranium: " + newB);
totalEnergyA = newA * 4.179f * 1000;
Console.WriteLine("AFTER Water energy: " + totalEnergyA);
Console.WriteLine("AFTER Water TEMP: " + ((totalEnergyA / 4.179f) / 1000));
totalEnergyB = newB * 1.0f * 100;
Console.WriteLine("AFTER Uranium energy: " + totalEnergyB);
Console.WriteLine("AFTER Uranium TEMP: " + ((totalEnergyB / 1.0f) / 100));