Search NASA⌕ Search

SEARCH · Search NASA

Results for “Code Generation”

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,765 records · Page 98

PATOKA: Simulating Electromagnetic Observables of Black Hole Accretion

The Event Horizon Telescope (EHT) has released analyses of reconstructed images of horizon-scale millimeter emission near the supermassive black hole at the center of the M87 galaxy. Parts of the analyses made use of a large library of synthetic black hole images and spectra, which were produced using numerical general relativistic magnetohydrodynamics fluid simulations and polarized ray tracing. In this article, we describe the PATOKA pipeline, which was used to generate the Illinois contribution to the EHT simulation library. We begin by describing the relevant accretion systems and radiative processes. We then describe the details of the three numerical codes we use, iharm, ipole, and igrmonty, paying particular attention to differences between the current generation of the codes and the originally published versions. Finally, we provide a brief overview of simulated data as produced by PATOKA and conclude with a discussion of limitations and future directions.

supermassive black holes↗

Extending a CAD-Based Cartesian Mesh Generator for the Lattice Boltzmann Method

This paper describes the development of a custom preprocessor for the PaRAllel Thermal Hydraulics simulations using Advanced Mesoscopic methods (PRATHAM) code based on an open-source mesh generator, CartGen [1]. PRATHAM is a three-dimensional (3D) lattice Boltzmann method (LBM) based parallel flow simulation software currently under development at the Oak Ridge National Laboratory. The LBM algorithm in PRATHAM requires a uniform, coordinate system-aligned, non-body-fitted structured mesh for its computational domain. CartGen [1], which is a GNU-licensed open source code, already comes with some of the above needed functionalities. However, it needs to be further extended to fully support the LBM specific preprocessing requirements. Therefore, CartGen is being modified to (i) be compiler independent while converting a neutral-format STL (Stereolithography) CAD geometry to a uniform structured Cartesian mesh, (ii) provide a mechanism for PRATHAM to import the mesh and identify the fluid/solid domains, and (iii) provide a mechanism to visually identify and tag the domain boundaries on which to apply different boundary conditions.

Cartesian Grid↗

Micro- and meso-scale simulations of magnetospheric processes related to the aurora and substorm morphology

The primary methodology during the grant period has been the use of micro or meso-scale simulations to address specific questions concerning magnetospheric processes related to the aurora and substorm morphology. This approach, while useful in providing some answers, has its limitations. Many of the problems relating to the magnetosphere are inherently global and kinetic. Effort during the last year of the grant period has increasingly focused on development of a global-scale hybrid code to model the entire, coupled magnetosheath - magnetosphere - ionosphere system. In particular, numerical procedures for curvilinear coordinate generation and exactly conservative differencing schemes for hybrid codes in curvilinear coordinates have been developed. The new computer algorithms and the massively parallel computer architectures now make this global code a feasible proposition. Support provided by this project has played an important role in laying the groundwork for the eventual development or a global-scale code to model and forecast magnetospheric weather.

Swift, Daniel W.↗

Programmable Pulse-Position-Modulation Encoder

A programmable pulse-position-modulation (PPM) encoder has been designed for use in testing an optical communication link. The encoder includes a programmable state machine and an electronic code book that can be updated to accommodate different PPM coding schemes. The encoder includes a field-programmable gate array (FPGA) that is programmed to step through the stored state machine and code book and that drives a custom high-speed serializer circuit board that is capable of generating subnanosecond pulses. The stored state machine and code book can be updated by means of a simple text interface through the serial port of a personal computer.

Zhu, David↗

IGGy: An interactive environment for surface grid generation

A graphically interactive derivative of the EAGLE boundary code is presented. This code allows the user to interactively build and execute commands and immediately see the results. Strong ties with a batch oriented script language are maintained. A generalized treatment of grid definition parameters allows a more generic definition of the grid generation process and allows the generation of command scripts which can be applied to topologically similar configurations. The use of the graphical user interface is outlined and example applications are presented.

Prewitt, Nathan C.↗

Automated FORTRAN conversion

The most pratical solution to the conversion of FORTRAN to other programming languages which STO and a few others have adopted, uses an intermediate language that is easy to translate FORTRAN into, and allows for source codes in other languages to be generated automatically. The intermediate language is the union of all other programming languages (and the trick is to create a useful union) with some extensions that reflect the nature of the algorithms. The benefits of this approach are many. First the original FORTRAN program has to be rewritten only once, and then only parts of the program: most FORTRAN code passes through without and change (i.e., assignment and simple IF statements). Software tools are provided to ease this initial translation. Once in the intermediate language, the algorithm can then be obtained in any other language automatically. An example of a subroutine from the Rispack library in ten different languages is given.

