S j l ij l ik l il i j k l C C i C j C k C l S i S k S l m ij m ik m il s i Roberto Lionello and Dalton D. Schnack Center for Energy and Space Science.

Slides:



Advertisements
Similar presentations
EXTENDED MHD MODELING: BACKGROUND, STATUS AND VISION
Advertisements

Compatible Spatial Discretizations for Partial Differential Equations May 14, 2004 Compatible Reconstruction of Vectors Blair Perot Dept. of Mechanical.
Particle acceleration in a turbulent electric field produced by 3D reconnection Marco Onofri University of Thessaloniki.
EMLAB 1 Solution of Maxwell’s eqs for simple cases.
(c) MSc Module MTMW14 : Numerical modelling of atmospheres and oceans Staggered schemes 3.1 Staggered time schemes.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2014 – 35148: Continuous Solution for Boundary Value Problems.
Algorithm Development for the Full Two-Fluid Plasma System
Session: Computational Wave Propagation: Basic Theory Igel H., Fichtner A., Käser M., Virieux J., Seriani G., Capdeville Y., Moczo P.  The finite-difference.
Coupling Continuum Model and Smoothed Particle Hydrodynamics Methods for Reactive Transport Yilin Fang, Timothy D Scheibe and Alexandre M Tartakovsky Pacific.
1 Internal Seminar, November 14 th Effects of non conformal mesh on LES S. Rolfo The University of Manchester, M60 1QD, UK School of Mechanical,
“Assimilating” Solar Data into MHD Models of the Solar Atmosphere W.P. Abbett SSL UC Berkeley HMI Team Meeting, Jan 2005.
CSE351/ IT351 Modeling and Simulation
University of North Carolina - Chapel Hill Fluid & Rigid Body Interaction Comp Physical Modeling Craig Bennetts April 25, 2006 Comp Physical.
High-Order Adaptive and Parallel Discontinuous Galerkin Methods for Hyperbolic Conservation Laws J. E. Flaherty, L. Krivodonova, J. F. Remacle, and M.
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
Parallel Mesh Refinement with Optimal Load Balancing Jean-Francois Remacle, Joseph E. Flaherty and Mark. S. Shephard Scientific Computation Research Center.
Landscape Erosion Kirsten Meeker
Mechanics.
SSL (UC Berkeley): Prospective Codes to Transfer to the CCMC Developers: W.P. Abbett, D.J. Bercik, G.H. Fisher, B.T. Welsch, and Y. Fan (HAO/NCAR)
Computations of Fluid Dynamics using the Interface Tracking Method Zhiliang Xu Department of Mathematics University of Notre.
MCE 561 Computational Methods in Solid Mechanics
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
1 Finite-Volume Formulation. 2 Review of the Integral Equation The integral equation for the conservation statement is: Equation applies for a control.
Parallel Performance of Hierarchical Multipole Algorithms for Inductance Extraction Ananth Grama, Purdue University Vivek Sarin, Texas A&M University Hemant.
Massively Parallel Magnetohydrodynamics on the Cray XT3 Joshua Breslau and Jin Chen Princeton Plasma Physics Laboratory Cray XT3 Technical Workshop Nashville,
CIS V/EE894R/ME894V A Case Study in Computational Science & Engineering HW 5 Repeat the HW associated with the FD LBI except that you will now use.
Numerical simulations are used to explore the interaction between solar coronal mass ejections (CMEs) and the structured, ambient global solar wind flow.
A Look at High-Order Finite- Volume Schemes for Simulating Atmospheric Flows Paul Ullrich University of Michigan.
A Hybrid Particle-Mesh Method for Viscous, Incompressible, Multiphase Flows Jie LIU, Seiichi KOSHIZUKA Yoshiaki OKA The University of Tokyo,
PTT 204/3 APPLIED FLUID MECHANICS SEM 2 (2012/2013)
Haptics and Virtual Reality
Boundaries, shocks, and discontinuities. How discontinuities form Often due to “wave steepening” Example in ordinary fluid: –V s 2 = dP/d  m –P/  
R. Oran csem.engin.umich.edu SHINE 09 May 2005 Campaign Event: Introducing Turbulence Rona Oran Igor V. Sokolov Richard Frazin Ward Manchester Tamas I.
Discontinuous Galerkin Methods and Strand Mesh Generation
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
The Geometry of Biomolecular Solvation 2. Electrostatics Patrice Koehl Computer Science and Genome Center
1 ELEC 3105 Basic EM and Power Engineering Start Solutions to Poisson’s and/or Laplace’s.
A particle-gridless hybrid methods for incompressible flows
Discontinuous Galerkin Methods Li, Yang FerienAkademie 2008.
Discontinuous Galerkin Methods for Solving Euler Equations Andrey Andreyev Advisor: James Baeder Mid.
The Solar Wind.
CMRS Review, PPPL, 5 June 2003 &. 4 projects in high energy and nuclear physics 5 projects in fusion energy science 14 projects in biological and environmental.
Computational MHD: A Model Problem for Widely Separated Time and Space Scales Dalton D. Schnack Center for Energy and Space Science Center for Magnetic.
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
Gas-kineitc MHD Numerical Scheme and Its Applications to Solar Magneto-convection Tian Chunlin Beijing 2010.Dec.3.
CIS/ME 794Y A Case Study in Computational Science & Engineering 2-D conservation of momentum (contd.) Or, in cartesian tensor notation, Where repeated.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
A Non-iterative Hyperbolic, First-order Conservation Law Approach to Divergence-free Solutions to Maxwell’s Equations Richard J. Thompson 1 and Trevor.
SAN DIEGO SUPERCOMPUTER CENTER at the UNIVERSITY OF CALIFORNIA, SAN DIEGO Advanced User Support for MPCUGLES code at University of Minnesota October 09,
Some slides on UCLA LM-MHD capabilities and Preliminary Incompressible LM Jet Simulations in Muon Collider Fields Neil Morley and Manmeet Narula Fusion.
Minimum Numerical Viscosity to Care the Carbuncle Instability Tomoyuki Hanawa (Chiba U.) Collaborators: Hayato Mikami, Tomoaki Matsumoto before after.
Fluid Theory: Magnetohydrodynamics (MHD)
Introduction to Space Weather Jie Zhang CSI 662 / PHYS 660 Fall, 2009 Copyright © The Heliosphere: Solar Wind Oct. 08, 2009.
A Fully Conservative 2D Model over Evolving Geometries Ricardo Canelas Master degree student IST Teton Dam 1976.
Multipole-Based Preconditioners for Sparse Linear Systems. Ananth Grama Purdue University. Supported by the National Science Foundation.
Lecture Objectives: - Numerics. Finite Volume Method - Conservation of  for the finite volume w e w e l h n s P E W xx xx xx - Finite volume.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
1 Fluid Theory: Magnetohydrodynamics (MHD). 2 3.
ELEC 3105 Basic EM and Power Engineering
D. Odstrcil1,2, V.J. Pizzo2, C.N. Arge3, B.V.Jackson4, P.P. Hick4
Fluid Theory: Magnetohydrodynamics (MHD)
ESS 154/200C Lecture 19 Waves in Plasmas 2
Supported by the National Science Foundation.
Prof. dr. A. Achterberg, Astronomical Dept
Objective Numerical methods Finite volume.
Fluid Theory: Magnetohydrodynamics (MHD)
Comparison of CFEM and DG methods
Low Order Methods for Simulation of Turbulence in Complex Geometries
Ph.D. Thesis Numerical Solution of PDEs and Their Object-oriented Parallel Implementations Xing Cai October 26, 1998.
Presentation transcript:

