二向应力状态分析

合集下载

应力状态概述二向和三向应力状态的实例二向

应力状态概述二向和三向应力状态的实例二向

2.作应力圆 主应力为 1 , 3 ,并可 确定主平面的法线。
材料力学
第七章
应力和应变分析
3.分析 纯剪切应力状态的两个主应力绝对值相等, 但一为拉应力,另一为压应力。由于铸铁抗拉强度较 低,圆截面铸铁构件扭转时构件将沿倾角为 45º 的螺旋面因拉伸而发生断裂破坏。
材料力学
第七章
2 2
x y
xy

n

材料力学
y a xy
y On D( x , ) a a
a
第七章
n
应力和应变分析
二、应力圆的画法
建立应力坐标系,如下图所 示,(注意选好比例尺) 在坐标系内画出点A( x, xy)和B(y,yx)

x
C O
2a
AB与a 轴的交点C便是圆 A( x , xy) 心。
150°
第七章
应力和应变分析
x y 2 2 1 x y ( ) xy 2 2 2
解法2—解析法:分析——建立坐标系如图
95
60°
y 45MP a yx 25 3MP a xy
25 3
x ?
y O x
60 95MPa 60 25 3MPa
材料力学
第七章
应力和应变分析
应力表示——单元体:
①dx、dy、dz(微小的正六面体) ②单元体某斜截面上的应力就代表了构件内 对应点同方位截面上的应力。
B P
dz
dx
dy
A
C
பைடு நூலகம்
B
D
C
B、C——单向受力,τ =0 A——纯剪切, σ =0
D
D——既有 σ ,又有τ

二向应力状态下的应力分析(应力圆)

二向应力状态下的应力分析(应力圆)
(
x
-s y )2
2
+
t
2 x
当斜截面随方位角 a 变化时, 其上的应力 σα , τ α 在
s - t 直角坐标系内的轨迹是一个圆 ,圆心位于横坐标轴
(
s

)上,离原点的距离为
sx
+sy
2
半径为
此圆习惯上称为应力圆 , 或称为莫尔圆。
s
(
x
2
s
y
)2
+
t
2 x
(sa
-sx
+s
2
y )2
+ ta2
A1 s
α o 确定后, s1 对应的主平面方位即确定。
tg(-2a 0 )
=
B1D1 CB1
=
2t x (s x -s
y)
再根据应力圆判断α0的
合理范围
由此可定出主应力s1 所 o 在平面的位置。由于A1A2 为 应力圆的直径, 则s2 所在的另 一主平面与s1 所在的主平面 垂直 。
t
σ2
A2 B2
σy
t
o
B2
sy
D2
sx
量取 OB2=sy , B2D2= ty ,
得D2 点
(b)
D1
B1 s
连接D1D2两点的直线与 s 轴相交于C 点, 以C为 圆心, CD1或CD2为半径 作圆
σy τy
σx
σx
τx
τx
τy
σy
t
(b)
D1
o
B2
B1
C
s
sy
D2
sx
t
该圆的圆心 C 点到 坐标

第七章应力状态及应变状态分析

第七章应力状态及应变状态分析

第七章 应力状态及应变状态分析第一节 概 述在第一章中将应力定义为内力的集度或单位面积的内力值。

应力又分正应力σ和剪应力τ两种。

前面各章的知识表明,受力杆件中任一点的应力是随截面位置及点的位置的不同而不同,如7-1(a )中a 、b 两点分别在两个截面上,其应力是不同的。

同一截面上的各点,如图7-1(b )中b 、c 两点的应力一般情况下也是不同的。

同一点不同方向的应力也是不同的。

过一点各个方向上的应力情况称为该点的应力状态....,应力状态分析就是要研究杆件中某一点(特别是危险点)各个方向上的应力之间的关系,确定该点处的最大正应力和最大剪应力,为强度计算提供重要依据。

研究应力状态的方法是过杆件中的任一点取出一个微小的六面体——单元..体.。

如图7-1(a )中过a 点取出的单元体放大如图7-2所示。

