automatic dierentiation in c using expression templates andapplication to a flow control problem

Upload: gorot1

Post on 02-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    1/15

    -

    -

    -

    -

    -

    -

    -

    -

    -

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    2/15

    -

    -

    -

    -

    - -

    -

    -

    -

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    3/15

    -

    -

    - -

    -

    -

    -

    -

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    4/15

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    5/15

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    6/15

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    7/15

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    8/15

    0

    10

    20

    30

    40

    50

    60

    70

    2 4 6 8 10 12 14 16 18 20

    H2 / H1AD2 / H1AD1 / H1

    0

    10

    20

    30

    40

    50

    60

    70

    2 4 6 8 10 12 14 16 18 20

    H2 / H1AD2 / H1AD1 / H1

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    9/15

    0

    2

    4

    6

    8

    10

    2 4 6 8 10 12 14 16 18 20

    H2 / H1AD2 / H1

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    2 4 6 8 10 12 14 16 18 20

    H2 / H1AD2 / H1

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    10/15

    0

    2

    4

    6

    8

    10

    12

    14

    16

    0 5 10 15 20 25 30 35 40

    ET

    ADOL-C

    FADBAD

    Execution in forward mode

    InitialCode

    Execution in real mode

    Templatization TemplatizedCode

    Execution in real mode

    New Execution mode (reverse mode)

    -

    Inflow Boundary Outflow Boundary

    0

    -3

    12

    3

    0.50-3

    Injection/Suction Control

    Injection/Suction Control

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    11/15

    -

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    12/15

    0.4

    0.6

    0.8

    1

    1.2

    1.4

    1.6

    0 500 1000 1500 2000 2500 3000 3500

    Drag coefficient without controlDrag coefficient with constant injection

    Drag coefficient with controled injection/suction

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    13/15

    -

    -

    -

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    14/15

    -

    -

  • 7/27/2019 Automatic Dierentiation in C Using Expression Templates AndApplication to a Flow Control Problem

    15/15

    -