SearcharxivSearch

arXiv subjects

Ronald M. Caplan

Publications and source records attributed to Ronald M. Caplan.

At least 19 recordsLinked to original sources

Portability of Fortran's 'do concurrent' on GPUs II

There continues to be growing interest in using standard language constructs for parallel and accelerated HPC computing, avoiding the need for (sometimes vendor-specific) external APIs. For Fortran applications, language features such as 'do concurrent' loops open the door for compilers to implement multi-threaded, GPU-accelerated, and even distributed multi-node code with only the standard language. Here, we explore the current status of using 'do concurrent' for GPU-accelerated Fortran applications across three major GPU vendors (NVIDIA, AMD, and Intel). Using a production application, we test their current capabilities, showing where the standard language alone can be used, and where augmenting the code with a directive-based API (e.g., OpenMP) is still desirable or required. Multi-GPU tests are performed with GPU-aware MPI libraries. We find that the three GPU vendors can now GPU-accelerate pure Fortran (zero directives), but that manual data movement directives can help with performance and compatibility. The results show that there is rapid advancement towards making GPU-accelerated scientific HPC code performance portable using the Fortran standard language.

cs.PL

Energetic Particles from Quasi-Separatrix Layers and Current Sheets at the Sun

Quasi-separatrix layers (QSLs) at the Sun are created from regions where channels of open magnetic flux have footpoints near regions of large-scale closed magnetic flux. These regions are particularly prone to magnetic reconnection at the Sun. In recent simulations of coronal mass ejections (CMEs) with the Magnetohydrodynamic Algorithm outside a Sphere (MAS) model coupled to the Energetic Particle Radiation Environment Module (EPREM) model, common sources of energetic particles were discovered over broad longitudinal distributions in the background solar wind, far from the sites of particle acceleration driven by compressions and shocks in front of CMEs. Further investigation revealed these to be accelerated energetic particles from the QSLs and current sheets. The energy released from magnetic reconnection near the QSL drives reconnection exhausts and field-aligned flows, which in turn accelerate energetic particles. The reconnection process also releases material previously contained within closed magnetic field structures, which are often rich in heavy ions and $^3$He ions, as corroborated by recent PSP observations. Therefore, the seed populations produced by QSLs are expected to be rich in $^3$He and heavy ions. Thus, we present the first global model of energetic particles accelerated from QSLs and above current sheets from the Sun. Our results provide a plausible source for seed populations near the Sun, which likely have $^3$He and heavy ion enhancements. These results aid in the development of predictive solar energetic particle models.

astro-ph.SR

Quantifying Uncertainties in Solar Wind Forecasting Due to Incomplete Solar Magnetic Field Information

Solar wind forecasting plays a crucial role in space weather prediction, yet significant uncertainties persist due to incomplete magnetic field observations of the Sun. Isolating the solar wind forecasting errors due to these effects is difficult. This study investigates the uncertainties in solar wind models arising from these limitations. We simulate magnetic field maps with known uncertainties, including far-side and polar field variations, as well as resolution and sensitivity limitations. These maps serve as input for three solar wind models: the Wang-Sheeley-Arge (WSA), the Heliospheric Upwind eXtrapolation (HUXt), and the European Heliospheric FORecasting Information Asset (EUHFORIA). We analyze the discrepancies in solar wind forecasts, particularly the solar wind speed at Earth's location, by comparing the results of these models to a created "ground truth" magnetic field map, which is derived from a synthetic solar rotation evolution using the Advective Flux Transport (AFT) model. The results reveal significant variations within each model with a RMSE ranging from 59-121 km/s. Further comparison with the thermodynamic Magnetohydrodynamic Algorithm outside a Sphere (MAS) model indicates that uncertainties in the magnetic field data can lead to even larger variations in solar wind forecasts compared to those within a single model. However, predicting a range of solar wind velocities based on a cloud of points around Earth can help mitigate uncertainties by up to 20-77%.

astro-ph.SR

Open-source Flux Transport (OFT). I. HipFT -- High-performance Flux Transport

