Engineering Papers⌕ Search

SEARCH · Engineering Papers

Results for “Source Code”

Search indexed NASA NTRS and DOE OSTI research on propulsion, heat transfer, battery materials and energy systems. Follow report and document links to the original sources.

Quote a phrase for an exact phrase match. Source license links do not imply unrestricted reuse.

At least 1,261 records · Page 70

Introducing PRIMRE's MRE Software Knowledge Hub (February 2021)

This paper focuses on the role of the Marine Renewable Energy (MRE) Software Knowledge Hub on the Portal and Repository for Information on Marine Renewable Energy (PRIMRE). The MRE Software Knowledge Hub provides online services for MRE software users and developers, and seeks to develop assessments and recommendations for improving MRE software in the future. Online software discovery platforms, known as the Code Hub and the Code Catalog, are provided. The Code Hub is a collection of open-source MRE software that includes a landing page with search functionality, linked to files hosted on the MRE Code Hub GitHub organization. The Code Catalog is a searchable online platform for discovery of useful (open-source or commercial) software packages, tools, codes, and other software products. To gather information about the existing MRE software landscape, a software survey is being performed, the preliminary results of which are presented herein. Initially, the data collected in the MRE software survey will be used to populate the MRE Software knowledge hub on PRIMRE, and future work will use data from the survey to perform a gap analysis and develop a vision for future software development. Additionally, as one of PRIMRE's roles is to support development of MRE software within project partners, a silo of knowledge relating to best practices has been gathered. An early draft of new guidance developed from this knowledge is presented.

gap analysis↗

Surface and Downhole Prospecting Tools for Planetary Exploration: Tests of Neutron and Gamma Ray Probes - Research Paper

The ability to locate and characterize icy deposits and other hydrogenous materials on the Moon and Mars will help us understand the distribution of water and, therefore, possible habitats at Mars, and may help us locate primitive prebiotic compounds at the Moon’s poles. We have developed a rover-borne neutron probe that localizes a near-surface icy deposit and provides information about its burial depth and abundance. We have also developed a borehole neutron probe to determine the stratigraphy of hydrogenous subsurface layers while operating within a drill string segment. In our field tests, we have used a neutron source to “illuminate” surrounding materials and gauge the instruments’ efficacy, and we can simulate accurately the observed instrument responses using a Monte Carlo nuclear transport code (MCNPX). An active neutron source would not be needed for lunar or martian near-surface exploration: cosmic-ray interactions provide sufficient neutron flux to depths of several meters and yield better depth and abundance sensitivity than an active source. However, for deep drilling (>10 m depth), a source is required. We also present initial tests of a borehole gamma ray lithodensity tool and demonstrate its utility in determining soil or rock densities and composition.

58 GEOSCIENCES↗

Time-Encoded Gamma-Ray Imaging Using a 3-D Position-Sensitive CdZnTe Detector Array

The gamma-ray response of thick pixelated CdZnTe detectors varies spatially but is relatively constant as a function of time. Detector irregularities arise from flaws in the material, electrode fabrication, and gaps between the detectors in an array. These nonuniformities generate artifacts in coded aperture images that can obscure a source of interest. This article presents the theory, design, and demonstration of a 3-D CdZnTe-based time-encoded imager. Experimental results show the gamma-ray images of point-like and extended 57 Co and HEU-metal sources formed using a spatially nonuniform 3-D CdZnTe detector array and moving coded aperture mask. Image signal-to-noise ratio (SNR) for a point source was within 10% of its statistical limit at 250k counts.

46 INSTRUMENTATION RELATED TO NUCLEAR SCIENCE AND ↗

Demonstration of a code coupling framework for modeling beam-collimator impacts in the advanced photon source

