Search NASA⌕ Search

SEARCH · Search NASA

Results for “Structured Programming”

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 37 records · Page 2

Enhancement in dielectric behavior of (Ni, Zn)Fe{sub 2}O{sub 4} ferrite

In present work, NiFe{sub 2}O{sub 4}(NFO), ZnFe{sub 2}O{sub 4} (ZFO) and Ni{sub 0.5}Zn{sub 0.5}Fe{sub 2}O{sub 4} (NZFO) are synthesized by microwave assisted co-precipitation route. Their structural properties are confirmed by X-ray diffraction and data is fitted through Reitveld refinement using Full-Prof software suite. After refinement, the systematic crystal structures of NFO, ZFO and NZFO compounds are generated using output .cif file by VESTA (Visualization for Electronic and Structural Analysis) program. Structural parameters obtained after refinement and unit cell construction, are systematically tabulated. Room temperature frequency dependence dielectric properties are studied. We found enhanced values of dielectric constant for NZFO than individual NFO and ZFO phases. For NZFO sample, greater electron exchange between Fe{sup 2+} and Fe{sup 3+} which enhances polarization and dielectric constant.

75 CONDENSED MATTER PHYSICS, SUPERCONDUCTIVITY AND↗

Whisper Source Code Inspection Report

This report documents an inspection of the Whisper Fortran source code. As a result of this inspection, this report explains how (and confirms) the methodology was implemented in the source code. The following sections document the algorithms, data structures, and program structure in Whisper. When Whisper implements a specific equation in LA-UR-14-26558, a cross reference to the equation is made. Also, Appendix A provides a cross reference from the equations in LA-UR-14-26558 to the implementing subroutine or function.

73 NUCLEAR PHYSICS AND RADIATION PHYSICS↗

Structural Integrity Program for INTEC Calcined Solids Storage Facilities

This report documents the activities of the structural integrity program at the Idaho Nuclear Technology and Engineering Center relevant to the high-level waste Calcined Solids Storage Facilities and associated equipment, as required by DOE M 435.1-1, 'Radioactive Waste Management Manual'. Based on the evaluation documented in this report, the Calcined Solids Storage Facilities are not leaking and are structurally sound for continued service. Recommendations are provided for continued monitoring of the Calcined Solids Storage Facilities.

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗

Parallel interior-point solver for block-structured nonlinear programs on SIMD/GPU architectures

Here, we investigate how to port the standard interior-point method to new exascale architectures for block-structured nonlinear programs with state equations. Computationally, we decompose the interior-point algorithm into two successive operations: the evaluation of the derivatives and the solution of the associated Karush-Kuhn-Tucker (KKT) linear system. Our method accelerates both operations using two levels of parallelism. First, we distribute the computations on multiple processes using coarse parallelism. Second, each process uses SIMD/GPU accelerators locally to accelerate the operations using fine-grained parallelism. The KKT system is reduced by eliminating the inequalities and the state variables from the corresponding equations. We demonstrate our method's capability on the supercomputer Polaris, a testbed for the future exascale Aurora system. Each node is equipped with four GPUs, a setup amenable to our two-level approach. Our experiments on the stochastic optimal power flow problem show that the reduction method is 50x faster than the sparse linear solver HSL MA57 running in serial on the CPU, and 6x faster than Pardiso running in parallel on CPU on the same number of processes.

97 MATHEMATICS AND COMPUTING↗

ON THE EFFECTIVENESS OF LLMS IN UNIT TEST GENERATION FOR STRUCTURED TEXT PROGRAMS

