Search NASA⌕ Search

SEARCH · Search NASA

Results for “scripting”

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 307 records · Page 17

Calculation of the cross and auto power spectral densities for low neutron counting from pulse mode detectors

Here, this report introduces a methodology to calculate the prompt neutron decay constant of a subcritical assembly from the cross and auto power spectral densities of detectors operating in pulse mode when the neutron counting is low. The pulse operation mode allows the easy discrimination of the gamma contribution to the detector signal by the pulse height or shape techniques. The methodology is based on a MATLAB script that allows to change arbitrary parameters at any time after the experiment is performed. This technique requires list mode data and is much more flexible than programming the digital acquisition system because in the latter case the arbitrary parameters are set prior to the experiment and cannot be changed any longer after the experiment is performed. The MATLAB script processes all the detectors timestamps from several thousand pulses of the particle accelerator and redistributes them into a time interval that spreads over only 10 particle accelerator pulses. This pulses collapsing procedure has been performed because of the low neutron counting.

46 INSTRUMENTATION RELATED TO NUCLEAR SCIENCE AND ↗

SAXS Assistant: Automated SAXS analysis for structural discovery in biologics and polymeric nanoparticles

Small-angle x-ray scattering (SAXS) is a powerful technique for assessing macromolecular structure. High-throughput SAXS is limited by the time-consuming and, at times, subjective nature of SAXS data interpretation. Here, we present SAXS Assistant, a Python-based script that streamlines SAXS data analysis to extract features for machine learning (ML) and key structural parameters, including the Guinier radius of gyration (R g ), pair distance distribution function (PDDF)-derived R g , maximum particle dimension (D max ), and Kratky plots. The script builds upon BioXTAS RAW and validates reliability via Guinier/PDDF R g agreement, an important indicator of well-measured data sets. For assistance in D max estimation, a multilayer perceptron regressor was trained with 1940 data files from the Small Angle Scattering Biological Data Bank. The model achieved a test set performance R 2 = 0.90 and mean absolute error = 11.7 Å. Training exclusively with experimental data translates analyses from researchers, including experts in the field, to the ML model, which helps assess D max estimations from PDDF. Gaussian mixture model clustering was implemented to classify profiles into structural classes based on entries in the Small Angle Scattering Biological Data Bank. Users may therefore assess the similarity between experimental samples and known biomolecular shapes within the mapped repository entries. This probabilistic clustering aids in quantifying information from Kratky and generating shape-descriptive features. SAXS Assistant accelerates SAXS data analysis through enforced quality control, ML-ready outputs, and flags for low-confidence results. In addition to providing the ability to analyze large data sets at high throughput, this tool is versatile and may serve researchers in both biological and synthetic polymer research fields.

36 MATERIALS SCIENCE↗

Jas4pp — A data-analysis framework for physics and detector studies

This paper describes the Jas4pp framework for exploring physics cases and for detector-performance studies of future particle collision experiments. Jas4pp is a multi-platform Java program for numeric calculations, scientific visualization in 2D and 3D, storing data in various file formats and displaying collision events and detector geometries. It also includes complex data-analysis algorithms for function minimization, regression analysis, event reconstruction (such as jet reconstruction), limit settings and other libraries widely used in particle physics. The framework can be used with several scripting languages, such as Python/Jython, Groovy and JShell. Several benchmark tests discussed in the paper illustrate significant improvements in the performance of the Groovy and JShell scripting languages compared to the standard Python implementation in C. Furthermore, the improvements for numeric computations in Java are attributed to recent enhancements in the Java Virtual Machine.

97 MATHEMATICS AND COMPUTING↗

ENDFtk: A robust tool for reading and writing ENDF-formatted nuclear data