Aharonian, Gregory↗

WfBench: Automated Generation of Scientific Workflow Benchmarks

The prevalence of scientific workflows with high computational demands calls for their execution on various distributed computing platforms, including large-scale leadership-class high-performance computing (HPC) clusters. To handle the deployment, monitoring, and optimization of workflow executions, many workflow systems have been developed over the past decade. There is a need for workflow benchmarks that can be used to evaluate the performance of workflow systems on current and future software stacks and hardware platforms.We present a generator of realistic workflow benchmark specifications that can be translated into benchmark code to be executed with current workflow systems. Our approach generates workflow tasks with arbitrary performance characteristics (CPU, memory, and I/O usage) and with realistic task dependency structures based on those seen in production workflows. We present experimental results that show that our approach generates benchmarks that are representative of production workflows, and conduct a case study to demonstrate the use and usefulness of our generated benchmarks to evaluate the performance of workflow systems under different configuration scenarios.

Coleman, Taina↗

Random Number Generation for Petascale Quantum Monte Carlo

The quality of random number generators can affect the results of Monte Carlo computations, especially when a large number of random numbers are consumed. Furthermore, correlations present between different random number streams in a parallel computation can further affect the results. The SPRNG software, which the author had developed earlier, has pseudo-random number generators (PRNGs) capable of producing large numbers of streams with large periods. However, they had been empirically tested on only thousand streams earlier. In the work summarized here, we tested the SPRNG generators with over a hundred thousand streams, involving over 10^14 random numbers per test, on some tests. We also tested the popular Mersenne Twister. We believe that these are the largest tests of PRNGs, both in terms of the numbers of streams tested and the number of random numbers tested. We observed defects in some of these generators, including the Mersenne Twister, while a few generators appeared to perform well. We also corrected an error in the implementation of one of the SPRNG generators.

97 MATHEMATICS AND COMPUTING↗

The NASA-LeRC wind turbine sound prediction code

Development of the wind turbine sound prediction code began as part of an effort understand and reduce the noise generated by Mod-1. Tone sound levels predicted with this code are in good agreement with measured data taken in the vicinity Mod-1 wind turbine (less than 2 rotor diameters). Comparison in the far field indicates that propagation effects due to terrain and atmospheric conditions may amplify the actual sound levels by 6 dB. Parametric analysis using the code shows that the predominant contributors to Mod-1 rotor noise are (1) the velocity deficit in the wake of the support tower, (2) the high rotor speed, and (3) off-optimum operation.

Viterna, L. A.↗

The simulation of hypersonic flow using a zonal approach

The development of a Navier-Stokes code for the simulation of hypersonic flow will be described. The code uses a zonal philosophy which helps alleviate the grid generation problem for complex configurations and allows an efficient solution procedure. The code has been used to simulate equilibrium flow past a simple generic hypersonic configuration. Validation of the code on a blunt cone has also been conducted.

Flores, Jolen↗

Coupled Fluids-Radiation Analysis of a High-Mass Mars Entry Vehicle

The NEQAIR line-by-line radiation code has been incorporated into the DPLR Navier-Stokes flow solver such that the NEQAIR subroutines are now callable functions of DPLR. The coupled DPLR-NEQAIR code was applied to compute the convective and radiative heating rates over high-mass Mars entry vehicles. Two vehicle geometries were considered - a 15 m diameter 70-degree sphere cone configuration and a slender, mid-L/D vehicle with a diameter of 5 m called an Ellipsled. The entry masses ranged from 100 to 165 metric tons. Solutions were generated for entry velocities ranging from 6.5 to 9.1 km/s. The coupled fluids-radiation solutions were performed at the peak heating location along trajectories generated by the Traj trajectory analysis code. The impact of fluids-radiation coupling is a function of the level of radiative heating and the freestream density and velocity. For the high-mass Mars vehicles examined in this study, coupling effects were greatest for entry velocities above 8.5 km/s where the surface radiative heating was reduced by up 17%. Generally speaking, the Ellipsled geometry experiences a lower peak radiative heating rate but a higher peak turbulent convective heating rate than the MSL-based vehicle.

Palmer, Grant↗

