Thermodynamical functions

ChemistryLab.NumericFuncType
NumericFunc{N, F, R, Q} <: AbstractFunc

Closure-backed thermodynamic function for models that cannot be represented as symbolic expressions (e.g. HKF, or any other numeric model). Calling convention is identical to SymbolicFunc: f(; T=..., P=..., unit=false).

Variable values are resolved in order: kwarg > refs > _NF_DEFAULT_REFS. refs stores Quantity values so that unit information is preserved.

Fields

  • compiled: closure (vars...) → value in SI units.
  • vars: names of the positional arguments (e.g. (:T, :P)).
  • refs: NamedTuple of default variable values as Quantity (e.g. (T=298.15u"K", P=1e5u"Pa")).
  • unit: output unit (DynamicQuantities Quantity).
source