单元体三个方向的边长很小且趋于零,则该单元体代表一点,即a 点,互相平行的平面上的正应力相等,剪应力也相等。

杆件在任意荷载作用下,从中所取出的单元体表面上一般既有正应为又有剪应力,如图7-2所示。

当图7-2所示的单元体各面上的,0,0,0,0,0,0======zy zx yx yz xz xy ττττττ 即六个面上均没有剪应力作用时,这种面叫做特殊平面,并定义为主平面...。

该主(a)(b)图7-1各点的应力情况平面上作用的正应力称为主应力...,用,,,321σσσ表示(,321σσσ≥≥),如图7-3所示。

各面均为主平面的单元体,称为主单元体....。

三个主应力中若有两个等于零一个不等于零,该单元体称为单向应力状态......,如图7-4(a );三个主应力中有一个等于零,两个不等于零,该单元体称为二向应...力状态...,如图7-4(b );三个主应力均不等于零,该单元体称为三向应力状态......,如7-3。

单向应力状态和二向应力状态属平面应力状态,三向应力状态属空间应力状.....态.。

材料力学第8章应力状态分析

材料力学第8章应力状态分析

点。设想以A点为中心,用相互垂直的6个截面截取一个边长无限小的立方
体,我们将这样的立方体称为单元体。取决于截取平面的倾角变化,围绕同 一个点,可以截取出无数个不同的单元体,
图8.1(b)为依附着杆件横截面所截取单元体(图8.1(c)为其平面图形式),而 图8.1(d)为依附着45°斜截面所截取的单元体。由于杆件轴向拉伸时,横 截面上只有正应力,且与杆件轴向平行的截面没有应力,因此,图8.1(b) 中的单元体只在左右两个面上有正应力作用。对于图8.1(d)中的单元体, 根据拉压杆斜截面应力分析(2.3节)可知,其4个面上既有正应力又有切应 力。
又有切应力。围绕A,B,C三点截取单元体如图8.2(d)所示,单元体的前后
两面为平行于轴线的纵向截面,在这些面上没有应力,左右两面为横截面的 一部分,根据切应力互等定理,单元体B和C的上下两面有与横截面数值相等
的切应力。至此,单元体各面上的应力均已确定。注意到图8.2(d)各单元
体前后面上均无应力,因此也可用其平面视图表示(见图8.2(e))。
图8.2
从受力构件中截取各面应力已知的单元体后,运用截面法和静力平衡条件, 可求出单元体任一斜截面上的应力,从而可以确定出极值应力。
围绕构件内一点若从不同方向取单元体,则各个截面的应力也各不相同。其
中切应力为零的截面具有特殊的意义,称为主平面;主平面上的正应力称为 主应力。一般情况下,过构件内任一点总能找到3个互相垂直的主平面,因
图8.3
运用截面法可以求出与 z 截面垂直的任意斜截面 ac 上的应力(见图 8.3
( a ))。设斜截面 ac 的外法线 n 与 x 轴的夹角为 α (斜截面 ac 称 为 α 截面),并规定从 x 轴正向逆时针转到斜截面外法线 n 时 α 角为正

刘鸿文《材料力学》复习笔记和课后习题(含考研真题)详解(应力和应变分析强度理论)【圣才出品】

刘鸿文《材料力学》复习笔记和课后习题(含考研真题)详解(应力和应变分析强度理论)【圣才出品】

平面的外法线方向。
7 / 135
圣才电子书 十万种考研考证电子书、题库视频学习平台

三、三向应力状态分析 1.三向应力圆 如图 7-1-4 所示,以三个主应力表示的单元体,由三个相互垂直的平面分别作应力圆, 将三个平面的应力圆绘在同一平面上得到三向应力状态下的应力圆,如图 7-1-5 所示。与 每一主应力所对应的应力圆可由与该主平面相正交的其余面上的应力作出。 注意:作三向应力圆应至少知道一个主应力的大小和方向。
1 / 135
圣才电子书 十万种考研考证电子书、题库视频学习平台