S j l ij l ik l il i j k l C C i C j C k C l S i S k S l m ij m ik m il s i Roberto Lionello and Dalton D. Schnack Center for Energy and Space Science Science Applications International Corp. San Diego, CA USA ADVANCED MHD ALGORITHM FOR SOLAR AND SPACE SCIENCE

GOALS Develop an efficient 3-D representation of the resistive MHD model on an unstructured grid of tetrahedra –Truly arbitrary geometry –Use cartesian coordinates Avoids coordinate singularities and complicated metrics Apply to a variety of problems –Solar physics Structure and dynamics of active regions Coronal mass ejections Modeling of inner heliosphere –Fusion Stellarators Incorporate adaptive mesh refinement

CHALLENGES Discrete representation of differential operators Compactness (coupling of nearest neighbor points only) Self-adjointness Annihilation properties (e.g., ) Solution of implicit system Grid generation Implementation Code and data structure Parallelism Grid decomposition

RESISTIVE MHD MODEL

CURRENT AND MAGNETIC FIELD Vector potential, magnetic field, and current density Both J and B are solenoidal Current density operator is self-adjoint: Seek discrete operators that satisfy these same conditions

TETRAHEDRAL GRID S j l ij l ik l il i j k l C C i C j C k C l S i S k S l m ij m ik m il s i