The reliability of industrial automation systems heavily depends on the correctness of Programmable Logic Controller (PLC) programs, which are often written in Structured Text (ST). While Large Language Models (LLMs) have shown promise in automating test generation for mainstream programming languages, their effectiveness for the syntactically strict ST language remains underexplored. This thesis presents a systematic empirical evaluation of three state-of-the-art LLMs—GPT-4o, Gemini 2.5 Pro, and Claude Sonnet 4.5—for generating ST unit tests. We examine three prompting strategies: Natural Language (NL), Code Language (CL), and Chain-of-Thought (CoT), across a curated set of 11 ST function blocks. The quality of the generated tests is assessed using Compilation Success Rate (CSR), Statement Coverage (SC), and Branch Coverage (BC). In the zero-shot setting, Claude Sonnet 4.5 achieves the highest CSR, while Gemini 2.5 Pro consistently delivers the best statement and branch coverage, particularly under CL prompts. By incorporating a one-shot CL prompt, all models exhibit substantial improvements—most notably GPT-4o, whose CSR increases from 45.45% to 90.91%, with substantial gains in both SC and BC. To further contextualize these findings, we compare GPT-4o’s one-shot results with PLCAutoTester, a state-ofthe- art ST unit test generation tool, on an additional benchmark dataset. While LLMgenerated tests approach competitive coverage levels, PLCAutoTester maintains significantly higher and more stable coverage across programs. This study provides the first comprehensive benchmark of modern LLMs for ST unit testing, highlighting their strengths, limitations, and improvements through one-shot prompting, and positioning their performance relative to specialized automated testing tools in industrial automation.

42 ENGINEERING↗

Structural Integrity Program for the 300,000-Gallon Radioactive Liquid Waste Storage Tanks at the Idaho Nuclear Technology and Engineering Center

This report provides a record of the Structural Integrity Program for the 300,000-gal liquid waste storage tanks and associated equipment at the Idaho Nuclear Technology and Engineering Center, as required by U.S. Department of Energy M 435.1-1, “Radioactive Waste Management Manual.” This equipment is known collectively as the Tank Farm Facility. This report is an update, and replaces the previous report by the same title issued April 2003. The conclusion of this report is that the Tank Farm Facility tanks, vaults, and transfer systems that remain in service for storage are structurally adequate, and are expected to remain structurally adequate over the remainder of their planned service life through 2012. Recommendations are provided for continued monitoring of the Tank Farm Facility.

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗

TeraChem protocol buffers ( TCPB ): Accelerating QM and QM/MM simulations with a client–server model

The routine use of electronic structures in many chemical simulation applications calls for efficient and easy ways to access electronic structure programs. Here, we describe how the graphics processing unit (GPU) accelerated electronic structure program TeraChem can be set up as an electronic structure server, to be easily accessed by third-party client programs. We exploit Google’s protocol buffer framework for data serialization and communication. The client interface, called TeraChem protocol buffers (TCPB), has been designed for ease of use and compatibility with multiple programming languages, such as C++, Fortran, and Python. To demonstrate the ease of coupling third-party programs with electronic structures using TCPB, we have incorporated the TCPB client into Amber for quantum mechanics/molecular mechanics (QM/MM) simulations. The TCPB interface saves time with GPU initialization and I/O operations, achieving a speedup of more than 2× compared to a prior file-based implementation for a QM region with ~250 basis functions. We demonstrate the practical application of TCPB by computing the free energy profile of p-hydroxybenzylidene-2,3-dimethylimidazolinone (p-HBDI - )—a model chromophore in green fluorescent proteins—on the first excited singlet state using Hamiltonian replica exchange for enhanced sampling. All calculations in this work have been performed with the non-commercial freely-available version of TeraChem, which is sufficient for many QM region sizes in common use.

37 INORGANIC, ORGANIC, PHYSICAL, AND ANALYTICAL CH↗

Glass structure and crystallization in boro-alumino-silicate glasses containing rare earth and transition metal cations: a US-UK collaborative program

