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 91 records · Page 5

Bench-Scale Development of a Novel Direct Air Capture Technology Using High-Capacity Structured Sorbents

The work performed under this project has resulted into development of a DAC technology utilizing a structured sorbent to capture CO 2 from ambient air with a key innovation of direct Joule heating of the sorbent for CO 2 desorption. A working SMA, fully integrated with an electrically resistive heating layer, high surface area support, and high CO 2 capacity sorbent coated onto a commercial ceramic monolithic substrate, was successfully developed and demonstrated over >200 adsorption-desorption cycles in a high-fidelity bench test unit directly using ambient air. A cordierite-based monolith was selected as a substrate owing to its high surface area, low bulk density, low heat capacity, and commercial availability. Reaction kinetics study conducted during this project led to development of a promoter for the base Na 2 CO 3 sorbent that could be incorporated into the sorbent to enhance to achieve higher CO 2 adsorption/desorption rates, greater working capacity, and reduced regeneration temperature. An accelerated aging study was conducted in a TGA to determine sorbent stability and no degradation in the sorbent performance was observed even after 250 adsorption-desorption cycles. An electrically resistive heating layer was developed with tunable electrical properties. The heating layer was coated onto the selected cordierite substrate. Aging studies performed showed the electrical properties and heating performance was stable after 500 heating and cooling cycles. The collective findings on the selected cordierite substrate, robust heating layer, promoter and sorbent selection were used to synthesize a full, 6”x6” SMA for bench-scale testing. The bench-scale DAC system was constructed to test full size SMAs using real ambient air for adsorption and joule heating for regeneration. After completing shakedown and commissioning of the 1 kg/day of CO 2 capacity DAC bench unit, an extended operation was performed to complete over 230 cycles with the full size SMA. This testing showed no observable degradation in sorbent performance. A detailed process model, TEA and LCA were developed for a conceptual 100,000 TPY CO 2 removal DAC facility. The LCA results show the net CO 2 e emissions from the DAC system are highly dependent on the electricity source. All other factors, including SMA manufacturing, materials for facility enclosure, etc., are minor cost contributors compared to the energy consumption required for CO 2 removal. With the successful development and validation of the SMA for the sustained performance for CO 2 removal from ambient air with joule heated regeneration in this project, a fully integrated 1 TPY bench-scale DAC system is currently in development with the support of DOE/FECM (DE-FE0032243). The project objective is to demonstrate the engineering design of the DAC system to produce a continuous, high purity CO 2 stream from ambient air. This project will address and validate key engineering features of the DAC system including the gas sealing mechanism and panels, enclosure and air contactor design, and automation sequence to achieve continuous CO 2 production.

42 ENGINEERING↗

Ground Motion Inputs for the Seismic Shake Table Test

Currently, spent nuclear fuel (SNF) is stored in on-site independent spent-fuel storage installations (ISFSIs) at seventythree (73) nuclear power plants (NPPs) in the US. Because a site for geologic repository for permanent disposal of SNF has not been constructed, the SNF will remain in dry storage significantly longer than planned. During this time, the ISFSIs, and potentially consolidated storage facilities, will experience earthquakes of different magnitudes. The dry storage systems are designed and licensed to withstand large seismic loads. When dry storage systems experience seismic loads, there are little data on the response of SNF assemblies contained within them. The Spent Fuel Waste Disposition (SFWD) program is planning to conduct a full-scale seismic shake table test to close the gap related to the seismic loads on the fuel assemblies in dry storage systems. This test will allow for quantifying the strains and accelerations on surrogate fuel assembly hardware and cladding during earthquakes of different magnitudes and frequency content. The main component of the test unit will be the full-scale NUHOMS 32 PTH2 dry storage canister. The canister will be loaded with three surrogate fuel assemblies and twenty-nine dummy assemblies. Two dry storage configurations will be tested – horizontal and vertical above-ground concrete overpacks. These configurations cover 91% of the current dry storage configurations. The major input into the shake table test are the seismic excitations or the earthquake ground motions – acceleration time histories in two horizontal and one vertical direction that will be applied to the shake table surface during the tests. The shake table surface represents the top of the concrete pad on which a dry storage system is placed. The goal of the ground motion task is to develop the ground motions that would be representative of the range of seismotectonic and other conditions that any site in the Western US (WUS) or Central Eastern US (CEUS) might entail. This task is challenging because of the large number of the ISFSI sites, variety of seismotectonic and site conditions, and effects that soil amplification, soil-structure interaction, and pad flexibility may have on the ground motions.

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗

Development of Control System Functional Capabilities within the IES Plug-and-Play Simulation Environment

The concept of an Integrated Energy System (IES) is meant to combine different energy technologies in synergistic ways to achieve a more secure and economical energy supply. The RAVEN-based HYBRID framework is used to find the optimal installed capacity and the optimal economical dispatch of each component of the IES. A new RAVEN (Risk Analysis Virtual ENvironment) plugin for grid and capacity optimization (HERON) has been developed for optimizing the production variables of the IES given the demand profile. Currently, only the limits that affect the production variables and their corresponding time rates of change are considered (explicit constraints). However, other variables are additionally subject to constraints, but the associated limits are not accounted for (implicit constraints). In particular, for the power dispatch problem, the optimization algorithm takes into account the limits on the electrical power output and the corresponding hourly power variations but does not consider other constraints on process variables whose response effects the service life of the IES. This report describes a scheme that allows accounting for implicit constraints without increasing the size of the optimization problem. The Reference Governor (RG) algorithm is traditionally used for enforcing state and control constraints by modifying the set-point trajectories supplied to the feedback regulators. In our application, the RG is coupled within an iterative loop with the HERON-power dispatcher to generate optimal trajectories that ensure the operational constraints are met. A data-driven procedure to derive a representation of the dynamics of the controlled system was developed. First, the variables that represented the state of the system are selected (PCA-based approach), and then state-space representation matrices are derived from the collected measurements (DMDc algorithm). A preliminary version of the developed workflow based on Linear Time Invariant matrices was assessed by adopting a two-unit test case. More sophisticated versions of this workflow foreseeing the on-line derivation of system matrices will be deployed in FY 2021. Finally, a “plug-and-play” library of controllers and state observers was developed in Dymola. Some aspects of the current configuration of the IES unit components, e.g., the encapsulation of the control schemes into dedicated blocks, are consistent with the “plug-and-play” philosophy. Other features, e.g., the system buses collecting the input and the output variables, are not. For this reason, once listed and described the limits of the current configuration, necessary modifications to the plant model interface are presented. As a test-case, the interfaces of the SES model in the RAVEN-based HYBRID framework were reworked accordingly, and two different control schemes were applied to the same plant model.

24 POWER TRANSMISSION AND DISTRIBUTION↗

Static characterization of a highly optimized streak tube design incorporating a steering slot anode and an aberration-corrected Einzel lens

The BHx streak tube, under development at the Laboratory for Laser Energetics, incorporates a series of novel electron-optics elements to enable high fidelity measurements for high-energy-density physics experiments. The system is engineered to support a 25-mm active photocathode region compatible with sub-picosecond temporal resolution and with 70% internal photoelectron throughput. It exhibits negligible geometric distortion on a flat output screen, making it well suited for variety of measurements, such as ultrafast x-ray spectroscopy. Here, this paper presents characterization data from a prototype unit tested with an ultraviolet laser in a static deflection (non-swept) mode and shows good agreement with the predictions from numerical modeling, including focusing performance and geometric distortion measurements. Key design elements have been demonstrated and de-risked, laying the foundation for dynamic deflection testing. The anticipated improvements in data fidelity are expected to impact the fields as diverse as inertial confinement fusion, laboratory astrophysics, and materials science.

High energy density physics↗

pnnl/OpenCGRA