Global solar photospheric magnetic maps play a critical role in solar and heliospheric physics research. Routine magnetograph measurements of the field occur only along the Sun-Earth line, leaving the far-side of the Sun unobserved. Surface Flux Transport (SFT) models attempt to mitigate this by modeling the surface evolution of the field. While such models have long been established in the community (with several releasing public full-Sun maps), none are open source. The Open Source Flux Transport (OFT) model seeks to fill this gap by providing an open and user-extensible SFT model that also builds on the knowledge of previous models with updated numerical and data acquisition/assimilation methods along with additional user-defined features. In this first of a series of papers on OFT, we introduce its computational core: the High-performance Flux Transport (HipFT) code (github.com/predsci/hipft). HipFT implements advection, diffusion, and data assimilation in a modular design that supports a variety of flow models and options. It can compute multiple realizations in a single run across model parameters to create ensembles of maps for uncertainty quantification and is high-performance through the use of multi-CPU and multi-GPU parallelism. HipFT is designed to enable users to easily write extensions, enhancing its flexibility and adaptability. We describe HipFT's model features, validations of its numerical methods, performance of its parallel and GPU-accelerated code implementation, analysis/post-processing options, and example use cases.

astro-ph.SR

Portability of Fortran's `do concurrent' on GPUs

There is a continuing interest in using standard language constructs for accelerated computing in order to avoid (sometimes vendor-specific) external APIs. For Fortran codes, the {\tt do concurrent} (DC) loop has been successfully demonstrated on the NVIDIA platform. However, support for DC on other platforms has taken longer to implement. Recently, Intel has added DC GPU offload support to its compiler, as has HPE for AMD GPUs. In this paper, we explore the current portability of using DC across GPU vendors using the in-production solar surface flux evolution code, HipFT. We discuss implementation and compilation details, including when/where using directive APIs for data movement is needed/desired compared to using a unified memory system. The performance achieved on both data center and consumer platforms is shown.

cs.PL

Advancing parabolic operators in thermodynamic MHD models II: Evaluating a Practical Time Step Limit for Unconditionally Stable Methods

