Posted by : Unknown Minggu, 14 September 2014


A simulation is the creation of a model of a real system in order to study the behaviour of the system. The is computer generated and is based on mathematical representations.

The idea is to try and find out what mechanisms control how a system behaves and consequently predict the behaviour of the system in the future and also see if it is possible to influence this future behaviour.

Computer models have the advantage that they save money, can help find a solution more quickly and can be considerably safer (discussed further below). There are many examples of simulations, ranging from simple spreadsheet representations through to complex flight simulators. This section gives two examples: a model for showing a shop’s profit/loss and a traffic light simulation.

Why simulations are used?
  • They are less expensive than having to build the real thing (e.g. a bridge). 
  • On many occasions it is safer to run a simulation – some real situations are hazardous (e.g. chemical processes). 
  • With simulations, various scenarios can be tried out in advance. 
  • It is nearly impossible to try out some tasks in real life because of the high risk involved or the remoteness (e.g. in outer space, under the sea, in nuclear reactors, crash testing cars, etc.).
  • It is often faster to do a simulation than the real thing.  Some applications could take years before a result was known (e.g. climate change calculations, population growth, etc.).
Limitations:
  • They are only as good as the data used and the mathematical algorithms
    representing the real-life situations. 
  • They therefore have a limited use in some very complex applications (e.g. simulating a nuclear process). 
  • They can be very expensive to set up and often require specialist software to be written. 
  • They frequently require very fast processors/computer systems (which can be expensive) to do the necessary ‘number crunching’; many simulations are made up of 

I. Tuck Shop Model

This example uses a spreadsheet to do the modelling. Spreadsheet models can be used to predict finance type outcomes based on mathematical values.
This prediction show us things like profit/loss, over budget/between budget, and help us answer 'What if ...?' type of questions, e.g. “What if we decrease the workforce by 15%? Will our profits increase or decrease?” .
This is made possible with the use of 'formulae' which recalculate results based on new data entered. 


Running questions like this through the spreadsheet can help managers make 'informed decisions' and reduce the risk of overspending and reduced profits.




II. Driving Simulation



These mimics the skill required to control vehicles such as cars, trucks, trains,and buses. 

Uses:
  • Use of vehicle controls (steering wheel, accelerator, gears, clutch etc)
  • Practice driving maneuvers (emergency stop, reversing, parking etc)
  • Learning how to handle large trucks safely
  • Driving in hazardous conditions (snow, heavy rain etc)
Trainee drivers can build up a high level of confidence using the driving simulation before they actually begin to drive for real. Advantage: any mistakes or crashes are just 'virtual' and vehicles are not damaged or any people hurt.

Some driving simulators are used to mimic the effects of high-speed car crashes on the driver and passengers.

This replaces the old method of using actual cars and crash-test dummies and is muchcheaper and easier to set up.

Data taken from the simulation allows engineers to design and build safer cars. This is known as 'Computer Aided Engineering' (CAE).




III. Bridge Simulation

A computer model of a bridge can be used to test the design.
Bridges have to be able to survive extreme weather conditions. It is obvious not practical to build a real bridge and then wait to see if it falls down in a storm. Instead, a computer model of the bridge is created and tested in virtual storms

If the model breaks, it can be quickly and cheaply re-designed andre-tested. If it doesn’t break, the real bridge can be built, confident that it will survive real storms.

Bridges can also be tested to see if they can cope with heavy traffic. The virtual bridge can be loaded with a traffic jam of virtual trucks to check that it won’t collapse.
A similar system is used by building designers, especially for very large or tall buildings, such as skyscrapers.




VI. Traffic Light Simulation


In this simulation it is necessary to consider: 
  • how and what data needs to be collected 
  • how the simulation is carried out
  • how the system would work in real life.

The success (or failure) of a simulation model depends on how realistic it is, so the data needs to be collected by watching traffic for a long period of time at the Y-junction. This is best done by using induction loop sensors which count the number of vehicles at each junction.
 Manual data collection is possible but is prone to errors and is difficult to do over an 18-hour period per day, for example. The following data is an indication of what would need to be collected:
  • the number of vehicles passing the junction in all directions
  • the time of day for the vehicle count 
  • how many vehicles build up at the junction at different times of the day 
  • how vehicle movements change at weekends, bank holidays, etc.
  • how long it takes a vehicle to clear the junction 
  • how long it takes the slowest vehicle to pass through the junction 
  • the movements made by vehicles (e.g. left turns, right turns, filtering, etc.)
  • additional environmental factors, such as whether there are pedestrian crossings nearby.

Carrying Out The Simulation

Data from the above list is entered into the computer and the simulation run. The results of the simulation are compared with actual traffic flow from a number of data sets. Once the designers are satisfied that it simulates the real situation accurately, then different scenarios can be tried out. For example:
  • vary the timing of the lights and see how the traffic flow is affected
  • build up the number of vehicles stopped at part of the junction and then change the timing of the lights to see how the traffic flow is affected 
  • increase or decrease traffic flow in all directions 
  • how emergency vehicles affect traffic flow at different times of the day.
Using the Simulation
This simulation can then be used to optimise the flow of traffic through the junction on an ongoing basis.
  • Sensors in the road gather data and count the number of vehicles at the junction.
  • This data is sent to a control box or to a computer. It may need to be convertedfirst into a form understood by the computer. 
  • The gathered data is compared to data stored in the system. The stored data isbased on model/simulation predictions which were used to optimise the traffic flow.
  • The control box or computer ‘decides’ what action needs to be taken.
  • Signals are sent out to the traffic lights to change their timing if necessary.

There are three basic types of processing:
batch processing , real-time (transaction) or online processing, real-time process control.

I. Batch Processing

This is where a number of similar jobs or tasks are collected together (batched) and processed by a computer all at once than individualy.

The jobs are then loaded into a computer system (known as a job queue) and processed all at once (in a batch) without human intervention. Once the batch processing starts, no user interaction is needed. This type of processing can only be done where there are no timing constraints, i.e. files don’t need to be updated immediately or a response from the computer is not needed straight away.


Used in the following arena:
  • Producing bills
  • Payroll
  • Stock control
  • Producing monthly credit card statements
  • Processing bank cheques
  • Marking multiple choice examination papers
  • Warning systems on aircraft
  • Guiding missiles
  • Automatic greenhouses
  • Burglar alarms
  • Food warning system







Advantages: (1)Can be processed without a human present.  (2) Long jobs can be left processing overnight when everyone has gone home.
Disadvantages: (1) Batch jobs can take a long time to process. (2) 'Batching' the input data to feed into the system can take a long time.

II. Real-time Transaction Processing (Online Processing)

This type of processing is where a user communicates directly with a computer system. 
If the user change the data, it will automatically updated and re-processed.
Ex:  booking seats on a flight or at the theatre, music concert booking tickets, etc.

Advantage: Processing is carried out automatically without human supervision.
Disadvantage: Need virus/hacker security

III. Real-Time Process Control

Similar to online processing but this one often uses sensors rather than human input in order to obtain its data.
This type of processing is carried out immediately. The computers respond to inputs without any delays.
Used in:
Advantage: Can carry out jobs human are unable to.
Disadvantage: Very expensive and its system failure can costs lives.

Thank You for Reading :)

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Blogger templates

Blogroll

My Blog List

Visitor

Diberdayakan oleh Blogger.

Followers

Copyright © HJ's Blog -Black Rock Shooter- Powered by Blogger - Designed by Johanes Djogan