SlideShare une entreprise Scribd logo
1  sur  18
Thermalhydraulic coupling using
        ICoCo : an Interface for Code Coupling
                     and SALOME

                             Fabien Perdu



                          November 15, 2011




CEA Grenoble / DEN/DANS/DM2S/STMF      November 15, 2011   1
Some coupling examples

 •   2008 : Gas cooled fast reactor
      – Blackout transient
      – Cathare simulates the whole circuit
      – Trio_U simulates the upper plenum
      – 1D / 3D
      – Stratification in upper plenum for onset of natural
        convection
      – Independent time steps




CEA Grenoble / DEN/DANS/DM2S/STMF   November 15, 2011         2
Some coupling examples
 Complex timestep management => need for a flexible API
    Explicite, pas de temps non coïncidents
                     3                      6                           9
Cathare


Trio_U
              1        2          4         5            7          8       10
    Implicite, pas de temps coïncidents

    Cathare
                                                    …
     Trio_U


    Implicite, avec points de RDV (pour plus tard)

    Cathare
                                                                            …
     Trio_U
CEA Grenoble / DEN/DANS/DM2S/STMF               November 15, 2011                3
Some coupling examples
 •    2009 : validation of coupling methodology
       – Simple analytic test cases (closed loops)
       – Monophasic liquid or gas flows
       – 2-loop system with flow reversal
       – Still 1D-2D => values exchanged are doubles




     Many possible algorithms (values to transfer)
       => need for a flexible API
CEA Grenoble / DEN/DANS/DM2S/STMF      November 15, 2011   4
Some coupling examples
                               •    2010 : MC2 (modèle cœur
                                    collecteur)
                                     – Three 3D domains
                                         assemblies
                                         inter-assemblies
                                         hot collector
                                    – Interpolations
                                         2D-2D
                                         On 3D surfaces
                                         Between non conforming
                                          meshes
                                         Distributed on several
                                          processors




CEA Grenoble / DEN/DANS/DM2S/STMF        November 15, 2011         5
Some coupling examples
                               •    2010 : MC2 (modèle cœur
                                    collecteur)
                                     – Three 3D domains
                                         assemblies
                                         inter-assemblies
                                         hot collector
                                    – Interpolations
                                         2D-2D
                                         On 3D surfaces
                                         Between non conforming
                                          meshes
                                         Distributed on several
                                          processors




CEA Grenoble / DEN/DANS/DM2S/STMF        November 15, 2011         6
Some coupling examples
                               •    2010 : MC2 (modèle cœur
                                    collecteur)
                                     – Three 3D domains
                                         assemblies
                                         inter-assemblies
                                         hot collector
                                    – Interpolations
                                         2D-2D
                                         On 3D surfaces
                                         Between non conforming
                                          meshes
                                         Distributed on several
                                          processors



   Need for powerful interpolators

CEA Grenoble / DEN/DANS/DM2S/STMF        November 15, 2011         7
Some coupling examples
                                                 ParaMEDMem



                                                          ICoCo
              hconv                                                                          hconv
               T                                                                             T
                                                                                  Text
                      Flux                                     Flux
                                         Flux
Assemblages                                                                                          Inter-Assemblage
                                           Vsortie

                                          Tsortie
                                                           Flux                                                 Text
                                         hconv
                                                     Vsortie
                                          T                                       Flux
                                                     Tsortie

                             hconv   T                                    hconv   T

                DAC                                                   P                  Collecteur
                                                                      V

   Many data exchanges !!!
      CEA Grenoble / DEN/DANS/DM2S/STMF                                       November 15, 2011                        8
Some coupling examples
 •    2010 : Phenix end-of-life calculation
      (still ongoing)
       – Complex geometry
       – Many coupled physical phenomena




     Even further coupling needs (thermal 1D-3D, neutronic power,…)

CEA Grenoble / DEN/DANS/DM2S/STMF     November 15, 2011         9
Coupling methodology
 •   Domain overlapping method
      – Cathare simulates the whole reactor
      – Cathare datafile nearly untouched
      – Trio_U simulates the CFD part
      – Cathare and Trio_U overlap of the CFD domain
 •   Benefits
      – Stability easier to obtain
      – Trio_U->Cathare retroaction or not possible term by
        term
      – Easier comparison with Cathare alone, as the datafile
        is unchanged
 •   Challenges
      – Take advantage of Catahre pressure solver on the
        whole domain but stay insensitive to Cathare solution
        on the CFD part.

