Search NASA⌕ Search

SEARCH · Search NASA

Results for “Unit Testing”

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 19 records

The Structural Evaluation Test Unit (SETU) Benchmark Test Results

A series of extensively instrumented tests was performed on the Structural Evaluation Test Unit in the early 1990s. The purpose of these tests was to determine the response of a minimally designed cask to impacts that were more severe than the design basis impact. This test series provides an excellent opportunity for benchmarking explicit dynamic finite element analysis programs for behaviors that may be experienced by casks during regulatory and extra-regulatory impact events. This report provides the results of the four tests that were conducted. It is meant to go along with a companion report that defines the benchmark problem and gives the locations for the instrumentation and inspection points.

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗

The Structural Evaluation Test Unit (SETU) Benchmark Problem Statement

A series of extensively instrumented tests was performed on the Structural Evaluation Test Unit in the early 1990s. The purpose of these tests was to determine the response of a minimally designed cask to impacts that were more severe than the design basis impact. This test series provides an excellent opportunity for benchmarking explicit dynamic finite element analysis programs for behaviors that may be experienced by casks during regulatory and extra-regulatory impact events. This report provides the parameters of the test unit, the locations of instrumentation, the locations of inspection points, and the parameters of the four tests that were conducted. A companion report provides the results of the tests.

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗

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↗

SPEL: Software tool for Porting E3SM Land Model with OpenACC in a Function Unit Test Framework

Most high-end computers adopt hybrid architecture, porting a large-scale scientific code onto accelerators is necessary. The paper presents a generic method for porting large-scale scientific code onto accelerators using compiler directives within a modularized function unit test platform. We have implemented the method and designed a software tool (SPEL) to port the E3SM Land Model (ELM) onto the GPUs in the Summit computer. SPEL automatically generates GPU-ready test modules for all ELM functions, such as CanopyFlux, SoilTemperature, and EcosystemDynamics. SPEL breaks the ELM into a collection of standalone unit test programs for easy code verification and further performance improvement. We further optimize several ELM test modules with advanced techniques, including memory reduction, reconstructed parallel loops, and asynchronous GPU kernel launch. We hope our study will inspire new toolkit developments that expedite large-scale scientific code porting with compiler directives.

Schwartz, Peter↗

Improvements to CTF Code Verification and Unit Testing (FY2020)

In 2010, the U.S. Department of Energy created its first Energy Innovation Hub, which focuses on improving Light Water Reactors (LWRs) through Modeling and Simulation. This hub, named the Consortium for the Advanced Simulation of LWRs (CASL), attempts to characterize and understand LWR behavior under normal operating conditions and use any gained insights to improve their efficiency. In collaboration with North Carolina State University (NCSU), CASL has worked extensively on the thermal-hydraulic subchannel code Coolant Boiling in Rod Arrays—Three Field (COBRA-TF). The NCSU/CASL version of COBRA-TF has been rebranded as CTF. This document focuses on code verification test problems that ensure CTF converges to the correct answer for the intended application. The suite of code verification tests are mapped to the underlying conservation equations of CTF, and significant gaps are addressed. Convergence behavior and numerical errors are quantified for each of the tests. Tests that converge at the correct rate to the corresponding analytic solution are incorporated into the CTF automated regression suite. A new verification utility is created for this purpose, which enables code verification by generalizing the process. For problems that do not behave correctly, the results are reported but the problem is not included in the regression suite. In addition to verification studies, this document also quantifies the existing tests of constitutive models. A few existing gaps are addressed by adding new unit tests.

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

FY20 Improvements to CTF Code Verification and Unit Testing