The high-brightness beams being produced in current and future accelerators present new machine protection concerns with the potential for high-energy-density (HED) conditions ( >100 J/mm 3 ) in beam-intercepting components. Simulating HED conditions in accelerators requires utilizing a suite of physics codes for particle dynamics, particle-matter interactions, and hydrodynamics. This paper describes a method of coupling the codes elegant, fluka, and flash to simulate the effects of a rapid beam loss in the advanced photon source storage ring and the resulting interaction of the beam and collimators. This paper expands previous work [J. Dooling et al., Collimator irradiation studies at the advanced photon source, in Proceedings of the IBIC-2023 (2023), pp. 245–249] by introducing a definition of the evolving geometry of the collimator surface as well as providing methods for simulating the absorption of synchrotron radiation and tracking shower particles produced during beam strikes. We demonstrate this framework by simulating machine conditions of the APS ring before and after its recent upgrade. Simulation results are compared with observed damage to collimators and test samples taken from the APS ring.

Accelerator/storage ring control systems↗

Rigorous Two-Step Activation for Fusion Systems with PyNE - Paper 127

In fusion systems, high energy neutrons activate system components. After shutdown, the biological dose rate from photons emitted from these components must be estimated as a function of position and time for maintenance planning. High resolution results can be obtained using the mesh-based Rigorous Two-Step (R2S) method. A neutron transport simulation provides mesh-based neutron fluxes. Using these fluxes and an appropriate irradiation scenario, a nuclear inventory analysis code is used to determine the photon source density within each mesh volume element at any decay time after shutdown. The photon source density mesh is used as a source for photon transport. Photon fluxes are tallied at positions of interest and flux-to-dose rate conversion factors are used to estimate the biological dose rate. Previous work by the authors involved the creation of R2S-ACT, an open source R2S workflow, using the Direct Accelerated Geometry Monte Carlo (DAGMC) version of MCNP5 (DAG-MCNP5) for both transport steps and the ALARA nuclear inventory analysis code. Various use cases may require different combinations of transport and activation codes, and nearly all of the capabilities of R2S-ACT have broader utility. For these reasons, the individual components of R2S-ACT were reimplemented within PyNE. PyNE is a collaborative, trans-institutional, open source project consisting of Python, Cython, and C++ code pertinent to nuclear simulations and analysis. This work involved additions to the PyNE mcnp, mesh, material, alara, dagmc, and sampling modules. A lightweight r2s module was then added to connect the code from these modules. The r2s and sampling modules, together with DAG-MCNP5 and ALARA form a complete R2S workflow for obtaining shutdown dose rate results. Mesh operations, geometry discretization, physics code input/output parsing, and mesh-based source sampling capabilities have been added to PyNE generically, eliminating the need to duplicate this effort across multiple applications. The PyNE r2s module uses these capabilities to couple MCNP and ALARA to form an R2S workflow, which has been validated with the FNG shutdown dose rate benchmark. Future work will involve benchmarking the workflow using tetrahedral mesh and also non-analog sampling options. added so that they can be used interchangeably. This will allow for comparisons between results obtained by different physics codes with minimal human effort. Work will also be done to create and implement an importance sampling method for biasing neutron transport towards regions of phase space of high importance to photon dose rate tallies. This will improve the efficiency of obtaining shutdown dose rate results in large, highly-attenuating geometries. (authors)

61 RADIATION PROTECTION AND DOSIMETRY↗

A hybrid-kinetic simulation tool for non-thermal warm x-ray z-pinch sources, with gas-puff and wire array exemplars