CEA Grenoble / DEN/DANS/DM2S/STMF   November 15, 2011       10
Coupling methodology
 •   Zoom (no feedback)
      – Mass equation
           Cathare provides mass flowrates on the boundaries
           In case of incompressible fluid in Trio_U, a small
            correction is added to ensure div(u)=0
      – Energy equation
           Cathare provides enthalpies on the boundaries


 •   Feedbacks
      – Momentum equation
           Momentum source term in Cathare regulated to reach
            dP(Trio_U)=dP(Cathare)
      – Energy equation
           Trio_U provides enthalpies on the boundaries, to be
            convected by Cathare


CEA Grenoble / DEN/DANS/DM2S/STMF     November 15, 2011           11
ICoCo : Interface for Code Coupling
 •   Needs identified
      – Flexible timestep management algorithms
      – Flexible field exchange algorithms
      – Parallel calculations and interpolation
      – Algorithms
           Easy to read
           Easy to modify
           Easy to reuse
 •   Solution chosen
      – Coupling algorithm outside the codes
      – Interpolation and data manipulation outside the codes
      – Codes accessibles through method calls
      – A common API to enable
           Replacing a code by another one
           Faster learning (common language)
           Better specification and stability of the API
CEA Grenoble / DEN/DANS/DM2S/STMF       November 15, 2011   12
ICoCo : Interface for Code Coupling
 •   Overview of the architecture

                         Supervisor
                             (C++, python,
                               SALOME)

                                                      Method call


               ICoCo (C++)                   ICoCo (C++)

                Code 1                        Code 2
             (any language)             (any language)




 •   Impact on the codes
      – They must be modular : the main loop must get out of
        the code and be flexible.
      – Hardly compatible with Fortran-style linear
        programming.

CEA Grenoble / DEN/DANS/DM2S/STMF                  November 15, 2011   13
ICoCo : Interface for Code Coupling

  • Scope
     – Each code is controllable through a C++ class,
       deriving from a common mother class named
       « Problem ».
     – Specifications for the codes :
       ICoCo specifies the methods of the Problem
       class and what they are supposed to do.
     – Specifications for the supervisor :
       ICoCo specifies when it is legal to call each
       method.
     – Scope :
       ICoCo methods allow time advance,
       saving/restoring and field exchange.


CEA Grenoble / DEN/DANS/DM2S/STMF   November 15, 2011   14
ICoCo : Interface for Code Coupling
  • Implementation

       – Already implemented in
             Trio_U
             Cathare
       – Work ongoing for
             Neptune_CFD
       – Interest expressed for
             Star_CD


       – Fields used
             MEDCouplingFieldDouble
             Simpler TrioField also compatible with
              ParaMEDMEM

CEA Grenoble / DEN/DANS/DM2S/STMF   November 15, 2011   15
ICoCo : Interface for Code Coupling

 • Today’s feedback
    – Supervisor + API paradigm seems a good choice
    – Some methods may still lack in the API
    – Writing the supervisor is often a repetitive task
      (if many fields exchanged)
      => possibility to make it more automatic


 • Foreseeable additions
    – Add helper methods wrapping existing ones
    – Describe several stages inside a timestep
    – Impose a new mesh to the code



CEA Grenoble / DEN/DANS/DM2S/STMF   November 15, 2011   16
ICoCo and SALOME
  • Generic ICoCo SALOME component
     – Possible for every ICoCo-compliant code
     – Even less burden for code developer

  • Specific Cathare SALOME component
     – Developed in the HEMERA frame
     – Adds convenient functions (e.g. getDouble)
     – No new functionnality (getField could do the job)

  • Parallel SALOME component
     – Feasibility demonstration in the NURISP frame
     – One master process dispatches the API calls


CEA Grenoble / DEN/DANS/DM2S/STMF   November 15, 2011   17
Latest use : ASTRID coupled CFD/system
  • SALOME use
     – CAO
     – Maillage
     – ParaMEDMEM interpolators

  • ICoCo use
     – Trio_U
     – Cathare

  • Coupling algorithm
     – C++ program ( ~ 1000 lines )

  • Many many data exchanged…

CEA Grenoble / DEN/DANS/DM2S/STMF   November 15, 2011   18

Contenu connexe

Similaire à JUS 2011 - Thermalhydraulic coupling using ICoCo : an Interface for Code Coupling and SALOME