实例:在滚珠轴承中,滚珠与外圈接触点处的应力状态,可以作为三向应力状态的实例。 二、二向应力状态分析 1.解析法 如图 7-1-1(a)所示,一单元体 abcd 处于平面应力状态,采用截面法取左边部分单 元体 eaf 为研究对象,如图 7-1-1(b)所示。
5 / 135
圣才电子书 十万种考研考证电子书、题库视频学习平台

图 7-1-3(a)
图 7-1-3(b) ③求主应力数值和主平面位置 a.求主应力数值的方法 如图 7-1-3(b)所示,点 A1 和点 B1 分别为代表最大主应力和最小主应力,其大小为
6 / 135
圣才电子书 十万种考研考证电子书、题库视频学习平台
圣才电子书 十万种考研考证电子书、题库视频学习平台

第 7 章 应力和应变分析强度理论
7.1 复习笔记
一、应力状态 一点的应力状态:过一点不同方向面上应力的集合。 应力状态的研究对象是单元体,其特征为:①单元体的尺寸无限小,每个面上应力均匀 分布;②任意一对平行平面上的应力相等。 主单元体是指各侧面上切应力均为零的单元体。其中,单元体上切应力为零的面称为主 平面,主平面上的正应力称为主应力。 说明:一点处必定存在一个单元体,使得三个相互垂直的面均为主平面,三个互相垂直 的主应力分别记为 σ1、σ2、σ3,且规定按代数值大小的顺序来排列,即 σ1≥σ2≥σ3。 应力状态分类及实例 (1)单向应力状态:也称为简单应力状态,三个主应力 σ1、σ2、σ3 中只有一个不等 于零。 实例:简单的拉伸或压缩。 (2)平面(二向)应力状态:三个主应力 σ1、σ2、σ3 中有两个不等于零。 实例:薄壁圆筒横截面上的点和圆形容器包含直径的任意横截面上的点。 (3)空间(三向)应力状态:和平面应力状态统称为复杂应力状态,三个主应力 σ1、 σ2、σ3,均不等于零。

二向应力状态分析—图解法