FINITE VOLUME METHOD

APPLY TO MAGNETIC FIELD

DIVERGENCE OF B Apply Gauss’ theorem to dual median volume element surrounding vertex After some algebra, contributions from common sides of adjoining tetrahedra cancel!

ALTERNATE DERIVATION OF B A varies linearly within tetrahedron: Identical with finite volume result. Take the curl of this function:

CURRENT DENSITY

“CURL-CURL” IS SELF-ADJOINT

VARIATIONAL PRINCIPLE

DISCRETE VARIATION

BOUNDARY CONSTRAINT FOR B Discrete minimization makes no reference to boundary conditions Discrete expression for “curl curl” operator is 3N equations in 3N unknowns Could solve for all unknowns, including values at the M boundary vertices Absence of surface term implies that solution will satisfy the natural boundary conditions, i.e., Since A t is not fixed, this implies that Constraint on surface field and volume current: In general, we must specify A t on the boundary

PLACEMENT OF VARIABLES ON GRID i j k l A J v  p B vv Vertices: A, J, v Centroids: , p, B Velocity averaged to faces or centroids, as required Apply conservation laws to control volume Equation of motion not in conservation form Use anisotropic semi-implicit operator

ADVECTION Control surfaces for upwind advection Cell centered quantity Vertex centered quantity

TIME SCALES IN RESISTIVE MHD Require implicit methods Lundquist number: Explicit time step impractical:

PARTIALLY IMPLICIT TIME DIFFERENCING MHD operator contains widely separated time scales (eigenvalues) Treat only “fast” part of operator implicitly to avoid time step restriction Precise decomposition for complex nonlinear system is often difficult or impractical to achieve

OPERATOR SPLITTING In MHD, F and  are known, but an expression for S is difficult to achieve Use operator splitting: Explicit expression for S is not required

“SEMI-IMPLICIT” METHOD Recognize that the operator F is completely arbitrary!! G can be chosen for accuracy and ease of inversion –G should be easier to invert than F (or  !) –G should approximate F for modes of interest –Some choices are better than others! The semi-implicit method originated decades ago in weather modeling Has proven to be very useful for resistive and extended MHD

SEMI-IMPLICIT OPERATOR FOR MHD Linearized, ideal MHD wave equation Wide spectrum of normal modes Highly anisotropic spatial operator Basis of many implicit formulations Not a simple Laplacian Requires specialized pre-conditioners Challenge: find optimum algorithm for inverting this operator with CFL ~ 1000

SEMI-IMPLICIT OPERATOR

DISCRETE SEMI-IMPLICIT OPERATOR