Unconditionally stable time stepping schemes are useful and often practically necessary for advancing parabolic operators in multi-scale systems. However, serious accuracy problems may emerge when taking time steps that far exceed the explicit stability limits. In our previous work, we compared the accuracy and performance of advancing parabolic operators in a thermodynamic MHD model using an implicit method and an explicit super time-stepping (STS) method. We found that while the STS method outperformed the implicit one with overall good results, it was not able to damp oscillatory behavior in the solution efficiently, hindering its practical use. In this follow-up work, we evaluate an easy-to-implement method for selecting a practical time step limit (PTL) for unconditionally stable schemes. This time step is used to `cycle' the operator-split thermal conduction and viscosity parabolic operators. We test the new time step with both an implicit and STS scheme for accuracy, performance, and scaling. We find that, for our test cases here, the PTL dramatically improves the STS solution, matching or improving the solution of the original implicit scheme, while retaining most of its performance and scaling advantages. The PTL shows promise to allow more accurate use of unconditionally stable schemes for parabolic operators and reliable use of STS methods.

cs.CE

On the Origin of the sudden Heliospheric Open Magnetic Flux Enhancement during the 2014 Pole Reversal

Coronal holes are recognized as the primary sources of heliospheric open magnetic flux (OMF). However, a noticeable gap exists between in-situ measured OMF and that derived from remote sensing observations of the Sun. In this study, we investigate the OMF evolution and its connection to solar structures throughout 2014, with special emphasis on the period from September to October, where a sudden and significant OMF increase was reported. By deriving the OMF evolution at 1au, modeling it at the source surface, and analyzing solar photospheric data, we provide a comprehensive analysis of the observed phenomenon. First, we establish a strong correlation between the OMF increase and the solar magnetic field derived from a Potential Field Source Surface (PFSS) model ($cc_{\mathrm{Pearson}}=0.94$). Moreover, we find a good correlation between the OMF and the open flux derived from solar coronal holes ($cc_{\mathrm{Pearson}}=0.88$), although the coronal holes only contain $14-32\%$ of the Sun's total open flux. However, we note that while the OMF evolution correlates with coronal hole open flux, there is no correlation with the coronal hole area evolution ($cc_{\mathrm{Pearson}}=0.0$). The temporal increase in OMF correlates with the vanishing remnant magnetic field at the southern pole, caused by poleward flux circulations from the decay of numerous active regions months earlier. Additionally, our analysis suggests a potential link between the OMF enhancement and the concurrent emergence of the largest active region in solar cycle 24. In conclusion, our study provides insights into the strong increase in OMF observed during September to October 2014.

astro-ph.SR

SuNeRF: 3D reconstruction of the solar EUV corona using Neural Radiance Fields

To understand its evolution and the effects of its eruptive events, the Sun is permanently monitored by multiple satellite missions. The optically-thin emission of the solar plasma and the limited number of viewpoints make it challenging to reconstruct the geometry and structure of the solar atmosphere; however, this information is the missing link to understand the Sun as it is: a three-dimensional evolving star. We present a method that enables a complete 3D representation of the uppermost solar layer (corona) observed in extreme ultraviolet (EUV) light. We use a deep learning approach for 3D scene representation that accounts for radiative transfer, to map the entire solar atmosphere from three simultaneous observations. We demonstrate that our approach provides unprecedented reconstructions of the solar poles, and directly enables height estimates of coronal structures, solar filaments, coronal hole profiles, and coronal mass ejections. We validate the approach using model-generated synthetic EUV images, finding that our method accurately captures the 3D geometry of the Sun even from a limited number of 32 ecliptic viewpoints ($|\text{latitude}| \leq 7^\circ$). We quantify uncertainties of our model using an ensemble approach that allows us to estimate the model performance in absence of a ground-truth. Our method enables a novel view of our closest star, and is a breakthrough technology for the efficient use of multi-instrument datasets, which paves the way for future cluster missions.

astro-ph.SR

Improved modelling of SEP event onset within the WSA-Enlil-SEPMOD framework

Multi-spacecraft observations of solar energetic particle (SEP) events not only enable a deeper understanding and development of particle acceleration and transport theories, but also provide important constraints for model validation efforts. However, because of computational limitations, a given physics-based SEP model is usually best-suited to capture a particular phase of an SEP event, rather than its whole development from onset through decay. For example, magnetohydrodynamic (MHD) models of the heliosphere often incorporate solar transients only at the outer boundary of their so-called coronal domain -- usually set at a heliocentric distance of 20-30 $R_{\odot}$. This means that particle acceleration at CME-driven shocks is also computed from this boundary onwards, leading to simulated SEP event onsets that can be many hours later than observed, since shock waves can form much lower in the solar corona. In this work, we aim to improve the modelled onset of SEP events by inserting a "fixed source" of particle injection at the outer boundary of the coronal domain of the coupled WSA-Enlil 3D MHD model of the heliosphere. The SEP model that we employ for this effort is SEPMOD, a physics-based test-particle code based on a field line tracer and adiabatic invariant conservation. We apply our initial tests and results of SEPMOD's fixed-source option to the 2021 October 9 SEP event, which was detected at five well-separated locations in the inner heliosphere -- Parker Solar Probe, STEREO-A, Solar Orbiter, BepiColombo, and near-Earth spacecraft.

astro-ph.SR

Coronal Models and Detection of Open Magnetic Field

A plethora of coronal models, from empirical to more complex magnetohydrodynamic (MHD) ones, are being used for reconstructing the coronal magnetic field topology and estimating the open magnetic flux. However, no individual solution fully agrees with coronal hole observations and in situ measurements of open flux at 1~AU, as there is a strong deficit between model and observations contributing to the known problem of the missing open flux. In this paper we investigate the possible origin of the discrepancy between modeled and observed magnetic field topology by assessing the effect on the simulation output by the choice of the input boundary conditions and the simulation set up, including the choice of numerical schemes and the parameter initialization. In the frame of this work, we considered four potential field source surface based models and one fully MHD model, different types of global magnetic field maps and model initiation parameters. After assessing the model outputs using a variety of metrics, we conclude that they are highly comparable regardless of the differences set at initiation. When comparing all models to coronal hole boundaries extracted by extreme ultraviolet (EUV) filtergrams we find that they do not compare well. This miss-match between observed and modeled regions of open field is a candidate contributing to the open flux problem.

astro-ph.SR

Global MHD Simulations of the Time-Dependent Corona

We describe, test, and apply a technique to incorporate full-sun, surface flux evolution into an MHD model of the global solar corona. Requiring only maps of the evolving surface flux, our method is similar to that of Lionello et al. (2013), but we introduce two ways to correct the electric field at the lower boundary to mitigate spurious currents. We verify the accuracy of our procedures by comparing to a reference simulation, driven with known flows and electric fields. We then present a thermodynamic MHD calculation lasting one solar rotation driven by maps from the magnetic flux evolution model of Schrijver & DeRosa (2003). The dynamic, time-dependent nature of the model corona is illustrated by examining the evolution of the open flux boundaries and forward modeled EUV emission, which evolve in response to surface flows and the emergence and cancellation flux. Although our main goal is to present the method, we briefly investigate the relevance of this evolution to properties of the slow solar wind, examining the mapping of dipped field lines to the topological signatures of the "S-Web" and comparing charge state ratios computed in the time-dependently driven run to a steady state equivalent. Interestingly, we find that driving on its own does not significantly improve the charge states ratios, at least in this modest resolution run that injects minimal helicity. Still, many aspects of the time-dependently driven model cannot be captured with traditional steady-state methods, and such a technique may be particularly relevant for the next generation of solar wind and CME models.

astro-ph.SR

Deflection of Coronal Mass Ejections in Unipolar Ambient Magnetic Fields

The trajectories of coronal mass ejections (CMEs) are often seen to substantially deviate from a purely radial propagation direction. Such deviations occur predominantly in the corona and have been attributed to "channeling" or deflection of the eruptive flux by asymmetric ambient magnetic fields. Here, we investigate an additional mechanism that does not require any asymmetry of the pre-eruptive ambient field. Using magnetohydrodynamic numerical simulations, we show that the trajectory of CMEs through the solar corona can significantly deviate from a radial direction when propagation takes place in a unipolar radial field. We demonstrate that the deviation is most prominent below ~15 solar radii and can be attributed to an "effective IxB force" that arises from the intrusion of a magnetic flux rope with a net axial electric current into a unipolar background field. These results are important for predictions of CME trajectories in the context of space weather forecasts, as well as for reaching a deeper understanding of the fundamental physics underlying CME interactions with the ambient fields in the extended solar corona.

astro-ph.SR

Time-Dependent Dynamics of the Corona

We present in this Letter the first global comparison between traditional line-tied steady state magnetohydrodynamic models and a new, fully time-dependent thermodynamic magnetohydrodynamic simulation of the global corona. The maps are scaled to the approximate field distributions and magnitudes around solar minimum using the Lockheed Evolving Surface-Flux Assimilation Model to incorporate flux emergence and surface flows over a full solar rotation, and include differential rotation and meridional flows. Each time step evolves the previous state of the plasma with a new magnetic field input boundary condition. We find that this method is a significant improvement over steady-state models, as it closely mimics the constant photospheric driving on the Sun. The magnetic energy levels are higher in the time-dependent model, and coronal holes evolve more along the following edge than they do in steady-state models. Coronal changes, as illustrated with forward-modeled emission maps, evolve on longer timescales with time-dependent driving. We discuss implications for active and quiet Sun scenarios, solar wind formation, and widely-used steady state assumptions like potential field source surface calculations.

astro-ph.SR

Acceleration of a production Solar MHD code with Fortran standard parallelism: From OpenACC to `do concurrent'

