Search NASA⌕ Search

SEARCH · Search NASA

Results for “Code Generation”

Search indexed NASA NTRS and DOE OSTI research on propulsion, heat transfer, battery materials and energy systems. Follow report and document links to the original sources.

Quote a phrase for an exact phrase match. Source license links do not imply unrestricted reuse.

At least 1,513 records · Page 84

MICROX-2 cross section library based on ENDF/B-VII

New cross section libraries of a neutron transport code MICROX-2 have been generated for advanced reactor design and fuel cycle analyses. A total of 386 nuclides were processed, including 10 thermal scattering nuclides, which are available in ENDF/B-VII release 0 nuclear data. The NJOY system and MICROR code were used to process nuclear data and convert them into MICROX-2 format. The energy group structure of the new library was optimized for both the thermal and fast neutron spectrum reactors based on Contributon and Point-wise Cross Section Driven (CPXSD) method, resulting in a total of 1173 energy groups. A series of lattice cell level benchmark calculations have been performed against both experimental measurements and Monte Carlo calculations for the effective/infinite multiplication factor and reaction rate ratios. The results of MICROX-2 calculation with the new library were consistent with those of 15 reference cases. The average errors of the infinite multiplication factor and reaction rate ratio were 0.31% {delta}k and 1.9%, respectively. The maximum error of reaction rate ratio was 8% for {sup 238}U-to-{sup 235}U fission of ZEBRA lattice against the reference calculation done by MCNP5. (authors)

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

Doclet To Synthesize UML

The RoseDoclet computer program extends the capability of Java doclet software to automatically synthesize Unified Modeling Language (UML) content from Java language source code. [Doclets are Java-language programs that use the doclet application programming interface (API) to specify the content and format of the output of Javadoc. Javadoc is a program, originally designed to generate API documentation from Java source code, now also useful as an extensible engine for processing Java source code.] RoseDoclet takes advantage of Javadoc comments and tags already in the source code to produce a UML model of that code. RoseDoclet applies the doclet API to create a doclet passed to Javadoc. The Javadoc engine applies the doclet to the source code, emitting the output format specified by the doclet. RoseDoclet emits a Rose model file and populates it with fully documented packages, classes, methods, variables, and class diagrams identified in the source code. The way in which UML models are generated can be controlled by use of new Javadoc comment tags that RoseDoclet provides. The advantage of using RoseDoclet is that Javadoc documentation becomes leveraged for two purposes: documenting the as-built API and keeping the design documentation up to date.

Barry, Matthew R.↗

GEOS Code Development Road Map

GEOS is a massively parallel computational framework designed to enable HPC-based simulations of subsurface reservoir stimulation activities with the goal of optimizing current operations and evaluating innovative stimulation methods. GEOS will enable coupling of different solvers associated with the various physical processes occurring during reservoir stimulation in unique and sophisticated ways, adapted to various geologic settings, materials and stimulation methods. The overall architecture of the framework includes consistent data structures and will allow incorporation of additional physical and materials models as demanded by future applications. Along with predicting the initiation, propagation and reactivation of fractures, GEOS will also generate a seismic source term that can be linked with seismic wave propagation codes to generate synthetic microseismicity at surface and downhole arrays. Similarly, the output from GEOS can be linked with existing fluid/thermal transport codes. GEOS can also be linked with existing, non-intrusive uncertainty quantification schemes to constrain uncertainty in its predictions and sensitivity to the various parameters describing the reservoir and stimulation operations. We anticipate that an implicit-explicit 3D version of GEOS, including a preliminary seismic source model, will be available for parametric testing and validation against experimental and field data by Oct. 1, 2013.

02 PETROLEUM↗

A SQL to C compiler in 500 lines of code

Abstract We present the design and implementation of a SQL query processor that outperforms existing database systems and is written in just about 500 lines of Scala code – a convincing case study that high-level functional programming can handily beat C for systems-level programming where the last drop of performance matters. The key enabler is a shift in perspective toward generative programming. The core of the query engine is an interpreter for relational-algebra operations, written in Scala. Using the open-source lightweight modular staging framework, we turn this interpreter into a query compiler with very low effort. To do so, we capitalize on an old and widely known result from partial evaluation: the first Futamura projection, which states that a process that can specialize an interpreter to any given input program is equivalent to a compiler. In this context, we discuss lightweight modular staging programming patterns such as mixed-stage data structures (e.g., data records with static schema and dynamic field components) and techniques to generate low-level C code, including specialized data structures and data loading primitives.

Computer Science↗

FLARE: field line analysis and reconstruction for 3D boundary plasma modeling