COMPUTING ISSUES F90 implementation –Use object-oriented features –Facilitate code modification and maintenance Use existing software implementations –MPI for parallelism –LaGrit (LaGrit Team, 1999) for mesh generation –METIS (Karypis & Kumar, 1999) for partitioning grid among processors –PETSc (Baley, et al., 2000) for preconditioned CG solver on unstructured grid –GMV (Ortega, 2000) for visualization of data on tetrahedral grid Expedited code development

EXAMPLE: GRID DECOMPOSITION Decomposition of cubic, cylindrical, and spherical domains for parallel processing using METIS

EXAMPLE: POTENTIAL CORONAL FIELD

EXAMPLE: CORONAL POTENTIAL FIELD

EXAMPLE: LINEAR SOUND WAVES

SOUND WAVES IN A BOX X-Component of velocityPressure

SOUND WAVES IN A SPHERE

NONLINEAR SHOCK PROBLEM G. A. Sod, J. Comp. Phys. 27,1 (1978)  left = 1 p left = 1  right = p right = 0.1 Diaphragm Diaphragm separating left and right states of fluid Diaphragm is broken at t = 0 Expansion fan moves to left Shock and contact discontinuity move to right Well documented nonlinear solution of hydrodynamic equations

NONLINEAR SHOCK PROBLEM Temporal evolution of the density

MHD: TORSIONAL ALFVEN WAVES

Magnetic Energy Kinetic Energy Magnetic EnergyPerturbed magnetic field vectors

MHD: NON LINEAR KINK MODE nodes, cells, 16 processors

MHD: NON LINEAR KINK MODE Initial conditions: unstable Gold-Hoyle equilibrium At t=0 a random perturbation Is applied and the m=1 kink instability is triggered Magnetic energy Kinetic energy

MHD: NON LINEAR KINK MODE

MHD SHOCK IN CYLINDRICAL COORDINATES Modified from Brio, M. and Wu, C. C., J. Comp. Phys. 75, 400 (1988), and adapted to cylindrical geometry  left = 1 p left = 1  right = p right = 0.1 Diaphragm Diaphragm separating left and right states of fluid Diaphragm is broken at t = 0 Fast rarefaction and slow compound waves move to left Slow shock, contact discontinuity, and fast rarefaction wave move to right.

MHD SHOCK IN CYLINDRICAL COORDINATES nodes, cells, 16 processors

MHD SHOCK IN CYLINDRICAL COORDINATES Cutlines at t= 1

MHD SHOCK IN CYLINDRICAL COORDINATES Cutplane of density at t= 1

THE SOLAR WIND FROM 30R  TO 5 A.U. We simulate the propagation of the hydrodynamic solar wind in the heliosphere. The mesh consists of nodes and cells and extends from 30R  to 5 A.U. At 30R  we specify the boundary conditions: a 30  -degree- wide belt of dense and slow solar wind inclined of 20  degrees in respect to the rotation axis, surrounded by the fast solar wind. The angular rotation speed is 14  degrees per day. We advance the hydrodynamic equations for 30 days.

THE SOLAR WIND FROM 30R  TO 5 A.U. A cut of the mesh and an enlargement showing the inner boundary

THE SOLAR WIND FROM 30R  TO 5 A.U. Cutplanes of the flow speed Cutplanes of density times r 2

THE SOLAR WIND FROM 30R  TO 5 A.U. Enhanced density regions near the ecliptic plane

MH4D: STATUS Formulated discrete algorithm for resistive MHD on a tetrahedral grid –Based on variational principle –Compact, self-adjoint, etc. –Implicit viscosity and resistivity Used available tools for implementation (F90, LaGrit, METIS, PETSc, GMV –Expedited development schedule Validation –Potential coronal field computed from boundary data –Linear sound waves in cubic and spherical domains –Nonlinear shock tube problem –Linear torsional Alfvén waves in a cylinder –Nonlinear MHD shock problem –Propagation of the supersonic solar wind in the heliosphere Next steps: –Optimize preconditioners –Apply to solar and heliospheric problems –Adaptive mesh refinement (AMR) –Implement web page Goal: Distribute code to user community as open source project