Increasing the fluence of z-pinch x-ray radiation sources above ∼ 10 keV has been a long-standing goal for scientists at Sandia National Laboratories’ Z Machine. Optimizing sources for non-thermal “cold Kα” emission in higher atomic-number materials appears to be a promising path to increase warm x-ray yield. However, this emission is generated by supra-thermal electrons, which are not treated in the magnetohydrodynamic (MHD) codes that are typically used in z-pinch source development. MHD codes do not allow for charge separation or space-charge-generated electric fields, and constrain particle kinematics to Maxwellian distributions. The kinetic codes which do accommodate discrete, non-thermal energy distributions are computationally prohibitive when modeling plasmas near solid density and when modeling/tracking higher ionization states. Thus, modeling non-thermal z-pinch sources requires a new simulation tool. In this report, we present a new hybrid modeling capability that uses the fast features of MHD-type particles to the greatest extent possible, then transitions to the slower but more complete kinetic particle treatment to correctly capture the particle energy spectra that generate non-thermal emission. This capability is founded on the fully-relativistic particle-in-cell code Chicago, which already includes fluid particle treatments. The governing equations and hybrid methodology presented here are applied in simulations of an argon gas-puff and a molybdenum wire-array to provide preliminary code validation. The argon simulation is compared to measured implosion times and yields from Jones et al., Phys. Plasmas 22, 020706 (2015). The simulated x-ray yield is within 25% of measurements and the implosion times agree within a few percent. The molybdenum wire array simulation captures the implosion timing reported in Hansen et al., Phys. Plasmas 21, 031202 (2014), but work is needed to verify the available EOS table. These exemplar simulations represents the type of non-thermal sources that will be developed using the hybrid code capability going forward.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

Simulation and beamline experiments for the superconducting electron cyclotron resonance ion source VENUS

The particle-in-cell code WARP has been enhanced to incorporate both two- and three-dimensional sheath extraction models giving WARP the capability of simulating entire ion beam transport systems including the extraction of beams from plasma sources. In this article, we describe a method of producing initial ion distributions for plasma extraction simulations in electron cyclotron resonance (ECR) ion sources based on experimentally measured sputtering on the source biased disk. Using this initialization method, we present preliminary results for extraction and transport simulations of an oxygen beam and compare them with experimental beam imaging on a quartz viewing plate for the superconducting ECR ion source VENUS.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

Code for the manuscript "Mori-Zwanzig Modal Decomposition"

We would like to create an open source repository in LANL's github on code written in Julia, in which we implement and extend the data-driven Mori-Zwanzig method for extracting large-scale spatio-temporal structures from data, which we call MZMD. This method is an extension of Dynamic Mode Decomposition (DMD) in which Mori-Zwanzig memory kernels are included into the associated companion matrix. In the code we would like to release, we apply MZMD to a flow over a cylinder with Reynolds number 100 rather than the much larger data set used in the associated manuscript. DMD is used extensively in the fluid dynamics community mainly for extracting large scale spatio-temporal structures (patters) from flow data. This is useful for understanding the key mechanisms that generate certain complex dynamical process relevant in engineering design. In MZMD, we improve upon DMD by adding the Mori-Zwanzig memory kernels, and show this improvement is especially important in strongly nonlinear regions of the flow.

Woodward, Michael↗

Determining the effects of microsphere and surrounding material composition on {sup 90}Y dose kernels using egsnrc and mcnp5