Nuclear wastes generated from reprocessing of used nuclear fuel tend to contain a large fraction of rare earth (RE, e.g., Nd3+), transition (TM, e.g., Mo6+, Zr4+), alkali (A, e.g., Cs+), and alkaline earth cations (AE, e.g., Ba2+, Sr2+). Various strategies have been considered for immobilizing such waste streams, varying from nominally crystal-free glass to glass-ceramic to multi-phase ceramic waste forms. For glass and glass-ceramic waste forms, the added glass-forming system is generally alkali-alkaline earth-aluminoborosilicate (i.e., Na-Ca-Al-B-Si oxide). In a US-UK collaborative project, summarized here, we investigated the glass structure and crystallization dependence on compositional changes in simulated nuclear waste glasses and glass-ceramics. Compositions ranged in complexity from five – to – eight oxides. Specifically, the roles of Mo and rare earths are investigated, since a proposed glass-ceramic waste form contains crystalline phases such as powellite [(AE,A,RE)MoO4] and oxyapatite [(RE,AE,A)10Si6O26], and the precipitation of molybdenum phases is known to be affected by the rare earth concentration in the glass. Additionally, the effects of other chemical additions have been systematically investigated, including Zr, Ru, P, and Ti. A series of studies were also undertaken to ascertain the effect of the RE size on glass structure and on partitioning to crystal phases, investigating similarities and differences in glasses containing single RE oxides of Sc, Y, La, Ce, Nd, Sm, Er, Yb, or Lu. Finally, the effect of charge compensation was investigated by considering not only the commonly assessed peralkaline glass but also metaluminous and peraluminous compositions. Glass structure and crystallization studies were conducted by spectroscopic methods (i.e., Raman, X-ray absorption, nuclear magnetic resonance (NMR), optical absorption, photoluminescence, photoluminescence excitation, X-ray photoelectron spectroscopy), microscopy (i.e., scanning electron microscopy, transmission electron microscopy, electron probe microanalysis), scattering (i.e., X-ray and neutron diffraction, small angle measurements), and physical characterization (i.e., differential thermal analysis, liquidus, viscosity, density). This paper will give an overview of the research program and some example unpublished results on glass-ceramic crystallization kinetics, microstructure, and Raman spectra, as well as some examples of the effects of rare earths on the absorption, luminescence, and NMR spectra of starting glasses. The formal collaboration described here has resulted in the generation of a large number of results, some of which are still in the process of being published as separate studies.

McCloy, John S.↗

Trace Driven Data Structure Transformations

As the complexity of scientific codes and computational hardware increases it is increasingly important to study the effects of data-structure layouts on program memory behavior. Program structure layouts affect the memory performance differently, therefore we need the capability to effectively study such transformations without the need to rewrite application codes. Trace-driven simulations are an effective and convenient mechanism to simulate program behavior at various granularities. During an application s execution, a tool known as a tracer or profiler, collects program flow data and records program instructions. The trace-file consists of tuples that associate each program instruction with program internal variables. In this paper we outline a proof-of-concept mechanism to apply data-structure transformations during trace simulation and observe effects on memory without the need to manually transform an application s code.

cache locality↗

Results from the CLIC X-Band Structure Test Program at NLCTA

As part of a SLAC-CERN-KEK collaboration on high gradient X-band structure research, several prototype structures for the CLIC linear collider study have been tested using two of the high power (300 MW) X-band rf stations in the NLCTA facility at SLAC. These structures differ in terms of their fabrication (brazed disks and clamped quadrants), gradient profile (amount by which the gradient increases along the structure, which optimizes efficiency and maximizes sustainable gradient) and HOM damping (use of slots or waveguides to rapidly dissipate dipole mode energy). The CLIC goal in the next few years is to demonstrate the feasibility of a CLIC-ready baseline design and to investigate alternatives that could increase efficiency. This paper summarizes the high gradient test results from NLCTA in support of this effort.

43 PARTICLE ACCELERATORS↗

Streamlining of the RELAP5-3D Code