Coupled Fluids-Radiation Analysis of a High-Mass Mars Vehicle

The NEQAIR line-by-line radiation code has been incorporated into the DPLR Navier-Stokes flow solver such that the NEQAIR subroutines are now callable functions of DPLR. The coupled DPLR-NEQAIR code was applied to compute the convective and radiative heating rates over high-mass Mars entry vehicles. Two vehicle geometries were considered - a 15 m diameter 70-degree sphere cone configuration and a slender, mid-L/D vehicle with a diameter of 5 m called an Ellipsled. The entry masses ranged from 100 to 165 metric tons. Solutions were generated for entry velocities ranging from 6.5 to 9.1 km/s. The coupled fluids-radiation solutions were performed at the peak heating location along trajectories generated by the Traj trajectory analysis code. The impact of fluids-radiation coupling is a function of the level of radiative heating and the freestream density and velocity. For the high-mass Mars vehicles examined in this study, coupling effects were greatest for entry velocities above 8.5 km/s where the surface radiative heating was reduced by up 17%. Generally speaking, the Ellipsled geometry experiences a lower peak radiative heating rate but a higher peak turbulent convective heating rate than the MSL-based vehicle.

Palmer, Grant↗

Investigation of Heterogeneity Effects on Calculated Sensitivities of the ZPPR-15B Assemblies

In past years, sensitivity studies of ZPR and ZPPR assemblies were carried out with deterministic codes for several purposes, such as uncertainty estimation of calculated parameter values, cross section adjustment, representativity analysis. etc.. However, these sensitivity studies used simplified R-Z models of ZPR/ZPPR assemblies where the multi-group cross section data was obtained from the homogenized material compositions of each reactor zone. The main reason for this simplification was the lack of a deterministic path able to compute sensitivity coefficients for complicated 3D geometries in transport theory. Also, each ZPR and ZPPR assembly consists of several different drawers each containing different plate types and plate arrangements and it was felt that performing sensitivity calculations with an equivalent R-Z reactor model would capture most of the feedback while the heterogeneity effects were believed to be of second order. Recently a new code, BuildZPRModel, was developed at ANL that automatically generates the inputs for cross section processing and core calculation of heterogeneous ZPR and ZPPR assemblies for 3D transport calculations. Additionally, the PERSENT code (recently developed at ANL as well) is able to carry out sensitivity calculations in transport theory on 3D geometries. With the benefit of the newly developed codes, a sensitivity study was performed for the heterogeneous model of ZPPR-15B assemblies 96 and 102 generated by BuildZPRModel. The results were compared with the sensitivities computed with the use of fully homogenized R-Z reactor models, in order to quantify the impact of heterogeneity effects neglected in the analysis performed in past years. (authors)

11 NUCLEAR FUEL CYCLE AND FUEL MATERIALS↗

Grid Generation Issues and CFD Simulation Accuracy for the X33 Aerothermal Simulations

Grid generation issues relating to the simulation of the X33 aerothermal environment using the GASP code are explored. Required grid densities and normal grid stretching are discussed with regards to predicting the fluid dynamic and heating environments with the desired accuracy. The generation of volume grids is explored and includes discussions of structured grid generation packages such as GRIDGEN, GRIDPRO and HYPGEN. Volume grid manipulation techniques for obtaining desired outer boundary and grid clustering using the OUTBOUND code are examined. The generation of the surface grid with the required surface grid with the required surface grid topology is also discussed. Utilizing grids without singular axes is explored as a method of avoiding numerical difficulties at the singular line.

Polsky, Susan↗

Computational Modeling, Simulation and Analysis of the RPI Walthousen Reactor Critical Facility (RCF)

The Walthousen Reactor Critical Facility (RCF), located in Schenectady, New York, is currently owned and operated by Rensselaer Polytechnic Institute (RPI). The facility was originally constructed by the American Locomotive Company (ALCO) for the research and development of small, portable reactors. Originally designed for highly-enriched uranium fuel, the prototype reactor first came online in August 26, 1956, and was transferred to RPI ownership in 1963. Several changes to the reactor's design and operation have been made, the most notable of which was the conversion from high-enriched uranium to low-enriched uranium fuel. The RCF is an open-pool critical assembly that operates at a low power with a license limit of less than 100 watts. This low operating power permits a much greater flexibility in configuration and operation as compared to other research reactors. Because of this, experiments may be designed that would be unfeasible for research reactors that operate at much higher powers. The RCF's functional capabilities provide opportunities to perform several reactor experiments and measurements, such as: core criticality experiments, differential and integral rod worth measurements, moderator temperature coefficient of reactivity calculations, critical rod height and critical water height measurements, etc.. These experiments are regularly performed in conjunction with RPI course-work education and Senior Reactor Operator (SRO) training. The unique capabilities and experiments that may be performed in the RCF are particularly useful for validating certain aspects of computational analysis codes. A computational model of the RCF reactor has been previously generated and validated using the Monte Carlo N-Particle (MCNP) code. For the purpose of future experiments, this model is also being adapted for use with the SHARP Toolset, which includes the PROTEUS neutronics code, the Nek5000 fluid dynamics code, and the Diablo structural mechanics code. (authors)

