资源描述:
《应力状态分析材力上机实验报告》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、材料力学上机大作业一、题目要求:应力状态分析应力状态分析输入:1.平面应力状态输入:(σx、σy、τxy);某截面方位角α2.空间应力状态输入(σx、σy、σz、τxy、τyz、τzx)输出:1.输出主应力(σ1、σ2、σ3)2.最大切应力[τmax=τ13=(σ1-σ3)/2]3.如为平面应力状态则需输入方位角α斜截面上的应力σα、τα及主方向角α0。4.画出应力圆示意图,如为平面应力状态则需标明斜截面上的应力σα、τα对应点及半径程序:由matlAB程序GUI功能实现可视化窗口,使界面更加友好。程序分为三个部分:1.主页;2.平面应力计算;3.空间应力计算。
2、在主页可以选择进入平面应力计算或是空间应力计算,从平面或空间应力计算也可以返回主页。下面是程序代码:1.主页:functionvarargout=zhuye(varargin)%ZHUYEMATLABcodeforzhuye.fig%ZHUYE,byitself,createsanewZHUYEorraisestheexisting%singleton*.%%H=ZHUYEreturnsthehandletoanewZHUYEorthehandleto%theexistingsingleton*.%%ZHUYE('CALLBACK',hObject,eventD
3、ata,handles,...)callsthelocal%functionnamedCALLBACKinZHUYE.Mwiththegiveninputarguments.%%ZHUYE('Property','Value',...)createsanewZHUYEorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforezhuye_OpeningFcngetscalled.An%unrecognizedpropertynameor
4、invalidvaluemakespropertyapplication%stop.Allinputsarepassedtozhuye_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyone%instancetorun(singleton)".%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Edittheabovetexttomodifytheresponsetohelpzhuye%LastModifiedbyGUIDEv2.527-M
5、ay-201415:42:51%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@zhuye_OpeningFcn,...'gui_OutputFcn',@zhuye_OutputFcn,...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&&ischar(varargin{1})g
6、ui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%---Executesjustbeforezhuyeismadevisible.functionzhuye_OpeningFcn(hObject,eventdata,handles,vara
7、rgin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstozhuye(seeVARARGIN)%Choosedefaultcommandlineoutputforzhuyehandles.output=hObject
8、;%Updatehand