iopleke / Minechem

Chemical decomposition and synthesis in Minecraft
http://iopleke.github.io/Minechem/
Other
82 stars 94 forks source link

Endothermic/exothermic reactions #704

Open remexre opened 9 years ago

remexre commented 9 years ago

Would it be possible to make a config option to use "real science" to calculate energy costs? A formula like:

(net energy cost) = sum((energies of formation of products)) - sum((energies of formation of reactants))

This would make Minechem a lot more realistic, as the player would need to "couple" reactions that are high and low energy -- chemical reactions could create or release energy. This would also allow the player to charge the internal energy buffer without needing an external power supply.

hilburn commented 9 years ago

This is planned already

MeshPL commented 8 years ago

There is no such thing as energy if formation. There is standard Gibbs free energy of formation, which is the amount of energy extractable from the reaction. That is dependentbon enthalpy of formation (amount of energy released or consumed by theoretical formation of compound from pure elements) and entrophy and temperature. Data on free energy of formation, enthalpy of formation and enthropy of formation are definitely easy to come by, however do not expect full data on each and every compound. Especially organic stuff. The tricky part is temperature, because not every reaction will proceed at every temperature, it will require heating, energy loses... blah, blah, blah...

So I would assume there are no energy loses and reaction proceeds at room temperature. And would base calculations on Gibbs standard free energy. To calculate it for specific compound use the following equation: G=H-T*S Where: G-Gibbs standard free energy of formation H-standard enthalpy of formation S-standard molar entropy T-temperature in Kelvin

Note: standard molar entropy is not 0 for pure slements and is often expressed without kilo- prefix, so any calculations must take that into account.

Hope I got it right... sorry for any mistakes.