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:
parent
50b1dcabcd
commit
4457d96b97
2 changed files with 25 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
9
src/com/builtbroken/common/MatterPhase.java
Normal file
9
src/com/builtbroken/common/MatterPhase.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package com.builtbroken.common;
|
||||
|
||||
public enum MatterPhase
|
||||
{
|
||||
Solid(),
|
||||
Liquid(),
|
||||
Gas(),
|
||||
Plasma();
|
||||
}
|
Loading…
Add table
Reference in a new issue