Search NASA⌕ Search

SEARCH · Search NASA

Results for “programming tools”

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,333 records · Page 74

Department of Energy’s Atmospheric System Research (ASR) Program’s Workshop on the Future of Atmospheric Large Eddy Simulation (LES): Workshop Report

Large-eddy simulation (LES) is used as a tool to understand physical processes such as turbulence, aerosols, clouds, precipitation, radiation, the interactions among all these, and their interactions with the underlying surface. Over the next 10 years, LES will drive fundamental progress in open scientific questions in these areas as LES is increasingly used to gain understanding of complex interacting physical processes involving atmospheric turbulence. This growth will be driven both by scientific demand and the expansion of computational resources needed to conduct LES, and the form that the growth takes will largely be determined by how computational resources are leveraged for scientific gain. In particular, we suggest that computational resources are likely to be leveraged in two separate but not necessarily distinct ways. On one hand, growth in computational resources will allow LES to be made more routine, that is, performed more frequently, while on the other hand, the computational expense (measured in total floating point operations) afforded to individual LES will expand dramatically, allowing simulations to increase in both domain size and resolution as well as physical detail. Current U.S. Department of Energy (DOE) projects such as LES ARM Symbiotic Simulation and Observation Activity (LASSO) are leading the way in conducting routine LES, building large, public databases that are accessible for data science, sensitivity studies, and training for machine learning. LES will also become more routine as it becomes more accessible for individual researchers to address their scientific questions of interest. Scientific questions addressed by LES over the next 10 years are likely to include cloud organization and aggregation; aerosol cloud interactions and atmospheric chemistry (including geo-engineering); urban-scale LES; atmospheric extreme events, ranging from small-scale severe weather to wildfires; and ocean-wave-atmosphere interactions. Further LES-related research will likely grow significantly in areas related to societal impact studies of air quality and extreme weather events, applications to renewable energy forecasting and resource assessment, and aid in decision-making processes. The growth in the use of LES in atmospheric science research will drive the need for better physical process representations (e.g., cloud aerosol microphysics, radiation, and atmospheric chemistry) at the scales resolved by LES. To date, many of the process representations used by LES have been taken directly from coarser-resolution models. Promising methods for LES process representations include superdroplet and quadrature methods for microphysics, 3D approaches for radiation, and better representation of chemistry and aerosol processes. At LES resolution, land-atmosphere interactions for complex terrains, land cover/types, biogeochemistry, and plant canopy models are needed as an improvement beyond traditional and widely used Monin-Obuhkov similarity theory.

54 ENVIRONMENTAL SCIENCES↗

Department of Energy’s Atmospheric System Research (ASR) Program’s Workshop on the Future of Atmospheric Large Eddy Simulation (LES) (Workshop Report)

Large-eddy simulation (LES) is used as a tool to understand physical processes such as turbulence, aerosols, clouds, precipitation, radiation, the interactions among all these, and their interactions with the underlying surface. Over the next 10 years, LES will drive fundamental progress in open scientific questions in these areas as LES is increasingly used to gain understanding of complex interacting physical processes involving atmospheric turbulence. This growth will be driven both by scientific demand and the expansion of computational resources needed to conduct LES, and the form that the growth takes will largely be determined by how computational resources are leveraged for scientific gain. In particular, we suggest that computational resources are likely to be leveraged in two separate but not necessarily distinct ways. On one hand, growth in computational resources will allow LES to be made more routine, that is, performed more frequently, while on the other hand, the computational expense (measured in total floating point operations) afforded to individual LES will expand dramatically, allowing simulations to increase in both domain size and resolution as well as physical detail.

54 ENVIRONMENTAL SCIENCES↗

Department of Energy’s Atmospheric System Research (ASR) Program’s Workshop on the Future of Atmospheric Large Eddy Simulation (LES) (Workshop Report)

