1 / 8

ปฏิบัติการคอมพิวเตอร์เรื่อง การแก้สมการเชิงอนุพันธ์

ปฏิบัติการคอมพิวเตอร์เรื่อง การแก้สมการเชิงอนุพันธ์. อ . ดร . ชโล ธร ธรรมแท้ สาขาวิชาวิศวกรรมเครื่องกล มหาวิทยาลัยเทคโนโลยี สุร นารี. Euler’s Method. สมการเชิงอนุพันธ์. ปรับอยู่ให้อยู่ในรูปสมการของ ออยเลอร์. Euler.m. แบบฝีกหัด : ทดลองปรับค่า h=1, 0.1 , 0.01 เปรียบเทียบผลกับค่าจริง.

Télécharger la présentation

ปฏิบัติการคอมพิวเตอร์เรื่อง การแก้สมการเชิงอนุพันธ์

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ปฏิบัติการคอมพิวเตอร์เรื่อง การแก้สมการเชิงอนุพันธ์ อ.ดร.ชโลธร ธรรมแท้ สาขาวิชาวิศวกรรมเครื่องกล มหาวิทยาลัยเทคโนโลยีสุรนารี

  2. Euler’s Method สมการเชิงอนุพันธ์ ปรับอยู่ให้อยู่ในรูปสมการของ ออยเลอร์

  3. Euler.m แบบฝีกหัด: ทดลองปรับค่า h=1, 0.1 , 0.01 เปรียบเทียบผลกับค่าจริง

  4. Runge-Kutta Method order 4 (RK4)

  5. แบบฝึกหัด 1. จงหาผลเฉลยของสมการเชิงอนุพันธ์ต่อไปนี้ ในช่วง 1<=x<=2 กำหนด h=0.1 • เปรียบเทียบกับผลเฉลยแม่นตรงคือ 2. จงปรับปรุง Euler.mให้เป็นวิธี RK4 แล้วหาผลเฉลยของข้อ 1

  6. MATLAB function: ode45() • RK4 และ RK5 • Format: ode45(function,span,y0) • function คือ ฟังก์ชันที่ต้องการหาค่า • span คือช่วงที่ต้องการหาค่า • y0 คือเงื่อนไขค่าเริ่มต้น

  7. ODE อันดับ 2 Force vibration: Initial condition: เปลี่ยนเป็น ode อันดับ 1 สองสมการ และเปลี่ยนเงื่อนไขเริ่มต้น ให้ ทำให้ และ สรุป Initial condition :

  8. EulerSys.m แบบฝึกหัด: ทดลอง run โปรแกรมนี้

More Related