This is going to take a while

Once done this enum will be worth the time. However, its going to take a
lot of time to flush out all the information. As well i still need to
add math helpers to calculate all the formulas that go with these.
This commit is contained in:
DarkGuardsman 2013-10-02 04:42:58 -04:00
parent 50b1dcabcd
commit 4457d96b97
2 changed files with 25 additions and 9 deletions

View file

@ -10,23 +10,25 @@ public enum ChemThermal
{
/** Placeholder so that hydrogen starts as number one */
ZERO(),
Hydrogen(),
Helium(),
Lithium(),
Hydrogen(MatterPhase.Gas, 14.01f, 20.28f, 0.558f, 0.558f, 14300f),
Helium(MatterPhase.Gas, 0, 4.22f, 0.02f, 0.083f, 5193.1f),
Lithium(MatterPhase.Solid, 543.69f, 1615f, 3f, 147f, 3570f),
Beryllium(),
Boron(),
Carbon(),
Nitrogen(),
Oxygen();
public Phase phase = Phase.Solid;
public MatterPhase phase = MatterPhase.Solid;
public float meltingPointKelvin;
public float boilingPointKelvin;
/** kJ/mol */
public float heatOfFusion;
/** kJ/mol */
public float heatOfVaporization;
public float specificHeatSolid;
public float specificHeatLiquid;
public float specificHeatGas;
/** J/(kg K) */
public float specificHeat;
/** W/(m K) */
public float thermalConductivity;
public float thermalExpansion;
@ -35,9 +37,14 @@ public enum ChemThermal
}
public static enum Phase
private ChemThermal(MatterPhase phase, float meltingPoint, float boilingPoint, float fisionHeat, float vaporHeat, float specificHeat)
{
Solid(), Liquid(), Gas(), Plasma();
this.phase = phase;
this.meltingPointKelvin = meltingPoint;
this.boilingPointKelvin = boilingPoint;
this.heatOfFusion = fisionHeat;
this.heatOfVaporization = vaporHeat;
this.specificHeat = specificHeat;
}
}

View file

@ -0,0 +1,9 @@
package com.builtbroken.common;
public enum MatterPhase
{
Solid(),
Liquid(),
Gas(),
Plasma();
}