From 1697230b7c6d83ac717f8472ad7c2575e24f7371 Mon Sep 17 00:00:00 2001 From: AlbertoCuadra Date: Thu, 8 Jan 2026 15:29:27 +0100 Subject: [PATCH] Update: include `kolmogorovLengthRatio` in default `plotProperties` --- .../@ShockTurbulenceSolver/ShockTurbulenceSolver.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/+combustiontoolbox/+shockturbulence/@ShockTurbulenceSolver/ShockTurbulenceSolver.m b/+combustiontoolbox/+shockturbulence/@ShockTurbulenceSolver/ShockTurbulenceSolver.m index eacda7292..d80c05ae0 100644 --- a/+combustiontoolbox/+shockturbulence/@ShockTurbulenceSolver/ShockTurbulenceSolver.m +++ b/+combustiontoolbox/+shockturbulence/@ShockTurbulenceSolver/ShockTurbulenceSolver.m @@ -86,7 +86,7 @@ defaultFLAG_TCHEM_FROZEN = false; defaultFLAG_FROZEN = false; defaultPlotConfig = combustiontoolbox.utils.display.PlotConfig(); - defaultPlotConfig.plotProperties = {'K', 'R11', 'RTT', 'Ka', 'Kr', 'enstrophy'}; + defaultPlotConfig.plotProperties = {'K', 'R11', 'RTT', 'Ka', 'Kr', 'enstrophy', 'kolmogorovLengthRatio'}; % Parse inputs p = inputParser; @@ -119,6 +119,11 @@ obj.equilibriumSolver.caloricGasModel = p.Results.caloricGasModel; end + % Remove kolmogorovLengthRatio from plotConfig.plotProperties if problemType is 'acoustic' + if strcmpi(obj.problemType, 'acoustic') + obj.plotConfig.plotProperties = setdiff(obj.plotConfig.plotProperties, 'kolmogorovLengthRatio'); + end + % Display warning if deprecated flags are used if ~ismember('FLAG_TCHEM_FROZEN', p.UsingDefaults) || ~ismember('FLAG_FROZEN', p.UsingDefaults) warning(['The flags ''FLAG_TCHEM_FROZEN'' and ''FLAG_FROZEN'' are deprecated. ', ...