380 likes | 571 Views
MagnetoHydroDynamics. Multigrid discretization and solution. Achi Brandt The Weizmann Institute of Science. Resistive MHD Equations: Conservative Form. Time Dependent System. Implicit. Each time step solve.
E N D
MagnetoHydroDynamics Multigrid discretization and solution Achi Brandt The Weizmann Institute of Science
Time Dependent System • Implicit Each time step solve • Need solving to the level of incremental discretization error FMG for F cycle, FAS • Inside the MG solver: Defect corrections for higher order • Solver set-up – once per several (many?) time steps • Required: very high speed
Geometric MG, Finite differences Little geometric information Negligible set-up • Efficient discretization Simple stable high order Treatment of non ellipticity • Inexpensive coarse level Not Galerkin Polynomial interpolation • Fast DO loops on highly parallel, vector platforms • No linearization (FAS) Few, simple terms • Fast smoothing Principal-matrix DGS Possibly employing simple AMG cycle • Local refinement patches Option: piecewise characteristic alignment
MG Reduction Principles • Separate: interior boundary; shocks, … • Scale separation: Local processing at each scale • Principal terms at each scale
Principal Terms Principal terms on scale h: the larger coefficients in (or in replacing by , etc.) Important for: 1. Boundary conditions 2. Discretization (stability) 3. Relaxation forms 4. Interpolation
Principal-Term Relaxation fixed in calculating _____ Relax as FOR << 1 MAY CHANGE ON COARSE LEVELS ! Quasi-linear UU + … = f x Relax as fixed in calculating LIKE LINEAR ! AT ANY SCALE !
PDE Systems e.g., Stokes
on scale h h Principal terms of a system L are all terms which contribute to the principal part of det L on scale h h
Potentially principal MHD matrix _____ 0 _________ Principal, assuming
0 Degeneracy! _____ 0 = O(h)? Principal, assuming
Distributive relaxation Stokes: Ghost variables Distribution matrix • Relax implicitly: distribute changes to (u, v, p) • Distributive GS: Smoothing rate like GS for
= Forward = Backward = Upstream
First order discretization = Forward = Backward = Upstream
Higher order discretization Higher order defect correction Efficient MG cycles
Higher order discretization • Converges to high order in a cycle or two Higher order defect correction Update once per cycle Efficient MG cycles • Does not converge to zero residuals • Accuracy checked by the FMG sequence
h 2h . . . h0/4 h0/2 h0 * * * * Full MultiGrid (FMG) algorithm
h 2h . . . h0/4 h0/2 h0 * * * * Full MultiGrid (FMG) algorithm
Line/Plane relaxation Double Variable U Semi-ellipticity Variable B piecewise • Semi coarsening AMG • Separate piecewise plane relaxation for each
Ghost variables RELAX immediately distributing upon each move Distribution matrix
A relaxation sweep for 1. Relax starting with yielding 2. Relax starting with yielding
Double Variable U Semi-ellipticity Variable B • Separate piecewise plane relaxation for each e.g., by piecewise AMG cycles for • Super W cycles Characteristic-aligned discretization • Piecewise, in terms of each • Does not converge to zero residuals • Accuracy checked by the FMG sequence
Conservative equations NON-CONSERVATIVE DISTRIBUTIVE RELAXATION: Discontinuity management • Both and should be conservative and discontinuity-avoiding • Conservative fine-to-coarse residual restriction • Adaptive relaxation (near discontinuities)
MG Reduction Principles • Separate: interior boundary • Scale separation: Local processing at each scale • Principal terms at each scale • Design of discretizations, relaxation, interpolation, restriction in terms of the (scale-dependent) simple factors of the determinant of the principal quasi-linear operator scalar low-order factors, each featuring its own type (ellipticity measure, anisotropy,…) and characteristic directions • No linearizations • Design, debug - guided by quantitative predictions