Dual-Diameter Variation –Immune CNFET-based 7T SRAM Cell
Dual-Diameter Variation –Immune CNFET-based 7T SRAM CellDual-Diameter Variation –Immune CNFET-based 7T SRAM Cell
Dual-Diameter Variation –Immune CNFET-based 7T SRAM Cell
Waqas Tariq
 
vlsi qb.docx imprtant questions for all units
vlsi qb.docx imprtant questions for all unitsvlsi qb.docx imprtant questions for all units
vlsi qb.docx imprtant questions for all units
nitcse
 
CMOS VLSI design
CMOS VLSI designCMOS VLSI design
CMOS VLSI design
Rajan Kumar
 
Cloudy with a Touch of Cheminformatics
Cloudy with a Touch of CheminformaticsCloudy with a Touch of Cheminformatics
Cloudy with a Touch of Cheminformatics
Rajarshi Guha
 
Moldex3D, Structural Analysis, and HyperStudy Integrated in HyperWorks Platfo...
Moldex3D, Structural Analysis, and HyperStudy Integrated in HyperWorks Platfo...Moldex3D, Structural Analysis, and HyperStudy Integrated in HyperWorks Platfo...
Moldex3D, Structural Analysis, and HyperStudy Integrated in HyperWorks Platfo...
Altair
 
Large Scale Parallel FDTD Simulation of Full 3D Photonic Crystal Structures
Large Scale Parallel FDTD Simulation of Full 3D Photonic Crystal StructuresLarge Scale Parallel FDTD Simulation of Full 3D Photonic Crystal Structures
Large Scale Parallel FDTD Simulation of Full 3D Photonic Crystal Structures
ayubimoak
 

Similaire à JUS 2011 - Thermalhydraulic coupling using ICoCo : an Interface for Code Coupling and SALOME (20)

An03 dws
An03 dwsAn03 dws
An03 dws
 
Dual-Diameter Variation –Immune CNFET-based 7T SRAM Cell
Dual-Diameter Variation –Immune CNFET-based 7T SRAM CellDual-Diameter Variation –Immune CNFET-based 7T SRAM Cell
Dual-Diameter Variation –Immune CNFET-based 7T SRAM Cell
 
04020470
0402047004020470
04020470
 
