From f2adfb8667527d6f9fa6246b58a0d1d8bd15f841 Mon Sep 17 00:00:00 2001 From: hzhang Date: Wed, 3 Jul 2024 12:20:08 +0800 Subject: [PATCH] Upgrade structure of code base --- .../Mixtures/Implements/HomogeneousMixture.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Chemistry/Mixtures/Implements/HomogeneousMixture.cs b/src/Chemistry/Mixtures/Implements/HomogeneousMixture.cs index 1d7b8d2..278293e 100644 --- a/src/Chemistry/Mixtures/Implements/HomogeneousMixture.cs +++ b/src/Chemistry/Mixtures/Implements/HomogeneousMixture.cs @@ -235,6 +235,22 @@ public class HomogeneousMixture get => Energy / Amount; set => Energy = value * Amount; } + + /// + /// combust rate + /// + public double CombustRate + { + get + { + H3 w = StateMatrix.Get!.ConjugateOn(new DiagR3(0, Math.PI, 2 * Math.PI)); + return w.Rayleigh( + LogStateMatrix.Get!.ColumnAverageBivariant + + StateMatrix.Get.Hermitian().ColumnAverageBivariant + ); + } + } + /// /// total Energy the mixture holds ///