In 2010, the U.S. Department of Energy created its first Energy Innovation Hub, which focuses on improving Light Water Reactors (LWRs) through Modeling and Simulation. This hub, named the Consortium for the Advanced Simulation of LWRs (CASL), attempts to characterize and understand LWR behavior under normal operating conditions and use any gained insights to improve their efficiency. In collaboration with North Carolina State University (NCSU), CASL has worked extensively on the thermal-hydraulic subchannel code Coolant Boiling in Rod Arrays–Three Field (COBRA-TF). The NCSU/CASL version of COBRA-TF has been rebranded as CTF. This document focuses on code verification test problems that ensure CTF converges to the correct answer for the intended application. The suite of code verification tests are mapped to the underlying conservation equations of CTF, and significant gaps are addressed. Convergence behavior and numerical errors are quantified for each of the tests. Tests that converge at the correct rate to the corresponding analytic solution are incorporated into the CTF automated regression suite. A new verification utility is created for this purpose, which enables code verification by generalizing the process. For problems that do not behave correctly, the results are reported but the problem is not included in the regression suite. In addition to verification studies, this document also quantifies the existing tests of constitutive models. A few existing gaps are addressed by adding new unit tests.

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

Deployment of Advanced Electroanalytical Sensors in the Kairos Power Engineering Test Unit (ETU) (Final CRADA Report)

This document serves as a summary report for the work conducted under CRADA 2022-22119 between Argonne National Laboratory and Kairos Power LLC. As part of this project, Argonne and Kairos worked to develop an advanced electrochemical system and testing protocol for the Kairos Power Enineering Test Unit (ETU), an industrial scale 14 ton molten FLiBe salt system. The main goals were (1) measurements of fundamental properties for key salt species, (2) the deployment and operations of sensors in the ETU, and (3) the development of automated approaches to analyze the measurements.

42 ENGINEERING↗

Creating Unit Tests for GlideinWMS using AI tools

GlideinWMS is a workload management system that uses distributed computing to complete tasks, also known as jobs. It is particularly useful for high-throughput computing that’s used in research projects. It relies on Glideins, which are pilot jobs that pull jobs from a queue and provide resources for their completion, based on the jobs requirements. These decisions are made based on resource availability and job requirements. We used new AI tools to add unit tests to GlideinWMS.

Baburashvili, Ilya↗

Pilot Unit Testing at NCCC of Sorbent based CO2 Capture

TDA Research, Inc. is developing a new CO2 sorbent (alkalized alumina) technology for post-combustion CO2 capture. In this DOE sponsored project (DE-FE0012870), TDA constructed a pilot-scale skid, which was installed and tested at National Carbon Capture Center (NCCC). It was designed to process coal derived flue gas equivalent to 0.5 MWe of power generation. The pilot test data shows that TDA’s process can achieve 90% capture rate and 95% CO2 purity (the performance target) for both coal and natural gas (NG) flue gases. The techno-economic analysis (TEA) for a 550-MWe supercritical coal fired power plant with CO2 capture shows that the capture cost for TDA’s process is $34.9/tonne CO2 captured, which meets DOE’s goal of $40/tonne and is 17.1% less than the DOE baseline Case 12 (an amine solvent technology).

20 FOSSIL-FUELED POWER PLANTS↗

Path-Integrated Stereo X-Ray Digital Image Correlation: Resolving the Violation of Conservation of Intensity

In this study, x-ray imaging addresses many challenges with visible light imaging in extreme environments, where optical diagnostics such as digital image correlation (DIC) and particle image velocimetry (PIV) suffer biases from index of refraction changes and/or cannot penetrate visibly occluded objects. However, conservation of intensity—the fundamental principle of optical image correlation algorithms—may be violated if ancillary components in the X-ray path besides the surface or fluid of interest move during the test. The test series treated in this work sought to characterize the safe use of fiber-epoxy composites in aerospace and aviation industries during fire accident scenarios. Stereo X-ray DIC was employed to measure test unit deformation in an extreme thermal environment involving a visibly occluded test unit, incident surface heating to temperatures above 600°C, and flames and soot from combusting epoxy decomposition gasses. The objective of the current work is to evaluate two solutions to resolve the violation of conservation of intensity that resulted from both the test unit and the thermal chamber deforming during the test. The first solution recovered conservation of intensity by pre-processing the path-integrated X-ray images to isolate the DIC pattern of the test unit from the thermal chamber components. These images were then correlated with standard, optical DIC software. The second solution, called Path-Integrated Digital Image Correlation (PI-DIC), modified the fundamental matching criterion of DIC to account for multiple, independently-moving components contributing to the final image intensity. The PI-DIC algorithm was extended from a 2D framework to a stereo framework and implemented in a custom DIC software. Both solutions accurately measured the cylindrical shape of the undeformed test unit, recovering radii values of R = 76.20±0.12 mm compared to the theoretical radius of R theor = 76.20 mm. During the test, the test unit bulged asymmetrically as decomposition gasses pressurized the interior and eventually burned in a localized jet. Both solutions measured the heterogeneous radius of this bulge, which reached a maximum of approximately R = 91 mm, with a discrepancy of 2–3% between the two solutions. Two solutions that resolve the violation of conservation of intensity for path-integrated X-ray images were developed. Both were successfully employed in a stereo X-ray DIC configuration to measure deformation of an aluminum-skinned, fiber-epoxy composite test unit in a fire accident scenario.