Large-eddy simulation (LES) is used as a tool to understand physical processes such as turbulence, aerosols, clouds, precipitation, radiation, the interactions among all these, and their interactions with the underlying surface. Over the next 10 years, LES will drive fundamental progress in open scientific questions in these areas as LES is increasingly used to gain understanding of complex interacting physical processes involving atmospheric turbulence. This growth will be driven both by scientific demand and the expansion of computational resources needed to conduct LES, and the form that the growth takes will largely be determined by how computational resources are leveraged for scientific gain. In particular, we suggest that computational resources are likely to be leveraged in two separate but not necessarily distinct ways. On one hand, growth in computational resources will allow LES to be made more routine, that is, performed more frequently, while on the other hand, the computational expense (measured in total floating point operations) afforded to individual LES will expand dramatically, allowing simulations to increase in both domain size and resolution as well as physical detail. Current U.S. Department of Energy (DOE) projects such as LES ARM Symbiotic Simulation and Observation Activity (LASSO) are leading the way in conducting routine LES, building large, public databases that are accessible for data science, sensitivity studies, and training for machine learning. LES will also become more routine as it becomes more accessible for individual researchers to address their scientific questions of interest. Scientific questions addressed by LES over the next 10 years are likely to include cloud organization and aggregation; aerosol cloud interactions and atmospheric chemistry (including geo-engineering); urban-scale LES; atmospheric extreme events, ranging from small-scale severe weather to wildfires; and ocean-wave-atmosphere interactions. Further LES-related research will likely grow significantly in areas related to societal impact studies of air quality and extreme weather events, applications to renewable energy forecasting and resource assessment, and aid in decision-making processes.

54 ENVIRONMENTAL SCIENCES↗

FORCE-DISPATCHES Integration - Initial Demonstration

Integrated energy systems (IES) combine, in mutually beneficial ways, power from variable renewable energy sources and nuclear power plants (NPP) to improve economic viability under uncertain market and weather conditions. The open-source Framework for Optimization of Resources and Economics (FORCE) tool suite, developed at Idaho National Laboratory (INL), has enabled comprehensive modeling and simulation of IES. The capabilities within FORCE include grid portfolio optimization through the Holistic Energy Resource Optimization Network (HERON) and the transient process model analysis library HYBRID, among others. Continuous efforts and investments from the IES programs have been made to expand and improve the versatility of the FORCE toolset in fiscal year 2022. Code-coupling and cross-tool communication have been important methods for improving this versatility. This report focuses on an additional workflow in the HERON tool for capacity and dispatch stochastic optimization through integration with the external tool Design Integration and Synthesis Platform to Advance Tightly Coupled Hybrid Energy Systems (DISPATCHES). DISPATCHES was primarily developed by the National Energy Technology Laboratory, in collaboration with other national laboratories, which included INL, universities, and industry partners. It is coupled to a library of algebraic models for specific plant components, and to a framework for stochastic optimization different from that provided in the current Risk Analysis Virtual Environment (RAVEN)-running-RAVEN algorithm in HERON. HERON currently conducts stochastic optimization via an outer-inner loop: it optimizes over variable capacity on the outer loop, and at each step within the capacity parameter space, conducts an inner optimization over scenarios (of market signals, demand, and/or weather patterns) and hourly dispatch throughout a user-specified number of years. On the other hand, DISPATCHES conducts stochastic optimization via an “all-at-once” strategy in which capacity variables are optimized at the same level as dispatch variables, as all scenarios are considered at once. The latter method works especially well for projects of limited size and project length, as the necessary computational power and memory increases with the number of variables and scenarios. The new capability to use the DISPATCHES workflow in HERON enhances standalone simulations by leveraging FORCE tools—namely, the economic metrics from the Tool for Economic Analysis (TEAL) and reduced-order model (ROM) sampling from RAVEN. The initial demonstration of the DISPATCHES workflow simulates an existing nuclear-case flowsheet within the DISPATCHES repository—this models a NPP with a secondary revenue stream for hydrogen production. Electrical output from the plant is converted to hydrogen via a proton-exchange membrane (PEM) electrolyzer, hydrogen tanks are used for storage, and an additional turbine is added for hydrogen combustion. Continued work regarding this FORCE-DISPATCHES integration will include automatic generation of DISPATCHES models from HERON inputs, offering analysts the option of using either the RAVEN-runsRAVEN or DISPATCHES workflow to solve technoeconomic optimization problems.

24 POWER TRANSMISSION AND DISTRIBUTION↗

Plasma: at the frontier of scientific discovery

