Parallelizing Equation-Based Models for Simulation on Multi-Core - - PowerPoint PPT Presentation

parallelizing equation based models for simulation on
SMART_READER_LITE
LIVE PREVIEW

Parallelizing Equation-Based Models for Simulation on Multi-Core - - PowerPoint PPT Presentation

Parallelizing Equation-Based Models for Simulation on Multi-Core Platforms by Utilizing Model Structure Martin Sj olund Mahder Gebremedhin Peter Fritzson Programming Environments Laboratory (PELAB) Department of Computer and Information


slide-1
SLIDE 1

Parallelizing Equation-Based Models for Simulation on Multi-Core Platforms by Utilizing Model Structure

Martin Sj¨

  • lund

Mahder Gebremedhin Peter Fritzson

Programming Environments Laboratory (PELAB) Department of Computer and Information Science Link¨

  • ping University

2013-07-04

slide-2
SLIDE 2

Part I Background

slide-3
SLIDE 3

Equation-Based Modelling and Simulation

◮ Declarative and acausal – describe the problem instead of the

solution

◮ Symbolic manipulations ◮ Numerical methods and solvers

slide-4
SLIDE 4

◮ An equation-based object-oriented language ◮ Primarily used to model and simulate (multi-domain) physical

systems

◮ Easiest explained through an example

slide-5
SLIDE 5

RC Circuit Example: Different Representations

pv

+

  • C=1e-6

c

R=1e6

r g

model RC import Modelica.Electrical.Analog.Basic ; import Modelica.Electrical.Analog.Sources ; Basic.Capacitor c; Basic.Resistor r; Basic.Ground g; Sources.PulseVoltage pv; equation connect(pv.n,g.p); connect(r.p,pv.p); connect(g.p,c.n); connect(r.n,c.p); end RC;

slide-6
SLIDE 6

RC Circuit Example: Results

  • 150
  • 100
  • 50

50 100 150 200 250 1 2 3 4 5 Voltage [V] time [s] c.v pv.v r.v

Figure: Simple RC circuit simulation with input square wave pv.v, capacitor voltage c.v, and resistor voltage r.v.

slide-7
SLIDE 7

Sorting and Matching

◮ There exists many valid solution paths

◮ v = r ∗ i ◮ i = v/r ◮ r = v/i ◮ ...

◮ We will not use an integrated approach

◮ Normal sorting+matching, then parallelize ◮ Parallelize, then sort+match

slide-8
SLIDE 8

OpenModelica

◮ Open source Modelica tool ◮ Open Source Modelica Consortium (OSMC)

◮ Many partners ◮ Main development at Link¨

  • ping University

◮ Used for research prototypes and industrial products

slide-9
SLIDE 9

Part II Parallelisation of Equation-Based Models

slide-10
SLIDE 10

Single-Core Solution