This commit is contained in:
xinxiao
2026-03-23 12:48:47 +08:00
parent f3407af852
commit 409e04c41d
+26 -20
View File
@@ -340,6 +340,7 @@ classdef EDFM_Simulator_App < matlab.apps.AppBase
RunLogTextAreaLabel matlab.ui.control.Label RunLogTextAreaLabel matlab.ui.control.Label
RunCurrentConfigButton matlab.ui.control.Button RunCurrentConfigButton matlab.ui.control.Button
ResultsTab matlab.ui.container.Tab ResultsTab matlab.ui.container.Tab
PlotTimeStepValueLabel matlab.ui.control.Label
PlotTimeStepSlider matlab.ui.control.Slider PlotTimeStepSlider matlab.ui.control.Slider
PlotTimeStepSliderLabel matlab.ui.control.Label PlotTimeStepSliderLabel matlab.ui.control.Label
PlotWellDropDown matlab.ui.control.DropDown PlotWellDropDown matlab.ui.control.DropDown
@@ -378,7 +379,7 @@ classdef EDFM_Simulator_App < matlab.apps.AppBase
end end
methods (Access = public) methods (Access = public)
%
function startupApp(app) function startupApp(app)
app.Controller = EDFMAppController(app); app.Controller = EDFMAppController(app);
app.Controller.startup(); app.Controller.startup();
@@ -2321,7 +2322,7 @@ classdef EDFM_Simulator_App < matlab.apps.AppBase
xlabel(app.ResultAxes, 'X') xlabel(app.ResultAxes, 'X')
ylabel(app.ResultAxes, 'Y') ylabel(app.ResultAxes, 'Y')
zlabel(app.ResultAxes, 'Z') zlabel(app.ResultAxes, 'Z')
app.ResultAxes.Position = [418 118 415 268]; app.ResultAxes.Position = [245 1 710 394];
% Create ResultSummaryTextAreaLabel % Create ResultSummaryTextAreaLabel
app.ResultSummaryTextAreaLabel = uilabel(app.ResultsTab); app.ResultSummaryTextAreaLabel = uilabel(app.ResultsTab);
@@ -2331,7 +2332,7 @@ classdef EDFM_Simulator_App < matlab.apps.AppBase
% Create ResultSummaryTextArea % Create ResultSummaryTextArea
app.ResultSummaryTextArea = uitextarea(app.ResultsTab); app.ResultSummaryTextArea = uitextarea(app.ResultsTab);
app.ResultSummaryTextArea.Position = [133 542 636 108]; app.ResultSummaryTextArea.Position = [133 566 636 84];
% Create ResultTypeDropDownLabel % Create ResultTypeDropDownLabel
app.ResultTypeDropDownLabel = uilabel(app.ResultsTab); app.ResultTypeDropDownLabel = uilabel(app.ResultsTab);
@@ -2346,107 +2347,112 @@ classdef EDFM_Simulator_App < matlab.apps.AppBase
% Create qButton % Create qButton
app.qButton = uibutton(app.ResultsTab, 'push'); app.qButton = uibutton(app.ResultsTab, 'push');
app.qButton.ButtonPushedFcn = createCallbackFcn(app, @onPlotResult, true); app.qButton.ButtonPushedFcn = createCallbackFcn(app, @onPlotResult, true);
app.qButton.Position = [270 71 177 23]; app.qButton.Position = [1070 1 177 23];
app.qButton.Text = 'q'; app.qButton.Text = 'q';
% Create ResultTab % Create ResultTab
app.ResultTab = uitable(app.ResultsTab); app.ResultTab = uitable(app.ResultsTab);
app.ResultTab.ColumnName = {'Result'}; app.ResultTab.ColumnName = {'Result'};
app.ResultTab.RowName = {}; app.ResultTab.RowName = {};
app.ResultTab.Position = [1017 114 102 112]; app.ResultTab.Position = [1145 36 102 112];
% Create Plot2DLayerButton % Create Plot2DLayerButton
app.Plot2DLayerButton = uibutton(app.ResultsTab, 'push'); app.Plot2DLayerButton = uibutton(app.ResultsTab, 'push');
app.Plot2DLayerButton.ButtonPushedFcn = createCallbackFcn(app, @Plot2DLayerButtonPushed, true); app.Plot2DLayerButton.ButtonPushedFcn = createCallbackFcn(app, @Plot2DLayerButtonPushed, true);
app.Plot2DLayerButton.Position = [256 485 177 23]; app.Plot2DLayerButton.Position = [256 522 177 23];
app.Plot2DLayerButton.Text = 'Plot2DLayer'; app.Plot2DLayerButton.Text = 'Plot2DLayer';
% Create Plot3DDistributionButton % Create Plot3DDistributionButton
app.Plot3DDistributionButton = uibutton(app.ResultsTab, 'push'); app.Plot3DDistributionButton = uibutton(app.ResultsTab, 'push');
app.Plot3DDistributionButton.ButtonPushedFcn = createCallbackFcn(app, @Plot3DDistributionButtonPushed, true); app.Plot3DDistributionButton.ButtonPushedFcn = createCallbackFcn(app, @Plot3DDistributionButtonPushed, true);
app.Plot3DDistributionButton.Position = [483 487 177 23]; app.Plot3DDistributionButton.Position = [483 524 177 23];
app.Plot3DDistributionButton.Text = 'Plot3DDistribution'; app.Plot3DDistributionButton.Text = 'Plot3DDistribution';
% Create PlotPermButton % Create PlotPermButton
app.PlotPermButton = uibutton(app.ResultsTab, 'push'); app.PlotPermButton = uibutton(app.ResultsTab, 'push');
app.PlotPermButton.ButtonPushedFcn = createCallbackFcn(app, @PlotPermButtonPushed, true); app.PlotPermButton.ButtonPushedFcn = createCallbackFcn(app, @PlotPermButtonPushed, true);
app.PlotPermButton.Position = [729 487 177 23]; app.PlotPermButton.Position = [729 524 177 23];
app.PlotPermButton.Text = 'PlotPerm'; app.PlotPermButton.Text = 'PlotPerm';
% Create PlotSPDPButton % Create PlotSPDPButton
app.PlotSPDPButton = uibutton(app.ResultsTab, 'push'); app.PlotSPDPButton = uibutton(app.ResultsTab, 'push');
app.PlotSPDPButton.ButtonPushedFcn = createCallbackFcn(app, @PlotSPDPButtonPushed, true); app.PlotSPDPButton.ButtonPushedFcn = createCallbackFcn(app, @PlotSPDPButtonPushed, true);
app.PlotSPDPButton.Position = [936 487 177 23]; app.PlotSPDPButton.Position = [936 524 177 23];
app.PlotSPDPButton.Text = 'PlotSPDP'; app.PlotSPDPButton.Text = 'PlotSPDP';
% Create PlotWellResponseButton % Create PlotWellResponseButton
app.PlotWellResponseButton = uibutton(app.ResultsTab, 'push'); app.PlotWellResponseButton = uibutton(app.ResultsTab, 'push');
app.PlotWellResponseButton.ButtonPushedFcn = createCallbackFcn(app, @PlotWellResponseButtonPushed, true); app.PlotWellResponseButton.ButtonPushedFcn = createCallbackFcn(app, @PlotWellResponseButtonPushed, true);
app.PlotWellResponseButton.Position = [51 485 177 23]; app.PlotWellResponseButton.Position = [51 522 177 23];
app.PlotWellResponseButton.Text = 'PlotWellResponse'; app.PlotWellResponseButton.Text = 'PlotWellResponse';
% Create PlotLayerDropDownLabel % Create PlotLayerDropDownLabel
app.PlotLayerDropDownLabel = uilabel(app.ResultsTab); app.PlotLayerDropDownLabel = uilabel(app.ResultsTab);
app.PlotLayerDropDownLabel.HorizontalAlignment = 'right'; app.PlotLayerDropDownLabel.HorizontalAlignment = 'right';
app.PlotLayerDropDownLabel.Position = [57 434 56 22]; app.PlotLayerDropDownLabel.Position = [57 471 56 22];
app.PlotLayerDropDownLabel.Text = 'PlotLayer'; app.PlotLayerDropDownLabel.Text = 'PlotLayer';
% Create PlotLayerDropDown % Create PlotLayerDropDown
app.PlotLayerDropDown = uidropdown(app.ResultsTab); app.PlotLayerDropDown = uidropdown(app.ResultsTab);
app.PlotLayerDropDown.Items = {''}; app.PlotLayerDropDown.Items = {''};
app.PlotLayerDropDown.ValueChangedFcn = createCallbackFcn(app, @PlotLayerDropDownValueChanged, true); app.PlotLayerDropDown.ValueChangedFcn = createCallbackFcn(app, @PlotLayerDropDownValueChanged, true);
app.PlotLayerDropDown.Position = [128 434 100 22]; app.PlotLayerDropDown.Position = [128 471 100 22];
app.PlotLayerDropDown.Value = ''; app.PlotLayerDropDown.Value = '';
% Create PlotPropertyDropDownLabel % Create PlotPropertyDropDownLabel
app.PlotPropertyDropDownLabel = uilabel(app.ResultsTab); app.PlotPropertyDropDownLabel = uilabel(app.ResultsTab);
app.PlotPropertyDropDownLabel.HorizontalAlignment = 'right'; app.PlotPropertyDropDownLabel.HorizontalAlignment = 'right';
app.PlotPropertyDropDownLabel.Position = [248 431 71 22]; app.PlotPropertyDropDownLabel.Position = [248 468 71 22];
app.PlotPropertyDropDownLabel.Text = 'PlotProperty'; app.PlotPropertyDropDownLabel.Text = 'PlotProperty';
% Create PlotPropertyDropDown % Create PlotPropertyDropDown
app.PlotPropertyDropDown = uidropdown(app.ResultsTab); app.PlotPropertyDropDown = uidropdown(app.ResultsTab);
app.PlotPropertyDropDown.Items = {''}; app.PlotPropertyDropDown.Items = {''};
app.PlotPropertyDropDown.ValueChangedFcn = createCallbackFcn(app, @PlotPropertyDropDownValueChanged, true); app.PlotPropertyDropDown.ValueChangedFcn = createCallbackFcn(app, @PlotPropertyDropDownValueChanged, true);
app.PlotPropertyDropDown.Position = [334 431 100 22]; app.PlotPropertyDropDown.Position = [334 468 100 22];
app.PlotPropertyDropDown.Value = ''; app.PlotPropertyDropDown.Value = '';
% Create PlotMetricDropDownLabel % Create PlotMetricDropDownLabel
app.PlotMetricDropDownLabel = uilabel(app.ResultsTab); app.PlotMetricDropDownLabel = uilabel(app.ResultsTab);
app.PlotMetricDropDownLabel.HorizontalAlignment = 'right'; app.PlotMetricDropDownLabel.HorizontalAlignment = 'right';
app.PlotMetricDropDownLabel.Position = [718 430 58 22]; app.PlotMetricDropDownLabel.Position = [718 467 58 22];
app.PlotMetricDropDownLabel.Text = 'PlotMetric'; app.PlotMetricDropDownLabel.Text = 'PlotMetric';
% Create PlotMetricDropDown % Create PlotMetricDropDown
app.PlotMetricDropDown = uidropdown(app.ResultsTab); app.PlotMetricDropDown = uidropdown(app.ResultsTab);
app.PlotMetricDropDown.Items = {''}; app.PlotMetricDropDown.Items = {''};
app.PlotMetricDropDown.ValueChangedFcn = createCallbackFcn(app, @PlotMetricDropDownValueChanged, true); app.PlotMetricDropDown.ValueChangedFcn = createCallbackFcn(app, @PlotMetricDropDownValueChanged, true);
app.PlotMetricDropDown.Position = [791 430 100 22]; app.PlotMetricDropDown.Position = [791 467 100 22];
app.PlotMetricDropDown.Value = ''; app.PlotMetricDropDown.Value = '';
% Create PlotWellDropDownLabel % Create PlotWellDropDownLabel
app.PlotWellDropDownLabel = uilabel(app.ResultsTab); app.PlotWellDropDownLabel = uilabel(app.ResultsTab);
app.PlotWellDropDownLabel.HorizontalAlignment = 'right'; app.PlotWellDropDownLabel.HorizontalAlignment = 'right';
app.PlotWellDropDownLabel.Position = [490 431 49 22]; app.PlotWellDropDownLabel.Position = [490 468 49 22];
app.PlotWellDropDownLabel.Text = 'PlotWell'; app.PlotWellDropDownLabel.Text = 'PlotWell';
% Create PlotWellDropDown % Create PlotWellDropDown
app.PlotWellDropDown = uidropdown(app.ResultsTab); app.PlotWellDropDown = uidropdown(app.ResultsTab);
app.PlotWellDropDown.Items = {''}; app.PlotWellDropDown.Items = {''};
app.PlotWellDropDown.ValueChangedFcn = createCallbackFcn(app, @PlotWellDropDownValueChanged, true); app.PlotWellDropDown.ValueChangedFcn = createCallbackFcn(app, @PlotWellDropDownValueChanged, true);
app.PlotWellDropDown.Position = [554 431 100 22]; app.PlotWellDropDown.Position = [554 468 100 22];
app.PlotWellDropDown.Value = ''; app.PlotWellDropDown.Value = '';
% Create PlotTimeStepSliderLabel % Create PlotTimeStepSliderLabel
app.PlotTimeStepSliderLabel = uilabel(app.ResultsTab); app.PlotTimeStepSliderLabel = uilabel(app.ResultsTab);
app.PlotTimeStepSliderLabel.HorizontalAlignment = 'right'; app.PlotTimeStepSliderLabel.HorizontalAlignment = 'right';
app.PlotTimeStepSliderLabel.Position = [918 431 77 22]; app.PlotTimeStepSliderLabel.Position = [219 430 77 22];
app.PlotTimeStepSliderLabel.Text = 'PlotTimeStep'; app.PlotTimeStepSliderLabel.Text = 'PlotTimeStep';
% Create PlotTimeStepSlider % Create PlotTimeStepSlider
app.PlotTimeStepSlider = uislider(app.ResultsTab); app.PlotTimeStepSlider = uislider(app.ResultsTab);
app.PlotTimeStepSlider.ValueChangedFcn = createCallbackFcn(app, @PlotTimeStepSliderValueChanged, true); app.PlotTimeStepSlider.ValueChangedFcn = createCallbackFcn(app, @PlotTimeStepSliderValueChanged, true);
app.PlotTimeStepSlider.Position = [1017 440 150 3]; app.PlotTimeStepSlider.Position = [318 444 150 3];
% Create PlotTimeStepValueLabel
app.PlotTimeStepValueLabel = uilabel(app.ResultsTab);
app.PlotTimeStepValueLabel.Position = [81 431 106 22];
app.PlotTimeStepValueLabel.Text = 'PlotTimeStepValue';
% Create NewConfigButton % Create NewConfigButton
app.NewConfigButton = uibutton(app.UIFigure, 'push'); app.NewConfigButton = uibutton(app.UIFigure, 'push');