In February 2015, the Department of Energy, Office of Science, Fusion Energy Sciences (FES)” announced the formation of four technical workshops “to seek community engagement and input for future program planning activities.” Three of these workshops focused on the science and technical challenges we must address to meet the emerging needs of ITER and to allow exploration of fusion burning plasma physics in the laboratory. This report represents the work of the fourth workshop, which focused on the broader scientific opportunities at the frontiers of plasma science. The primary charge to the Panel authoring this report was “to ‘identify’ compelling scientific challenges at the frontiers of plasma physics” and “to ‘identify’ research tools and capabilities to address these challenges in the next decade.” This report aims to inform the newly constituted FES Program in Frontiers of Plasma Science on science opportunities and strategy moving forward. This program was created in FY2015 by combining topics from general plasma science, high energy density laboratory plasmas, and exploratory magnetized plasma into a single program area. The Executive Summary, chapter introductions and sidebars to the chapter are intended to provide more general overviews of the findings of the panel. The chapters provide more details following these themes.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

Integration of a grey-box refrigerated case model in EnergyPlus via Python plugin

Commercial buildings, in particular grocery stores (due mainly to their large refrigeration load), provide opportunities for energy cost reductions. Grocery stores could offer substantial load flexibility to the power grid through participation in demand response programs because of their usage patterns and relatively high energy intensity. This load flexibility could come from modifying the control of heating, ventilation, and air conditioning (HVAC) systems, refrigeration systems, or both. Although estimation of the HVAC system’s load flexibility potential is relatively targeted in the literature, estimating load flexibility of refrigeration systems is nascent and has been a challenge, in part because of the lack of proper simulation tools that capture the dynamics in the refrigeration cases. The existing refrigerated case model within EnergyPlus, a whole building energy simulation program, assumes a constant case temperature throughout the simulation period and does not explicitly model the cycling of the compressor serving the refrigerated case. In addition, it does not encompass modeling of temperatures of the product inside the refrigerated case. This difference between modeled and actual operation can be a barrier to the development of demand control algorithm and accurate analysis of load flexibility potential. In this paper, we present a grey-box model for modeling refrigerated cases in grocery stores, which include medium temperature and low temperature. Four cases are modeled; two are low-temperature closed cases and two are medium-temperature cases with one closed and one open. Data from an experimental facility are used to train and test the models. Results demonstrate the efficacy of the grey-box models in predicting the temperatures. This model is integrated into EnergyPlus to capture the dynamic effects of case temperature on the environment and enhance the calculation of sensible and latent heat exchange with the environment (case credits). These enhancements can be leveraged more broadly to model advanced refrigeration controls such as defrost, develop and test unique algorithms that could affect refrigeration interactions with HVAC, and refine store design for any commercial building with refrigeration.

29 ENERGY PLANNING, POLICY, AND ECONOMY↗

A Holistic Framework for Environmental Flows Determination in Hydropower Contexts

Among the ecological science community, the consensus view is that the natural flow regime sustains the ecological integrity of river systems. This prevailing viewpoint by many environmental stakeholders has progressively led to increased pressure on hydropower dam owners to change plant operations to affect downstream river flows with the intention of providing better conditions for aquatic biological communities. Identifying the neccessary magnitude, frequency, duration, timing, or rate of change of stream flows to meet ecological needs in a hydropower context is challenging because the ecological responses to changes in flows may not be fully known, there are usually a multitude of competing users of flow, and implementing environmental flows usually comes at a price to energy production. Realistically, hydropower managers must develop a reduced set of goals that provide the most benefit to the identified ecological needs. As a part of the Department of Energy (DOE) Water Power Program, the Instream Flow Project (IFP) was carried out by Oak Ridge National Laboratory (ORNL), Pacific Northwest National Laboratory (PNNL), and Argon National Laboratory (ANL) as an attempt to develop tools aimed at defining environmental flow needs for hydropower operations. The application of these tools ranges from national to site-specific scales; thus, the utility of each tool will depend on various phases of the environmental flow process. Given the complexity and sheer volume of applications used to determine environmentally acceptable flows for hydropower, a framework is needed to organize efforts into a staged process dependent upon spatial, temporal, and functional attributes. By far, the predominant domain for determining environmental flows related to hydropower is within the Federal Energy Regulatory Commission (FERC) relicensing process. This process can take multiple years and can be very expensive depending on the scale of each hydropower project. The utility of such a framework is that it can expedite the environmental flow process by 1) organizing data and applications to identify predictable relationships between flows and ecology, and 2) suggesting when and where tools should be used in the environmental flow process. In addition to regulatory procedures, a framework should also provide the coordination for a comprehensive research agenda to guide the science of environmental flows. This research program has further reaching benefits than just environmental flow determination by providing modeling applications, data, and geospatial layers to inform potential hydropower development. We address several objectives within this document that highlight the limitations of existing environmental flow paradigms and their applications to hydropower while presenting a new framework catered towards hydropower needs. Herein, we address the following objectives: 1) Provide a brief overview of the Natural Flow Regime paradigm and existing environmental flow frameworks that have been used to determine ecologically sensitive stream flows for hydropower operations. 2) Describe a new conceptual framework to aid in determining flows needed to meet ecological objectives with regard to hydropower operations. The framework is centralized around determining predictable relationships between flow and ecological responses. 3) Provide evidence of how efforts from ORNL, PNNL, and ANL have filled some of the gaps in this broader framework, and suggest how the framework can be used to set the stage for a research agenda for environmental flow.

dams↗

From Theory to Practice: Lessons Learned from an Advanced M&V Commercial Pilot

Advanced measurement & verification (M&V), or M&V 2.0, is an energy data analysis method using advanced metering infrastructure (AMI) data in combination with analytics to quantify energy efficiency project savings. Advanced M&V is viewed as an enabler for underutilized behavioral, retrocommissioning, and holistic multi-measure efficiency efforts, as quantifying savings for these programs with existing methods has typically been very challenging. Despite its promise, there are still several unanswered questions about the use of advanced M&V such as: How accurately can these tools quantify energy savings? How can advanced M&V satisfy regulatory requirements for rigorous savings estimates? Where and how does advanced M&V intersect with traditional impact evaluation and the principles of ‘embedded’ evaluation, measurement & verification (EM&V)? Pilots are being pursued in various regions and program contexts to address these research questions. However, results from these pilots are rarely made public, meaning that lessons may not be widely shared and the scope of analyses varies widely. The paper presents encouraging results from a recent advanced M&V pilot and discusses key process-related aspects such as managing AMI data and refining analysis methodologies. An approach to reviewing and classifying projects based on savings characteristics and magnitude is demonstrated, as a potential risk management tool. The authors also demonstrate how advanced M&V can identify underperforming projects and non-routine events in a timely manner. The paper also outlines lessons learned from this and other recent pilot activity and barriers to be overcome in moving toward the goal of widespread adoption of holistic meter-based programs.

Crowe, Eliot↗

Development of a web-based screening tool for ground source heat pump applications

Ground source heat pump (GSHP) technology has great potential to help the nation meet its energy and decarbonization goals, but several barriers hinder the wide application of GSHP. Important barriers include the lack of a coherent toolset for analyzing the technical feasibility and economic viability of the GSHP application. The current design and analysis methods are ineffective and require significant expertise to apply. Although building energy modeling is increasingly important in designing buildings, the tools for GSHP modeling and simulation are lacking. A web-based free-to-use tool is being developed for quick techno-economic analysis of GSHP applications in nearly any building in the United States. This tool is enabled by improvements in the calculation methodology to allow rapid sizing of borehole configurations that provide significant cost savings. The screening tool currently uses US Department of Energy (DOE) prototype building models and an extended g-function library to size ground heat exchangers and simulate the performance of GSHP systems. The team is integrating with DOE's Oak Ridge National Laboratory's AutoBEM program to automatically create a building model based on user inputs. This paper introduces the structure, components, features, and results of the web-based screening tool for GSHP applications. Future directions for further developing the tool are also discussed.

Liu, Xiaobing↗

Versatile Test Reactor Conceptual Core Design

The VTR is a 300-MW(thermal) sodium-cooled fast reactor (SFR) designed for the specific purpose of delivering unique testing capabilities to enable the advancement of all reactor technologies. With its flux level, irradiation volume, and operational flexibility, the VTR will enable accelerated testing of materials, fuels, and various components needing irradiation testing. Proven SFR technologies and design approaches have been leveraged in designing the VTR core, ensuring the highest possible readiness level. This resulted in the VTR using ternary metallic fuel and delivering fast flux levels in excess of 4 x 10 15 n/cm 2 ∙ s over large useful volumes, corresponding to about 60 dpa/year in steel. As part of the design efforts, the VTR core performance has been determined for a representative configuration, ensuring that the reactivity control systems offer sufficient shutdown margins, that the core can be safely cooled in all situations, and that reactivity feedback coefficients are conducive to a favorable safety behavior. Furthermore, the incorporation of features such as fuel assembly storage in the shield region supports the flexible and reliable operation of the VTR. Additional design work has been ongoing as well. This includes thorough shielding performance evaluations to ensure safe operation of the VTR, verification and validation of the design tools used to achieve compliance with Nuclear Quality Assurance (NQA-1) requirements, early assessment of the impact of irradiation experiments on the core performance envelope and associated margins, and in-depth uncertainty quantification efforts to quantify the anticipated range of performance characteristics. An experimental program supporting the VTR core design has been set up, with the current focus being on thermal-hydraulic experiments. The purpose of this experimental program is to obtain confirmatory measurements to serve directly as part of the core design basis or as part of the validation cases supporting the simulation tools used.

21 SPECIFIC NUCLEAR REACTORS AND ASSOCIATED PLANTS↗

IPEAT+: A Built-In Optimization and Automatic Calibration Tool of SWAT+

For almost 30 years, the Soil and Water Assessment Tool (SWAT) has been successfully implemented to address issues around various scientific subjects in the world. On the other hand, it has been reaching to the limit of potential flexibility in further development by the current structure. The new generation SWAT, dubbed SWAT+, was released recently with entirely new coding features. SWAT+ is designed to have far more advanced functions and capacities to handle challenging watershed modeling tasks for hydrologic and water quality processes. However, it is still inevitable to conduct model calibration before the SWAT+ model is applied to engineering projects and research programs. The primary goal of this study is to develop an open-source, easy-to-operate automatic calibration tool for SWAT+, dubbed IPEAT+ (Integrated Parameter Estimation and Uncertainty Analysis Tool Plus). There are four major advantages: (i) Open-source code to general users; (ii) compiled and integrated directly with SWAT+ source code as a single executable; (iii) supported by the SWAT developer group; and, (iv) built with efficient optimization technique. The coupling work between IPEAT+ and SWAT+ is fairly simple, which can be conducted by users with minor efforts. IPEAT+ will be regularly updated with the latest SWAT+ revision. If users would like to integrate IPEAT+ with various versions of SWAT+, only few lines in the SWAT+ source code are required to be updated. IPEAT+ is the first automatic calibration tool integrated with SWAT+ source code. Users can take advantage of the tool to pursue more cutting-edge and forward-thinking scientific questions.

54 ENVIRONMENTAL SCIENCES↗

SCALE Activities in FY22 [Slides]

This lecture touches on SCALE activities in the fiscal year of 2022. Discussion includes updates to scale.ornl.gov and the scale 6.3 online manual. Additionally, practical tools for rapid analysis are highlighted.

Nuclear Criticality Safety Program (NCSP)↗

Defining and Characterizing Methods, Tools, and Computing Resources to Support Pseudo Exhaustive Testability of Software Based I&C Devices

Under the Department of Energy’s Light Water Reactor Sustainability Program, within the Plant Modernization research pathway, the Digital I&C Qualification Project is identifying new methods that would be beneficial in qualifying digital I&C systems and devices for safety-related usage. One such method that would be useful in qualifying field components such as sensors and actuators is the concept of testability. The Nuclear Regulatory Commission (NRC) considers testability to be one of two design attributes sufficient to eliminate consideration of software-based or software logic-based common cause failure (the other being diversity). The NRC defines acceptable “testability” as follows: Testability – A system is sufficiently simple such that every possible combination of inputs and every possible sequence of device states are tested and all outputs are verified for every case (100% tested). [NUREG 0800, Chapter 7, Branch Technical Position (BTP) 7-19] This qualification method has never proven to be practical in view of the very large number of combinations of inputs and sequences of device states for a typical I&C device. However, many of these combinations are not unique in the sense that they represent the same state space or in that that they represent state space that would not affect the critical design basis functions of the device. Therefore, the state space of interest might possibly be reduced to a manageable dimension through such analysis. This project focuses on a representative I&C device similar in design, function, and complexity to the types of devices that would likely be deployed in nuclear power plants as digital or software based sensors and actuators (e.g. Smart Sensors). Analysis will be conducted to determine the feasibility of testing this device in a manner consistent with the NRC definition. This report describes acceptable test methods, needed tools (existing or new), and computing resources, all based on engineering and computer science principles. This information will then be used in a later phase of this project to develop a test specification for I&C device testability that can be used in a future phase of this project to demonstrate digital qualification with respect to common cause failure. Following that, testing will be conducted and the results analyzed to determine if the methods employed are sufficient to eliminate consideration of software common cause failure in accordance with the concept of testability.

22 GENERAL STUDIES OF NUCLEAR REACTORS↗

In-Situ Radiological Surveys to Address Nuclear Criticality Safety Requirements During Remediation Activities at the Shallow Land Disposal Area, Armstrong County, Pennsylvania - 12268

Cabrera Services Inc. (CABRERA) is the remedial contractor for the Shallow Land Disposal Area (SLDA) Site in Armstrong County Pennsylvania, a United States (US) Army Corps of Engineers - Buffalo District (USACE) contract. The remediation is being completed under the USACE's Formerly Utilized Sites Remedial Action Program (FUSRAP) which was established to identify, investigate, and clean up or control sites previously used by the Atomic Energy Commission (AEC) and its predecessor, the Manhattan Engineer District (MED). As part of the management of the FUSRAP, the USACE is overseeing investigation and remediation of radiological contamination at the SLDA Site in accordance with the Comprehensive Environmental Response, Compensation, and Liability Act (CERCLA), 42 US Code (USC), Section 9601 et. seq, as amended and, the National Oil and Hazardous Substance Pollution Contingency Plan (NCP), Title 40 of the Code of Federal Regulations (CFR) Section 300.430(f) (2). The objective of this project is to clean up radioactive waste at SLDA. The radioactive waste contains special nuclear material (SNM), primarily U-235, in 10 burial trenches, Cabrera duties include processing, packaging and transporting the waste to an offsite disposal facility in accordance with the selected remedial alternative as defined in the Final Record of Decision (USACE, 2007). Of particular importance during the remediation is the need to address nuclear criticality safety (NCS) controls for the safe exhumation and management of waste containing fissile materials. The partnership between Cabrera Services, Inc. and Measutronics Corporation led to the development of a valuable survey tool and operating procedure that are essential components of the SLDA Criticality Safety and Material Control and Accountability programs. Using proven existing technologies in the design and manufacture of the Mobile Survey Cart, the continued deployment of the Cart will allow for an efficient and reliable methodology to allow for the safe exhumation of the Special Nuclear Material in existing SLDA trenches. (authors)

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗

PRIMO - The P&A Project Optimizer

In support of the Methane Emissions Reduction Program (MERP) and under the National Methane Emissions Reduction Initiative (NEMRI), the National Energy Technology Laboratory (NETL) and NETL site support contractors are developing and releasing an open-source decision-support tool (“PRIMO”) to help organizations determine which marginal conventional wells (MCWs) or other low-producing wells make the best candidates for plugging utilizing MERP funds, while also optimizing subsequent plugging and abandonment (P&A) campaigns for both program impact and efficiency. The framework—which is fully customizable—provides three main capabilities: 1. Ranking candidate wells (based on user preferences) 2. Identifying high-impact, high-efficiency P&A project candidates (with transparently computed scores for relevant metrics) 3. Comparing competing P&A projects quantitatively (through transparently computed project impact and efficiency scores) As such, PRIMO is a versatile, fully customizable tool that is meant to support organizations in making data-based, transparent, and defensible well selection and P&A project design decisions. For questions, comments or feedback, please contact primo@netl.doe.gov.

MERP↗

eqtools: Modular, extensible, open-source, cross-machine Python tools for working with magnetic equilibria

As plasma physics research for fusion energy transitions to an increasing emphasis on cross-machine collaboration and numerical simulation, it becomes increasingly important that portable tools be developed to enable data from diverse sources to be analyzed in a consistent manner. This paper presents eqtools, a modular, extensible, open-source toolkit implemented in the Python programming language for handling magnetic equilibria and associated data from tokamaks. eqtools provides a single interface for working with magnetic equilibrium data, both for handling derived quantities and mapping between coordinate systems, extensible to function with data from different experiments, data formats, and magnetic reconstruction codes, replacing the diverse, non-portable solutions currently in use. Moreover, while the open-source Python programming language offers a number of advantages as a scripting language for research purposes, the lack of basic tokamak-specific functionality has impeded the adoption of the language for regular use. Implementing equilibrium-mapping tools in Python removes a substantial barrier to new development in and porting legacy code into Python. In this paper, we introduce the design of the eqtools package and detail the workflow for usage and expansion to additional devices. Additionally, the implementation of a novel three-dimensional spline solution (in two spatial dimensions and in time) is also detailed. Finally, verification and benchmarking for accuracy and speed against existing tools are detailed. Wider deployment of these tools will enable efficient sharing of data and software between institutions and machines as well as self-consistent analysis of the shared data.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

The PhEDEx next-gen website

PhEDEx is the data-transfer management solution written by CMS. It consists of agents running at each site, a website for presentation of information, and a web-based data-service for scripted access to information. The website allows users to monitor the progress of data-transfers, the status of site agents and links between sites, and the overall status and behaviour of everything about PhEDEx. It also allows users to make and approve requests for data-transfers and for deletion of data. It is the main point-of-entry for all users wishing to interact with PhEDEx. For several years, the website has consisted of a single perl program with about 10K SLOC. This program has limited capabilities for exploring the data, with only coarse filtering capabilities and no context-sensitive awareness. Graphical information is presented as static images, generated on the server, with no interactivity. It is also not well connected to the rest of the PhEDEx codebase, since much of it was written before the data-service was developed. All this makes it hard to maintain and extend. We are re-implementing the website to address these issues. The UI is being rewritten in Javascript, replacing most of the server-side code. We are using the YUI toolkit to provide advanced features and context-sensitive interaction, and will adopt a Javascript charting library for generating graphical representations client-side. This relieves the server of much of its load, and automatically improves server-side security. The Javascript components can be re-used in many ways, allowing custom pages to be developed for specific uses. In particular, standalone test-cases using small numbers of components make it easier to debug the Javascript than it is to debug a large server program. Information about PhEDEx is accessed through the PhEDEx data-service, since direct SQL is not available from the clients browser. This provides consistent semantics with other, externally written monitoring tools, which already use the data-service. It also reduces redundancy in the code, yielding a simpler, consolidated codebase. In this talk we describe our experience of re-factoring this monolithic server-side program into a lighter client-side framework. We describe some of the techniques that worked well for us, and some of the mistakes we made along the way. We present the current state of the project, and its future direction.

Egeland, R.↗

Automated radiotherapy treatment plan integrity verification

Purpose: In our clinic, physicists spend from 15 to 60 min to verify the physical and dosimetric integrity of radiotherapy plans before presentation to radiation oncology physicians for approval. The purpose of this study was to design and implement a framework to automate as many elements of this quality control (QC) step as possible. Methods: A comprehensive computer application was developed to carry out a majority of these verification tasks in the Philips PINNACLE treatment planning system (TPS). This QC tool functions based on both PINNACLE scripting elements and PERL sub-routines. The core of this technique is the method of dynamic scripting, which involves a PERL programming module that is flexible and powerful for treatment plan data handling. Run-time plan data are collected, saved into temporary files, and analyzed against standard values and predefined logical rules. The results were summarized in a hypertext markup language (HTML) report that is displayed to the user. Results: This tool has been in clinical use for over a year. The occurrence frequency of technical problems, which would cause delays and suboptimal plans, has been reduced since clinical implementation. Conclusions: In addition to drastically reducing the set of human-driven logical comparisons, this QC tool also accomplished some tasks that are otherwise either quite laborious or impractical for humans to verify, e.g., identifying conflicts amongst IMRT optimization objectives.

62 RADIOLOGY AND NUCLEAR MEDICINE↗