Upgrade structure of code base

This commit is contained in:
h z
2024-07-03 12:20:08 +08:00
parent bf32587520
commit f2adfb8667

View File

@@ -235,6 +235,22 @@ public class HomogeneousMixture
get => Energy / Amount; get => Energy / Amount;
set => Energy = value * Amount; set => Energy = value * Amount;
} }
/// <summary>
/// combust rate
/// </summary>
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
);
}
}
/// <summary> /// <summary>
/// total Energy the mixture holds /// total Energy the mixture holds
/// </summary> /// </summary>