warmth capacity in kg
parent
9c9b5a394c
commit
352a0d531a
|
@ -13,8 +13,8 @@ class EnergyBilanceModel extends ChangeNotifier {
|
|||
|
||||
final double _gravity = 9.81; //in m/s^2
|
||||
|
||||
final double _waterHeatCapacity = 4.181; //J / (g * C°)
|
||||
final double _ironHeatCapacity = 0.439; //in J / (g * C°)
|
||||
final double _waterHeatCapacity = 4181; //J / (kg * C°)
|
||||
final double _ironHeatCapacity = 439; //in J / (kg * C°)
|
||||
|
||||
double _waterTemparatureStart = 20; //in °C
|
||||
final int _temparatureToBoilWater = 100; //in °C
|
||||
|
@ -28,8 +28,8 @@ class EnergyBilanceModel extends ChangeNotifier {
|
|||
double get potentialEnergy => _weight * _gravity * deltaHeight; //in Joule = m^2 kg/s^2
|
||||
double get kineticEnergy => _weight * pow(deltaVelocity, 2) / 2;
|
||||
|
||||
double get amountOfBoilingWaterInL => (((potentialEnergy + kineticEnergy) / _waterHeatCapacity) / (_temparatureToBoilWater - _waterTemparatureStart)) / 1000; //in litre
|
||||
double get amountOfGlowingIronInKg => (((potentialEnergy + kineticEnergy) / _ironHeatCapacity) / (_temparatureToMakeIronGlow - _ironTemparatureStart)) / 1000;
|
||||
double get amountOfBoilingWaterInL => (((potentialEnergy + kineticEnergy) / _waterHeatCapacity) / (_temparatureToBoilWater - _waterTemparatureStart)); //in litre
|
||||
double get amountOfGlowingIronInKg => (((potentialEnergy + kineticEnergy) / _ironHeatCapacity) / (_temparatureToMakeIronGlow - _ironTemparatureStart)); //in kg
|
||||
|
||||
void setStartVelocity(double v){
|
||||
_startVelocity = v;
|
||||
|
|
Loading…
Reference in New Issue