shuttle dakota-openfoam tutorial edy

Upload: mohdfairuzzakariya

Post on 02-Jun-2018

229 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    1/13

    l Copyright ESI Group, 2013. All rights reserved.

    Dakota pe!"A#ve$tor%para&eter%study

    'utorial

    De$e&(er ), 2013

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    2/13

    Copyright ESI Group, 2013. All rights reserved.

    AGE*DA

    I!trodu$tio!

    'est $ase

    Dakota +ile stru$ture

    Setti!g up +iles

    Dakota utput

    Co&pili!g -i!ks

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    3/13

    Copyright ESI Group, 2013. All rights reserved.

    Dakota ProjectDesign Analysis Kit for Optimization and

    Terascale Applications

    an open source toolkit that provides a flexible, extensible interfacebetween analysis codes and iteration methods

    Useful tool for parametric and optimization studies.

    developed by Sandia National Laboratories

    Salo&e#ECA pe!"A#

    Dakota Interface

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    4/13

    Copyright ESI Group, 2013. All rights reserved.

    'est $ase

    /eat $ore

    i!let

    outlet

    e ill $ouple Dakota ith ope!"oa& to do a para&etri$ study (e$tive +u!$tio! Average 'e&perature at the outlet Desig! para&eter velo$ity at the i!let.

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    5/13

    Copyright ESI Group, 2013. All rights reserved.

    Dakota "ile Stru$ture

    I! this tutorial e ill &odi+y the i!put +iles dire$tly si!$e e ust have o!epara&eter, +or &ore $o&pli$ated $ases you $a! use the 4aguar G5I.

    'his is the i!itial +iles stru$ture o+ our Dakota $ase. e start (y $opyi!g theope!"A# $ase 60, $o!sta!t, syste& dire$tories a!d all the +iles like e++'a(le7i!side the $ase(ase dire$tory

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    6/13

    Copyright ESI Group, 2013. All rights reserved.

    Set up dakota%o+%h$ore.i!

    si&ulator%s$ript is the s$ript here e tellDakota hat to do i! ea$h dire$tory $ase6e8. -au!$h rhoSi&ple"oa&7 a!d hi$h

    results to e8tra$t.

    'he desig! para&eter 9819i! our $ase the i!let velo$ity

    e ask Dakota to per+or& thea!alysis ith a! i!let :elo$ityra!ge (etee! 0.1 a!d ;&

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    7/13Copyright ESI Group, 2013. All rights reserved.

    I! the te&plateDir e save the +olloi!g 5.te&plate +ile

    Set up o+ 5.te&plate

    Dakota ill set i! >81? thevalues o+ the desig!para&eter as spe$i+ied i!the dakota%o+%h$ore.i! +ile

    :e$tor @ara&eter:elo$ity i!let

    613 ele&e!ts7

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    8/13Copyright ESI Group, 2013. All rights reserved.

    Set up si&ulator%s$ript

    1 is para&s.i! +ro& DAB'A

    2 is results.out retur!ed to Dakota

    e e8tra$t the average ' value outlet +ro& the

    log +ile a!d e give the value to Dakota output 2

    5si!g 5.'e&plate Dakota ill set the!e i!let velo$ity i!to the 0

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    9/13Copyright ESI Group, 2013. All rights reserved.

    Si!$e e have set step12, Dakota has $reated 13 orkdir

    It has $opy the ope!"A# $ase +ro& $ase(ase dir, $reate orkdir, a!d lau!$hedthe a!alysis +or ea$h o+ those dire$tories ith the spe$i+i$ velo$ity i!let ithi! thera!ge spe$i+ied i! the dakota%o+%$avity.i! +ile.

    Dakota +i!al "ile Stru$ture

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    10/13Copyright ESI Group, 2013. All rights reserved.

    Dakota utput

    Dakota has lau!$hed the $ase 13 ti&es

    velo$ity at i!let+ro& 0.1 to ;&

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    11/13Copyright ESI Group, 2013. All rights reserved.

    Co&pili!g -i!ks

    Installation Susume

    If after installin the !"#$%" binaries, you experience library errors while runnin itwith $pen&$"', you need to compile !"#$%" from source.()"S$N* OpenFOAMuses a library called +libsampling.so+ which has the samenameof a DAKOTA librarysee the !"#$%"-installation-dirlib directory/. %o use

    !akota and $pen&$"' toether you need to compile !akota usin static libraries

    SOLUTION* In the !akota 0makeLists.txt set*instead ofoption(BUILD_SHARED_LIBS "Build shared libraries?" O! #$% lineset libraries as static in the followin way*

    option(BUILD_SHARED_LIBS "Build shared libraries?" O! Build stati& libraries OL'set(BUILD_SAI)_LIBS O )A)HE BOOL "Set to O to build stati& libraries" *OR)E!

    In this way instead of 1.so 23 you will et static libraries 1.a/ and !akota and $&

    can work toether.

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    12/13Copyright ESI Group, 2013. All rights reserved.

    Co&pili!g -i!ks

    Useful links

    2 !akota download*

    http*dakota.sandia.ovdownload.html

    2 Some simple tutorials to et started with !"#$%"4$&5.5

    http*www.dicat.unie.ituerrerodakotaof.html

    2 my post installation instructions for 0ent$S 6.7

    http*www.cfd2online.com&orumsopenfoam2prorammin2development8599:2dakota2openfoam.html;post76

  • 8/10/2019 Shuttle DAKOTA-OpenFOAM Tutorial EDY

    13/13l Copyright ESI Group 2013 All rights reservedl Copyright ESI Group 200 All rights reserved