There is growing interest in using standard language constructs for accelerated computing, avoiding the need for (often vendor-specific) external APIs. These constructs hold the potential to be more portable and much more `future-proof'. For Fortran codes, the current focus is on the {\tt do concurrent} (DC) loop. While there have been some successful examples of GPU-acceleration using DC for benchmark and/or small codes, its widespread adoption will require demonstrations of its use in full-size applications. Here, we look at the current capabilities and performance of using DC in a production application called Magnetohydrodynamic Algorithm outside a Sphere (MAS). MAS is a state-of-the-art model for studying coronal and heliospheric dynamics, is over 70,000 lines long, and has previously been ported to GPUs using MPI+OpenACC. We attempt to eliminate as many of its OpenACC directives as possible in favor of DC. We show that using the NVIDIA {\tt nvfortran} compiler's Fortran 202X preview implementation, unified managed memory, and modified MPI launch methods, we can achieve GPU acceleration across multiple GPUs without using a single OpenACC directive. However, doing so results in a slowdown between 1.25x and 3x. We discuss what future improvements are needed to avoid this loss, and show how we can still retain close

cs.MS

SuNeRF: Validation of a 3D Global Reconstruction of the Solar Corona Using Simulated EUV Images

Extreme Ultraviolet (EUV) light emitted by the Sun impacts satellite operations and communications and affects the habitability of planets. Currently, EUV-observing instruments are constrained to viewing the Sun from its equator (i.e., ecliptic), limiting our ability to forecast EUV emission for other viewpoints (e.g. solar poles), and to generalize our knowledge of the Sun-Earth system to other host stars. In this work, we adapt Neural Radiance Fields (NeRFs) to the physical properties of the Sun and demonstrate that non-ecliptic viewpoints could be reconstructed from observations limited to the solar ecliptic. To validate our approach, we train on simulations of solar EUV emission that provide a ground truth for all viewpoints. Our model accurately reconstructs the simulated 3D structure of the Sun, achieving a peak signal-to-noise ratio of 43.3 dB and a mean absolute relative error of 0.3\% for non-ecliptic viewpoints. Our method provides a consistent 3D reconstruction of the Sun from a limited number of viewpoints, thus highlighting the potential to create a virtual instrument for satellite observations of the Sun. Its extension to real observations will provide the missing link to compare the Sun to other stars and to improve space-weather forecasting.

astro-ph.SR

Can Fortran's 'do concurrent' replace directives for accelerated computing?

Recently, there has been growing interest in using standard language constructs (e.g. C++'s Parallel Algorithms and Fortran's do concurrent) for accelerated computing as an alternative to directive-based APIs (e.g. OpenMP and OpenACC). These constructs have the potential to be more portable, and some compilers already (or have plans to) support such standards. Here, we look at the current capabilities, portability, and performance of replacing directives with Fortran's do concurrent using a mini-app that currently implements OpenACC for GPU-acceleration and OpenMP for multi-core CPU parallelism. We replace as many directives as possible with do concurrent, testing various configurations and compiler options within three major compilers: GNU's gfortran, NVIDIA's nvfortran, and Intel's ifort. We find that with the right compiler versions and flags, many directives can be replaced without loss of performance or portability, and, in the case of nvfortran, they can all be replaced. We discuss limitations that may apply to more complicated codes and future language additions that may mitigate them. The software and Singularity containers are publicly provided to allow the results to be reproduced.

cs.MS

Variations in Finite Difference Potential Fields

The potential field (PF) solution of the solar corona is a vital modeling tool for a wide range of applications, including minimum energy estimates, coronal magnetic field modeling, and empirical solar wind solutions. Given its popularity, it is important to understand how choices made in computing a PF may influence key properties of the solution. Here we study PF solutions for the global coronal magnetic field on 2012 June 13, computed with our high-performance finite difference code POT3D. Solutions are analyzed for their global properties and locally around NOAA AR 11504, using the net open flux, open field boundaries, total magnetic energy, and magnetic structure as metrics. We explore how PF solutions depend on 1) the data source, type, and processing of the inner boundary conditions, 2) the choice of the outer boundary condition height and type, and 3) the numerical resolution and spatial scale of information at the lower boundary. We discuss the various qualitative and quantitative differences that naturally arise by using different maps as input, and illustrate how coronal morphology and open flux depend most strongly on the outer boundary condition. We also show how large-scale morphologies and the open magnetic flux are remarkably insensitive to model resolution, while the surface mapping and embedded magnetic complexity vary considerably. This establishes important context for past, current, and future applications of the PF for coronal and solar wind modeling.

astro-ph.SR

Using Parker Solar Probe observations during the first four perihelia to constrain global magnetohydrodynamic models

Parker Solar Probe (PSP) is providing an unprecedented view of the Sun's corona as it progressively dips closer into the solar atmosphere with each solar encounter. Each set of observations provides a unique opportunity to test and constrain global models of the solar corona and inner heliosphere and, in turn, use the model results to provide a global context for interpreting such observations. In this study, we develop a set of global magnetohydrodynamic (MHD) model solutions of varying degrees of sophistication for PSP's first four encounters and compare the results with in situ measurements from PSP, Stereo-A, and Earth-based spacecraft, with the objective of assessing which models perform better or worse. All models were primarily driven by the observed photospheric magnetic field using data from Solar Dynamics Observatory's Helioseismic and Magnetic Imager (HMI) instrument. Overall, we find that there are substantial differences between the model results, both in terms of the large-scale structure of the inner heliosphere during these time periods, as well as in the inferred time-series at various spacecraft. The "thermodynamic" model, which represents the "middle ground", in terms of model complexity, appears to reproduce the observations most closely for all four encounters. Our results also contradict an earlier study that had hinted that the open flux problem may disappear nearer the Sun. Instead, our results suggest that this "missing" solar flux is still missing even at 26.9 Rs, and thus it cannot be explained by interplanetary processes. Finally, the model results were also used to provide a global context for interpreting the localized in situ measurements.

physics.space-ph