3 - A critical review on the usual DCT Implementations (presented in a Malays...
3 - A critical review on the usual DCT Implementations (presented in a Malays...3 - A critical review on the usual DCT Implementations (presented in a Malays...
3 - A critical review on the usual DCT Implementations (presented in a Malays...
 
Design and Analysis of Power and Variability Aware Digital Summing Circuit
Design and Analysis of Power and Variability Aware Digital Summing CircuitDesign and Analysis of Power and Variability Aware Digital Summing Circuit
Design and Analysis of Power and Variability Aware Digital Summing Circuit
 
vlsi qb.docx imprtant questions for all units
vlsi qb.docx imprtant questions for all unitsvlsi qb.docx imprtant questions for all units
vlsi qb.docx imprtant questions for all units
 
CNFET BASED BASIC GATES AND A NOVEL FULLADDER CELL
CNFET BASED BASIC GATES AND A NOVEL FULLADDER CELLCNFET BASED BASIC GATES AND A NOVEL FULLADDER CELL
CNFET BASED BASIC GATES AND A NOVEL FULLADDER CELL
 
Vsync track c
Vsync   track cVsync   track c
Vsync track c
 
CMOS VLSI design
CMOS VLSI designCMOS VLSI design
CMOS VLSI design
 
Performance Analysis of Interconnect Drivers for Ultralow Power Applications
Performance Analysis of Interconnect Drivers for Ultralow Power ApplicationsPerformance Analysis of Interconnect Drivers for Ultralow Power Applications
Performance Analysis of Interconnect Drivers for Ultralow Power Applications
 
Comparing ICH-leach and Leach Descendents on Image Transfer using DCT
Comparing ICH-leach and Leach Descendents on Image Transfer using DCT Comparing ICH-leach and Leach Descendents on Image Transfer using DCT
Comparing ICH-leach and Leach Descendents on Image Transfer using DCT
 
Cloudy with a Touch of Cheminformatics
Cloudy with a Touch of CheminformaticsCloudy with a Touch of Cheminformatics
Cloudy with a Touch of Cheminformatics
 
Conference ECT 2010
Conference ECT 2010Conference ECT 2010
Conference ECT 2010
 
EKH Company Presentation 2010 11
EKH Company Presentation 2010 11EKH Company Presentation 2010 11
EKH Company Presentation 2010 11
 
Cst studio-suite-2011-brochure-low
Cst studio-suite-2011-brochure-lowCst studio-suite-2011-brochure-low
Cst studio-suite-2011-brochure-low
 
Moldex3D, Structural Analysis, and HyperStudy Integrated in HyperWorks Platfo...
Moldex3D, Structural Analysis, and HyperStudy Integrated in HyperWorks Platfo...Moldex3D, Structural Analysis, and HyperStudy Integrated in HyperWorks Platfo...
Moldex3D, Structural Analysis, and HyperStudy Integrated in HyperWorks Platfo...
 
STUDY OF SPIN TRANSFER TORQUE (STT) AND SPIN ORBIT TORQUE (SOT) MAGNETIC TUNN...
STUDY OF SPIN TRANSFER TORQUE (STT) AND SPIN ORBIT TORQUE (SOT) MAGNETIC TUNN...STUDY OF SPIN TRANSFER TORQUE (STT) AND SPIN ORBIT TORQUE (SOT) MAGNETIC TUNN...
STUDY OF SPIN TRANSFER TORQUE (STT) AND SPIN ORBIT TORQUE (SOT) MAGNETIC TUNN...
 
Large Scale Parallel FDTD Simulation of Full 3D Photonic Crystal Structures
Large Scale Parallel FDTD Simulation of Full 3D Photonic Crystal StructuresLarge Scale Parallel FDTD Simulation of Full 3D Photonic Crystal Structures
Large Scale Parallel FDTD Simulation of Full 3D Photonic Crystal Structures
 
Memristors
MemristorsMemristors
Memristors
 
HardNet: Convolutional Network for Local Image Description
HardNet: Convolutional Network for Local Image DescriptionHardNet: Convolutional Network for Local Image Description
HardNet: Convolutional Network for Local Image Description
 

Plus de OpenCascade

JUS 2011 - Homard
JUS 2011 - HomardJUS 2011 - Homard
JUS 2011 - Homard
OpenCascade
 
JUS 2011 - Les 10 ans de Salome MECA
JUS 2011 - Les 10 ans de Salome MECAJUS 2011 - Les 10 ans de Salome MECA
JUS 2011 - Les 10 ans de Salome MECA
OpenCascade
 
Jus 2011 - Salome - Panthere
Jus 2011 - Salome - PanthereJus 2011 - Salome - Panthere
Jus 2011 - Salome - Panthere
OpenCascade
 
JUS 2011 - Manipulation de champs avec SALOME
JUS 2011 - Manipulation de champs avec SALOMEJUS 2011 - Manipulation de champs avec SALOME
JUS 2011 - Manipulation de champs avec SALOME
OpenCascade
 
JUS 2011 - SALOME Roadmap 2012-2013
JUS 2011 - SALOME Roadmap 2012-2013JUS 2011 - SALOME Roadmap 2012-2013
JUS 2011 - SALOME Roadmap 2012-2013
OpenCascade
 
JUS 2001 - Maillage d'un béton avec Microgen
JUS 2001 - Maillage d'un béton avec MicrogenJUS 2001 - Maillage d'un béton avec Microgen
JUS 2001 - Maillage d'un béton avec Microgen
OpenCascade
 

Plus de OpenCascade (19)

JUS 2011 - Homard
JUS 2011 - HomardJUS 2011 - Homard
JUS 2011 - Homard
 
JUS 2011 - Les 10 ans de Salome MECA
JUS 2011 - Les 10 ans de Salome MECAJUS 2011 - Les 10 ans de Salome MECA
JUS 2011 - Les 10 ans de Salome MECA
 
Jus 2011 - Salome - Panthere
Jus 2011 - Salome - PanthereJus 2011 - Salome - Panthere
Jus 2011 - Salome - Panthere
 
JUS 2011 - Manipulation de champs avec SALOME
JUS 2011 - Manipulation de champs avec SALOMEJUS 2011 - Manipulation de champs avec SALOME
JUS 2011 - Manipulation de champs avec SALOME
 
JUS 2011 - SALOME Roadmap 2012-2013
JUS 2011 - SALOME Roadmap 2012-2013JUS 2011 - SALOME Roadmap 2012-2013
JUS 2011 - SALOME Roadmap 2012-2013
 
JUS 2011 - parex
JUS 2011 -  parex JUS 2011 -  parex
JUS 2011 - parex
 
Examples of use of the Salome Platform For Teaching and Research Activities A...
Examples of use of the Salome Platform For Teaching and Research Activities A...Examples of use of the Salome Platform For Teaching and Research Activities A...
Examples of use of the Salome Platform For Teaching and Research Activities A...
 
JUS 2001 - Maillage d'un béton avec Microgen
JUS 2001 - Maillage d'un béton avec MicrogenJUS 2001 - Maillage d'un béton avec Microgen
JUS 2001 - Maillage d'un béton avec Microgen
 
JUS 2011 - Présentation 4a - Microgen
JUS 2011 -  Présentation 4a - MicrogenJUS 2011 -  Présentation 4a - Microgen
JUS 2011 - Présentation 4a - Microgen
 
03 jus 2011 11 15 bilan2 011
03 jus 2011 11 15 bilan2 01103 jus 2011 11 15 bilan2 011
03 jus 2011 11 15 bilan2 011
 
10 jus 20101123_plat_salome
10 jus 20101123_plat_salome10 jus 20101123_plat_salome
10 jus 20101123_plat_salome
 
08 jus 20101123_cae_linux_presentation
08 jus 20101123_cae_linux_presentation08 jus 20101123_cae_linux_presentation
08 jus 20101123_cae_linux_presentation
 
05 jus 20101123_numodis
05 jus 20101123_numodis05 jus 20101123_numodis
05 jus 20101123_numodis
 
04 jus 20101123_para_vis
04 jus 20101123_para_vis04 jus 20101123_para_vis
04 jus 20101123_para_vis
 
03 jus 20101123_plateforme_alliance
03 jus 20101123_plateforme_alliance03 jus 20101123_plateforme_alliance
03 jus 20101123_plateforme_alliance
 
11 jus 20101123_saturneastersalome
11 jus 20101123_saturneastersalome11 jus 20101123_saturneastersalome
11 jus 20101123_saturneastersalome
 
09 jus 20101123_optimisation_salomeaster
09 jus 20101123_optimisation_salomeaster09 jus 20101123_optimisation_salomeaster
09 jus 20101123_optimisation_salomeaster
 
01 jus 20101123_intro
01 jus 20101123_intro01 jus 20101123_intro
01 jus 20101123_intro
 
02 jus 20101123_maillage_pourlacfd
02 jus 20101123_maillage_pourlacfd02 jus 20101123_maillage_pourlacfd
02 jus 20101123_maillage_pourlacfd
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

JUS 2011 - Thermalhydraulic coupling using ICoCo : an Interface for Code Coupling and SALOME

  • 1. Thermalhydraulic coupling using ICoCo : an Interface for Code Coupling and SALOME Fabien Perdu November 15, 2011 CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 1
  • 2. Some coupling examples • 2008 : Gas cooled fast reactor – Blackout transient – Cathare simulates the whole circuit – Trio_U simulates the upper plenum – 1D / 3D – Stratification in upper plenum for onset of natural convection – Independent time steps CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 2
  • 3. Some coupling examples Complex timestep management => need for a flexible API Explicite, pas de temps non coïncidents 3 6 9 Cathare Trio_U 1 2 4 5 7 8 10 Implicite, pas de temps coïncidents Cathare … Trio_U Implicite, avec points de RDV (pour plus tard) Cathare … Trio_U CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 3
  • 4. Some coupling examples • 2009 : validation of coupling methodology – Simple analytic test cases (closed loops) – Monophasic liquid or gas flows – 2-loop system with flow reversal – Still 1D-2D => values exchanged are doubles Many possible algorithms (values to transfer) => need for a flexible API CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 4
  • 5. Some coupling examples • 2010 : MC2 (modèle cœur collecteur) – Three 3D domains  assemblies  inter-assemblies  hot collector – Interpolations  2D-2D  On 3D surfaces  Between non conforming meshes  Distributed on several processors CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 5
  • 6. Some coupling examples • 2010 : MC2 (modèle cœur collecteur) – Three 3D domains  assemblies  inter-assemblies  hot collector – Interpolations  2D-2D  On 3D surfaces  Between non conforming meshes  Distributed on several processors CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 6
  • 7. Some coupling examples • 2010 : MC2 (modèle cœur collecteur) – Three 3D domains  assemblies  inter-assemblies  hot collector – Interpolations  2D-2D  On 3D surfaces  Between non conforming meshes  Distributed on several processors Need for powerful interpolators CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 7
  • 8. Some coupling examples ParaMEDMem ICoCo hconv hconv T T Text Flux Flux Flux Assemblages Inter-Assemblage Vsortie Tsortie Flux Text hconv Vsortie T Flux Tsortie hconv T hconv T DAC P Collecteur V Many data exchanges !!! CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 8
  • 9. Some coupling examples • 2010 : Phenix end-of-life calculation (still ongoing) – Complex geometry – Many coupled physical phenomena Even further coupling needs (thermal 1D-3D, neutronic power,…) CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 9
  • 10. Coupling methodology • Domain overlapping method – Cathare simulates the whole reactor – Cathare datafile nearly untouched – Trio_U simulates the CFD part – Cathare and Trio_U overlap of the CFD domain • Benefits – Stability easier to obtain – Trio_U->Cathare retroaction or not possible term by term – Easier comparison with Cathare alone, as the datafile is unchanged • Challenges – Take advantage of Catahre pressure solver on the whole domain but stay insensitive to Cathare solution on the CFD part. CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 10
  • 11. Coupling methodology • Zoom (no feedback) – Mass equation  Cathare provides mass flowrates on the boundaries  In case of incompressible fluid in Trio_U, a small correction is added to ensure div(u)=0 – Energy equation  Cathare provides enthalpies on the boundaries • Feedbacks – Momentum equation  Momentum source term in Cathare regulated to reach dP(Trio_U)=dP(Cathare) – Energy equation  Trio_U provides enthalpies on the boundaries, to be convected by Cathare CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 11
  • 12. ICoCo : Interface for Code Coupling • Needs identified – Flexible timestep management algorithms – Flexible field exchange algorithms – Parallel calculations and interpolation – Algorithms  Easy to read  Easy to modify  Easy to reuse • Solution chosen – Coupling algorithm outside the codes – Interpolation and data manipulation outside the codes – Codes accessibles through method calls – A common API to enable  Replacing a code by another one  Faster learning (common language)  Better specification and stability of the API CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 12
  • 13. ICoCo : Interface for Code Coupling • Overview of the architecture Supervisor (C++, python, SALOME) Method call ICoCo (C++) ICoCo (C++) Code 1 Code 2 (any language) (any language) • Impact on the codes – They must be modular : the main loop must get out of the code and be flexible. – Hardly compatible with Fortran-style linear programming. CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 13
  • 14. ICoCo : Interface for Code Coupling • Scope – Each code is controllable through a C++ class, deriving from a common mother class named « Problem ». – Specifications for the codes : ICoCo specifies the methods of the Problem class and what they are supposed to do. – Specifications for the supervisor : ICoCo specifies when it is legal to call each method. – Scope : ICoCo methods allow time advance, saving/restoring and field exchange. CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 14
  • 15. ICoCo : Interface for Code Coupling • Implementation – Already implemented in  Trio_U  Cathare – Work ongoing for  Neptune_CFD – Interest expressed for  Star_CD – Fields used  MEDCouplingFieldDouble  Simpler TrioField also compatible with ParaMEDMEM CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 15
  • 16. ICoCo : Interface for Code Coupling • Today’s feedback – Supervisor + API paradigm seems a good choice – Some methods may still lack in the API – Writing the supervisor is often a repetitive task (if many fields exchanged) => possibility to make it more automatic • Foreseeable additions – Add helper methods wrapping existing ones – Describe several stages inside a timestep – Impose a new mesh to the code CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 16
  • 17. ICoCo and SALOME • Generic ICoCo SALOME component – Possible for every ICoCo-compliant code – Even less burden for code developer • Specific Cathare SALOME component – Developed in the HEMERA frame – Adds convenient functions (e.g. getDouble) – No new functionnality (getField could do the job) • Parallel SALOME component – Feasibility demonstration in the NURISP frame – One master process dispatches the API calls CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 17
  • 18. Latest use : ASTRID coupled CFD/system • SALOME use – CAO – Maillage – ParaMEDMEM interpolators • ICoCo use – Trio_U – Cathare • Coupling algorithm – C++ program ( ~ 1000 lines ) • Many many data exchanged… CEA Grenoble / DEN/DANS/DM2S/STMF November 15, 2011 18