二向应力状态分析—图解法
§7–4 二向应力状态分析—图解法
x
2
y
x
2
y
cos 2
x
sin
2
x
2
y
sin
2
x
cos 2
1、 莫尔圆的概念
(
x
y 2
)2
2
(x
y )2 2
2 x
(
x
y 2
)2
2
(x
y 2
)2
2x
当斜截面随方位角 变化时, 其上的应力 , 在 - 直角坐标系内的轨迹是一个圆 。
圆心的坐标为(the coordinates of MOHR circle’s center)
y
xm
900
t
450
k
D
y
xm
900
t
450
k
D
y
3
τ max
x
τ max
k
450
1
解: 从圆筒表面 k 点处取出单元体, 其各面上的应力分量如图 所示
可求得
y 1 max 80MPa
x 3 max 80MPa
z 0
k点处的线应变 x , y 为
y
x
1 E
(x
y )
1 E
(max
z
x
二、纯剪的本构关系
xy
xy
G
i 0 ( i x,y,z ) yz zx 0
y
xy
z
x
三、复杂状态下的本构关系
y
依叠加原理,得
y
z
z
x
xy
x
x
x
E
y
E

二向等拉应力状态

二向等拉应力状态

二向等拉应力状态二向等拉应力状态引言在工程设计和实际应用中,结构件的受力状态是非常重要的。

其中,二向等拉应力状态是一种常见的受力状态,其特点是在两个方向上都存在同样大小的拉力。

本文将深入探讨二向等拉应力状态的概念、特点、计算方法以及在实际应用中的注意事项。

概念二向等拉应力状态指的是,在一个平面内,某一结构件或零件同时受到两个方向上同样大小的拉力作用。

这种受力状态也称为“正交拉伸”或“均匀张伸”。

特点1. 拉伸方向相互垂直:在二向等拉应力状态下,两个方向上的拉伸相互垂直,即使其中一个方向上出现了变形或破坏,也不会影响到另一个方向。

2. 可以通过简单计算确定最大应力值:由于该受力状态下两个方向上的应力相同且相互垂直,因此可以通过简单计算确定最大应力值。

3. 适用范围广泛:由于该受力状态具有均匀性和对称性,在实际工程中广泛适用于各种结构件和零件的设计和制造。

计算方法在二向等拉应力状态下,最大应力值可以通过以下公式进行计算:σ = F / A其中,σ为应力值,F为作用于结构件上的拉力大小,A为结构件横截面积大小。

由于该受力状态下两个方向上的应力相同且相互垂直,因此在计算时只需考虑其中一个方向即可。

注意事项1. 结构件需要具有对称性:由于该受力状态具有对称性,因此结构件需要具有对称性才能保证两个方向上的拉伸大小相同。

2. 结构件需要足够强度:在实际应用中,结构件需要具有足够的强度才能承受两个方向上的拉伸力。

3. 避免过度设计:由于该受力状态下可以通过简单计算确定最大应力值,因此在设计时要避免过度设计,否则会造成资源浪费和成本增加。

4. 注意材料特性:不同材料的特性不同,在实际应用中需要根据材料特性进行合理选择和使用。

结论二向等拉应力状态是一种常见的受力状态,在工程设计和实际应用中广泛适用。

其特点是拉伸方向相互垂直、可以通过简单计算确定最大应力值、适用范围广泛等。

在实际应用中需要注意结构件的对称性、足够强度、避免过度设计以及材料特性等问题。

《材料力学 第2版》_顾晓勤第09章第2节 二向应力状态分析

《材料力学 第2版》_顾晓勤第09章第2节 二向应力状态分析

第 2 节 二向应力状态分析 第九章 复杂应力状态和强度理论
最大主应力和最小主应力的计算式
max m in
x
y
2
x
2
y
2
2 x
确定 max 和 min 所在平面的方法
1)若x>y,则所求的两个角度0 和 90º+0 中, 绝对值较小的一个确定max 所在的平面;
2)若x <y,则所求的两个角度0 和 90º+0 中, 绝对值较小的一个确定min 所在的平面;
2

