【正文】
.[9] 蒲海豐,張 彬,李 南. 基于虛擬樣機(jī)的D—100/8—c型空壓機(jī)曲柄連桿機(jī)構(gòu)的動(dòng)力學(xué)仿真[J]. 制造自動(dòng)化,2009,31(9):126128,140.[10] 許 濤, 王建平. 基于Pro/ E、ANSYS 和ADAMS 的動(dòng)力學(xué)聯(lián)合仿真研究[J]. 機(jī)械工程與自動(dòng)化,2009,3:3739.[11] 馬玉清,卞學(xué)良,[J].河北工業(yè)大學(xué)學(xué)報(bào),2004(12):5256[12] 吳覺士,仲梁維. 基于MATLAB SimMechanics 的四缸內(nèi)燃機(jī)曲柄連桿機(jī)構(gòu)仿真和動(dòng)力學(xué)分析[J]. 機(jī)械傳動(dòng),2007,31(1):3436.[13] 吳楠,廖日東,張保成,左正興. 柴油機(jī)曲柄連桿機(jī)構(gòu)多體動(dòng)力學(xué)仿真分析[J]. 內(nèi)燃機(jī)工程,2005,10 (5):6973 [14] H. D. Desai, Computer Aided Kinematic and Dynamic Analysis of a Horizontal Slider Crank Mechanism Used For SingleCylinder Four Stroke Internal Combustion Engine[C]. Proceedings of the World Congress on Engineering 2009 Vol II 7 13(2009)[15] DOMENICO GUIDA ,On the Simulation of Crankshaft Dynamics. Proceedings of the 4th WSEAS/IASME Int. Conf. on System Science and Simulation in Engineering, Tenerife, Spain, December 1618, 2005 (pp123126) [16] 吳金平等. Visual C++ 編程與實(shí)踐[M ]. 北京: 中國水利水電出版社, 2004 .[17] 湯斌浩,劉彤等. Visual C++ 程序設(shè)計(jì)自學(xué)教程[M ]. 北京: 清華大學(xué)出版社, 1999 .[18] 孫珠峰,薛昌友,— Visual C++ 基礎(chǔ)培訓(xùn)教程[M]. 北京: 人民郵電出版社, 2004 .[19] 劉小石,鄭濰,馬林偉,楊帆. 精通Visual C++[M]. 北京: 清華大學(xué)出版社, 2000.[20] 閔聯(lián)營,何克右. C++程序設(shè)計(jì)教程[M]. 武漢: 武漢理工大學(xué)出版社, 2005.[21] 楊義勇. 機(jī)械系統(tǒng)動(dòng)力學(xué)[M]. 北京: 清華大學(xué)出版社, 2009,6.致 謝在進(jìn)行畢業(yè)設(shè)計(jì)過程中,馮老師的悉心指導(dǎo)使我在這段時(shí)間里學(xué)到許多有益的東西,這不僅包括知識(shí)學(xué)習(xí)方面的,更重要的是做人做事方面。在跟隨馮老師的日子里,我懂得了許多的道理。 在設(shè)計(jì)過程中,我遇到了許多問題,得到了許多同學(xué)朋友的幫助,在此也表達(dá)我對(duì)他們真誠的謝意。由于自己能力有限,難免會(huì)有錯(cuò)誤不當(dāng)之處,謝謝你們的指導(dǎo)。endif/////////////////////////////////////////////////////////////////////////////// CAboutDlg dialog used for App Aboutclass CAboutDlg : public CDialog{public: CAboutDlg()。 //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX)。CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD){ //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT}void CAboutDlg::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX)。}void CCrankshaft2Dlg::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX)。 // Add About... menu item to system menu. // IDM_ABOUTBOX must be in the system mand range. ASSERT((IDM_ABOUTBOX amp。 ASSERT(IDM_ABOUTBOX 0xF000)。 if (pSysMenu != NULL) { CString strAboutMenu。 if (!()) { pSysMenuAppendMenu(MF_SEPARATOR)。 } } // Set the icon for this dialog. The framework does this automatically // when the application39。 // Set big icon SetIcon(m_hIcon, FALSE)。 // return TRUE unless you set the focus to a control}void CCrankshaft2Dlg::OnSysCommand(UINT nID, LPARAM lParam){ if ((nID amp。 ()。 }}// If you add a minimize button to your dialog, you will need the code below// to draw the icon. For MFC applications using the document/view model,// this is automatically done for you by the framework.void CCrankshaft2Dlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this)。 // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON)。 CRect rect。rect)。 int y = (() cyIcon + 1) / 2。 } else { CDialog::OnPaint()。}void CCrankshaft2Dlg::OnButton1() { // TODO: Add your control notification handler code heredefine pi //定義π=define h 20*pi/180//定義h=20*pi/180double l1,l2,ls2,e,J01,J2,m2,m3。l2=。e=。J2=。m3=10。 printf(phi1 omega1\n\n)。//創(chuàng)建畫筆 CPen* OldPen。 //(nPenstyle,nWidth,LineColor)。Pen)。 //設(shè)定初始坐標(biāo)系 (450,200)。 // (50,50)。 // 回到原點(diǎn) int k=3,s=300。 //設(shè)定初始坐標(biāo)系,轉(zhuǎn)化為X軸正向向右,Y軸正向向上的坐標(biāo)系 for(i=0。i++) //繪制曲柄速度曲線 { phi1[i]=i*h。// (phi1[i]*180/pi,200omega1[i],255)。 } //繪制曲柄速度曲線}void CCrankshaft2Dlg::inertia(double phi1,double l1,double l2,double ls2,double e,double J01, double J2,double m2,double m3){double phi2,lambda,omega2,epsilon2,Vc,Ac,Vs2x,Vs2y,As2x,As2y。 lambda=l1/l2。//Φ2=e/L2λsinΦ1 omega2=lambda*cos(phi1)/cos(phi2)。//ξ2*=λ(cosΦ2*sinΦ1+ω2*cosΦ1*sinΦ2)/cos(2)Φ2 Vc=l1*sin(phi2phi1)/cos(phi2)。 Vs2x=l1*sin(phi1)omega2*ls2*sin(phi2)。 As2x=l1*cos(phi1)omega2*omega2*ls2*cos(phi2)epsilon2*ls2*sin(phi2)。 Je[i]=J01+J2*omega2*omega2+m2*(Vs2x*Vs2x+Vs2y*Vs2y)+m3*Vc*Vc。 //歐拉法開始 Me[i]=3768(60+150*Vc*Vc)*omega1[i]。 omega1[i+1]=omega1[i]+fi*h。}void CCrankshaft2Dlg::OnButton2() { // TODO: Add your control notification handler code here CPen Pen。 CClientDC dc(this)。 for(i=0。i++) //顯示曲柄在某轉(zhuǎn)角時(shí)速度 { (%d, %lf, %lf,i,phi1[i]*180/,omega1[i])。 } //顯示曲柄在某轉(zhuǎn)角時(shí)速度 }A2軟件使用說明書第一步:在根目錄Crankshaft2下找到Debug文件夾打開,找到 第二步:?jiǎn)螕粝到y(tǒng)菜單出現(xiàn)如下界面,然后單擊選擇“關(guān)于Crankshaft2(A)…”獲取軟件信息第三步:?jiǎn)螕舭粹o“曲柄速度曲線”,顯示如圖所示的界面,得到曲柄速度曲線第四步:?jiǎn)螕舭粹o“速度數(shù)值顯示”,得到如圖所示的界面,顯示曲柄在某轉(zhuǎn)角是速