Undergraduate Course: Computer Simulation (PHYS08026)
Course Outline
School | School of Physics and Astronomy |
College | College of Science and Engineering |
Credit level (Normal year taken) | SCQF Level 8 (Year 2 Undergraduate) |
Availability | Available to all students |
SCQF Credits | 20 |
ECTS Credits | 10 |
Summary | Computer 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).
|
Information for Visiting Students
Pre-requisites | None |
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
|
Additional Information
Course URL |
WebCT |
Graduate Attributes and Skills |
Not entered |
Keywords | CSim |
Contacts
Course organiser | Prof Judy Hardy
Tel: (0131 6)50 6716
Email: |
Course secretary | Mrs Bonnie Macmillan
Tel: (0131 6)50 7218
Email: |
|
|