⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tempsimumain.m

📁 vb开发的神经网络
💻 M
📖 第 1 页 / 共 5 页
字号:
        grid off;
    end
    set(gca,'XTick',[1:1:7]);
    set(gca,'XTickLabel','F1|F2|F3|F4|F5|F6|F7')
    title('轧制温升','fontweight','bold','fontsize',10);

    % 单条带钢仿真 结束
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



elseif get(handles.btnMultiSimu,'value')==1
    % 多条带钢仿真 开始
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    str = {'F1~F7全部','F1轧制温升','F2轧制温升','F3轧制温升','F4轧制温升','F5轧制温升',...
        'F6轧制温升','F7轧制温升'};
    [s_radiat,v_radiat] = listdlg('name','轧制温升','PromptString','选择:',...
        'SelectionMode','single',...
        'ListString',str);
    if v_radiat
        switch s_radiat
            case 1
                plot(Temp_deform_inc);
                legend('F1','F2','F3','F4','F5','F6','F7');
                title('轧制温升','fontweight','bold','fontsize',10);
            case 2
                plot(Temp_deform_inc(:,1));
                title('F1轧制温升','fontweight','bold','fontsize',10);
            case 3
                plot(Temp_deform_inc(:,2));
                title('F2轧制温升','fontweight','bold','fontsize',10);
            case 4
                plot(Temp_deform_inc(:,3));
                title('F3轧制温升','fontweight','bold','fontsize',10);
            case 5
                plot(Temp_deform_inc(:,4));
                title('F4轧制温升','fontweight','bold','fontsize',10);
            case 6
                plot(Temp_deform_inc(:,5));
                title('F5轧制温升','fontweight','bold','fontsize',10);
            case 7
                plot(Temp_deform_inc(:,6));
                title('F6轧制温升','fontweight','bold','fontsize',10);
            case 8
                plot(Temp_deform_inc(:,7));
                title('F7轧制温升','fontweight','bold','fontsize',10);
        end
        xlabel('带钢数','FontSize',9);
        ylabel('温度(`C)','FontSize',9);
        if get(handles.checkboxGrid,'value')
            grid on;
        else
            grid off;
        end
        if get(handles.checkboxHold,'value')
            hold on;
        else
            hold off;
        end
    end
    % 多条带钢仿真 开始
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end