ENDFtk is a recently developed C++ and Python interface to interact with ENDF-6 formatted nuclear data files. It provides a robust and complete interface, allowing the reading and writing of all formats currently part of the ENDF-6 formats manual, as well as some non-ENDF formats used by the NJOY processing code. It provides an interface that mimics the names in the ENDF-6 formats manual as well as an equivalent interface using human-readable attribute names. It is robust and powerful enogh for nuclear data experts to develop complex applications, while also simple enough to be used non-experts to retrieve and manipulate evaluated nuclear data. ENDFtk offers the ability to easily interrogate and manipulate data either in large-scale code projects or in simple Python scripts. Here, in this paper, a brief overview of the interface is given, as well as more substantial examples demonstrating plotting simple data, interacting with more complex data, and writing new data to files. ENDFtk is open source and available for download via GitHub (https://github.com/njoy/ENDFtk).

97 MATHEMATICS AND COMPUTING↗

πScope: Python based scientific workbench with MDSplus data visualization tool

In this work, a newly developed python based scientific data analysis and visualization tool, πScope (http://piscope.psfc.mit.edu), is reported. The primary motivation is 1) to provide an updated tool to browse the MDSplus data beyond existing dwscope/jScope and 2) to realize a universal foundation to construct interface tools to perform computer modeling from experimental data. To visualize MDSplus data, πScope has many features including overplotting different signals and discharges, generating various plot types (line, contour, image, etc.), performing in-panel data analysis using python scripts, and producing publication quality graphics. The logic to generate multi-panel plots is designed to be backward compatible with dwscope, enabling smooth migration for users. πScope uses multi-threading in data loading, and is easy to modify and expand due to its object-oriented design. Furthermore, A user can access the data structure both from a GUI and a script, enabling relatively complex data analysis workflow built quickly on πScope.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

A parametric finite element study for determining burst strength of thin and thick-walled pressure vessels

To accurately predict the burst strength of both thin and thick-walled pressure vessels (PVs), a parametric study of PV burst strength was performed for a wide range of vessel geometries and materials using elastic-plastic finite element analysis (FEA). A valid FEA model was established through a detailed study of 2D versus 3D FEA models, the critical stress failure criterion versus the limit load criteria, and the thick-wall effect on the FEA simulations. Here, the results show that the stresses and strains at the mean diameter, rather than outside diameter, determines a more accurate burst strength for both thin and thick-walled PVs. On this basis, a parametrized FEA script using the ABAQUS Python application programming interface (API) was used to create a large database of PV burst strengths for a variety of vessel geometries and materials, demonstrating that Python scripting is a powerful technique for performing parametric studies or generating large databases. From the FEA results, using the regression method, a new burst pressure model was developed as a function of the vessel geometry (D/t ratio) and material properties (UTS and n). As validated by a large number of full-scale burst test data, the proposed burst model can very accurately predict the burst strength for both thin and thick-walled PVs.

42 ENGINEERING↗

Planning Hybrid Intensity Modulated Radiation Therapy for Whole-breast Irradiation

Purpose: To test tangential and not-tangential hybrid intensity modulated radiation therapy (IMRT) for whole-breast irradiation. Methods and Materials: Seventy-eight (36 right-, 42 left-) breast patients were randomly selected. Hybrid IMRT was performed by direct aperture optimization. A semiautomated method for planning hybrid IMRT was implemented using Pinnacle scripts. A plan optimization volume (POV), defined as the portion of the planning target volume covered by the open beams, was used as the target objective during inverse planning. Treatment goals were to prescribe a minimum dose of 47.5 Gy to greater than 90% of the POV and to minimize the POV and/or normal tissue receiving a dose greater than 107%. When treatment goals were not achieved by using a 4-field technique (2 conventional open plus 2 IMRT tangents), a 6-field technique was applied, adding 2 non tangential (anterior-oblique) IMRT beams. Results: Using scripts, manual procedures were minimized (choice of optimal beam angle, setting monitor units for open tangentials, and POV definition). Treatment goals were achieved by using the 4-field technique in 61 of 78 (78%) patients. The 6-field technique was applied in the remaining 17 of 78 (22%) patients, allowing for significantly better achievement of goals, at the expense of an increase of low-dose ({approx}5 Gy) distribution in the contralateral tissue, heart, and lungs but with no significant increase of higher doses ({approx}20 Gy) in heart and lungs. The mean monitor unit contribution to IMRT beams was significantly greater (18.7% vs 9.9%) in the group of patients who required 6-field procedure. Conclusions: Because hybrid IMRT can be performed semiautomatically, it can be planned for a large number of patients with little impact on human or departmental resources, promoting it as the standard practice for whole-breast irradiation.

62 RADIOLOGY AND NUCLEAR MEDICINE↗

Microstructural study of transient liquid phase bonded DD98 and K465 superalloys at high temperature

Microstructure of a transient liquid phase (TLP) bonded joint between single crystal DD98 and polycrystalline K465 superalloys was investigated by scanning electron microscopy, transmission electron microscopy and X-ray diffraction techniques. After bonding at 1190 deg. C for 2 h, many phases formed in the centerline of the bonding zone due to an incompletely solidified liquid interlayer. There are script-like, tree-like and blocky compounds besides solid solution {gamma} phase in this region. The script-like phase is CrB boride that is rich in Cr, the tree-like compound rich in Ni is M{sub 23}B{sub 6} with FCC structure, and the blocky phase enriched in Ti, Ta, and Nb, is MC carbide that resulted from the interdiffusion of C atoms between dissimilar base metals. After TLP bonding, many blocky and fine M{sub 6}C particles rich in Cr and W appeared in the diffusion zone of the K465 side. A number of blocky and platelet M{sub 3}B{sub 2} borides rich in W, Cr and Mo precipitated in the diffusion zone of the DD98 side. - Research Highlights: {yields} DD98 and K465 alloy was TLP bonded. {yields} The microstructure changes of different parts were studied. {yields} CrB, M{sub 23}B{sub 6} and MC formed in the bonding zone. {yields} M{sub 6}C appeared in diffusion zone of K465 side and M{sub 3}B{sub 2} existed in diffusion zone of DD98 side.

36 MATERIALS SCIENCE↗

Microstructure characterisation and mechanical properties of a functionally-graded NbC/high chromium white cast iron composite

Highlights: • A functionally-graded NbC – white cast iron composite was centrifugally cast. • Primary NbC particle distribution follows Stokes' Law, with 30 vol% at the surface. • Presence of primary NbC particles refined eutectic M{sub 7}C{sub 3} morphology at the surface. • The surface layer was hard and wear resistant, while the interior was tougher. • NbC and M{sub 7}C{sub 3} carbides form independent eutectic structures within the interior. - Abstract: A functionally graded NbC – high chromium white cast iron composite was successfully fabricated by centrifugal casting for high wear applications. The migration of primary NbC particles to the outer periphery, as predicted by Stokes' law, resulted in an extremely hard outer layer at the surface of a softer bulk material. Microstructural characterisation showed that both the volume fraction and the morphology of the carbides varies along the thickness of the specimen. At the outer surface, the NbC was present as primary carbides while Chinese-script NbC was found in the bulk of the material. Hardness, sliding wear and three-point bending tests confirmed that the outer layer was harder and more wear resistant than the rest of the material, which was correspondingly tougher. The study of the fracture surface of the specimens showed that there is a strong bond between NbC and the matrix such that delamination between the reinforcements and the matrix did not occur during fracture. If Chinese-script NbC can be reduced or prevented in the bulk material, further improvements to toughness could be achieved.

36 MATERIALS SCIENCE↗

Effect of cooling rate and Co content on the formation of Fe-rich intermetallics in hypoeutectic Al7Si0.3Mg alloy with 0.5%Fe

Highlights: • Co element is firstly used in Al-0.7Si-0.3Mg alloy with 0.5 wt.% Fe to modify the morphology of Fe-rich intermetallics. • 0.75 wt.% Co addition is sufficient to suppress the undesirable effect of acicular Fe-rich intermetallics. • Co/Fe ratio determine the morphology and crystal structure of intermetallics and the optical ratio is in the range of 1-2. - Abstract: The effects of cooling rate and Co addition (0–1 wt%) on the Fe-rich intermetallics in Al7Si0.3Mg alloy with 0.5%Fe were studied in this study. The evolution of microstructure and crystal structure have been characterized by metallographic and transmission electron microscopy. The results indicated that higher cooling rate and Co addition were beneficial to modify the morphology and decrease the size of Fe-rich intermetallics. At the particular cooling rate of 2 k/s, 0.75 wt% Co was proved to be sufficient to improving the morphology of intermetallics from harmful acicular β-Al5FeSi phase to Chinese script or skeleton α-Al15(Fe,Co)3Si2 phase. Above all, the Co/Fe ratio in intermetallics was found to be an importance parameter in determining the morphology and crystal structure of (Fe,Co)-rich intermetallics. With the ratio increased from 0 to 3, the morphology changed gradually: acicular shape→short rod-like shape→Chinese script/skeleton like shape→rod-like shape. And the crystal structure of (Fe,Co)-rich intermetallics evolved from Monoclinic→Hexagonal→Simple cubic→Body-centered structure correspondingly. The optimal ratio of Co to Fe in intermetallics, which has Chinese script with hexagonal structure, was in the range of 1–2.

36 MATERIALS SCIENCE↗

A Hybrid Multiscale Framework for Subsurface Flow and Transport Simulations

Extensive research efforts have been invested in reducing model errors to improve the predictive ability of biogeochemical earth and environmental system simulators, with applications ranging from contaminant transport and remediation to impacts of biogeochemical elemental cycling (e.g., carbon and nitrogen) on local ecosystems and regional to global climate. While the bulk of this research has focused on improving model parameterizations in the face of observational limitations, the more challenging type of model error/uncertainty to identify and quantify is model structural error which arises from incorrect mathematical representations of (or failure to consider) important physical, chemical, or biological processes, properties, or system states in model formulations. While improved process understanding can be achieved through scientific study, such understanding is usually developed at small scales. Process-based numerical models are typically designed for a particular characteristic length and time scale. For application-relevant scales, it is generally necessary to introduce approximations and empirical parameterizations to describe complex systems or processes. This single-scale approach has been the best available to date because of limited understanding of process coupling combined with practical limitations on system characterization and computation. While computational power is increasing significantly and our understanding of biological and environmental processes at fundamental scales is accelerating, using this information to advance our knowledge of the larger system behavior requires the development of multiscale simulators. Accordingly there has been much recent interest in novel multiscale methods in which microscale and macroscale models are explicitly coupled in a single hybrid multiscale simulation. A limited number of hybrid multiscale simulations have been developed for biogeochemical earth systems, but they mostly utilize application-specific and sometimes ad-hoc approaches for model coupling. We are developing a generalized approach to hierarchical model coupling designed for high-performance computational systems, based on the Swift computing workflow framework. In this presentation we will describe the generalized approach and provide two use cases: 1) simulation of a mixing-controlled biogeochemical reaction coupling pore- and continuum-scale models, and 2) simulation of biogeochemical impacts of groundwater – river water interactions coupling fine- and coarse-grid model representations. This generalized framework can be customized for use with any pair of linked models (microscale and macroscale) with minimal intrusiveness to the at-scale simulators. It combines a set of python scripts with the Swift workflow environment to execute a complex multiscale simulation utilizing an approach similar to the well-known Heterogeneous Multiscale Method. User customization is facilitated through user-provided input and output file templates and processing function scripts, and execution within a high-performance computing environment is handled by Swift, such that minimal to no user modification of at-scale codes is required.

54 ENVIRONMENTAL SCIENCES↗

Renewable energy analysis in indigenous communities using bottom-up demand prediction

This paper provides a methodology for the holistic analysis of hybrid renewable energy systems in rural communities. Electric demand is an important component for modeling and analysis of renewable energy systems. Typically, electric demand data is not available due to the internal privacy policies of utility providers. Therefore, this study proposes the use of bottom-up approaches for the development of the electric demand profile, considering the general homogeneity of residential and commercial buildings in rural communities. As a test case, this study develops the electric demand profile and investigates the technical and environmental feasibility of a hybrid renewable energy system for the New Town community on the Fort Berthold Indian Reservation (FBIR) in North Dakota. This study conducts the hybrid renewable energy system’s analysis by developing scripts in the LK scripting language and integrating System Advisor Model software’s open-source modules for modeling of renewable energy systems. Here, the results for the validation testbed of this study show that hybrid renewable resources have higher ratios of energy used for self-consumption to the total energy generated compared to stand-alone wind and PV farms.

29 ENERGY PLANNING, POLICY, AND ECONOMY↗

Elasto-viscoplastic fast Fourier transform modeling framework for assessing microstructural effects on stress intensity factors characterizing fracture toughness

A large-strain elasto-viscoplastic fast Fourier transform (LS-EVPFFT) model with non-periodic (NP) velocity-based boundary conditions is adapted to simulate the sensitivity of stress intensity factors on microstructure for 304L stainless steel. The material was characterized via electron backscattered diffraction (EBSD) serial-sectioning to obtain a measured 3-D microstructural cell to perform simulations. The NP-LS-EVPFFT model, including the simulation setup and boundary conditions, was verified using a crystal plasticity finite element (CPFE) model. To this end, the generation of meshes of notched specimens was developed, which involved creating Python scripts for mesh “cutting” in Abaqus, and Sculpt scripts in Cubit for meshing of the measured microstructural cell processed with DREAM.3D. The complexity of the mesh preparation highlighted the advantages of the FFT-based model, which circumvents the mesh generation process. Given the efficiency of the FFT-based model, statistical distribution of stress intensity factors in function of crystal orientation at the crack tip, grain structure, and crystallographic texture surrounding the crack tip were predicted. Further, the distributions reveal about 10% variation of stress intensity factors with microstructure with the most significant sensitivity found to be the crystal orientation at the crack tip. The methodology developed in this work is discussed as a practical simulation tool for predicting the sensitivity of stress intensity factors on microstructural variability in metallic materials.

36 MATERIALS SCIENCE↗

CHARMM-GUI Free Energy Calculator for Absolute and Relative Ligand Solvation and Binding Free Energy Simulations

Alchemical free energy simulations have long been utilized to predict free energy changes for binding affinity and solubility of small molecules. However, while the theoretical foundation of these methods is well established, seamlessly handling many of the practical aspects regarding the preparation of the different thermodynamic end states of complex molecular systems and the numerous processing scripts often remains a burden for successful applications. Here, we present CHARMM-GUI Free Energy Calculator (http://www.charmm-gui.org/input/fec) that provides various alchemical free energy perturbation molecular dynamics (FEP/MD) systems with input and post-processing scripts for NAMD and GENESIS. Four submodules are available: Absolute Ligand Binder (for absolute ligand binding FEP/MD), Relative Ligand Binder (for relative ligand binding FEP/MD), Absolute Ligand Solvator (for absolute ligand solvation FEP/MD), and Relative Ligand Solvator (for relative ligand solvation FEP/MD). Each module is designed to build multiple systems of a set of selected ligands at once for high-throughput FEP/MD simulations. The capability of Free Energy Calculator is illustrated by absolute and relative solvation FEP/MD of a set of ligands and absolute and relative binding FEP/MD of a set of ligands for T4-lysozyme in solution and the adenosine A 2A receptor in a membrane. The calculated free energy values are overall consistent with the experimental and published free energy results (within ~1 kcal/mol). We hope that Free Energy Calculator is useful to carry out high-throughput FEP/MD simulations in the field of biomolecular sciences and drug discovery.

37 INORGANIC, ORGANIC, PHYSICAL, AND ANALYTICAL CH↗

Python Library for Monte Carlo Simulations with Ab Initio and Machine-Learned Interatomic Potentials

There is a growing need in the simulation community for software that provides a transparent, reproducible, usable, and extensible (TRUE) Monte Carlo (MC) simulation framework employing energies from ab initio methods and machine-learning interatomic potentials (MLIPs). We introduce a Python library (ASE-MC) that adds Monte Carlo functionality to the Atomic Simulation Environment (ASE) package. Now, we can combine the powerful tools used to build systems and perform ab initio and MLIP in ASE with MC simulation algorithms to sample the configurational space with a concise Python script. After presenting the design philosophy, we demonstrate the flexibility of our approach using selected examples. These example simulations include liquid water described with a message-passing MLIP in the canonical and isothermal–isobaric ensembles, sampling the characteristic dihedral angle of biphenyl and comparing an MLIP to first-principles calculations, and a grand canonical Monte Carlo simulation of ammonia adsorption on Pt(111). These examples showcase the main features of the software, which include flexibility in the choice of ab initio or MLIP engine, ab initio or MLIP grand canonical MC with cavity bias insertions and deletions, the ability to add custom MC moves to the move set, and how users can condense complex MC workflows into a single Python script. Finally, this library serves as a framework for reproducible Monte Carlo simulations, facilitating easy reproduction of the work and application to new systems.

97 MATHEMATICS AND COMPUTING↗

SNS Proton Beam Window Disposal

In order to support the disposal of the proton beam window assembly of the Spallation Neutron Source beamline to the target station, waste classification analyses are performed. The window has a limited life-time due to radiation-induced material damage. Here, analyses include calculation of the radionuclide inventory and shielding analyses for the transport package/container to ensure that the container is compliant with the transportation and waste management regulations. In order to automate this procedure and minimize manual work a script in Perl language was written.

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗

Characterizing counter-streaming interpenetrating plasmas relevant to astrophysical collisionless shocks

A series of Omega experiments have produced and characterized high velocity counter-streaming plasma flows relevant for the creation of collisionless shocks. Single and double CH{sub 2} foils have been irradiated with a laser intensity of {approx} 10{sup 16} W/cm{sup 2}. The laser ablated plasma was characterized 4 mm from the foil surface using Thomson scattering. A peak plasma flow velocity of 2000 km/s, an electron temperature of {approx} 110 eV, an ion temperature of {approx} 30 eV, and a density of {approx} 10{sup 18} cm{sup -3} were measured in the single foil configuration. Significant increases in electron and ion temperatures were seen in the double foil geometry. The measured single foil plasma conditions were used to calculate the ion skin depth, c/{omega}{sub pi}{approx}0.16 mm, the interaction length, Script-Small-L {sub int}, of {approx} 8 mm, and the Coulomb mean free path, {lambda}{sub mfp}{approx}27mm. With c/{omega}{sub pi} Much-Less-Than Script-Small-L {sub int} Much-Less-Than {lambda}{sub mfp}, we are in a regime where collisionless shock formation is possible.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