Lecture Notes, Computer Programming
July 1, 2019
Computer Programming
0. Syllabus Sol HA1
1: Department of Naval Architecture and Ocean Engineering,
Mokpo National University
1
Sol HA, Computer Programming 13
Instructor
Brief introduction
Personal Information
Date of Year 1981
Education
1993.03~2003.02 B.S., Department of Naval Architecture and Ocean Engineering, Seoul National University
2003.03~2013.02 Ph.D., Department of Naval Architecture and Ocean Engineering, Seoul National University
- Thesis title: Ontological Modeling for Process and Reliability Simulation of LNG FPSO Liquefaction Cycle
based on the DEVS formalism considering Ship Motion Effect
- Supervisor: Professor Kyu-Yeul Lee
Career
2013.03~2015.03 Researcher, Engineering Research Institute, Seoul National University
2015.04~2015.08 Researcher, Research Institute of Marine Systems Engineering, Seoul National University
2015.05~Now Assistant Professor, Mokpo National University
Research Fields
Dynamic analysis of operations in shipyards and offshore fields: block erection, turn-over, offshore operation, etc.
Front-End Engineering Design (FEED) for offshore plants: LNG FPSO, re-liquefaction system in LNG carrier, etc.
Modeling and simulation in defense fields: submarine, torpedo, etc.
Industrial automation in shipyards: welding robot, blasting robot, etc.
Escape and evacuation analysis for design of cruise ships and offshore plants
2
Sol HA, Computer Programming 13
Instructor
Research fields
Block Mobile
Modeling & Thermo- Erection & Offshore
Simulation dynamics Equipment Drilling
Installation Unit
Reliability Offshore Defense
Analysis Plant FEED M&S
Dynamics Shipbuilding
Hardware & Evacuation
(Multibody Industrial
dynamics) Control Analysis
Automation
3
Sol HA, Computer Programming 13
Instructor
Research fields: dynamic analysis of operations in shipyard and offshore field
Need for validation of existing or new method in ship & Current
offshore plant construction Hand calculation using 2D drawing
Minimize risk (interference, excess of available loads) during Static analysis
production
Interference with wire rope Block turn-over using Suggestion
during block turn-over synchronized
two goliath cranes Analysis using 3D model
Dynamic analysis based on multibody system
dynamics
Development of dynamics simulator for ship
and offshore construction process
Launching ‘Araon’ using two floating cranes 4
Sol HA, Computer Programming 13
Instructor
Research fields: dynamic analysis of operations in shipyard and offshore field
Block turn-over using Launching an icebreaker ‘Araon’
synchronized two goliath cranes using two floating cranes
1. Block lifting 2. Move to dock Simulation result
3. Turn-over
Simulation result Erection of a mega block using floating crane
and two goliath crane
(1) 600Ton GC x 2
Simulation result
3500Ton Block
Block
3000Ton FC Dock
gate Ground
Sea Dry dock
(2)
(3)
5
Sol HA, Computer Programming 13
Instructor
Research fields: industrial automation in shipyard
❖ Development of mobile robot
for double bottom blocks
3,000mm
20,600mm
Double bottom block 21,990mm
of the deadweight
300,000 ton VLCC
The robot should be
mobile or portable.
Welding and blasting process
Welding and Blasting work
6
Sol HA, Computer Programming 13
Instructor
Research fields: industrial automation in shipyard
2004 2005 2006 2007 2008 2009 2010
Robot Version
1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4
Ver.1
1
Ver.2
2
Welding
Ver.3
3
Robot 4
Ver.4
Ver.5
5
Blasting Robot
6
Wearable Robot
(Prototype) 7
1 2 3 4 5
① 2005.07.25. Ver.1 ② 2006.05.24. Ver.2 ③ 2006.11.24. Ver.3 ④ 2008.10.20. Ver.4 ⑤ 2009.09.24 Ver.5
- Imbedded Controller - 14 axis →12 axis, 350kg→250kg - Commercial Controller - 50kg, 6 axis, Portable
- 495(W)×569(H) → 487.5(W)×455(H)
6 7
3-2 4-2
200
600
로봇을 책상에 올려놓음
사람이 의자에 앉아서 사용
⑥ 2010.06. Blasting Robot ⑥ 2010.02. Wearable Robot ③-2 Demonstration (DSME, 2006.11.24.) ④-2 Demonstration (DSME, 2008.10.20.)
7
Sol HA, Computer Programming 13
Instructor
Research fields: industrial automation in shipyard
Mobile Welding Robot Mobile Blasting Robot
Field Test (DSME, 2008.05.25) Field Test (DSME, 2010.06)
Handles
Potable Welding Robot Prototype of Wearable Robot
Motor
Reduction
Gear
Prototype Test (SNU, 2010.02)
Demonstration (DSME, 2009.09.24)
0.2m
①
0.4m
②
585mm
③
356mm 625mm
Handle
Force
sensor
▪ Design of hardware and software for controlling mechanical devices
▪ Research about various control method:
PID control, adaptive control, impedance control, … 8
Sol HA, Computer Programming 13
Overview
Times and Staff
Lectures 13:00-15:30, in LAB DESAIN
Instructor Prof. Sol HA
E-mail:
[email protected]Objective
Upon successfully completing this course, students will be able to “do something useful with Python”.
• Identify/characterize/define a problem
• Design a program to solve the problem
• Create executable code
• Read most Python code
• Write basic unit tests
Grading
Credits 3
Grade A to E
Your grade is determined by
• Assignments: 20~30% (depends on no. of assignments)
• Exams: 60~70% (twice)
• Attendance: 10%
9
Sol HA, Computer Programming 13
Reference
Materials and textbook
Provided
Per the prior subject, each student will receive lecture notes from Microsoft Teams (see p. 8). Lecture
notes is now based on Korean textbook, so it is not possible to provide actual textbook.
Suggested
The first part of this class parallels the book Learning Python, 5th Edition.
Title Learning Python
Author Mark Lutz
Publisher O'Reilly Media; 5th edition (July 6, 2013)
Language English
ISBN 978-1449355739
You may find it beneficial to read other discussions of topics in addition to what
are presented in class or assigned as reading: either to explore a topic more
deeply, or to simply get another viewpoint. There are many good books on
Python, and many more excellent discussions of individual topics on the web.
10
Sol HA, Computer Programming 13
Reference
Reading
The Python Tutorial (https://docs.python.org/3/tutorial/): This is the official tutorial
from the Python website. No more authoritative source is available.
learningpython.org (https://www.learnpython.org/): This website provides an
interactive Python tutorial. You can directly practice all tutorials in this website without
installing Python.
Core Python Programming (http://corepython.com/): Only available as a dead trees
version, but if you like to have book to hold in your hands anyway, this is the best textbook
style introduction out there. It starts from the beginning, but gets into the full language.
Published in 2009, but still in print, with updated appendixes available for new language
features. In the third edition, "the contents have been cleaned up and retrofitted w/Python
3 examples paired w/their 2.x friends."
Python Course (http://www.python-course.eu/python3_course.php)
Hitchhikers Guide to Python (http://docs.python-guide.org/en/latest): Under
active development, and still somewhat incomplete, but there is good stuff.
11
Sol HA, Computer Programming 13
Schedule
Week Subject Week Subject
▪ Programming Language and Python
1 9 ▪ Python-style Code
▪ Prerequisite
▪ Variable
2 10 ▪ Object-oriented Programming
▪ Type
▪ Inputs Output
3 11 ▪ Module and Package
▪ List
▪ Condition ▪ Exception
4 12
▪ Loop ▪ Files
▪ CSV
5 ▪ Function 13
▪ Logs
▪ Web Scrapping
6 ▪ String 14
▪ XML, JSON
7 ▪ Data Structure 15 ▪ Final examination
8 ▪ Midterm exam 16 ▪ Course Review and Evaluation
12
Sol HA, Computer Programming 13
Online Classroom
Microsoft Teams - part of Microsoft Office 365 Education
Online classroom is managed by Microsoft Teams(https://teams.microsoft.com).
Login with your own Microsoft Office 365 account.
Materials will be uploaded on Microsoft Teams.
Download and Install
Desktop App
13
Sol HA, Computer Programming 13
Thank you.
14
Sol HA, Computer Programming 13