2sin cos sin 2 对以上二式进行整理得到:
x
y
2
x
y
2
cos2
x
sin 2
x
y
2
sin 2
x
cos2
第 2 节 二向应力状态分析 第九章 复杂应力状态和强度理论
x
y
2
x
y
2
cos2
x
sin 2
x
y
2
sin 2
x
cos2
利用上述两式可以求得 de 斜截面上的正应力和切
设 de 斜截面面积为 dA,则 ae 面的面积为 dAsin , ad面的面积为 dAcos 。取 t 和 n 为参考轴,建立棱
柱体 ade 的受力平衡方程如下:
dA ( xdAcos ) sin ( xdAcos ) cos ( ydAsin ) cos ( ydAsin ) sin 0
y
2
2 x
105 MPa
第 2 节 二向应力状态分析 第九章 复杂应力状态和强度理论
0
1 2
arctan(
2 x x
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

二向应力状态分析程序代码function varargout = erxyl(varargin)% ERXYL M-file for erxyl.fig% ERXYL, by itself, creates a new ERXYL or raises the existing% singleton*.%% H = ERXYL returns the handle to a new ERXYL or the handle to% the existing singleton*.%% ERXYL('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in ERXYL.M with the given input arguments. %% ERXYL('Property','Value',...) creates a new ERXYL or raises the % existing singleton*. Starting from the left, property value pairs are% applied to the GUI before erxyl_OpeningFcn gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to erxyl_OpeningFcn via varargin.%% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one% instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help erxyl% Last Modified by GUIDE v2.5 05-Jan-2011 17:46:09% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @erxyl_OpeningFcn, ...'gui_OutputFcn', @erxyl_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before erxyl is made visible.function erxyl_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)% varargin command line arguments to erxyl (see VARARGIN)% Choose default command line output for erxylhandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes erxyl wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line. function varargout = erxyl_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)% Get default command line output from handles structurevarargout{1} = handles.output;function edit1_Callback(hObject, eventdata, handles)handles.X=str2double(get(hObject,'String'));guidata(hObject,handles);% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit1 as text% str2double(get(hObject,'String')) returns contents of edit1 as a double% --- Executes during object creation, after setting all properties. function edit1_CreateFcn(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit2_Callback(hObject, eventdata, handles)handles.T=str2double(get(hObject,'String'));guidata(hObject,handles);% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit2 as text% str2double(get(hObject,'String')) returns contents of edit2 as a double% --- Executes during object creation, after setting all properties. function edit2_CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');function edit3_Callback(hObject, eventdata, handles)handles.Y=str2double(get(hObject,'String'));guidata(hObject,handles);% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit3 as text% str2double(get(hObject,'String')) returns contents of edit3 as a double% --- Executes during object creation, after setting all properties. function edit3_CreateFcn(hObject, eventdata, handles)% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit4_Callback(hObject, eventdata, handles)handles.A=str2double(get(hObject,'String'));guidata(hObject,handles);% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit4 as text% str2double(get(hObject,'String')) returns contents of edit4 as a double% --- Executes during object creation, after setting all properties.function edit4_CreateFcn(hObject, eventdata, handles)% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit5_Callback(hObject, eventdata, handles)% hObject handle to edit5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit5 as text% str2double(get(hObject,'String')) returns contents of edit5 as a double% --- Executes during object creation, after setting all properties. function edit5_CreateFcn(hObject, eventdata, handles)% hObject handle to edit5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit6_Callback(hObject, eventdata, handles)% hObject handle to edit6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit6 as text% str2double(get(hObject,'String')) returns contents of edit6 as a double% --- Executes during object creation, after setting all properties. function edit6_CreateFcn(hObject, eventdata, handles)% hObject handle to edit6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit7_Callback(hObject, eventdata, handles)% hObject handle to edit7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit7 as text% str2double(get(hObject,'String')) returns contents of edit7 as a double% --- Executes during object creation, after setting all properties. function edit7_CreateFcn(hObject, eventdata, handles)% hObject handle to edit7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit8_Callback(hObject, eventdata, handles)% hObject handle to edit8 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit8 as text% str2double(get(hObject,'String')) returns contents of edit8 as a double% --- Executes during object creation, after setting all properties. function edit8_CreateFcn(hObject, eventdata, handles)% hObject handle to edit8 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit9_Callback(hObject, eventdata, handles)% hObject handle to edit9 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit9 as text% str2double(get(hObject,'String')) returns contents of edit9 as a double% --- Executes during object creation, after setting all properties. function edit9_CreateFcn(hObject, eventdata, handles)% hObject handle to edit9 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit10_Callback(hObject, eventdata, handles)% hObject handle to edit10 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit10 as text% str2double(get(hObject,'String')) returns contents of edit10 as a double% --- Executes during object creation, after setting all properties. function edit10_CreateFcn(hObject, eventdata, handles)% hObject handle to edit10 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit11_Callback(hObject, eventdata, handles)% hObject handle to edit11 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit11 as text% str2double(get(hObject,'String')) returns contents of edit11 as a double% --- Executes during object creation, after setting all properties. function edit11_CreateFcn(hObject, eventdata, handles)% hObject handle to edit11 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit12_Callback(hObject, eventdata, handles)% hObject handle to edit12 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit12 as text% str2double(get(hObject,'String')) returns contents of edit12 as a double% --- Executes during object creation, after setting all properties. function edit12_CreateFcn(hObject, eventdata, handles)% hObject handle to edit12 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit13_Callback(hObject, eventdata, handles)% hObject handle to edit13 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit13 as text% str2double(get(hObject,'String')) returns contents of edit13 as a double% --- Executes during object creation, after setting all properties. function edit13_CreateFcn(hObject, eventdata, handles)% hObject handle to edit13 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit14_Callback(hObject, eventdata, handles)% hObject handle to edit14 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit14 as text% str2double(get(hObject,'String')) returns contents of edit14 as a double% --- Executes during object creation, after setting all properties. function edit14_CreateFcn(hObject, eventdata, handles)% hObject handle to edit14 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in pushbutton1.%显示应力圆,蓝线代表斜截面上应力,绿线代表主切应力,水平黑线代表主应力function pushbutton1_Callback(hObject, eventdata, handles)R=(((handles.X-handles.Y)/2)^2+handles.T^2)^(1/2);x1=-100:100;y1=0*x1;y2=-100:100;x2=0*y2;a=0:1/1000000:2*pi;x=(handles.X+handles.Y)/2+sin(a)*R;y=cos(a)*R;xx=(handles.X+handles.Y)/2+(handles.X-handles.Y)/2*cos(2*handles.A)+h andles.T*sin(2*handles.A);tt=handles.T*cos(2*handles.A)-((handles.X-handles.Y)/2)*sin(2*handles .A);aa=[(handles.X+handles.Y)/2,xx];bb=[0,tt];xmax=(handles.X+handles.Y)/2+(((handles.X-handles.Y)/2)^2+handles.T^2 )^(1/2);xmin=(handles.X+handles.Y)/2-(((handles.X-handles.Y)/2)^2+handles.T^2 )^(1/2);tmax=(xmax-xmin)/2;tmin=-tmax;MM=[(handles.X+handles.Y)/2,(handles.X+handles.Y)/2];NN=[tmax,tmin];plot(x1,y1,'black',x2,y2,'black',x,y,'black',aa,bb,'b-',MM,NN,'g-','L ineWidth',1.5);title('Ó¦ Á¦ Ô²');% hObject handle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --- Executes on button press in pushbutton3.%显示计算结果function pushbutton3_Callback(hObject, eventdata, handles)x1=(handles.X+handles.Y)/2+(handles.X-handles.Y)/2*cos(2*handles.A)+h andles.T*sin(2*handles.A);t1=handles.T*cos(2*handles.A)-((handles.X-handles.Y)/2)*sin(2*handles .A);xmax=(handles.X+handles.Y)/2+(((handles.X-handles.Y)/2)^2+handles.T^2 )^(1/2);xmin=(handles.X+handles.Y)/2-(((handles.X-handles.Y)/2)^2+handles.T^2 )^(1/2);tmax=(xmax-xmin)/2;tmin=-tmax;Tmax=num2str(tmax);Tmin=num2str(tmin);Xmax=num2str(xmax);Xmin=num2str(xmin);T1=num2str(t1);X1=num2str(x1);set(handles.edit5,'String',X1);set(handles.edit6,'String',T1);set(handles.edit7,'String',Xmax);set(handles.edit8,'String',Xmin);set(handles.edit11,'String',Tmax);set(handles.edit12,'String',Tmin);dA=2*handles.T/(handles.X-handles.Y);A=atan(dA);judge1=(handles.X+handles.Y)/2+(handles.X-handles.Y)/2*cos(A)+handles .T*sin(A);judge2=(handles.X+handles.Y)/2+(handles.X-handles.Y)/2*cos(A+pi)+hand les.T*sin(A+pi);AA1=num2str(A/2);AA2=num2str((pi+A)/2);if judge1>=judge2set(handles.edit9,'String',AA1);set(handles.edit10,'String',AA2);set(handles.edit13,'String',num2str(A/2-pi/4));set(handles.edit14,'String',num2str(A/2+pi/4));elseset(handles.edit9,'String',AA2);set(handles.edit10,'String',AA1);set(handles.edit13,'String',num2str((pi+A)/2-pi/4));set(handles.edit14,'String',num2str((pi+A)/2+pi/4));end% hObject handle to pushbutton3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)运行截图程序说明本程序运行方式:将m代码在matlab中打开,点击运行符号即可(不要用fig文件运行)。

相关文档
最新文档