OpenCGRA is an open-source framework for modeling, testing, and evaluating CGRAs. The first open-source integrated framework able to support the full top-to-bottom design flow for specializing and implementing CGRAs: modeling at different abstraction levels (functional level, cycle level, register-transfer level) with compiler support, verification at different granularities (unit testing, integration testing, property-based testing), simulation, generation of synthesizable Verilog, and characterization (area, power, and timing).

Cheng, Tan↗

Carbon Capture utilizing Hybrids: Membrane and Liquefaction

Air Liquide is developing a next generation polyimide membrane material (PI-2) for application in our cold membrane hybrid process for CO 2 capture. Combining the PI-2 membrane operation with an integrated CO 2 compression and purification unit significantly reduces the overall cost of CO 2 capture. The current work is aimed at developing the PI-2 material to a commercial scale, then validating its performance under real flue gas conditions. Previous work showed promising results for the cold membrane hybrid process utilizing the commercially available Air Liquide PI-1 membrane bundles. The cold membrane technology was demonstrated at the National Carbon Capture Center (NCCC) with a 0.3 MWe field-test unit incorporating 12” diameter PI-1 commercial bundle. The cost of 90% CO 2 capture from a 550 MWe net coal power plant was estimated to be between 40 and $45/tonne. The novel PI-2 membrane was tested at a smaller scale (1” modules) and exhibited up to 10 times the CO 2 permeance and similar CO 2 /N 2 selectivity as the PI-1 membrane. This corresponds to a potential cost reduction of $3/tonne for CO 2 capture. The current project seeks to develop this next generation PI-2 material to a technology readiness level of 5 via manufacturing scale-up and testing with 600 - 1,000 Nm3/h of real flue gas, 0.2 - 0.3 MWe equivalents. 6” diameter commercial membrane bundles have been fabricated and tested at NCCC. These bundles met the project success criteria with a productivity of over 640 Nm3/hr and permeate purity in excess of 60%, at 90% CO 2 recovery. An advanced bundle formation technique, which further lowers the bundle cost and CO 2 capture cost, is also being developed under the scope of this project. Further manufacturing scale-up is underway to verify the technique. A final techno-economic analysis (TEA) for a 550 MWe net power plant has been initiated.

Hasse, Dave↗

Community Geothermal: Final Thermal Conductivity Test Report and Data Logs - Carbondale, CO

Provided here are a final thermal conductivity test report, a drilling log, and a heat rejection log from Carbondale, CO. Also attached is a report made before drilling, which contains predictions on the hydrogeologic conditions of the drill site. The forty-eight (48.9) hour in-situ thermal conductivity test was performed on the 28th through the 30th, of November 2023. The test was performed at the borehole drilled on November 16th through the 20th, at the 3rd Street Center at 520 S. 3rd, Street in Carbondale, Colorado. Testing was done with a certified Ewbank portable test unit.

15 GEOTHERMAL ENERGY↗

KBKit: A Python Toolkit for Kirkwood–Buff Theory from Molecular Dynamics

Thermodynamic properties of liquid mixtures govern processes that range from drug delivery to energy storage, yet extracting these properties from molecular simulations remains challenging. Kirkwood–Buff (KB) theory offers a rigorous route by linking microscopic pair distribution functions to macroscopic free energies, but practical use of the theory has been hindered by two obstacles: (i) the long simulations needed to obtain well-converged Kirkwood-Buff integrals (KBIs) and (ii) the specialized corrections required to translate finite-size data to the thermodynamic limit. $\texttt{KBKit}$ is an open-source Python package that removes these barriers. It automatically computes KBIs and derived thermodynamic quantities from GROMACS input files, applies state-of-the-art finite-size corrections, and provides built-in diagnostic tools to quantify statistical uncertainty. Written with modern software-engineering practices—continuous integration, extensive unit testing, and thorough documentation—$\texttt{KBKit}$ is both reliable and easy to extend. By condensing complex KBI analysis into a few intuitive commands, $\texttt{KBKit}$ enables researchers to incorporate KB theory into routine simulation workflows and accelerate the discovery of solution-phase thermodynamics.

37 INORGANIC, ORGANIC, PHYSICAL, AND ANALYTICAL CH↗

Experiences with SYCL on AMD GPUs with Kokkos

With the recent diversification of the hardware landscape in the high-performance computing (HPC) community, performance-portability solutions are becoming more and more important. One of the most popular choices is Kokkos, which recently became a Linux Foundation project. Most of its development is supported by the US Department of Energy and the French Alternative Energies and Atomic Energy Commission. Kokkos is implemented as a C++ library with multiple backends to support CPUs as well as various GPU architectures. These backends include OpenMP, CUDA, HIP, and also SCYL. This approach enables users to leverage the preferred vendor toolchain for the respective platform (e.g. CUDA, ROCm, OneAPI). The SYCL backend is used to target Intel GPUs, in particular to support the Aurora exascale supercomputer. However, SYCL itself also offers a large degree of portability, and in fact Kokkos’ CI for SYCL has been running on NVIDIA hardware due to a lack of access to Intel GPUs. In this report, we describe our experience with using Kokkos SYCL backend on AMD GPUs targeting the Frontier supercomputer at Oak Ridge National Laboratory. The two major SYCL implementations are DPC++ and AdaptiveCpp. While the Kokkos SYCL backend has been implemented using the former, the latter was the first implementation to target AMD GPUs. We will discuss the experience with both of these SYCL implementations in terms of functionality and performance. Using Kokkos to evaluate SYCL toolchains has a number of benefits. Kokkos’ use of SYCL is fairly complex, exercising features such as graphs, relocatable device functions, atomics – including for non-arithmetic types, as well as pinned and page migratable memory allocations. Kokkos also needs to implement capabilities such as Kokkos’ hierarchical parallelism that are not a straight-forward mapping to SYCL capabilities. Furthermore, a large number of libraries and applications that represent diverse use cases are implemented in Kokkos, providing readily available test cases for a toolchain evaluation. Preliminary results show that support for AMD GPUs in DPC++ is much less mature than for NVIDIA GPUs or Intel GPUs. While the situation has improved significantly over the last year, we still encounter many runtime failures, dispatching problems, and code generation issues. With AdaptiveCpp the challenges arise even earlier in the evaluation process. Since Kokkos’ SYCL implementation is largely focused on supporting Intel GPUs, we opted to leverage SYCL extensions which are available in DPC++ but not in AdaptiveCpp. Furthermore, AdaptiveCpp appears to be less conformant with the SYCL2020 standard which Kokkos relies on. In some cases, we are able to work around the lack of feature support, in other cases we have to disable certain Kokkos capabilities to evaluate the toolchain. Our evaluation will leverage Kokkos’ unit tests to establish basic functionality and feature completeness. We then use simple benchmarks for components of a CG implementation as a measure of usability and performance of the SYCL toolchains.

97 MATHEMATICS AND COMPUTING↗

Automated Label‐Free Assay for Viral Detection and Inhibitor Screening via Biomembrane‐Functionalized Microelectrode Arrays

Most virus infection assays have indirect readout such as virus number following entry (e.g., PCR, cell lysis). While effective, these technologies are labor‐intensive, require specialized environments (e.g., sterile or RNA‐free), and detect later‐stage viral events like lysis or cell death, lacking sensitivity to early fusion events. To address these limitations, we present biologically relevant 2D membrane materials, host‐cell‐derived supported lipid bilayers (hcd‐SLBs), integrated with organic microelectrode arrays (OMEAs) for detection of severe acute respiratory syndrome coronavirus 2 (SARS‐CoV‐2) fusion. By overexpressing angiotensin‐converting enzyme 2 (ACE2) receptors on the native membranes, the platform functions as a viral sensor capable of detecting virus pseudo particles (VPPs) through the late pathway. Additionally, hcd‐SLBs extracted from human lung epithelium expressing native ACE2 detect fusion events through the early pathway. The platform's utility as a drug‐screening tool is demonstrated by testing antibodies targeting either the ACE2 on the host membrane or the viral spike (S) proteins. To enhance the throughput, microfluidics are integrated for automation and OMEAs are incorporated within each channel, miniaturizing the testing units. This system supports high‐throughput data generation, automation, and scalability, providing an efficient platform for viral fusion detection that advances the study of pathogen‐host interactions and accelerates antiviral drug discovery.

Biology↗

Code Verification and Solution Verification framework in pin-resolved neutron transport code MPACT

Program verification in scientific computing encompasses the application of formal and mathematical techniques to a scientific computing code for its credibility, accuracy, and validity. Code Verification identifies bugs and performance issues in the software development stage. Solution Verification assesses the applicability of the code and the accuracy of the solution to problems of interest. Both activities utilize application cases and quantify the error against prescribed acceptance criteria. However, simply executing more application cases does not guarantee stronger or more comprehensive credibility. Here, we establish a verification framework that involves Code Verification and Solution Verification, both of which work together such that the overarching goal of “converge to the correct answer for the intended application” can be reasonably inferred. The application of such a verification framework is demonstrated using the pin-resolved neutron transport code MPACT, where standard unit tests and regression tests are covered, and where the Method of Exact Solutions and the Method of Manufactured Solutions are successfully used. Additionally, the applicability of Method of Manufactured Solutions is extended to the OECD/NEA C5G7 benchmark problems of practical material and geometric configurations. Solution Verification activities are demonstrated on a practical hierarchy of application models of increasing complexity ranging from 2D pin cell problems to 3D assembly problems. The convergence behavior and rate of convergence with respect to each individual variable are studied and provided. This framework can be adapted broadly to other fields involving scientific computing codes.

97 MATHEMATICS AND COMPUTING↗

Method for separation of coal conversion products from oxygen carriers

Complete fuel conversion represents an important, but unresolved, aspect in Chemical Looping Combustion (CLC). Different system design approaches are currently being investigated to maximize carbon conversion in the fuel reactor. To achieve greater than ninety percent conversion of the fuel in “fluid-bed” type reducers will require that CLC systems be equipped with additional process equipment to ensure that unburnt fuel leaving the reducer is minimized. This paper presents results obtained from a laboratory test system simulating a char stripper design comprising two components; one for separating large char particles, based on material density differentials, and another for removing small char particles from the oxygen carrier (OC) leaving the reducer, based on elutriation. A test unit was designed, built and operated to identify optimum conditions for separating OC material from unburnt solid fuel – char. The results obtained are necessary for designing a high temperature unit operated at temperatures expected within a CLC system.

01 COAL, LIGNITE, AND PEAT↗

A new Software Training Model at Belle II

The physics output of modern experimental HEP collaborations hinges not only on the quality of its software but also on the ability of the collaborators to make the best possible use of it. With the COVID-19 pandemic making in-person training impossible, the training paradigm at Belle II was shifted from periodic workshops towards guided self-study. To that end, the study material was rebuilt from scratch as a series of modular and hands-on lessons tightly integrated with the software documentation using Sphinx. Each lesson contains multiple exercises that are supplemented with hints and complete solutions. Rather than duplicating information, students are systematically taught to work with the technical reference documentation to find the important sections for themselves. Unit tests ensure that all examples work with different software versions, and feedback buttons make it easy to submit comments for improvements.

72 PHYSICS OF ELEMENTARY PARTICLES AND FIELDS↗

ExoMars Mars Organic Molecule Analyzer (MOMA) Laser Desorption/Ionization Mass Spectrometry (LDI-MS) Analysis of Phototrophic Communities from a Silica-Depositing Hot Spring in Yellowstone National Park, USA

The Mars Organic Molecule Analyzer (MOMA) is a key scientific instrument on the ExoMars Rover mission. MOMA is designed to detect and characterize organic compounds, over a wide range of volatility and molecular weight, in samples obtained from up to two meters below the martian surface. Thorough analog sample studies are required to best prepare to interpret MOMA data collected on Mars. We present here the MOMA characterization of Mars analog samples collected from an alkaline silica depositing hot spring in Yellowstone National Park, WY, USA. These samples contain microbial streamer communities composed primarily of oxygenic and anoxygenic phototrophs. Additionally, in a study focused on detection of key classes of nonvolatile organics, samples of microbial streamers and their total lipid extract (TLE) have been measured on a MOMA Engineering Test Unit (ETU) instrument using its laser desorption/ionization mass spectrometry (LDI-MS) mode. MOMA LDI-MS detected a variety of lipids and pigments in the TLE sample. Species such as chlorophyll a were also detected from the streamer sample with the help of mass isolation. The results add to the LDI-MS sample characterization database, as well as demonstrate the benefit of using mass isolation on the MOMA instrument to reveal the presence of complex organics, and potential biomarkers, preserved in a natural sample, providing guidance to the in situ analysis of surface samples during Mars operations.

59 BASIC BIOLOGICAL SCIENCES↗

funnel v0.0.1

fcompare is a software package that applies for comparing two curves generated from datasets in csv format. A funnel is generated around the reference curve and the other curve is checked to verify if it is inside the funnel. The funnel can be reshaped by setting a tolerance. One potential application is to verify the development of building HVAC control sequence, in which it compares data curves from real operation with data curves from simulation using developed control sequences, to verify if the developed control sequences have been implemented correctly. In addition, it can be used for Modelica library developer to do the unit test that verifies new model developments.

Wetter, Michael↗

BuildingsPy

BuildingsPy is a Python package that can be used to run Modelica simulations and to process Modelica output files. It can also be used to run unit tests as part of the development of LBNL's Modelica Buildings library. The package provides functions to extract data series from the output file for further use in the python packages matplotlib for plotting and SciPy for scientific computing.

Wetter, Michael↗

Multiscale Solar Water Heating (MSWH) v1.0

The main purpose of the software is to model energy use for individual and community scale solar water heating projects in California. Usage The user provides a climate zone for a project, an occupancy for each household and whether any of the occupants stay at home during the day. The software can then load a set of example California specific hourly domestic hot water end-use load profiles from a database, size and locate the systems. The user can now simulate the hourly system performance over a period of one representative year, visualize and explore the simulation results using time-series plots for temperature profiles, heat and power rates, or look at annual summaries. Similarly the user can model individual household solar water heating projects and base case conventional gas tank water heater systems, such that the results can be compared between the individual, community and base case systems. This functionality is readily available through a Jupyter notebook and a Django web framework, depending on what level of detail the user would like to access. Features - Python module to calculate solar irradiation on a tilted surface - Python module with simplified component models for Converter (solar collectors, electric resistance heater, gas burner, photovoltaic panels, heat pump), Storage (solar thermal tank, heat pump thermal tank, conventional gas tank water heater), and Distribution (distribution and solar pump, piping losses) components - Python module with preconfigured system simulation models for: base case gas tank water heaters, solar thermal water heaters (solar collector feeding a storage tank, with a tankeless gas water heater backup in a new installation cases and a base case gas tank water heater in a retrofit case) and solar electric water heaters (heat pump storage tank with an electric resistance backup) - Database with component performance parameters, California specific weather data and domestic hot water end-use load profiles - Django web framework to configure project, parametrize components and run simulation from a web browser The package contains functional and unit tests and it is structured so that it can be extended with further technologies, applications and locations.

Grahovac, Milica↗

ExactPack

A new version of the verification tool ExactPack, 1.7.0, includes three new solvers: A Radshocks solver, Riemann solver and an Elastic-Plastic Piston problem solver. The code has been refactored to work with Python 3. All Fortran code has been removed and solvers implemented in Fortran have been re-implemented in Python where necessary. All unit tests have been converted to use the Pytest format and all the GUI, CLI and verification analysis code has been removed.

Thrussell, Jasper↗