10 likes | 91 Views
Overview of CISM Code Coupling C. Goodrich and the CISM Coupling Team. Overture solver-coupler (A++/P++). P++ wrapper. P++ Interface. P++ Interface Mappings. FORTRAN. InterComm P++. v ┴ , E calc. MHD. Solves for Φ. j || calc Density Sound speed. InterComm P++. Σ P , Σ H
E N D
Overview of CISM Code Coupling C. Goodrich and the CISM Coupling Team Overture solver-coupler (A++/P++) P++ wrapper P++ Interface P++ Interface Mappings FORTRAN InterComm P++ v┴, E calc MHD Solves for Φ j|| calc Density Sound speed InterComm P++ ΣP, ΣH calculated locally or by an ITM model Np, Tp … Diagram of the modularized version of the LFM model and the standalone, Overture-based ionosphere simulation. Object Oriented Framework: Magnetosphere-Ionosphere Coupling • The Code Coupling Thrust is responsible for developing and maintaining successive versions of the CISM comprehensive model, • Coupling Requirements: • Truly minimal code modification • Efficient data transfer between codes • Data translation (physics) and interpolation (grid) • Control of independently executing codes The CISM Comprehensive Models • Modularized version of the LFM code with separate Magnetosphere Ionosphere components: • Overture-based Ionosphere module solves for PC potential • Module ready for LFM alone or with TING/TIE-GCM • Internal calculation of conductances (LFM) or • Import conductances from TING or TIE-CGM • Data transfer via InterComm • Extensive documentation The functionality of our comprehensive models come from two sources:1. Strengths of the individual component codes2. End to end coupling, which enables physical interaction of the component codes • CISM 1.0 (2006) • Ad hoc coupling of the MAS, ENLIL, LFM, and TING codes • Following 1.x versions incorporate improved versions of these codes. Model Coupling Approach • Ad Hoc Coupling • Code developers use hardwired linkages of code pairs to prototype coupling schemes and test scientific validity • Object Oriented Software Framework • Computational framework based on Object Oriented Programming (OOP) using existing packages • Intelligent DataChannels (InterComm) • Program Control (HPCALE) • Data Manipulation and Interpolation -Couplers (Overture) L1 Coupler B, V, , P MAS ENLIL B, V, , P LFM ITM Jll, np, Tp • SP, SH, • F CORHEL 1.2 CMIT 1.0 • Physical Inputs for ENLIL, LFM, and ITM • L1 Coupler converts Heliospheric results for Geospace use • Accurate Ionosphere (Particle precipitation from LFM and Conductances from ITM Object Oriented Software Framework CISM 2.0 (Entering CISM Validation) B, V, , P ENLIL B, V, , P LFM ITM MAS • Intelligent Data Channels • InterComm(v1.5) is a programming environment (API) and runtime library that provides functions for: • (www.cs.umd.edu/projects/hpsl/chaos/ResearchAreas/ic/) • Transferringdata efficiently between programs • Data channels defined and established at runtime • Data broadcast mode – one processor to many (or none) • Nonblocking exports – IC caches data until requested • Controlling (v2.0) when data transfers occur • Synchronization of execution through timestamps on data transfers • Program Control: • HPCALE (1.0)is an application developed to deploymultiple programs coupled with InterComm • Performs computational resource discovery and allocation • Automatically launches applications on desired resources using user configuration files (XJD format) • Web tool to help users to create XJD configuration files Jll, np, Tp • SP, SH, • F Object Oriented Framework: CMIT 2.0 CORHEL 3.4 CMIT 2.0 • Expanded Observatory support (redundancy, verification) • CME (Empirical) propagation (Cone Model) (ICME strength and arrival time) • Electrodynamics model of ionosphere (TIECGM) • Runtime specification of ITM model ( TIECGM,TING) CMIT (2.0) has been reconfigured to use the new version of InterComm (1.6). Component code is now independent of the source or destination of data transfers, which are now determined at runtime from XJD file. Next version of CISM (In Development) B, V, , P HPCALE, IC 1.6 RCM LFM SEP B, , P B, V, , P MAS ENLIL B, V, , P ITM LFM Jll, np, Tp • SP, SH, • F IC LTR 1.2 MIC IC • Consistent use of Object Oriented Framework • Low latitude (ITM) electric field • SEP generation and propagation to Earth • Radiation Belt modeling (energetic ion and electron fluxes near Earth • Improved description of the Inner Magnetosphere • Ring Current and Region 2 currents XJD File Mag = LFM Ion = TIEGCM Coupler = MIC Mag.Pot <-> Ion.Drift … • Data Manipulation and Interpolation - Couplers: • Couplersmakedata from one code useful to another by: • Interpolation between disparate grids • knowledge of grid structures of all codes • Conversion of data between disparate physical models • knowledge of code data and conversion methods • Overture is a set of C++ classes providing: • (www.llnl.gov/CASC/Overture/) • Interpolation between (moving, static) overlapping grids • Registration and archiving of grids • Powerful syntax for data manipulation • Seamless interaction with IC (common data libraries) Future Capabilities … ITM {TING,TIECGM} • Physical CME initiation (CME initiation from coronal active regions) • Accurate thermodynamic model for coronal heating and solar wind acceleration • SEP penetration and trapping in the magnetosphere • Multiple ion species in the Magnetosphere (ionospheric outflow) • Kinetic scale physics (MI coupling, reconnection, …) HPCALE and IC 1.6 read XJD file. HPCALE launches component codes. IC establishes and initializes data channels.