The FLARE code is a magnetic mesh generator that is integrated within a suite of tools for the analysis of the magnetic geometry in toroidal fusion devices. A magnetic mesh is constructed from field line segments and permits fast reconstruction of field lines in 3D boundary plasma codes such as EMC3-EIRENE. Both intrinsically non-axisymmetric configurations (stellarators) and those with symmetry breaking perturbations of an axisymmetric equilibrium (tokamaks) are supported. The code itself is written in Modern Fortran with MPI support for parallel computing, and it incorporates object-oriented programming for the definition of the magnetic field and the material surface geometry. Extended derived types for a number of different magnetohydrodynamic equilibrium and plasma response models are implemented. The core element of FLARE is a field line tracer with adaptive step-size control, and this is integrated into tools for the construction of Poincaré maps and invariant manifolds of X-points. A collection of high-level procedures that generate output files for visualization is build on top of that. The analysis modules are build with Python frontends that facilitate customization of tasks and/or scripting of parameter scans.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

A summary of the mechanical properties data developed in FY 2023 by ANL, INL and ORNL to support the data package development for the A709 Code Case

This report provides the status of tensile, creep, fatigue, and creep-fatigue testing to date conducted at Argonne National Laboratory, Idaho National Laboratory, and Oak Ridge National Laboratory to generate the data package required to qualify Alloy 709 in American Society of Mechanical Engineers, Boiler and Pressure Vessel Code, Section III, Division 5. The Division 5 Class A Alloy 709 Code Case requires data generated from a minimum of three commercial heats. Extensive mechanical properties data have been generated on two commercial heats, and some initial test data have been generated from the third commercial heat. The room temperature tensile test results for the three commercial heats met the specification minimum of the American Society of Mechanical Engineers, Boiler and Pressure Vessel Code, Section II, Part A, SA-213/SA-213M for Grade TP310MoCbN (UNS S31025) seamless tubing. These three commercial heats of Alloy 709 are suitable for generating the code case data.

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

On-the-Fly Generation of Differential Resonance Scattering Probability Distribution Functions for Monte Carlo Codes

Current Monte Carlo codes use one of three models: (1) the asymptotic scattering model, (2) the free gas scattering model, or (3) the S(α,β) model, depending on the neutron energy and the specific Monte Carlo code. This thesis addresses the consequences of using the free gas scattering model, which assumes that the neutron interacts with atoms in thermal motion in a monatomic gas in thermal equilibrium at material temperature, T. Most importantly, the free gas model assumes the scattering cross section is constant over the neutron energy range, which is usually a good approximation for light nuclei, but not for heavy nuclei where the scattering cross section may have several resonances in the epithermal region. Several researchers in the field have shown that the exact resonance scattering model is temperaturedependent, and neglecting the resonances in the lower epithermal range can under-predict resonance absorption due to the upscattering phenomenon mentioned above, leading to an over-prediction of keff by several hundred pcm. Existing methods to address this issue involve changing the neutron weights or implementing an extra rejection scheme in the free gas sampling scheme, and these all involve performing the collision analysis in the center-of-mass frame, followed by a conversion back to the laboratory frame to continue the random walk of the neutron. The goal of this paper was to develop a sampling methodology that (1) accounted for the energydependent scattering cross sections in the collision analysis and (2) was performed in the laboratory frame,avoiding the conversion to the center-of-mass frame. The energy dependence of the scattering cross section was modeled with even-ordered polynomials (2nd and 4th order) to approximate the scattering cross section in Blackshaw’s equations for the moments of the differential scattering PDFs. These moments were used to sample the outgoing neutron speed and angle in the laboratory frame on-the-fly during the random walk of the neutron. Results for criticality studies on fuel pin and fuel assembly calculations using methods developed in this dissertation showed very close comparison to results using the reference Dopplerbroadened rejection correction (DBRC) scheme.

42 ENGINEERING↗

On-the-fly generation of differential resonance scattering probability distribution functions for Monte Carlo codes

Current Monte Carlo codes use one of three models to model neutron scattering in the epithermal energy range: (1) the asymptotic scattering model, (2) the free gas scattering model, or (3) the S({alpha},{beta}) model, depending on the neutron energy and the specific Monte Carlo code. The free gas scattering model assumes the scattering cross section is constant over the neutron energy range, which is usually a good approximation for light nuclei, but not for heavy nuclei where the scattering cross section may have several resonances in the epithermal region. Several researchers in the field have shown that using the free gas scattering model in the vicinity of the resonances in the lower epithermal range can under-predict resonance absorption due to the up-scattering phenomenon. Existing methods all involve performing the collision analysis in the center-of-mass frame, followed by a conversion back to the laboratory frame. In this paper, we will present a new sampling methodology that (1) accounts for the energy-dependent scattering cross sections in the collision analysis and (2) acts in the laboratory frame, avoiding the conversion to the center-of-mass frame. The energy dependence of the scattering cross section was modeled with even-ordered polynomials to approximate the scattering cross section in Blackshaw's equations for the moments of the differential scattering PDFs. These moments were used to sample the outgoing neutron speed and angle in the laboratory frame on-the-fly during the random walk of the neutron. Results for criticality studies on fuel pin and fuel assembly calculations using these methods showed very close comparison to results using the reference Doppler-broadened rejection correction (DBRC) scheme. (authors)

97 MATHEMATICS AND COMPUTING↗

Neutron yields for reactions induced by 120 GeV protons on thick copper target

We developed an experimental method to measure neutron energy spectrum for 120-GeV protons on a thick copper target at Fermilab Test Beam Facility (FTBF). The spectrum in the energy range from 16 to 1600 MeV was obtained for 60-cm long copper target by time-of-flight technique with an NE213 scintillator and 5.5-m flight path. Energy spectra of neutrons generated from an interaction with beam and materials are important to design shielding structure of high energy accelerators. Until now, the energy spectra for the incident energy up to 3 GeV have been measured by several groups, Ishibashi et al., Amian et al., and Leray et al. In the energy region above 3 GeV, few experimental data are available because of small number of facilities for neutron experiment. On the other hand, concerning simulation codes, theoretical models for particle generation and transportation are switched from intermediate to high energy one around this energy. The spectra calculated by the codes have not been examined using experimental data. In shielding experiments using 120 GeV hadron beam, experimental data shows systematic differences from calculations. Hagiwara et al. have measured leakage neutron spectra behind iron and concrete shield from 120 GeV proton on target at anti-proton target station in Fermilab by using Bonner Spheres with unfolding technique. In CERN, Nakao et al reported experimental results of neutron spectra behind iron and concrete wall from 120 GeV/c proton and pion mixed beam on copper by using NE213 liquid scintillators with unfolding technique. Both of the results reported systematic discrepancies between experimental and calculation results. Therefore, experimental data are highly required to verify neutron production part of calculations. In this study, we developed an experimental method to measure neutron energy spectrum for 120 GeV proton on target. The neutron energy was determined using time-of-flight technique. We used the Fermilab Test Beam Facility (FTBF) in Fermilab that provided 120 GeV proton beam with intensity of 2 x 10{sup 5}/4 sec in every minute. The point of this study was determination of experimental configuration to satisfy enough statistic and energy resolution of neutrons.

43 PARTICLE ACCELERATORS↗

genshell

GENSHELL is a three-dimensional shell mesh generation program. The threedimensional shell mesh is generated by mapping a two-dimensional quadrilateral mesh into three dimensions according to one of several types of transformations: translation, mapping onto a spherical, ellipsoidal, or cylindrical surface, and mapping onto a user-defined spline surface. The generated three-dimensional mesh can then be reoriented by offsetting, reflecting about an axis, revolving about an axis, and scaling the coordinates. GENSHELL can be used to mesh complex three-dimensional geometries composed of several sections when the sections can be defined in terms of transformations of two-dimensional geometries. The code GJOIN is then used to join the separate sections into a single body. GENSHELL updates the EXODUS quality assurance and information records to help track the codes and files used to generate the mesh. GENSHELL reads and writes two-dimensional and three-dimensional mesh databases in the GENESIS database format; there, it is compatible with the preprocessing, postprocessing, and analysis codes in the Sandia National Laboratories Engineering Analysis Code Access System (SEACAS).

Sjaardema, GregoryD.↗

Generating Grids For Computing Flow In A Manifold

Establishing computer code modified to apply to complicated shapes. Grids for computing flows in manifold of complicated shape generated by use of modified version of geometry module of LWIND computer code. Code adaptable to other computations of flows in different geometries.

Anderson, Peter G.↗

Report on FY 2020 creep, fatigue and creep fatigue testing of Alloy 709 base metal at ORNL

The testing activities and research in support of ASME Code qualification of Alloy 709, an advanced austenitic steel, are being carried out at Oak Ridge National Laboratory (ORNL), Argonne National Laboratory, and Idaho National Laboratory. This report summarizes the status and results of FY 2020 planned testing at ORNL. Uniaxial tensile tests on the electroslag remelt (ESR) solution-annealed plate (heat number 58776-3RBC) with additional heat treatment were performed for the baseline mechanical properties evaluation for ASME code qualification of Alloy 709. The tensile properties were found to meet ASME SA-213 specifications and were comparable to the Nippon Steel NF709 data generated for an ASME Section I Code Case for seamless tubing. ORNL was tasked to carry out a subset of the Code Case testing for creep rupture. Creep rupture data from 18 tests were generated on a solution-annealed ESR plate with a solution annealing temperature of 1100°C. There are total of 19 intermediate and long-term creep rupture tests of Alloy 709 ongoing at ORNL. A preliminary fatigue design curve at 760°C was developed for Alloy 709, and the results show that the fatigue design curve of Alloy 709 is comparable to that of Alloy 800H at 760°C.

11 NUCLEAR FUEL CYCLE AND FUEL MATERIALS↗

Neutronics and Thermo-Fluids Simulation of Generic Pebble-Bed Fluoride-Salt-Cooled High-Temperature Reactor

The fluoride-salt-cooled high-temperature reactor (FHR) is one of the advanced reactors that has been attracting considerable interest from both the research community and the nuclear industry. To help facilitate the nuclear community's familiarity with the FHR, Kairos Power has developed a generic FHR (gFHR) benchmark. In the research performed here, this benchmark was used to assess innovative modeling methods that combine stochastic and deterministic computer codes to perform the design and analysis of the gFHR. Further, the Monte Carlo code Serpent 2 was used to generate few-group cross sections that were then used in the neutron diffusion and thermal-fluids code AGREE to perform full-core neutronics and thermal-fluids steady-state and transient core analysis. The Argonne National Laboratory code SAM was then used to model the gFHR system and to simulate the load-follow operation of the gFHR.

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

Enhancement/upgrade of Engine Structures Technology Best Estimator (EST/BEST) Software System

This report describes the work performed during the contract period and the capabilities included in the EST/BEST software system. The developed EST/BEST software system includes the integrated NESSUS, IPACS, COBSTRAN, and ALCCA computer codes required to perform the engine cycle mission and component structural analysis. Also, the interactive input generator for NESSUS, IPACS, and COBSTRAN computer codes have been developed and integrated with the EST/BEST software system. The input generator allows the user to create input from scratch as well as edit existing input files interactively. Since it has been integrated with the EST/BEST software system, it enables the user to modify EST/BEST generated files and perform the analysis to evaluate the benefits. Appendix A gives details of how to use the newly added features in the EST/BEST software system.

Shah, Ashwin↗

Stable and unstable invariant manifolds in a partially chaotic magnetic configuration generated by nonlinear reconnection

A numerical contour dynamics code has been employed to calculate the stable and unstable manifolds related to two interacting magnetic island chains. The magnetic configuration is generated by a nonlinear reconnection process described in D. Borgogno et al. [Phys. Plasmas. 12, 032309 (2005)]. The appearance of the first homoclinic and heteroclinic intersections of the dominant manifolds are shown and one of the associated uniformly hyperbolic orbits is given. The stickiness of the field lines around the island and the eventual development of global stochasticity are discussed. The basic geometry of the magnetic configuration is periodic so that the structure of the manifolds may be compared with the one obtained with Poincare plots.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

Hydropower Capacity Factor Trends & Analytics for the United States

This data repository contains all code, input data, and data generated for Turner et al. (2024)—“Hydropower capacity factors trending down in the United States”. File descriptions: – hydro-cf-trends-inputs.zip: Full set of input data used in this study, organized for direct entry into “/data” directory of hydro-cf-trends data processing pipeline. – hydro-cf-trends.zip: Full data processing pipeline, coded using the R {targets} framework. This is a snapshot release (v1.0) of the code repository stored at https://code.ornl.gov/turnersw/hydro-cf-trends/. – hydro-cf-trends-results.zip: Provides all dam level results required to reproduce results and graphics in Turner et al. (2024). Dams are identified by the “complxID” (root of the hydropower plant ID in the Existing Hydropower Assets Database, inherited from HILARRI). Results include: • dam_CF_trends.csv: Table of long-term trends in annualized capacity factors for 610 dams and modeled annualized capacity factors for 362 modeled dams (naturalized and assimilated flows). • dam_annualized_CF_gen.csv: Annualized time series of the following variables for each of 610 hydropower dams with nameplate > 5MW – Reported nameplate capacity (MW) – Implied maximum annual generation (MWh) – Reported net generation (MWh) – Computed annual capacity factor – Modeled annual capacity factor (362 modeled plants only)

13 HYDRO ENERGY↗

SCALE Non-LWR Models for NRC Volume 5

This dataset contains input and result files of computational simulations with the SCALE code system. The simulations cover radionuclide inventory generation, criticality calculations, and dose rate/shielding analyses of various advanced reactors. Users wanting to reproduce results from this dataset are required to obtain a license to the SCALE code system for which details on the distribution can be found here: https://www.ornl.gov/scale/releases

21 SPECIFIC NUCLEAR REACTORS AND ASSOCIATED PLANTS↗