Purpose: Recent advances in the imaging of {sup 90}Y using positron emission tomography (PET) and improved uncertainty in the branching ratio for the internal pair production component of {sup 90}Y decay allow for a more accurate determination of the activity distribution of {sup 90}Y microspheres within a patient. This improved activity distribution can be convolved with the dose kernel of {sup 90}Y to calculate the dose distribution within a patient. This work investigates the effects of microsphere and surrounding material composition on {sup 90}Y dose kernels using egsnrc and mcnp5 and compares the results of these two transport codes. Methods: Monte Carlo simulations were performed with egsnrc and mcnp5 to calculate the dose rate at multiple radial distances around various {sup 90}Y sources. Point source simulations were completed with mcnp5 to determine the optimal electron transport settings for this work. After determining the optimal settings, point source simulations were completed using egsnrc (user code edknrc) and mcnp5 in water and liver [as defined by the International Commission on Radiation Units and Measurements (ICRU) Report 44]. The results were compared to ICRU Report 72 reference data. Point source simulations were also completed in water with a density of 1.06 g{center_dot}cm{sup -3} to evaluate the effect of the density of the surrounding material. Glass and resin microsphere simulations were performed with average and maximum diameter and density values (based on values given in the literature) in water and in liver. The results were compared to point source simulation results using the same transport code and in the same surrounding material. All simulations had statistical uncertainties less than 1%. Results: The optimal transport settings in mcnp5 for this work included using the energy-and step-specific algorithm (DBCN 17J 2) and ESTEP set to 10. These settings were used for all subsequent simulations with mcnp5. The point source simulations in water for both egsnrc and mcnp5 were found to agree within 2% of the ICRU 72 reference data over the investigated range. Point source simulations in liver had large differences relative to ICRU 72, approaching -60% near the maximum range of {sup 90}Y. These differences are mostly attributed to the difference in density between water (1.0 g{center_dot}cm{sup -3}) and liver (1.06 g{center_dot}cm{sup -3}). Glass and resin microsphere simulations showed a slight decrease in the dose rate near the maximum range of {sup 90}Y relative to the point source simulations. The largest relative differences were approximately -4.2% and -2.8% for the glass and resin microspheres, respectively. Agreement between the egsnrc and mcnp5 simulations results was generally good. Conclusions: The presence of the microsphere material causes slight differences in the {sup 90}Y dose kernel compared to those calculated with point sources. Large differences were seen between simulations in water and those in liver. For the most accurate calculation of the dose distribution, the density of the patient's liver should be accounted for in the calculation of the dose kernel. Lastly, due to the need to determine the optimal transport settings with mcnp5, electron transport with this code should be used with caution.

61 RADIATION PROTECTION AND DOSIMETRY↗

MCNP Version 6.2 Release Notes

Monte Carlo N-Particle or MCNP ® is a general-purpose Monte Carlo radiation-transport code designed to track many particle types over broad ranges of energies. This MCNP Version 6.2 follows the MCNP6.1.1 beta version and has been released in order to provide the radiation transport community with the latest feature developments and bug fixes for MCNP. Since the last release of MCNP major work has been conducted to improve the code base, add features, and provide tools to facilitate ease of use of MCNP version 6.2 as well as the analysis of results. These release notes serve as a general guide for the new/improved physics, source, data, tallies, unstructured mesh, code enhancements and tools. For more detailed information on each of the topics, please refer to the appropriate references or the user manual which can be found at http://mcnp.lanl.gov. This release of MCNP version 6.2 contains 39 new features in addition to 172 bug fixes and code enhancements. There are still some 33 known issues the user should familiarize themselves with (see Appendix).

46 INSTRUMENTATION RELATED TO NUCLEAR SCIENCE AND ↗

Development of INSPCT-S for inspection of spent fuel pool

In this paper, we discuss an accurate and fast software tool (INSPCT-S, Inspection of Nuclear Spent fuel-Pool Calculation Tool, version Spreadsheet) developed for calculation of the response of fission chambers placed in a spent fuel pool, such as Atucha-I. INSPCT-S is developed for identification of suspicious regions of the pool that may have missing or substitute assemblies. INSPCT-S uses a hybrid algorithm based on the adjoint function methodology. The neutron source is comprised of spontaneous fission, ({alpha}, n) interactions, and subcritical multiplication. The former is evaluated using the ORIGEN-ARP code, and the latter is obtained with the fission matrix (FM) formulation. The FM coefficients are determined using the MCNP Monte Carlo code, and the importance function is determined using the PENTRAN 3-D parallel Sn code. Three databases for the neutron source, FM elements, and adjoint flux are prepared as functions of different parameters including burnup, cooling time, enrichment, and pool lattice size. INSPCT-S uses the aforementioned databases and systems of equations to calculate detector responses, which are subsequently compared with normalized experimental data. If this comparison is not satisfied, INSPCT-S utilizes color coding to identify the suspicious regions of a spent fuel pool. (authors)

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

Simulations of NBI-ICRF synergy with the full-wave TORIC package

During the combined plasma heating with neutral beam injection (NBI) and waves in the ion cyclotron (IC) range of frequencies, the NBI fast ions are preferentially accelerated by IC waves close to the IC harmonics, as a consequence of finite Larmor radius (FLR) effects. Since the NBI fast ions are expected to have a strong influence on the wave absorption and propagation, we have implemented a NBI source in the quasilinear Fokker-Planck SSFPQL code, interfaced with the toroidal full-wave TORIC solver. In this implementation the NBI ionization sources are obtained from the output of a Monte Carlo code, such as FAFNER. The numerical scheme adopted in the TORIC-SSFPQL package allows to describe very anisotropic sources, such as NBI, and to iterate the solution of Maxwell's equation taking into account selfconsistently the fast ion tails. As a first application, we present modeling of an ASDEX-Upgrade discharge with combined NBI and ICRF heating.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

An Educational Guide for 2D Stellar Structure Calculations of Rapidly Rotating Stars using the ESTER code

The Evolution STEllaire en Rotation (ESTER) code is the first 2D stellar structure code to be made open-source and freely available to the astronomy and astrophysics community. An important and novel advancement of this code is that it can reproduce the distorted shape and observable signatures (e.g., gravity darkening) of rapidly rotating stars. ESTER also calculates the steady-state large-scale flows within the star, namely their differential rotation and associated meridional circulation. In this report, we explore and document the physics implemented within version 1.1.0rc2 of the ESTER code, in a way that complements published descriptions. We illustrate this physics by plotting how stellar structure parameters vary through stellar interiors at a range of latitudes and at different angular velocities. We investigate how the thin convective envelopes of intermediate mass stars vary with latitude when rapidly rotating, becoming deeper and thicker near the equator. Simple comparisons of ESTER model predictions (e.g., central temperature and density, luminosity) with the output from the Modules for Experiments in Stellar Astrophysics (MESA) code [Paxton et al., 2010] shows generally good agreement. Additional comparisons provide important benchmarking and verification for ESTER as a comparatively young code. Finally, we provide a guide for installing and running the code on our local university cluster, aimed at helping students to begin work.

79 ASTRONOMY AND ASTROPHYSICS↗

Measurement and analysis of GPU-accelerated applications with HPCToolkit

To address the challenge of performance analysis on the US DOE’s forthcoming exascale supercomputers, Rice University has been extending its HPCToolkit performance tools to support measurement and analysis of GPU-accelerated applications. To help developers understand the performance of accelerated applications as a whole, HPCToolkit’s measurement and analysis tools attribute metrics to calling contexts that span both CPUs and GPUs. To measure GPU-accelerated applications efficiently, HPCToolkit employs a novel wait-free data structure to coordinate monitoring and attribution of GPU performance. To help developers understand the performance of complex GPU code generated from high-level programming models, HPCToolkit constructs sophisticated approximations of call path profiles for GPU computations. To support fine-grained analysis and tuning, HPCToolkit uses PC sampling and instrumentation to measure and attribute GPU performance metrics to source lines, loops, and inlined code. To supplement fine-grained measurements, HPCToolkit can measure GPU kernel executions using hardware performance counters. To provide a view of how an execution evolves over time, HPCToolkit can collect, analyze, and visualize call path traces within and across nodes. Finally, on NVIDIA GPUs, HPCToolkit can derive and attribute a collection of useful performance metrics based on measurements using GPU PC samples. Here, we illustrate HPCToolkit’s new capabilities for analyzing GPU-accelerated applications with several codes developed as part of the Exascale Computing Project.

97 MATHEMATICS AND COMPUTING↗

Lightweight runtime checking of C programs with RTC

The C Programming Language is known for being an efficient language that can be compiled on almost any architecture and operating system. However the absence of dynamic safety checks and a relatively weak type system allows programmer oversights that are hard to spot. In this paper, we present RTC, a runtime monitoring tool that instruments unsafe code and monitors the program execution. RTC is built on top of the ROSE compiler infrastructure. RTC finds memory bugs and arithmetic overflows and underflows, and run-time type violations. Most of the instrumentations are directly added to the source file and only require a minimal runtime system. As a result, the instrumented code remains portable. In tests against known error detection benchmarks, RTC found 98% of all memory related bugs and had zero false positives. Finally, in performance tests conducted with well known algorithms, such as binary search and MD5, we determined that our tool has an average run-time overhead rate of 9.7× and memory overhead rate of 3.5×.

97 MATHEMATICS AND COMPUTING↗

AN ANGLE-DEPENDENT SYNCHROTRON SELF-COMPTON MODEL FOR RELATIVISTIC JET SOURCES

We report on the development of a numerical code to calculate the angle-dependent synchrotron + synchrotron self-Compton radiation from relativistic jet sources with partially ordered magnetic fields and anisotropic particle distributions. Using a multi-zone radiation transfer approach, we can simulate magnetic-field configurations ranging from perfectly ordered (unidirectional) to randomly oriented (tangled). We demonstrate that synchrotron self-Compton model fits to the spectral energy distributions (SEDs) of extragalactic jet sources may be possible with a wide range of magnetic-field values, depending on their orientation with respect to the jet axis and the observer. This is illustrated with the example of a spectral fit to the SED of Mrk 421 from multiwavelength observations in 2006, where acceptable fits are possible with magnetic-field values varying within a range of an order of magnitude for different degrees of B-field alignment and orientation.

79 ASTRONOMY AND ASTROPHYSICS↗

PABS: A Computer Program to Normalize Emission Probabilities and Calculate Realistic Uncertainties

The program PABS normalizes relative particle emission probabilities to an absolute scale and calculates the relevant uncertainties on this scale. The program is written in Java using the JDK 1.6 library. For additional information about system requirements, the code itself, and compiling from source, see the README file distributed with this program. The mathematical procedures used are given below.

73 NUCLEAR PHYSICS AND RADIATION PHYSICS↗

Final Report for ALCC Allocation: Predictive Simulation of Complex Flow in Wind Farms

This report documents work performed using ALCC computing resources granted under a proposal submitted in February 2016, with the resource allocation period spanning the period July 2016 through June 2017. The award allocation was 10.7 million processor-hours at the National Energy Research Scientific Computing Center. The simulations performed were in support of two projects: the Atmosphere to Electrons (A2e) project, supported by the DOE EERE office; and the Exascale Computing Project (ECP), supported by the DOE Office of Science. The project team for both efforts consists of staff scientists and postdocs from Sandia National Laboratories and the National Renewable Energy Laboratory. At the heart of these projects is the open-source computational-fluid-dynamics (CFD) code, Nalu. Nalu solves the low-Mach-number Navier-Stokes equations using an unstructured- grid discretization. Nalu leverages the open-source Trilinos solver library and the Sierra Toolkit (STK) for parallelization and I/O. This report documents baseline computational performance of the Nalu code on problems of direct relevance to the wind plant physics application - namely, Large Eddy Simulation (LES) of an atmospheric boundary layer (ABL) flow and wall-modeled LES of a flow past a static wind turbine rotor blade. Parallel performance of Nalu and its constituent solver routines residing in the Trilinos library has been assessed previously under various campaigns. However, both Nalu and Trilinos have been, and remain, in active development and resources have not been available previously to rigorously track code performance over time. With the initiation of the ECP, it is important to establish and document baseline code performance on the problems of interest. This will allow the project team to identify and target any deficiencies in performance, as well as highlight any performance bottlenecks as we exercise the code on a greater variety of platforms and at larger scales. The current study is rather modest in scale, examining performance on problem sizes of O(100 million) elements and core counts up to 8k cores. This will be expanded as more computational resources become available to the projects.

17 WIND ENERGY↗