RELAP5-3D is widely used by the nuclear community to simulate general thermal hydraulic systems and has proven to be so versatile that the spectrum of transient two-phase problems that can be analyzed has increased substantially over time. To accommodate the many new types of problems that are analyzed by RELAP5-3D, both the physics and numerical methods of the code have been continuously improved. In the area of computational methods and mathematical techniques, many upgrades and improvements have been made decrease code run time and increase solution accuracy. These include vectorization, parallelization, use of improved equation solvers for thermal hydraulics and neutron kinetics, and incorporation of improved library utilities. In the area of applied nuclear engineering, expanded capabilities include boron and level tracking models, radiation/conduction enclosure model, feedwater heater and compressor components, fluids and corresponding correlations for modeling Generation IV reactor designs, and coupling to computational fluid dynamics solvers. Ongoing and proposed future developments include improvements to the two-phase pump model, conversion to FORTRAN 90, and coupling to more computer programs. This paper summarizes the general improvements made to RELAP5-3D, with an emphasis on streamlining the code infrastructure for improved maintenance and development. With all these past, present and planned developments, it is necessary to modify the code infrastructure to incorporate modifications in a consistent and maintainable manner. Modifying a complex code such as RELAP5-3D to incorporate new models, upgrade numerics, and optimize existing code becomes more difficult as the code grows larger. The difficulty of this as well as the chance of introducing errors is significantly reduced when the code is structured. To streamline the code into a structured program, a commercial restructuring tool, FOR_STRUCT, was applied to the RELAP5-3D source files. The methodology employed follows Dijkstra's structured programming paradigm, which is based on splitting programs into sub-sections, each with single points of entry and exit and in which control is passed downward through the structure with no unconditional branches to higher levels. GO TO commands are typically avoided, since they alter the flow and control of a program’s execution by allowing a jump from one place in the routine to another. The restructuring of RELAP5-3D subroutines is complicated by several issues. The first is use of code other than standard FORTRAN77. The second is restructuring limitations of FOR_STRUCT. The third is existence of pre-compiler directives and the complication of nested directives. Techniques were developed to overcome all these difficulties and more and these are reported. By implementing these developments, all subroutines of RELAP were restructured. Measures of code improvement relative to maintenance and development are presented.

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

Measuring the capabilities of quantum computers

Quantum computers can now run interesting programs, but each processor’s capability—the set of programs that it can run successfully—is limited by hardware errors. These errors can be complicated, making it difficult to accurately predict a processor’s capability. Benchmarks can be used to measure capability directly, but current benchmarks have limited flexibility and scale poorly to many-qubit processors. We show how to construct scalable, efficiently verifiable benchmarks based on any program by using a technique that we call circuit mirroring. With it, we construct two flexible, scalable volumetric benchmarks based on randomized and periodically ordered programs. We use these benchmarks to map out the capabilities of twelve publicly available processors, and to measure the impact of program structure on each one. We find that standard error metrics are poor predictors of whether a program will run successfully on today’s hardware, and that current processors vary widely in their sensitivity to program structure.

97 MATHEMATICS AND COMPUTING↗

GPU Acceleration of Volume Fraction and Centroid Computation from General Shapes on Unstructured Mesh

One important requirement for coupling multi-physics models is a means to remap fields between meshes in an accurate and conservative manner. Since the remapping algorithm is embarrassingly parallel, this motivates the use of Graphical Processing Units (GPU) for such routine. However, since our remapping code, portage, is fairly complex, we explore the use of GPUs through a simpler problem of generating material’s volume fraction and centroid inside each cell of the mesh. We use the same programming structure that is used in portage, namely, on-node parallelism via NVIDIA’s thrust library. Using a similar programming structure enables us to draw lessons from this study that can be applied to the more complex problem. We have found that while the speed-up is pronounced (10-100 times), significant effort is required to re-factor the code so that thrust can be used with a CUDA backend. Moreover, thrust takes away the fine grain control that vanilla CUDA programming gives us.

97 MATHEMATICS AND COMPUTING↗

A Structural engineering Graduate Degree Program with specialization in structural health monitoring & non-destructive evaluation [Slides]

