绳拉线轴的运动

Similar documents
Microsoft PowerPoint - Lecture7II.ppt

,., 1.2, (Mode), : 1. Draw Mode, Boundary Mode PDE Mode, 2. Mesh Mode Solve Mode 3. Plot Mode, PDETOOL

MATLAB介紹

Microsoft Word - template.doc

Logitech Wireless Combo MK45 English

epub83-1

CANVIO_AEROCAST_CS_EN.indd

ch_code_infoaccess

(Microsoft Word - \251I\250D\245D\246W

IP505SM_manual_cn.doc

Windows XP

Guide to Install SATA Hard Disks

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

Chn 116 Neh.d.01.nis

ebook140-9

K301Q-D VRT中英文说明书141009

06 01 action JavaScript action jquery jquery AJAX CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS b

:5-6

ebook70-13

2

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

ebook

動作的合成.doc

自动化接口

1.ai

Microsoft Word - FPKLSC_21.docx

AL-M200 Series

三維空間之機械手臂虛擬實境模擬

2 SGML, XML Document Traditional WYSIWYG Document Content Presentation Content Presentation Structure Structure? XML/SGML 3 2 SGML SGML Standard Gener

MATLAB 1

國立中山大學學位論文典藏.PDF

附件

廚餘來電.doc

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

K7VT2_QIG_v3

入學考試網上報名指南

BC04 Module_antenna__ doc


101 年 全 國 高 職 學 生 實 務 專 題 製 作 競 賽 暨 成 果 展 報 告 書 題 目 :Beat CNN`s Report, 驚 艷 外 國 人 的 嘴 - 皮 蛋 之 大 改 造 指 導 老 師 : 林 佩 怡 參 賽 學 生 : 胡 雅 吟 楊 椀 惇 張 毓 津 許 巧 文

Microsoft Word - HSK使用手册.doc

附件三、

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Epson

Open topic Bellman-Ford算法与负环

2012 年 4 月 至 6 月 活 動 一 覽 月 份 計 劃 / 項 目 活 動 4 月 竹 園 中 心 活 動 竹 園 中 心 開 放 日 暨 沒 有 巴 掌 日 嘉 年 華 :4 月 28 日 v 迎 新 會 :4 月 21 日 童 歡 部 落 v 義 工 服 務 :5 月 27 日 v 小

2015 年 度 收 入 支 出 决 算 总 表 单 位 名 称 : 北 京 市 朝 阳 区 卫 生 局 单 位 : 万 元 收 入 支 出 项 目 决 算 数 项 目 ( 按 功 能 分 类 ) 决 算 数 一 财 政 拨 款 一 一 般 公 共 服 务 支 出 二

目 录 第 一 部 分 档 案 局 概 况 一 主 要 职 责 二 部 门 决 算 单 位 构 成 第 二 部 分 档 案 局 2016 年 度 部 门 预 算 表 一 2016 年 度 市 级 部 门 收 支 预 算 总 表 二 2016 年 度 市 级 部 门 支 出 预 算 表 三 2016

%

Collection of 2012 Examination Certificates

國立中山大學論文典藏.PDF


Microsoft Word _4.doc

Microsoft Word - 愛吐沙的蛤蜊

i

科展作品說明書--情定水果 香邀你我

标题

第 一 部 分 投 标 邀 请 一. 项 目 名 称 : 北 京 大 学 附 属 中 学 副 食 品 商 店 协 议 供 货 商 招 标 项 目 二. 项 目 内 容 : 北 京 大 学 附 属 中 学 采 购 中 心 现 就 学 校 副 食 品 商 店 的 供 货 协 议 商 进 行 招 标, 中

我 可 以 向 你 们 保 证 以 下 的 内 容 100% 真 实, 请 您 一 定 耐 心 看 完 从 医 15 年 来, 我 也 反 复 告 诉 病 人 这 些 事 实 但 是 没 有 人 愿 意 去 听, 更 没 有 人 愿 意 去 相 信 或 许, 我 们 的 同 胞 们 真 的 需 要


Microsoft Word - 附件.doc

國立桃園高中96學年度新生始業輔導新生手冊目錄

mm 5 1 Tab 1 Chemical composition of PSB830 finishing rolled rebars % C Si Mn P S V 0 38 ~ 1 50 ~ 0 80 ~ ~

Microsoft Word - 105碩博甄簡章.doc

untitled

Microsoft Word - Final Exam Review Packet.docx

USING MAYA ANIMATION Keyset set Maya sets partitions MEL MEL copykey cutkey pastekey scalekey snapkey keytangent bakeresults MEL Command Reference Edi

WFC40810

<4D F736F F D20B773B0AAA4A4BFEFACECC2B2A4B628B6B6A7C7AAA D E65772E646F63>

모집요강(중문)[2013후기외국인]04.26.hwp

17 Prelight Apply Color Paint Vertex Color Tool Prelight Apply Color Paint Vertex Color Tool 242 Apply Color, Prelight Maya Shading Smooth

第六篇


hks298cover&back

Microsoft Word - 苹果脚本跟我学.doc

2014春小学、幼儿园校本教研总结.doc

C++ 程式設計

MDP2016_hk_class2_preview

Business Objects 5.1 Windows BusinessObjects 1

Microsoft PowerPoint - Eisenstein_ABET_Presentation_Beijing_Oct_2007-Chinese.ppt [兼容模式]


摘 要 張 捷 明 是 台 灣 當 代 重 要 的 客 語 兒 童 文 學 作 家, 他 的 作 品 記 錄 著 客 家 人 的 思 想 文 化 與 觀 念, 也 曾 榮 獲 多 項 文 學 大 獎 的 肯 定, 對 台 灣 這 塊 土 地 上 的 客 家 人 有 著 深 厚 的 情 感 張 氏 於

PowerPoint Presentation

編 者 的 話 理 財 的 概 念 要 從 小 培 養 還 記 得 小 時 候, 一 個 香 腸 包 賣 多 少 錢 嗎? 3 元? 4 元? 5 元? 現 在 又 需 要 幾 多 錢 才 可 買 一 個 呢? 6 元? 8 元? 10 元? 十 年 後 又 賣 多 少 錢?( 大 概 20 元 有

1 引言

<4D F736F F D C2E0BEC7A6D2A4ADB14DB0EAA4E52DB8D5C344A8F72E646F63>

Visual Basic D 3D

致 謝 在 研 究 所 這 段 期 間 受 到 了 許 多 人 的 幫 助, 才 有 今 日 我 創 作 及 論 文 的 樣 貌 首 先 我 要 謝 謝 我 的 爸 媽, 知 道 我 自 小 就 喜 歡 塗 塗 畫 畫, 高 中 開 始 為 了 準 備 考 美 術 系 而 每 日 下 課 後 往 畫

WVT new

WinMDI 28

Microsoft Word - 山西焦化(600740)--焦炭价格上涨提升业绩,市场整合带来机会 doc

HC50246_2009

jsp

13 A DSS B DSS C DSS D DSS A. B. C. CPU D. 15 A B Cache C Cache D L0 L1 L2 Cache 16 SMP A B. C D 17 A B. C D A B - C - D

Microsoft Word doc

概述

untitled

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f

UTI (Urinary Tract Infection) - Traditional Chinese

Transcription:

绳拉线轴的运动 物理系 2001 级程鹏学号 01261094 如图所示, 一绳拉动线轴在水平面上做无滑滚动 线轴与地面的接触点为瞬心 根据在惯性系中刚体对瞬心的角动量定理得, 当绳与地面的夹角大于角 A 时, 力 F 对瞬心的力矩使线轴逆时针转动, 反之当绳与地面的夹角小于角 A 时, 线轴顺时针转动 源程序如下 : %%program gz.m f=1; R=5;r=2; m=10;l=8; theta=pi/6; [t,u]=ode45( gzfun,[0:0.001:5],[0,0],[],f,r,r,m,theta); x=r*u(:,1);y=r*ones(length(t),1); ll=l*ones(length(t),1);rr=r*ones(length(t),1); xa=x+rr*sin(theta);ya=y-rr*cos(theta); xb=xa+(ll+r*u(:,1))*cos(theta); yb=ya+(ll+r*u(:,1))*sin(theta); xc=x-r*sin(u(:,1));yc=y-r*cos(u(:,1)); xd=x-r*sin(u(:,1));yd=y-r*cos(u(:,1)); figure axis([-20,20,-2,5]); axis equal hold on a10=line([-20,20],[0,0], color, k, linewidth,3.5); a20=linspace(-20,20,80); for i=1:79 a30=(a20(i)+a20(i+1))/2; plot([a20(i),a30],[0,0-0.5], color, b,... linestyle, -, linewidth,1); fai=0:0.01:7;fai1=rot90(fai);yy=r*ones(length(fai),1); px=r*cos(fai1);py=yy+r*sin(fai1); qx=r*cos(fai1);qy=yy+r*sin(fai1); ball1=line(px,py, color, b, linewidth,2, erasemode, xor ); ball2=line(qx,qy, color, b, linewidth,2, erasemode, xor );

xian=line([xa(1),xb(1)],[ya(1),yb(1)], color, k,... gan=line([xc(1),xd(1)],[yc(1),yd(1)], color, k,... for i=1:length(t) xx=x(i)*ones(length(fai),1); pxx=xx+r*cos(fai1);pyy=yy+r*sin(fai1); qxx=xx+r*cos(fai1);qyy=yy+r*sin(fai1); set(ball1, xdata,pxx, ydata,pyy); set(ball2, xdata,qxx, ydata,qyy); set(xian, xdata,[xa(i),xb(i)], ydata,... [ya(i),yb(i)]); set(gan, xdata,[xc(i),xd(i)], ydata,... [yc(i),yd(i)]); drawnow function udot=gzfun(t,u,flag,f,r,r,m,theta) udot=[u(2); 2*f*(R*cos(theta)-r)/3*m*(R^2)]; function varargout = jiemian(varargin) % JIEMIAN Application M-file for jiemian.fig % FIG = JIEMIAN launch jiemian GUI. % JIEMIAN( callback_name,...) invoke the named callback. % Last Modified by GUIDE v2.0 24-Jun-2003 12:46:59 if nargin == 0 % LAUNCH GUI fig = openfig(mfilename, reuse ); % Generate a structure of handles to pass to callbacks, and store it. Handles = guihandles(fig); guidata(fig, handles); if nargout > 0 varargout{1} = fig; elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK try if (nargout) else [varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard

feval(varargin{:}); % FEVAL switchyard catch disp(lasterr); ABOUT CALLBACKS: GUIDE automatically apps subfunction prototypes to this file, and sets objects callback properties to call them through the FEVAL switchyard above. This comment describes that mechanism. Each callback subfunction declaration has the following form: <SUBFUNCTION_NAME>(H, EVENTDATA, HANDLES, VARARGIN) The subfunction name is composed using the object s Tag and the callback type separated by _, e.g. slider2_callback, figure1_closerequestfcn, axis1_buttondownfcn. H is the callback object s handle (obtained using GCBO). EVENTDATA is empty, but reserved for future use. HANDLES is a structure containing handles of components in GUI using tags as fieldnames, e.g. handles.figure1, handles.slider2. This structure is created at GUI startup using GUIHANDLES and stored in the figure s application data using GUIDATA. A copy of the structure is passed to each callback. You can store additional information in this structure at GUI startup, and you can change the structure during callbacks. Call guidata(h, handles) after changing your copy to replace the stored original so that subsequent callbacks see the updates. Type help guihandles and help guidata for more information. VARARGIN contains any extra arguments you have passed to the callback. Specify the extra arguments by editing the callback property in the inspector. By default, GUIDE sets the property to: <MFILENAME>( <SUBFUNCTION_NAME>, gcbo, [], guidata(gcbo)) Add any extra arguments after the last argument, before the final closing parenthesis.

function varargout = edit1_callback(h, eventdata, handles, varargin) function varargout = pushbutton1_callback(h, eventdata, handles, varargin) f=2; R=4;r=2; m=20;l=10; theta=pi/2*(get(handles.slider1, value )) %val1=str2double(get(handles.p-edit1, string )) %set(handles,slider1, value,val1) [t,u]=ode45( gzfun,[0:0.001:5],[0,0],[],f,r,r,m,theta); x=r*u(:,1);y=r*ones(length(t),1); ll=l*ones(length(t),1);rr=r*ones(length(t),1); xa=x+rr*sin(theta);ya=y-rr*cos(theta); xb=xa+(ll+r*u(:,1))*cos(theta); yb=ya+(ll+r*u(:,1))*sin(theta); xc=x-r*sin(u(:,1));yc=y-r*cos(u(:,1)); xd=x-r*sin(u(:,1));yd=y-r*cos(u(:,1)); axis([-15,15,-2,10]); axis equal hold on a10=line([-15,15],[0,0], color, k, linewidth,3.5); a20=linspace(-15,15,60); for i=1:59 a30=(a20(i)+a20(i+1))/2; plot([a20(i),a30],[0,0-0.5], color, b,... linestyle, -, linewidth,1); fai=0:0.01:7;fai1=rot90(fai);yy=r*ones(length(fai),1); px=r*cos(fai1);py=yy+r*sin(fai1); qx=r*cos(fai1);qy=yy+r*sin(fai1); ball1=line(px,py, color, b, linewidth,2, erasemode, xor ); ball2=line(qx,qy, color, b, linewidth,2, erasemode, xor ); xian=line([xa(1),xb(1)],[ya(1),yb(1)], color, k,... gan=line([xc(1),xd(1)],[yc(1),yd(1)], color, k,... for i=1:length(t)

xx=x(i)*ones(length(fai),1); pxx=xx+r*cos(fai1);pyy=yy+r*sin(fai1); qxx=xx+r*cos(fai1);qyy=yy+r*sin(fai1); set(ball1, xdata,pxx, ydata,pyy); set(ball2, xdata,qxx, ydata,qyy); set(xian, xdata,[xa(i),xb(i)], ydata,... [ya(i),yb(i)]); set(gan, xdata,[xc(i),xd(i)], ydata,... [yc(i),yd(i)]); drawnow function udot=gzfun(t,u,flag,f,r,r,m,theta) %global f R r m theta udot=[u(2); 2*f*(R*cos(theta)-r)/3*m*(R^2)]; function varargout = pushbutton2_callback(h, eventdata, handles, varargin) edit jiemian function varargout = pushbutton3_callback(h, eventdata, handles, varargin) close function varargout = slider1_callback(h, eventdata, handles, varargin) val1=num2str(get(handles.slider1, value )) set(handles.edit2, string,val1) function varargout = edit2_callback(h, eventdata, handles, varargin) val2=str2double(get(handles.edit2, string )) set(handles.slider1, value,val2)

程序运行截图 : 图 1 正转 图 2 反转