21 SPECIFIC NUCLEAR REACTORS AND ASSOCIATED PLANTS↗

Electron acceleration in cavitated laser produced ion channels

This paper is concerned with the channeling of a relativistic laser pulse in an underdense plasma and with the subsequent generation of fast electrons in the cavitated ion channel. The laser pulse has a duration of several hundreds of femtoseconds and its power P{sub L} exceeds the critical power for laser channeling P{sub ch}, with P{sub ch}≈1.1P{sub c}, P{sub c} denoting the critical power for relativistic self-focusing. The laser pulse is focused in a plasma of electron density n{sub 0} such that the ratio n{sub 0}/n{sub c} lies in the interval [10{sup −3},10{sup −1}], n{sub c} denoting the critical density. The laser-plasma interaction under such conditions is investigated by means of three dimensional Particle-In-Cell (PIC) simulations. It is observed that the steep laser front gives rise to the excitation of a surface wave which propagates along the sharp radial boundaries of the electron free channel created by the laser pulse. The mechanism responsible for the generation of relativistic electrons observed in the PIC simulations is also analyzed by means of a test particles code. The fast electrons are found to be generated by the combination of a surface wave and of the betatron resonance. The maximum electron energy observed in the simulations is scaled as a function of P{sub L}/P{sub c}; it reaches 350–600 MeV for P{sub L}/P{sub c} = 70–140.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

Coupled thermomechanical modeling using dissimilar geometries in arpeggio.

Performing coupled thermomechanical simulations is becoming an increasingly important aspect of nuclear weapon (NW) safety assessments in abnormal thermal environments. While such capabilities exist in SIERRA, they have thus far been used only in a limited sense to investigate NW safety themes. An important limiting factor is the difficulty associated with developing geometries and meshes appropriate for both thermal and mechanical finite element models, which has limited thermomechanical analysis to simplified configurations. This work addresses the issue of how to perform coupled analyses on models where the underlying geometries and associated meshes are different and tailored to their relevant physics. Such an approach will reduce the model building effort and enable previously developed single-physics models to be leveraged in future coupled simulations. A combined-environment approach is presented in this report using SIERRA tools, with quantitative comparisons made between different options in SIERRA. This report summarizes efforts on running a coupled thermomechanical analysis using the SIERRA Arpeggio code.

45 MILITARY TECHNOLOGY, WEAPONRY, AND NATIONAL DEF↗

Development and Implementation of a New AI-Based Tool to Support Fast Reactor Software Model Generation and Validation

This report summarizes FY26 work to develop Maggie, an artificial intelligence-based assistant designed to support software model generation and validation activities for fast reactor analysis codes. The project established a modular, code-agnostic software architecture that separates reusable agent capabilities from code-specific knowledge and tools, with initial implementation focused on the FRP-supported fast reactor safety analysis code SAS4A/SASSYS1 (SAS). A curated SAS-specific knowledge base was assembled from the code manual, training materials, historical analysis reports, and representative input files, and was integrated through retrieval-augmented generation to ground Maggie’s responses in authoritative sources. Maggie was deployed on the internal Argonne network, where it demonstrated practical user-facing capability as a chatbot for answering natural language questions about SAS and retrieving relevant technical information. Demonstration cases also showed that Maggie can generate useful snippets of SAS input for selected modeling tasks, while highlighting current limitations in reliability and consistency for more complex input generation tasks. Overall, the FY26 effort established the technical foundation for an AI-assisted capability intended to improve the efficiency, consistency, and accessibility of fast reactor software model development at Argonne and, with further improvements, to support eventual use by the broader fast reactor community, including industry users of FRP-supported analysis tools.

Thomas, Rachel [Argonne National Laboratory (ANL),↗