Академический Документы
Профессиональный Документы
Культура Документы
Outline
Hardware Platforms
Parallel computers Distributed computers
Simulation Fundamentals
State Time Time flow mechanisms
. . .
CPU cache
memory
...
memory
I/O devices
Processor 1
Processor 2
. . .
communications controller communications controller Interconnection network programming model: no shared variables; message passing
Processor 1 {int i; Send (2, &i, sizeof(int)) } Processor 2 {int j; Receive (&j, sizeof(int)); }
Outline
Hardware Platforms
Parallel computers Distributed computers
Simulation Fundamentals
State Time Time flow mechanisms
Simulation Fundamentals
A computer simulation is a computer program that models the behavior of a physical system over time. Program variables (state variables) represent the current state of the physical system Simulation program modifies state variables to model the evolution of the physical system over time.
Time
physical system: the actual or imagined system being modeled simulation: a system that emulates the behavior of a physical system
main() { ... double clock; ... }
physical system
simulation
wallclock time: time during the execution of the simulation, usually output from a hardware clock
9:00 to 9:15 AM on September 10, 1999
Simulation Time
Simulation time is defined as a totally ordered set of values where each value represents an instant of time in the physical system being modeled. For any two values of simulation time T1 representing instant P1, and T2 representing P2: Correct ordering of time instants
If T1 < T2, then P1 occurs before P2 9.0 represents 9 PM, 10.5 represents 10:30 PM
Simulation Taxonomy
computer simulation discrete models event driven timestepped continuous models
simulation time
Summary
Hardware Platforms
Tightly coupled multiprocessors: fast communication Networked workstations: larger message latencies
Important to distinguish among simulation time, wallclock time, and time in the physical system Paced execution (e.g., immersive virtual environments) vs. unpaced execution (e.g., simulations to analyze systems) Continuous and discrete simulation use different execution paradigms, time advance mechanisms
Time stepped vs. event stepped Here, focus on discrete event simulations