47 OTHER INSTRUMENTATION↗

Reactive jet and cyclonic attrition analysis of ilmenite in chemical looping combustion systems

In chemical looping combustion (CLC), the chosen oxygen carrier’s (OC) reactivity maintenance and attrition propensity play key roles in determining its lifetime in such systems. Jet and cyclonic attrition are two main mechanisms of attrition in CLC systems, which typically use fluidized beds and cyclones. In contrast to standardized tests, that assess attrition characteristics under ambient and non-reacting conditions, a realistic evaluation must include the behavior under relevant high temperatures and cyclic oxidation-reduction. In this study, separate jet and cyclonic attrition test units were constructed to investigate the effects of temperature, fuel gas concentration and velocity on the performance of ilmenite, a natural ore-based OC in CLC. Testing showed that thermal and chemical effects were crucial to accurately determine the performance of ilmenite. For experiments conducted between 820°C and 970°C, the intermediate temperature of 895°C provided the best balance between high reactivity and material durability. Additionally, fuel gas concentration affected particle morphology evolution. Iron migration to the surface of the ilmenite particle was enhanced at higher fuel gas concentrations and resulted in reduced attrition rate, presumably due to sintering of the more highly reduced enriched iron phase on the particle surface. The laboratory jet and cyclonic attrition evaluation test units tested in this study can be used to investigate multiple parameters relevant for OC performance, including the degree of reduction, oxygen carrying capacity, attrition resistance, agglomeration, and optimum material operability conditions, as well as to extrapolate test data to determine OC replacement costs in a commercial CLC system.

37 INORGANIC, ORGANIC, PHYSICAL, AND ANALYTICAL CH↗

Test Report for the Regulatory Testing of the Welded Isotek-SFC-W-3 Special Form Capsule

Two prototypes the welded ISOTEK-SFC-W-3 special form capsules (SFCs) of the same design were evaluated to determine if the requirements of Title 49, Code of Federal Regulations (CFR), Part 173.469, Tests for Special Form Class 7 (Radioactive) Materials, were met. The results of the special form tests are documented in this test report. This report describes the special form testing activities performed on the two welded ISOTEK-SFC-W-3 capsules. The test units were designated as TU-1 and TU-2. TU-1 was subjected to leak testing, percussion testing, and impact testing. TU-1 was leak tested using the leak rate test specified in 49 CFR 173.469(a)(4)(i). The impact test on TU-1 was conducted according to the requirements in 49 CFR 173.469 (b)(1). The percussion test that was carried out on TU-1 was conducted in accordance with 49 CFR 173.469 (b)(2). TU-2 was subjected to a leak rate test as specified in 173.469(a)(4)(i) and a heat test as specified in 49 CFR 173.469(b)(4). Each test unit was leak tested before and after these respective tests. The leak rate tests performed were helium back-pressure tests and bubble tests, as specified in American National Standards Institute (ANSI) N14.5-2014. The measured leak rates were converted to standard condition leak rates as specified in American Society for Testing and Measurement (ASTM) E 493. The determined standardized leak rates obtained from the test and the calculations for all the test units met the requirements for special form certification. The testing was performed under the direction of the Oak Ridge National Laboratory (ORNL) Package Testing Program (PTP).

11 NUCLEAR FUEL CYCLE AND FUEL MATERIALS↗

