University Homepage
DRPS Homepage
DRPS Search
DRPS Contact
DRPS : Course Catalogue : School of Physics and Astronomy : Undergraduate (School of Physics and Astronomy)

Undergraduate Course: Computer Simulation (PHYS08026)

Course Outline
SchoolSchool of Physics and Astronomy CollegeCollege of Science and Engineering
Credit level (Normal year taken)SCQF Level 8 (Year 2 Undergraduate) AvailabilityAvailable to all students
SCQF Credits20 ECTS Credits10
SummaryComputer Simulation is unavailable in 2014/15 except as an exam-only resit. Please contact the course secretary if you wish to resit the course.

This course covers the methodologies of solving scientific problems using computers. It provides a training in the computational modelling of scientific problems and their representation using computer graphics. It also provides a grounding in object-oriented programming through the practical application of the Java language. Students will carry out extensive practical and project work.
Course description * Key concepts of OO programming; data encapsulation, objects and classes, inheritance and polymorphism;
* Analysis of problem statements to produce simple OO designs;
* Classes and class hierarchies containing multiple constructors and methods;
* Declaration and initialisation of objects and arrays of objects;
* Creation of multiple instantiations (objects) of a class;
* Method execution on objects and classes;
* Pass by reference copy and pass by value; how arrays, objects and primitive types are passed;
* Utilisation of classes and interfaces of the Java SE API;
* Reading and parsing text from a file and writing data to a file;
* Checked and unchecked exceptions; handling exceptions (throw and try/catch);
* Simple graphical applications, including drawing objects, simple animation and user interaction (event handling).
Entry Requirements (not applicable to Visiting Students)
Pre-requisites It is RECOMMENDED that students have passed ( Mathematics for Physics 1 (PHYS08035) AND Mathematics for Physics 2 (PHYS08036)) OR ( Practical Calculus (MATH08001) AND Solving Equations (MATH08002) AND Geometry & Convergence (MATH08003) AND Group Theory: An Introduction to Abstract Mathematics (MATH08004))
Prohibited Combinations Other requirements Students should have programming experience (not necessarily of Java) to the level of, for example, Informatics 1B or the introductory computing module in Physics 2A.
Information for Visiting Students
Course Delivery Information
Not being delivered
Learning Outcomes
Upon successful completion of this course, it is intended that a student will be able to:

- Explain why it is appropriate to solve certain physical problems, such as integration and modelling interacting particles by computation

- Apply the techniques of discretisation and iteration to solve open-ended physical problems and demonstrate an awareness of the origin and impact of numerical errors inherent in such techniques

- Apply the key concepts of OO programming (data encapsulation, inheritance and polymorphism) by analysing a problem statement to produce a simple OO design and implementing it in Java

- Make use of classes and interfaces of the Java SE API, in particular to read and process data from external sources and to construct simple graphical applications

- Predict when variables are copied by reference or by value according to their type, and the consequences thereof

- Recognise the importance of clear, consistently-documented and error-tolerant codes, making use of Java's language features for achieving this

- Locate and use additional sources of information (to include discussion with peers where appropriate) to resolve practical problems that arise
Reading List
Additional Information
Course URL WebCT
Graduate Attributes and Skills Not entered
Course organiserProf Judy Hardy
Tel: (0131 6)50 6716
Course secretaryMrs Bonnie Macmillan
Tel: (0131 6)50 7218
Help & Information
Search DPTs and Courses
Degree Programmes
Browse DPTs
Humanities and Social Science
Science and Engineering
Medicine and Veterinary Medicine
Other Information
Combined Course Timetable
Important Information
© Copyright 2015 The University of Edinburgh - 18 January 2016 4:43 am