freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

機(jī)械工程自動(dòng)化專業(yè)畢業(yè)論文曲柄機(jī)構(gòu)動(dòng)力學(xué)仿真-資料下載頁

2025-06-28 01:02本頁面
  

【正文】 BUTTON2, OnButton2) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CCrankshaft2Dlg message handlersBOOL CCrankshaft2Dlg::OnInitDialog(){ CDialog::OnInitDialog()。 // Add About... menu item to system menu. // IDM_ABOUTBOX must be in the system mand range. ASSERT((IDM_ABOUTBOX amp。 0xFFF0) == IDM_ABOUTBOX)。 ASSERT(IDM_ABOUTBOX 0xF000)。 CMenu* pSysMenu = GetSystemMenu(FALSE)。 if (pSysMenu != NULL) { CString strAboutMenu。 (IDS_ABOUTBOX)。 if (!()) { pSysMenuAppendMenu(MF_SEPARATOR)。 pSysMenuAppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu)。 } } // Set the icon for this dialog. The framework does this automatically // when the application39。s main window is not a dialog SetIcon(m_hIcon, TRUE)。 // Set big icon SetIcon(m_hIcon, FALSE)。 // Set small icon // TODO: Add extra initialization here return TRUE。 // return TRUE unless you set the focus to a control}void CCrankshaft2Dlg::OnSysCommand(UINT nID, LPARAM lParam){ if ((nID amp。 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout。 ()。 } else { CDialog::OnSysCommand(nID, lParam)。 }}// 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)。 // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) (), 0)。 // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON)。 int cyIcon = GetSystemMetrics(SM_CYICON)。 CRect rect。 GetClientRect(amp。rect)。 int x = (() cxIcon + 1) / 2。 int y = (() cyIcon + 1) / 2。 // Draw the icon (x, y, m_hIcon)。 } else { CDialog::OnPaint()。 }}// The system calls this to obtain the cursor to display while the user drags// the minimized window.HCURSOR CCrankshaft2Dlg::OnQueryDragIcon(){ return (HCURSOR) m_hIcon。}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。//定義變量l1,l2,ls2,e,J01,J2,m2,m3 l1=。l2=。ls2=。e=。J01=3。J2=。m2=5。m3=10。 omega1[0]=62。 printf(phi1 omega1\n\n)。 CPen Pen。//創(chuàng)建畫筆 CPen* OldPen。 CClientDC dc(this)。 //(nPenstyle,nWidth,LineColor)。 OldPen=(amp。Pen)。 (50,200)。 //設(shè)定初始坐標(biāo)系 (450,200)。//畫出X坐標(biāo)軸 (50,200)。 // (50,50)。//畫出Y坐標(biāo)軸 (50,200)。 // 回到原點(diǎn) int k=3,s=300。//縱坐標(biāo)單位 (50,somega1[0]*k)。 //設(shè)定初始坐標(biāo)系,轉(zhuǎn)化為X軸正向向右,Y軸正向向上的坐標(biāo)系 for(i=0。i19。i++) //繪制曲柄速度曲線 { phi1[i]=i*h。 inertia(phi1[i],l1,l2,ls2,e,J01,J2,m2,m3)。// (phi1[i]*180/pi,200omega1[i],255)。 (50+phi1[i]*180/pi,somega1[i]*k)。 } //繪制曲柄速度曲線}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。 double fi。 lambda=l1/l2。//λ=L1/L2 phi2=asin(e/l2lambda*sin(phi1))。//Φ2=e/L2λsinΦ1 omega2=lambda*cos(phi1)/cos(phi2)。//ω2*=λcosΦ1/cosΦ2 epsilon2=lambda*(sin(phi1)*cos(phi2)*cos(phi2)+lambda*sin(phi2)*cos(phi1)*cos(phi1)) /(cos(phi2)*cos(phi2)*cos(phi2))。//ξ2*=λ(cosΦ2*sinΦ1+ω2*cosΦ1*sinΦ2)/cos(2)Φ2 Vc=l1*sin(phi2phi1)/cos(phi2)。 Ac=l1*(cos(phi1phi2)/cos(phi2)+ lambda*cos(phi1)*cos(phi1)/(cos(phi2)*cos(phi2)*cos(phi2)))。 Vs2x=l1*sin(phi1)omega2*ls2*sin(phi2)。 Vs2y=l1*cos(phi1)+omega2*ls2*cos(phi2)。 As2x=l1*cos(phi1)omega2*omega2*ls2*cos(phi2)epsilon2*ls2*sin(phi2)。 As2y=l1*sin(phi1)omega2*omega2*ls2*sin(phi2)+epsilon2*ls2*cos(phi2)。 Je[i]=J01+J2*omega2*omega2+m2*(Vs2x*Vs2x+Vs2y*Vs2y)+m3*Vc*Vc。 dJe[i]=2*(J2*omega2*epsilon2+m2*(Vs2x*As2x+Vs2y*As2y)+m3*Vc*Ac)。 //歐拉法開始 Me[i]=3768(60+150*Vc*Vc)*omega1[i]。 fi=(Me[i]dJe[i]*omega1[i]*omega1[i]/2)/(Je[i]*omega1[i])。 omega1[i+1]=omega1[i]+fi*h。 //歐拉法結(jié)束 printf(% %\n,phi1*180/pi,omega1[i])。}void CCrankshaft2Dlg::OnButton2() { // TODO: Add your control notification handler code here CPen Pen。 CPen* OldPen。 CClientDC dc(this)。 CString str。 for(i=0。i19。i++) //顯示曲柄在某轉(zhuǎn)角時(shí)速度 { (%d, %lf, %lf,i,phi1[i]*180/,omega1[i])。 (550,i*22+10,str)。 } //顯示曲柄在某轉(zhuǎn)角時(shí)速度 }A2軟件使用說明書第一步:在根目錄Crankshaft2下找到Debug文件夾打開,找到 第二步:單擊系統(tǒng)菜單出現(xiàn)如下界面,然后單擊選擇“關(guān)于Crankshaft2(A)…”獲取軟件信息第三步:單擊按鈕“曲柄速度曲線”,顯示如圖所示的界面,得到曲柄速度曲線第四步:單擊按鈕“速度數(shù)值顯示”,得到如圖所示的界面,顯示曲柄在某轉(zhuǎn)角是速度數(shù)
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1