The promotional presentation discusses the graduate degree program at the University of California, San Diego, Jacobs School of Engineering, related to structural engineering. Structural Health Monitoring (SHM) encompasses the integration of a broad range of technologies from sensing/actuating, data interrogation, and statistical modeling to enable system-level or component-level health assessment and predictive modeling. The course is available via distance learning to Los Alamos National Laboratory engineers.

42 ENGINEERING↗

RELAP5-3D Developer Guidelines and Programming Practices

Our ultimate goal is to create and maintain RELAP5-3D as the best software tool available to analyze nuclear power plants. This begins with writing excellent programming and requires thorough testing. This document covers development of RELAP5-3D software, the behavior of the RELAP5-3D program that must be maintained, and code testing. RELAP5-3D must perform in a manner consistent with previous code versions with backward compatibility for the sake of the users. Thus file operations, code termination, input and output must remain consistent in form and content while adding appropriate new files, input and output as new features are developed. As computer hardware, operating systems, and other software change, RELAP5-3D must adapt and maintain performance. The code must be thoroughly tested to ensure that it continues to perform robustly on the supported platforms. The coding must be written in a consistent manner that makes the program easy to read to reduce the time and cost of development, maintenance and error resolution. The programming guidelines presented her are intended to institutionalize a consistent way of writing FORTRAN code for the RELAP5-3D computer program that will minimize errors and rework. A common format and organization of program units creates a unifying look and feel to the code. This in turn increases readability and reduces time required for maintenance, development and debugging. It also aids new programmers in reading and understanding the program. Therefore, when undertaking development of the RELAP5-3D computer program, the programmer must write computer code that follows these guidelines. This set of programming guidelines creates a framework of good programming practices, such as initialization, structured programming, and vector-friendly coding. It sets out formatting rules for lines of code, such as indentation, capitalization, spacing, etc. It creates limits on program units, such as subprograms, functions, and modules. It establishes documentation guidance on internal comments. The guidelines apply to both existing and new subprograms. They are written for both FORTRAN 77 and FORTRAN 95. The guidelines are not so rigorous as to inhibit a programmer’s unique style, but do restrict the variations in acceptable coding to create sufficient commonality that new readers will find the coding in each new subroutine familiar. It is recognized that this is a “living” document and must be updated as languages, compilers, and computer hardware and software evolve.

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

Structural Integrity of Single Shell Tanks at Hanford - 9491

The 149 Single Shell Tanks at the Hanford Site were constructed between the 1940’s and the 1960’s. Many of the tanks are either known or suspected to have leaked in the past. While the free liquids have been removed from the tanks, they still contain significant waste volumes. Recently, the tank farm operations contractor established a Single Shell Tank Integrity Program. Structural integrity is one aspect of the program. The structural analysis of the Single Shell Tanks has several challenging factors. There are several tank sizes and configurations that need to be analyzed. Tank capacities range from fifty-five thousand gallons to one-million gallons. The smallest tank type is approximately twenty feet in diameter, and the three other tank types are all seventy-five feet in diameter. Within each tank type there are varying concrete strengths, types of steel, tank floor arrangements, in-tank hardware, riser sizes and locations, and other appurtenances that need to be addressed. Furthermore, soil properties vary throughout the tank farms. The Pacific Northwest National Laboratory has been conducting preliminary structural analyses of the various single shell tank types to address these parameters. The preliminary analyses will assess which aspects of the tanks will require further detailed analysis. Evaluation criteria to which the tanks will be analyzed are also being developed for the Single Shell Tank Integrity Program. This information will be reviewed by the Single Shell Tank Integrity Expert Panel that has been formed to issue recommendations to the DOE and to the tank farm operations contractor regarding Single Shell Tank Integrity. This paper provides a summary of the preliminary analysis of the single shell tanks, a summary of the recommendations for the detailed analyses, and the proposed evaluation criteria by which the tanks will be judged.

54 ENVIRONMENTAL SCIENCES↗