哈工大材料力学上机大作业Word文档下载推荐.docx
- 文档编号:17111511
- 上传时间:2022-11-28
- 格式:DOCX
- 页数:39
- 大小:121.10KB
哈工大材料力学上机大作业Word文档下载推荐.docx
《哈工大材料力学上机大作业Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《哈工大材料力学上机大作业Word文档下载推荐.docx(39页珍藏版)》请在冰豆网上搜索。
3、最大切应力:
最大切应力发生在与主平面夹45度角的平面方位。
其公式
4、应力圆
应力圆方程:
圆心:
半径:
5、三向应力状态
三向应力计算公式:
特征方程:
三个不变量
三、程序流程图
㈠平面应力计算
打开界面选择平面应力状态分析输入σx,σy,τxy和角度点击计算可计算出任意截面的应力分量以及三个主应力,主方向角和最大切应力,画出应力圆点击清除数据可进行重复计算
㈡空间应力状态计算
打开界面选择空间应力状态分析输入σx,σy,σz,τxy,τyz,τxz计算出三个主应力及最大切应力和应力圆
点击清除数据可以重复计算
四、程序源代码
1.主界面(lzd.m):
functionvarargout=lzd(varargin)
%LZDMATLABcodeforlzd.fig
%LZD,byitself,createsanewLZDorraisestheexisting
%singleton*.
%
%H=LZDreturnsthehandletoanewLZDorthehandleto
%theexistingsingleton*.
%LZD('
CALLBACK'
hObject,eventData,handles,...)callsthelocal
%functionnamedCALLBACKinLZD.Mwiththegiveninputarguments.
Property'
'
Value'
...)createsanewLZDorraisesthe
%existingsingleton*.Startingfromtheleft,propertyvaluepairsare
%appliedtotheGUIbeforelzd_OpeningFcngetscalled.An
%unrecognizedpropertynameorinvalidvaluemakespropertyapplication
%stop.Allinputsarepassedtolzd_OpeningFcnviavarargin.
%*SeeGUIOptionsonGUIDE'
sToolsmenu.Choose"
GUIallowsonlyone
%instancetorun(singleton)"
.
%Seealso:
GUIDE,GUIDATA,GUIHANDLES
%Edittheabovetexttomodifytheresponsetohelplzd
%LastModifiedbyGUIDEv2.519-Jun-201322:
04:
01
%Begininitializationcode-DONOTEDIT
gui_Singleton=1;
gui_State=struct('
gui_Name'
mfilename,...
'
gui_Singleton'
gui_Singleton,...
gui_OpeningFcn'
@lzd_OpeningFcn,...
gui_OutputFcn'
@lzd_OutputFcn,...
gui_LayoutFcn'
[],...
gui_Callback'
[]);
ifnargin&
&
ischar(varargin{1})
gui_State.gui_Callback=str2func(varargin{1});
end
ifnargout
[varargout{1:
nargout}]=gui_mainfcn(gui_State,varargin{:
});
else
gui_mainfcn(gui_State,varargin{:
%Endinitializationcode-DONOTEDIT
%---Executesjustbeforelzdismadevisible.
functionlzd_OpeningFcn(hObject,eventdata,handles,varargin)
%Thisfunctionhasnooutputargs,seeOutputFcn.
%hObjecthandletofigure
%eventdatareserved-tobedefinedinafutureversionofMATLAB
%handlesstructurewithhandlesanduserdata(seeGUIDATA)
%varargincommandlineargumentstolzd(seeVARARGIN)
%Choosedefaultcommandlineoutputforlzd
handles.output=hObject;
%Updatehandlesstructure
guidata(hObject,handles);
%UIWAITmakeslzdwaitforuserresponse(seeUIRESUME)
%uiwait(handles.figure1);
%---Outputsfromthisfunctionarereturnedtothecommandline.
functionvarargout=lzd_OutputFcn(hObject,eventdata,handles)
%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);
%Getdefaultcommandlineoutputfromhandlesstructure
varargout{1}=handles.output;
%---Executesonbuttonpressinpushbutton1.
functionpushbutton1_Callback(hObject,eventdata,handles);
close(lzd);
pingmian;
%hObjecthandletopushbutton1(seeGCBO)
%---Executesonbuttonpressinpushbutton2.
functionpushbutton2_Callback(hObject,eventdata,handles)
kongjian;
%hObjecthandletopushbutton2(seeGCBO)
%---Executesonbuttonpressinpushbutton3.
functionpushbutton3_Callback(hObject,eventdata,handles)
%hObjecthandletopushbutton3(seeGCBO)
%---Executesduringobjectdeletion,beforedestroyingproperties.
functionfigure1_DeleteFcn(hObject,eventdata,handles)
%hObjecthandletofigure1(seeGCBO)
%---Executesonbuttonpressinpushbutton5.
functionpushbutton5_Callback(hObject,eventdata,handles)
%hObjecthandletopushbutton5(seeGCBO)
zuozhexinxi;
2、平面应力状态分析(pingmian.m)
functionvarargout=pingmian(varargin)
%PINGMIANMATLABcodeforpingmian.fig
%PINGMIAN,byitself,createsanewPINGMIANorraisestheexisting
%H=PINGMIANreturnsthehandletoanewPINGMIANorthehandleto
%PINGMIAN('
%functionnamedCALLBACKinPINGMIAN.Mwiththegiveninputarguments.
...)createsanewPINGMIANorraisesthe
%appliedtotheGUIbeforepingmian_OpeningFcngetscalled.An
%stop.Allinputsarepassedtopingmian_OpeningFcnviavarargin.
%Edittheabovetexttomodifytheresponsetohelppingmian
%LastModifiedbyGUIDEv2.519-Jun-201321:
28:
55
@pingmian_OpeningFcn,...
@pingmian_OutputFcn,...
%---Executesjustbeforepingmianismadevisible.
functionpingmian_OpeningFcn(hObject,eventdata,handles,varargin)
%varargincommandlineargumentstopingmian(seeVARARGIN)
%Choosedefaultcommandlineoutputforpingmian
%UIWAITmakespingmianwaitforuserresponse(seeUIRESUME)
functionvarargout=pingmian_OutputFcn(hObject,eventdata,handles)
functionedit1_Callback(hObject,eventdata,handles)
%hObjecthandletoedit1(seeGCBO)
%Hints:
get(hObject,'
String'
)returnscontentsofedit1astext
%str2double(get(hObject,'
))returnscontentsofedit1asadouble
%---Executesduringobjectcreation,aftersettingallproperties.
functionedit1_CreateFcn(hObject,eventdata,handles)
%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled
%Hint:
editcontrolsusuallyhaveawhitebackgroundonWindows.
%SeeISPCandCOMPUTER.
ifispc&
isequal(get(hObject,'
BackgroundColor'
),get(0,'
defaultUicontrolBackgroundColor'
))
set(hObject,'
white'
);
functionedit2_Callback(hObject,eventdata,handles)
%hObjecthandletoedit2(seeGCBO)
)returnscontentsofedit2astext
))returnscontentsofedit2asadouble
functionedit2_CreateFcn(hObject,eventdata,handles)
functionedit3_Callback(hObject,eventdata,handles)
%hObjecthandletoedit3(seeGCBO)
)returnscontentsofedit3astext
))returnscontentsofedit3asadouble
functionedit3_CreateFcn(hObject,eventdata,handles)
%handlesempty
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 哈工大 材料力学 上机 作业
