Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

TÍNH TOÁN ỨNG DỤNG TRONG KTDKSlide tin học ứng dụng thầy tùng
PREMIUM
Số trang
217
Kích thước
11.3 MB
Định dạng
PDF
Lượt xem
916

TÍNH TOÁN ỨNG DỤNG TRONG KTDKSlide tin học ứng dụng thầy tùng

Nội dung xem thử

Mô tả chi tiết

APPLIED COMPUTING IN

PETROLEUM ENGINEERING

Pham Son Tung, Ph.D.

GEOPET, HCMUT, Vietnam

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 1

Lecturer’s Contact

 Name: Pham Son Tung

 Lecturer at Hochiminh city University of Technology,

Faculty of Geology & Petroleum Engineering, Department

of Drilling & Production.

 Office: 102B8

 Email: [email protected]

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 2

Course Requirements

 Regular attendance in class (less than 3 absences)

 Taking notes (Important: knowledge given orally during

lecture will be officially accounted in the course,

moreover, sometimes erroneous slides are corrected

during lecture)

 Exercises in class

 Homework and assignments

 Personal computer with Excel

 Calculator

 Papers and pens/bics

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 3

ABOUT THE COURSE

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 4

1 COURSE OBJECTIVES

2 COURSE CONTENT

3 REFERENCES

4

Course Objectives

To provide essential background of numerical methods

using MATLAB and EXCEL to solve technical problems.

To provide practical guidelines for the application of

MATLAB and EXCEL in petroleum engineering.

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 5

Course Contents

 Basic knowledge about MATLAB

 Advanced issues and applications in MATLAB

 Using toolboxes in MATLAB

 Regression analysis

 Using and exploiting EXCEL

 Computing calculation in geology & petroleum

engineering

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 6

References

• Steve T.Karris, Numerical Analysis Using Matlab and Excel,

Orchard Publications, 2006

• Mitchell Bill: Advanced Oilwell Drilling Engineering Handbook &

Computer programs, Michell Engineering, USA, 1994

• Mark Austin, David Chancogn, Introduction to Engineering

Programming in C, MATLAB and JAVA, Wiley Pub. 1999

• Clever Moler, Engineering Problem Solving with Matlab, D.M.

Etter, Prentice Hall, 2005

• Lecture slides: this lecture handout was redacted by Dr. Mai Cao

Lan, then revised and completed by Dr. Pham Son Tung

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 7

CHAPTER 1.

BASIC KNOWLEDGE

ABOUT MATLAB

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 8

1

2

3

Basic operations, commands and functions

Programming in MATLAB

4

Basic graphic

Overview of MATLAB

3

4

1

5 Code structure

Matlab - Background

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 9

Matlab = Matrix Laboratory

An interactive tool that is suitable for running

computations, drawing graphs and much more

(graphical interface)

A programming language for technical computing

(scripts)

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 10

Command Window

 The output is displayed

 Get the previous command by pressing up

arrow keyboard

 Can clear window using the command clc

Workspace Window

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 11

Command History Window

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 12

Command History Window

Matlab Arithmetic Operators

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 13

Plus +

Unary plus +

Minus -

Unary minus -

multiply *

power ^

Backslash or left matrix divide \

Slash or right matrix divide /

Matlab Special Numbers

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 14

pi 3.14159265…

i and j Imaginary unit

eps Relative precision 2-52

realmin Smallest number 2-1022

realmax Largest number (2-eps)* 21023

Inf Infinity (divide by zero or larger then realmax)

NaN Not a Number (0/0 Inf/Inf)

Lets Try Matlab as a Calculator II

2/15/2017 Pham Son Tung, Faculty of Geology & Petroleum Engineering, HCMUT, Vietnam 15

2*5+10

2*(5+10) What does it tell you?

2/3*4

1/0 What did you get?

0/0

1+2+3+4+5+6 Try to use … in order to write in more than one line

2*realmax What did you get?

Try to use:

clc , up/down arrow

 

3 4

1 3 2

Usually a Matlab command ends with “;” to disable echo to the command line.

There are 3 ways to display the output: disp() , no “;” fprintf()

Evaluation

Operator evaluation priorities are mathematical

(-1+3+2*pi)^(3/4)

Overflow

Inf NaN

Tải ngay đi em, còn do dự, trời tối mất!