%计算变形温升  结束
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% --- Executes on button press in btnTrans.
function btnTrans_Callback(hObject, eventdata, handles)
% hObject    handle to btnTrans (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

%计算传导温降  开始
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% 读入已计算的结果
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FM=get(handles.btnFMTempSimu,'userdata');
Temp_heat_trans=FM{1}.Temp_heat_trans;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% 单条或多条带钢仿真
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% 判断是否新图显示
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if get(handles.checkboxFigure,'value')
    hNewR=figure;
    axes('parent',hNewR);
    set(gcf,'color','w');
else
    axes(handles.axes1);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

if get(handles.btnMultiSimu,'value')==0
    % 单条带钢仿真 开始
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    %     sign=handles.stripListVal;
    %
    %     if isequal(get(handles.UIMenuModel1,'checked'),'on')
    %         % 进行非差分模型仿真
    %         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %         [Temp_simu,Temp_act,Temp_pre,Temp_deform_inc,Temp_heat_trans,Temp_radiat,...
    %             Temp_cooling]=TempSimuCalc(sign,Mparam,Eparam,data);
    %         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %     elseif isequal(get(handles.UIMenuModel2,'checked'),'on')
    %         path_pwd=handles.PathDefault;
    %         path=strcat(handles.PathDefault,'\DiffModel');
    %         cd(path);
    %         % 进行差分模型仿真
    %         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %         [Temp_simu,Temp_act,Temp_pre,Temp_deform_inc,Temp_heat_trans,Temp_radiat,Temp_cooling]=TempDiffSimul(sign,data);
    %         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %         cd(path_pwd);
    %     end

    bar(Temp_heat_trans(1,:));
    ylabel('温度(`C)','FontSize',9);
    if get(handles.checkboxGrid,'value')
        grid on;
    else
        grid off;
    end
    set(gca,'XTick',[1:1:7]);
    set(gca,'XTickLabel','F1|F2|F3|F4|F5|F6|F7')
    title('接触热传导','fontweight','bold','fontsize',10);

    % 单条带钢仿真 开始
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    % 多条带钢仿真 开始
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
elseif get(handles.btnMultiSimu,'value')==1



    str = {'F1~F7全部','F1接触热传导','F2接触热传导','F3接触热传导','F4接触热传导','F5接触热传导',...
        'F6接触热传导','F7接触热传导'};
    [s_radiat,v_radiat] = listdlg('name','轧制温升','PromptString','选择:',...
        'SelectionMode','single',...
        'ListString',str);
    if v_radiat
        switch s_radiat
            case 1
                plot(Temp_heat_trans);
                legend('F1','F2','F3','F4','F5','F6','F7');
                title('接触热传导','fontweight','bold','fontsize',10);
            case 2
                plot(Temp_heat_trans(:,1));
                title('F1接触热传导','fontweight','bold','fontsize',10);
            case 3
                plot(Temp_heat_trans(:,2));
                title('F2接触热传导','fontweight','bold','fontsize',10);
            case 4
                plot(Temp_heat_trans(:,3));
                title('F3接触热传导','fontweight','bold','fontsize',10);
            case 5
                plot(Temp_heat_trans(:,4));
                title('F4接触热传导','fontweight','bold','fontsize',10);
            case 6
                plot(Temp_heat_trans(:,5));
                title('F5接触热传导','fontweight','bold','fontsize',10);
            case 7
                plot(Temp_heat_trans(:,6));
                title('F6接触热传导','fontweight','bold','fontsize',10);
            case 8
                plot(Temp_heat_trans(:,7));
                title('F7接触热传导','fontweight','bold','fontsize',10);
        end
        xlabel('带钢数','FontSize',9);
        ylabel('温度(`C)','FontSize',9);
        if get(handles.checkboxGrid,'value')
            grid on;
        else
            grid off;
        end
        if get(handles.checkboxHold,'value')
            hold on;
        else
            hold off;
        end
    end
    % 多条带钢仿真 结束
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end

%计算传导温降  结束
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% --- Executes on button press in btnDesCooling.
function btnDesCooling_Callback(hObject, eventdata, handles)
% hObject    handle to btnDesCooling (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

%计算水冷温降 开始
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% 读入已计算的结果
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FM=get(handles.btnFMTempSimu,'userdata');
Temp_cooling=FM{1}.Temp_cooling;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% 单条或多条带钢仿真
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% 判断是否新图显示
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if get(handles.checkboxFigure,'value')

    hNewR=figure;
    axes('parent',hNewR);
    set(gcf,'color','w');
else
    axes(handles.axes1);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

if get(handles.btnMultiSimu,'value')==0
    % 单条带钢仿真 开始
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %     sign=handles.stripListVal;
    %
    %     if isequal(get(handles.UIMenuModel1,'checked'),'on')
    %         % 进行非差分模型仿真
    %         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %         [Temp_simu,Temp_act,Temp_pre,Temp_deform_inc,Temp_heat_trans,Temp_radiat,...
    %             Temp_cooling]=TempSimuCalc(sign,Mparam,Eparam,data);
    %         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %     elseif isequal(get(handles.UIMenuModel2,'checked'),'on')
    %         path_pwd=handles.PathDefault;
    %         path=strcat(handles.PathDefault,'\DiffModel');
    %         cd(path);
    %         % 进行差分模型仿真
    %         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %         [Temp_simu,Temp_act,Temp_pre,Temp_deform_inc,Temp_heat_trans,Temp_radiat,Temp_cooling]=TempDiffSimul(sign,data);
    %         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %         cd(path_pwd);
    %     end

    bar(Temp_cooling(1,:));
    ylabel('温度(`C)','FontSize',9);
    if get(handles.checkboxGrid,'value')
        grid on;
    else
        grid off;
    end
    set(gca,'XTick',[1:1:8]);
    set(gca,'XTickLabel','Descal|F1~F2|F2~F3|F3~F4|F4~F5|F5~F6|F6~F7|F7~FDT')
    title('高压水除鳞/机架间水冷温降','fontweight','bold','fontsize',10);

    % 单条带钢仿真 结束
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %     axis([0 9 0 50]);

elseif get(handles.btnMultiSimu,'value')==1
    % 多条带钢仿真 开始
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    str = {'RDT~FDT全部','R4~F1间水除鳞','F1~F2间高压水','F2~F3间冷却水','F3~F4间冷却水','F4~F5间冷却水',...
        'F5~F6间冷却水','F6~F7间冷却水','F7~FDT间冷却水'};
    [s_radiat,v_radiat] = listdlg('name','高压水除鳞/机架间水冷温降','PromptString','选择:',...
        'SelectionMode','single',...
        'ListString',str);
    if v_radiat
        switch s_radiat
            case 1
                plot(Temp_cooling);
                legend('RDT~F1','F1~F2','F2~F3','F3~F4','F4~F5','F5~F6','F6~F7','F7~FDT');
                title('高压水除鳞/机架间水冷温降','fontweight','bold','fontsize',10);
            case 2
                plot(Temp_cooling(:,1));
                title('高压水除鳞','fontweight','bold','fontsize',10);
            case 3
                plot(Temp_cooling(:,2));
                title('F1~F2间水冷','fontweight','bold','fontsize',10);
            case 4
                plot(Temp_cooling(:,3));
                title('F2~F3间水冷','fontweight','bold','fontsize',10);
            case 5
                plot(Temp_cooling(:,4));
                title('F3~F4间水冷','fontweight','bold','fontsize',10);
            case 6
                plot(Temp_cooling(:,5));
                title('F4~F5间水冷','fontweight','bold','fontsize',10);
            case 7
                plot(Temp_cooling(:,6));
                title('F5~F6间水冷','fontweight','bold','fontsize',10);
            case 8
                plot(Temp_cooling(:,7));
                title('F5~F6间水冷','fontweight','bold','fontsize',10);
            case 9
                plot(Temp_cooling(:,8));
                title('F7~FDT间水冷','fontweight','bold','fontsize',10);
        end
        xlabel('带钢数','FontSize',9);
        ylabel('温度(`C)','FontSize',9);
        %         axis([-inf inf 0 50]);
        if get(handles.checkboxGrid,'value')
            grid on;
        else
            grid off;
        end
        if get(handles.checkboxHold,'value')
            hold on;
        else
            hold off;
        end
    end
    % 多条带钢仿真 开始
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end

%计算水冷温降  结束
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% --- Executes on button press in btnRadiate.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -