Skip to content

Calculate equilibrium constant and thermodynamic properties #3

@Maxcode123

Description

@Maxcode123

Add the functionality to be able to calculate the equilibrium constant as a method of a crdlib.chemical_reactions.reaction.ChemicalReacion.
Add also methods for enthalpy, gibbs energy and entropy that receive temperature as an input.

reaction = ...
T = Temperature(373.15, TemperatureUnit.KELVIN)

reaction.calculate_equilibrium_constant(T)
reaction.calculate_enthalpy_change(T)
reaction.calculate_gibbs_energy_change(T)
reaction.calculate_entropy_change(T)

In order to calculate equilibrium constants, thermal capacity coefficients must be defined.
Thermal capacity coefficient is defined in crdlib.properties.thermophysical.thermal_capacity.coefficient.py.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions