Search NASA⌕ Search

SEARCH · Search NASA

Results for “code optimization”

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,441 records · Page 80

SEAS Communication Engine: An Extensible, Flexible Wrapper for Co-Simulation Agents

When modeling and analyzing the power grid and other large scale systems, researchers often express scenarios as optimization problems and feed them into advanced software solvers. In order to allow multiple solvers to communicate with each other and share data from different domains, the National Renewable Energy Laboratory (NREL) and associated Department of Energy (DOE) labs have developed a software framework called the Hierarchical Engine for Large-scale Infrastructure Co-Simulation (HELICS). HELICS allows cosimulation via a collection of client libraries for different languages that can be called from the appropriate optimization software. However, these client libraries do not provide a higher level of abstraction beyond reading and writing data off of the shared HELICS bus. In this paper, we describe a new software library called the SEAS Communication Engine that exposes a higher-level API for running cosimulation problems. The SEAS Engine provides a class-based abstraction on top of the Python HELICS client, in order to allow users to implement their domain-specific cosimulations without needing to interact with core HELICS primitives. This will make adoption of HELICS and cosimulation in general easier, by exposing a simpler API. In the second part of the paper, we validate our library on a collection of different simulation examples, including the canonical IEEE 13 Bus Feeder. Lastly, we demonstrate using the SEAS Engine to directly call domain-specific code written in the Julia programming language. Our hope is that this will serve as a template for easily calling software in different programming languages via the SEAS Engine, thereby avoiding code duplication and complexity.

co-simulation↗

HFBTHO-AD: Differentiation of a nuclear energy density functional code

The HFBTHO code implements a nuclear energy density functional solver to model the structure of atomic nuclei. HFBTHO has previously been used to calibrate energy functionals and perform sensitivity analysis by using derivative-free methods. To enable derivative-based optimization and uncertainty quantification approaches, we must compute the derivatives of HFBTHO outputs with respect to the parameters of the energy functional, which are a subset of all input parameters of the code. Here, we use the algorithmic/automatic differentiation (AD) tool Tapenade to differentiate HFBTHO. We compare the derivatives obtained using AD against finite-difference approximation and examine the performance of the derivative computation.

Algorithmic differentiation↗

Optimization of deterministic transport parameters for the calculation of the dose distribution around a high dose-rate {sup 192}Ir brachytherapy source

The goal of this work was to calculate the dose distribution around a high dose-rate {sup 192}Ir brachytherapy source using a multi-group discrete ordinates code and then to compare the results with a Monte Carlo calculated dose distribution. The unstructured tetrahedral mesh discrete ordinates code Attila version 6.1.1 was used to calculate the photon kerma rate distribution in water around the Nucletron microSelectron mHDRv2 source. MCNPX 2.5.c was used to compute the Monte Carlo water photon kerma rate distribution. Two hundred million histories were simulated, resulting in standard errors of the mean of less than 3% overall. The number of energy groups, S{sub n} (angular order), P{sub n} (scattering order), and mesh elements were varied in addition to the method of analytic ray tracing to assess their effects on the deterministic solution. Water photon kerma rate matrices were exported from both codes into an in-house data analysis software. This software quantified the percent dose difference distribution, the number of points within {+-}3% and {+-}5%, and the mean percent difference between the two codes. The data demonstrated that a 5 energy-group cross-section set calculated results to within 0.5% of a 15 group cross-section set. S{sub 12} was sufficient to resolve the solution in angle. P{sub 2} expansion of the scattering cross-section was necessary to compute accurate distributions. A computational mesh with 55 064 tetrahedral elements in a 30 cm diameter phantom resolved the solution spatially. An efficiency factor of 110 with the above parameters was realized in comparison to MC methods. The Attila code provided an accurate and efficient solution of the Boltzmann transport equation for the mHDRv2 source.

61 RADIATION PROTECTION AND DOSIMETRY↗

Coupling the System Analysis Module with SAS4A/SASSYS-1

SAS4A/SASSYS-1 is a simulation tool used to perform deterministic analysis of anticipated events as well as design basis and beyond design basis accidents for advanced reactors, with an emphasis on sodium fast reactors. SAS4A/SASSYS-1 has been under development and in active use for nearly forty-five years, and is currently maintained by the U.S. Department of Energy under the Office of Advanced Reactor Technology. Although SAS4A/SASSYS-1 contains a very capable primary and intermediate system modeling component, PRIMAR-4, it also has some shortcomings: outdated data management and code structure makes extension of the PRIMAR-4 module somewhat difficult. The user input format for PRIMAR-4 also limits the number of volumes and segments that can be used to describe a given system. The System Analysis Module (SAM) is a fairly new code development effort being carried out under the U.S. DOE Nuclear Energy Advanced Modeling and Simulation (NEAMS) program. SAM is being developed with advanced physical models, numerical methods, and software engineering practices; however, it is currently somewhat limited in the system components and phenomena that can be represented. For example, component models for electromagnetic pumps and multi-layer stratified volumes have not yet been developed. Nor is there support for a balance of plant model. Similarly, system-level phenomena such as control-rod driveline expansion and vessel elongation are not represented. This report documents fiscal year 2016 work that was carried out to couple the transient safety analysis capabilities of SAS4A/SASSYS-1 with the system modeling capabilities of SAM under the joint support of the ART and NEAMS programs. The coupling effort was successful and is demonstrated by evaluating an unprotected loss of flow transient for the Advanced Burner Test Reactor (ABTR) design. There are differences between the stand-alone SAS4A/SASSYS-1 simulations and the coupled SAS/SAM simulations, but these are mainly attributed to the limited maturity of the SAM development effort. The severe accident modeling capabilities in SAS4A/SASSYS-1 (sodium boiling, fuel melting and relocation) will continue to play a vital role for a long time. Therefore, the SAS4A/SASSYS-1 modernization effort should remain a high priority task under the ART program to ensure continued participation in domestic and international SFR safety collaborations and design optimizations. On the other hand, SAM provides an advanced system analysis tool, with improved numerical solution schemes, data management, code flexibility, and accuracy. SAM is still in early stages of development and will require continued support from NEAMS to fulfill its potential and to mature into a production tool for advanced reactor safety analysis. The effort to couple SAS4A/SASSYS-1 and SAM is the first step on the integration of these modeling capabilities.

21 SPECIFIC NUCLEAR REACTORS AND ASSOCIATED PLANTS↗

Scalable descriptive and correlative statistics with Titan.

This report summarizes the existing statistical engines in VTK/Titan and presents the parallel versions thereof which have already been implemented. The ease of use of these parallel engines is illustrated by the means of C++ code snippets. Furthermore, this report justifies the design of these engines with parallel scalability in mind; then, this theoretical property is verified with test runs that demonstrate optimal parallel speed-up with up to 200 processors.

97 MATHEMATICS AND COMPUTING↗

Scalable multi-correlative statistics and principal component analysis with Titan.

This report summarizes existing statistical engines in VTK/Titan and presents the recently parallelized multi-correlative and principal component analysis engines. It is a sequel to [PT08] which studied the parallel descriptive and correlative engines. The ease of use of these parallel engines is illustrated by the means of C++ code snippets. Furthermore, this report justifies the design of these engines with parallel scalability in mind; then, this theoretical property is verified with test runs that demonstrate optimal parallel speed-up with up to 200 processors.

97 MATHEMATICS AND COMPUTING↗

Groundwater flow simulation of the Savannah River Site general separations area

The most recent groundwater flow model of the General Separations Area, Savannah River Site, is referred to as the “GSA/PORFLOW” model. GSA/PORFLOW was developed in 2004 by porting an existing General Separations Area groundwater flow model from the FACT code to the PORFLOW code. The preceding “GSA/FACT” model was developed in 1997 using characterization and monitoring data through the mid-1990’s. Both models were manually calibrated to field data. Significantly more field data have been acquired since the 1990’s and model calibration using mathematical optimization software has become routine and recommended practice. The current task involved updating the GSA/PORFLOW model using selected field data current through at least 2015, and use of the PEST code to calibrate the model and quantify parameter uncertainty. This new GSA groundwater flow model is named “GSA2016” in reference to the year in which most development occurred. The GSA2016 model update is intended to address issues raised by the DOE Low-Level Waste (LLW) Disposal Facility Federal Review Group (LFRG) in a 2008 review of the E-Area Performance Assessment, and by the Nuclear Regulatory Commission in reviews of tank closure and Saltstone Disposal Facility Performance Assessments.

54 ENVIRONMENTAL SCIENCES↗

Albany v. 3.0

The Albany code is a general-purpose finite element code for solving partial differential equations (PDEs). Albany is a research code that demonstrates how a PDE code can be built by interfacing many of the open-source software libraries that are released under Sandia's Trilinos project. Part of the mission of Albany is to be a testbed for new Trilinos libraries, to refine their methods, usability, and interfaces. Albany includes hooks to optimization and uncertainty quantification algorithms, including those in Trilinos as well as those in the Dakota toolkit. Because of this, Albany is a desirable starting point for new code development efforts that wish to make heavy use of Trilinos. Albany is both a framework and the host for specific finite element applications. These applications have project names, and can be controlled by configuration option when the code is compiled, but are all developed and released as part of the single Albany code base, These include LCM, QCAD, FELIX, Aeras, and ATO applications.

SciDAC↗

Albany v. 3.0

The Albany code is a general-purpose finite element code for solving partial differential equations (PDEs). Albany is a research code that demonstrates how a PDE code can be built by interfacing many of the open-source software libraries that are released under Sandia's Trilinos project. Part of the mission of Albany is to be a testbed for new Trilinos libraries, to refine their methods, usability, and interfaces. Albany includes hooks to optimization and uncertainty quantification algorithms, including those in Trilinos as well as those in the Dakota toolkit. Because of this, Albany is a desirable starting point for new code development efforts that wish to make heavy use of Trilinos. Albany is both a framework and the host for specific finite element applications. These applications have project names, and can be controlled by configuration option when the code is compiled, but are all developed and released as part of the single Albany code base, These include LCM, QCAD, FELIX, Aeras, and ATO applications.

Salinger, Andrew↗

Assessment of SFR fuel pin performance codes under advanced fuel for minor actinide transmutation

Americium is a strong contributor to the long term radiotoxicity of high activity nuclear waste. Transmutation by irradiation in nuclear reactors of long-lived nuclides like {sup 241}Am is, therefore, an option for the reduction of radiotoxicity and residual power packages as well as the repository area. In the SUPERFACT Experiment four different oxide fuels containing high and low concentrations of {sup 237}Np and {sup 241}Am, representing the homogeneous and heterogeneous in-pile recycling concepts, were irradiated in the PHENIX reactor. The behavior of advanced fuel materials with minor actinide needs to be fully characterized, understood and modeled in order to optimize the design of this kind of fuel elements and to evaluate its performances. This paper assesses the current predictability of fuel performance codes TRANSURANUS and GERMINAL V2 on the basis of post irradiation examinations of the SUPERFACT experiment for pins with low minor actinide content. Their predictions have been compared to measured data in terms of geometrical changes of fuel and cladding, fission gases behavior and actinide and fission product distributions. The results are in good agreement with the experimental results, although improvements are also pointed out for further studies, especially if larger content of minor actinide will be taken into account in the codes. (authors)

11 NUCLEAR FUEL CYCLE AND FUEL MATERIALS↗

Eddy Current Probe Parameters Identification Using a Genetic Algorithm and Simultaneous Perturbation Stochastic Approximation

This study tries to identify the coil parameters using numerical methods. The eddy current testing (ECT) is used for evaluation of a crack with the aid of numerical simulations by utilizing the identification of these parameters. In this study, a comparison of the performance of the GA and SPSA algorithms to identify the parameter values of the coil sensors are presented. So, the optimization probe geometry is introduced in the simulation with Three-dimensional finite element simulations (FLUX finite element code) were conducted to obtain eddy current signals resulting from a crack in a plate made of aluminium. The simulation results are compared with experimental measurements for the defect present in a plate.

42 ENGINEERING↗

Electric-dipole allowed and intercombination transitions among the 3d{sup 5}, 3d{sup 4}4s and 3d{sup 4}4p levels of Fe IV

Oscillator strengths and transition rates for the electric-dipole (E1) allowed and intercombination transitions among 3d{sup 5}, 3d{sup 4}4s and 3d{sup 4}4p levels of Fe IV are calculated using the CIV3 code of Hibbert and coworkers. Using the Hartree-Fock functions up to 3d orbitals we have also optimized 4s, 4p, 4d, 4f, 5s, 5p and 5d orbitals of which 4s and 4p are taken to be spectroscopic and the remaining orbitals represent corrections to the spectroscopic orbitals or the correlation effects. The J-dependent levels of 108 LS states are included in the calculation and the relativistic effects are accounted for via the Breit-Pauli operator. Configurations are chosen in two steps: (a) two promotions were allowed from the 3p, 3d, 4s and 4p subshells, using all the orbitals; and (b) selective promotions from the 3s subshell are included, but only to the 3s and 4s orbitals. The ab initio fine-structure levels are then fine tuned to reproduce observed energy levels as closely as possible, and the resulting wavefunctions are used to calculate oscillator strengths and transition rates for all possible E1 transitions. For many of these transitions, the present results show good agreement between the length and velocity forms while for some transitions, some large disagreements are found with other available results. The complete list of weighted oscillator strengths, transition rates, and line strengths for transitions among the fine structure levels of the three lowest configurations are presented in ascending order of wavelength.

73 NUCLEAR PHYSICS AND RADIATION PHYSICS↗

Π4U: A high performance computing framework for Bayesian uncertainty quantification of complex models

We present Π4U,{sup 1} an extensible framework, for non-intrusive Bayesian Uncertainty Quantification and Propagation (UQ+P) of complex and computationally demanding physical models, that can exploit massively parallel computer architectures. The framework incorporates Laplace asymptotic approximations as well as stochastic algorithms, along with distributed numerical differentiation and task-based parallelism for heterogeneous clusters. Sampling is based on the Transitional Markov Chain Monte Carlo (TMCMC) algorithm and its variants. The optimization tasks associated with the asymptotic approximations are treated via the Covariance Matrix Adaptation Evolution Strategy (CMA-ES). A modified subset simulation method is used for posterior reliability measurements of rare events. The framework accommodates scheduling of multiple physical model evaluations based on an adaptive load balancing library and shows excellent scalability. In addition to the software framework, we also provide guidelines as to the applicability and efficiency of Bayesian tools when applied to computationally demanding physical models. Theoretical and computational developments are demonstrated with applications drawn from molecular dynamics, structural dynamics and granular flow.

71 CLASSICAL AND QUANTUM MECHANICS, GENERAL PHYSIC↗

Fabrication of an optimized hexapole magnet for a 14.5 GHz electron cyclotron resonance ion source

A hexapole magnet for a 14.5 GHz electron cyclotron resonance (ECR) ion source, where the maximum radial field on the wall of the plasma chamber is higher than 1.1 T, has been designed and fabricated. The size of the outer diameter and the number of the sector of the hexapole are optimized for a 14.5 GHz ECR ion source with the help of a three-dimensional field calculation code. Moreover, to make a strong and long-life magnet against the demagnetic field on the hexapole multilayered structure in radial and axial directions is considered in the design. The distributions of the demagnetic fields are estimated by the calculation of the radial field in a hexapole magnet and the axial field from the solenoid coils. Proper grades of magnetic materials depending on the strength of the demagnetic field are applied for the different layers. The magnetic fields of the measured and calculated ones have been compared.

43 PARTICLE ACCELERATORS↗

Design of a backscatter 14-MeV neutron time-of-flight spectrometer for experiments at ITER

Neutron energy spectrometry diagnostics play an important role in present-day experiments related to fusion energy research. Measurements and thorough analysis of the neutron emission from the fusion plasma give information on a number of basic fusion performance quantities, on the condition of the neutron source and plasma behavior. Here we discuss the backscatter Time-of-Flight (bTOF) spectrometer concept as a possible instrument for performing high resolution measurements of 14 MeV neutrons. The instrument is based on two sets of scintillators, a first scatterer exposed to a collimated neutron beam and a second detector set placed in the backward direction. The scintillators of the first set are enriched in deuterium to achieve neutron backscattering. The energy resolution and efficiency of a bTOF instrument have been determined for various geometrical configurations. A preliminary design of optimal geometry for the two scintillator sets has been obtained by Monte Carlo simulations based on the MCNPX code.

71 CLASSICAL AND QUANTUM MECHANICS, GENERAL PHYSIC↗

Beam emittance measurements and simulations of injector line for radio frequency quadrupole

A 400 keV deuteron (D{sup +}) radio frequency quadrupole (RFQ) accelerator has been designed, built, and commissioned at the Bhabha Atomic Research Centre, India. A beam line has been developed for injecting deuterons into the 400 keV RFQ. This comprises of a RF plasma ion source and a low energy beam transport (LEBT) system, consisting of two solenoid magnets and two steerer magnets. The ion source is characterized in terms of transverse beam emittance. A slit-wire scanner based emittance measurement setup has been developed for the transverse emittance measurements of H{sup +} and D{sup +} beams. The measured emittance values are found to be well within the acceptance value for the RFQ. These measured emittance parameters are used to optimize the solenoid fields in LEBT to match the beam from the ion source to RFQ. TRACEWIN simulation code is used for the beam transport simulations. The simulations show 99% transmission of D{sup +} beam through the RFQ, while 95% transmission has been measured experimentally.

46 INSTRUMENTATION RELATED TO NUCLEAR SCIENCE AND ↗

Reduced energetic particle transport models enable comprehensive time-dependent tokamak simulations

Time-dependent integrated simulations through codes such as TRANSP are becoming an indispensable tool for the interpretation of existing experiments and predictions of optimized scenarios. For many practical cases, quantitative simulations need to include the effect of plasma instabilities on the evolution of a tokamak discharge. An example is the degradation in energetic particle (EP) confinement induced by instabilities, which in turn affects important source terms for heating, non-inductive current, and momentum in a simulation. The reduced-physics "kick model" provides phase-space resolved transport probability matrices to TRANSP that are used to account for enhanced EP transport by instabilities in addition to neoclassical transport. The model has recovered the measured Alfvén eigenmode (AE) spectrum on NSTX, NSTX-U and DIII-D, and has reproduced details of phase-space resolved fast ion diagnostic data measured on DIII-D for EP-driven modes and tearing modes. In general, the kick model has proven the potential of phase-space resolved EP simulations to unravel details of EP transport for detailed theory/experiment comparison and for scenario planning based on optimization of Neutral Beam (NB) injection parameters. In this work, the extension of the kick model to low-frequency instabilities such as Tearing Modes and fishbones, in addition to AEs, is assessed. The goal is to enable TRANSP simulations that retain the main effects of multiple types of instabilities through a common framework. Results from the NSTX/NSTX-U and DIII-D tokamaks show that the extension to "multi-mode" scenarios can expand the range of applicability of the model for more reliable, quantitative integrated simulations.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

Quantum simulations of nuclear resonances with variational methods

Background: The many-body nature of nuclear physics problems poses significant computational challenges. These challenges become even more pronounced when studying the resonance states of nuclear systems, which are governed by the non-Hermitian Hamiltonian. Quantum computing, particularly for quantum many-body systems, offers a promising alternative, especially within the constraints of current noisy intermediate-scale quantum (NISQ) devices. Purpose: This work aims to simulate nuclear resonances using quantum algorithms by developing a variational framework compatible with non-Hermitian Hamiltonians and implementing it fully on a quantum simulator. Methods: We employ the complex scaling technique to extract resonance positions classically and adapt it for quantum simulations using a two-step algorithm. First, we transform the non-Hermitian Hamiltonian into a Hermitian form by using the energy variance as a cost function within a variational framework. Second, we perform 𝜃-trajectory calculations to determine optimal resonance positions in the complex energy plane. To address resource constraints on NISQ devices, we utilize Gray code (GC) encoding to reduce qubit requirements. Results: We first validate our approach using a schematic potential model that mimics a nuclear potential, successfully reproducing known resonance energies with high fidelity. We then extend the method to a more realistic 𝛼−𝛼 nuclear potential and compute the 𝐷- and 𝐺-wave resonance energies with a basis size of 𝑁=16, using only four qubits. The quantum simulation results closely match the classical values, demonstrating the feasibility of our approach. Conclusions: This study demonstrates, for the first time, that the complete 𝜃-trajectory method can be implemented on a quantum computer without relying on any classical input beyond the Hamiltonian. The results establish a scalable and efficient quantum framework for simulating resonance phenomena in nuclear systems. This work represents a significant step toward quantum simulations of open quantum systems and lays the foundation for future investigations into resonance structures in nuclear, atomic, and molecular physics.

73 NUCLEAR PHYSICS AND RADIATION PHYSICS↗