Test Report for the Qualification Testing of the ORNL-SFC-W-1 Special Form Capsule

Three prototypes the ORNL-SFC-W-1 special form capsules (SFCs) of the same design were evaluated to determine if the requirements of Title 49, Code of Federal Regulations (CFR), Part 173.469, Tests for Special Form Class 7 (Radioactive) Materials, were met. The results of the special form tests are documented in this test report. This report describes the special form testing activities performed on the three ORNL-SFC-W-1 capsules. The test units were designated as TU-1, TU-2 and TU-3. TU-1 was subjected to leak testing, impact testing and percussion testing. TU-1 was leak tested using the leak rate test specified in 49 CFR 173.469(a)(4)(i). The impact test was conducted according to the requirements in 49 CFR 173.469 (b)(1). The percussion test that was carried out on TU-1 was conducted in accordance with 49 CFR 173.469 (b)(2). Both TU-2 and TU-3 were subjected to a leak rate test as specified in 173.469(a)(4)(i) and a heat test as specified in 49 CFR 173.469(b)(4). Each test unit was leak tested before and after these respective tests. The leak rate tests performed were helium back-pressure tests and bubble tests as specified in American National Standards Institute (ANSI) N14.5-2014.The measured leak rates were converted to standard condition leak rates as specified in American Society for Testing and Measurement (ASTM) E 493. The determined standardized leak rates obtained from the test and the calculations for all the test units met the requirements for special form certification. The testing was performed under the direction of the Oak Ridge National Laboratory (ORNL) Package Testing Program (PTP).

42 ENGINEERING↗

Final Scientific/Technical Report-FREE-piston Zero Emissions Refrigerator (FREEZER)

The FREE-piston Zero Emissions Refrigerator (FREEZER™) is a natural refrigerant Stirling-cycle cooler developed by AMSC in partnership with Heatcraft, targeted as a replacement refrigeration system for walk-in coolers or freezers found commonly in restaurants, convenience stores, supermarkets, etc. The FREEZER™, combined with a closed-loop CO2 heat-transfer system, had the goal to provides an efficient (Target COP = 1.4), zero ODP (Ozone Depletion Potential) and near zero GWP (Global Warming Potential) refrigeration solution with no synthetic, flammable, or toxic refrigerants. Other near zero GWP refrigeration systems do not exist at the scale and performance level of FREEZER. ARPA-E Continuation Funding enabled the design and fabrication of one Advanced Development Unit (ADU) cooler and two Field Test Unit (FTU) coolers, and a new revised Field Test Unit (new FTU). Heatcraft was to extensively test the various coolers at their facilities, which closely simulate real-world conditions. The original plan was to install and operate FREEZER FTUs alongside a traditional cooling solution at one or more customer locations to obtain data on direct performance comparisons with existing commercial refrigeration systems. Success in this FREEZER refinement and field-test project will establish the basis for a new class of environmentally friendly refrigeration systems that will revolutionize the industry. The hardware developed under the program is shown below in Figure 1. Five Stirling-cycle machines were built within the program, with a sixth cooler still under construction. The original DU and the ADU coolers met the performance target with a coefficient of performance (COP) of 1.2. The FTU was underperforming during the initial tuning of the free-piston Stirling cycle dynamics when there was a catastrophic failure of the fasteners on pressure boundary. This caused a pause to the program while the failure mechanism was investigated. The root cause was an inadequate flange design that allowed an excessive cyclic loading on the fasteners, leading to a fatigue failure. It was determined that existing FTU design could not be reasonably salvaged in a safe manner, and that fact, combined with the lower-than-expected performance of the new experimental heat exchanger modules lead to the design of the “new FTU” with a more conventional shell-and-tube heat exchanger design which should get close to the design target COP of 1.4, but have a higher overall machine cost. The program ran out of time before the fabrication of the new FTU was completed, but AMSC is still working on the cooler, with the majority of the parts fabricated, and hopes to have the unit under test sometime in early 2022, after which it will be shipped to Heatcraft for additional testing.

32 ENERGY CONSERVATION, CONSUMPTION, AND UTILIZATI↗