Search NASA⌕ Search

SEARCH · Search NASA

Results for “Building Block Approach”

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.

506 records · Page 29

Teuchos C++ memory management classes, idioms, and related topics, the complete reference : a comprehensive strategy for safe and efficient memory management in C++ for high performance computing.

The ubiquitous use of raw pointers in higher-level code is the primary cause of all memory usage problems and memory leaks in C++ programs. This paper describes what might be considered a radical approach to the problem which is to encapsulate the use of all raw pointers and all raw calls to new and delete in higher-level C++ code. Instead, a set of cooperating template classes developed in the Trilinos package Teuchos are used to encapsulate every use of raw C++ pointers in every use case where it appears in high-level code. Included in the set of memory management classes is the typical reference-counted smart pointer class similar to boost::shared ptr (and therefore C++0x std::shared ptr). However, what is missing in boost and the new standard library are non-reference counted classes for remaining use cases where raw C++ pointers would need to be used. These classes have a debug build mode where nearly all programmer errors are caught and gracefully reported at runtime. The default optimized build mode strips all runtime checks and allows the code to perform as efficiently as raw C++ pointers with reasonable usage. Also included is a novel approach for dealing with the circular references problem that imparts little extra overhead and is almost completely invisible to most of the code (unlike the boost and therefore C++0x approach). Rather than being a radical approach, encapsulating all raw C++ pointers is simply the logical progression of a trend in the C++ development and standards community that started with std::auto ptr and is continued (but not finished) with std::shared ptr in C++0x. Using the Teuchos reference-counted memory management classes allows one to remove unnecessary constraints in the use of objects by removing arbitrary lifetime ordering constraints which are a type of unnecessary coupling [23]. The code one writes with these classes will be more likely to be correct on first writing, will be less likely to contain silent (but deadly) memory usage errors, and will be much more robust to later refactoring and maintenance. The level of debug-mode runtime checking provided by the Teuchos memory management classes is stronger in many respects than what is provided by memory checking tools like Valgrind and Purify while being much less expensive. However, tools like Valgrind and Purify perform a number of types of checks (like usage of uninitialized memory) that makes these tools very valuable and therefore complement the Teuchos memory management debug-mode runtime checking. The Teuchos memory management classes and idioms largely address the technical issues in resolving the fragile built-in C++ memory management model (with the exception of circular references which has no easy solution but can be managed as discussed). All that remains is to teach these classes and idioms and expand their usage in C++ codes. The long-term viability of C++ as a usable and productive language depends on it. Otherwise, if C++ is no safer than C, then is the greater complexity of C++ worth what one gets as extra features? Given that C is smaller and easier to learn than C++ and since most programmers don't know object-orientation (or templates or X, Y, and Z features of C++) all that well anyway, then what really are most programmers getting extra out of C++ that would outweigh the extra complexity of C++ over C? C++ zealots will argue this point but the reality is that C++ popularity has peaked and is becoming less popular while the popularity of C has remained fairly stable over the last decade22. Idioms like are advocated in this paper can help to avert this trend but it will require wide community buy-in and a change in the way C++ is taught in order to have the greatest impact. To make these programs more secure, compiler vendors or static analysis tools (e.g. klocwork23) could implement a preprocessor-like language similar to OpenMP24 that would allow the programmer to declare (in comments) that certain blocks of code should be ''pointer-free'' or allow smaller blocks to be 'pointers allowed'. This would significantly improve the robustness of code that uses the memory management classes described here.

99 GENERAL AND MISCELLANEOUS↗

A System Approach to Deep Heating Savings Through Measurement, Management, and Motivation

Across multi-tenant commercial office and multifamily buildings, centrally metered fuel use represents a substantial fraction of whole-building energy use. Energy audit practitioners understand that improving heating distribution efficiency is typically more of an opportunity than combustion efficiency and that differing thermal comfort preferences between tenants are the bane of operators across these building typologies. There is an unmet market need for retrofit technologies that allow for the delivery of the right amount of heat to the right spaces, at the right time. The Energy Management and Information System (EMIS) package fills this gap through enhanced controls and metering, incorporating low-cost sensors and wireless communication infrastructure to provide a platform for ongoing commissioning and tenant feedback, including heat cost allocation. With support from the US DOE Building Technologies Office, Steven Winter Associates, Inc. (SWA) partnered with Sentient Buildings, E Source, building owners, and utility and policy stakeholders, to demonstrate a market viable EMIS that achieves a reduction in space heating energy use by reducing heating load, improving control, and positively impacting behavior while providing an acceptable financial return. In this study, EMIS packages were implemented in two New York City multifamily rental buildings. Both buildings conducted basic mechanical work (e.g., repairing steam traps) to ensure the heating system was operating well before any tenant feedback was layered in. Heating Energy Use Reports (HEUR) were created to provide tenants with social comparisons and energy savings tips to influence their behavior; these were provided monthly to all tenants in both buildings. Additionally, one building allocated heating costs to a portion of the tenants. Heat cost allocation (HCA) has a long history in the European Union (EU), although it is not common in the US or in steam-heated buildings. SWA leveraged existing EU best practices and stakeholder feedback to develop a Heat Cost Allocation algorithm that was considered equitable and intuitive. Energy use and tenant behavior impacts were tracked throughout the study. The basic mechanical repair work saved between 11-20% of heating energy. Those savings rose to 17-24% with the addition of tenant feedback. While it may not be possible to precisely determine the impact of COVID-19 on research studies like this, there may have been additional savings realized had the study taken place in a period of normal occupancy patterns. These types of central heating systems have been a blind spot for utilities, who have traditionally had little visibility into detailed behind-the-meter gas usage. Heating energy savings stayed consistent during the coldest months, indicating the potential for utilities to utilize EMIS packages for peak gas demand reductions or demand response programs. Tenant comfort was also improved. Post installation, room temperatures more closely matched thermostat set points. Perhaps due to this greater level of control, the vast majority of tenants being billed for heating were accepting of the allocation costs. And tenants receiving heat cost allocations were more likely to reduce their thermostat setpoints than tenants receiving behavioral feedback without financial impacts were. Variation in building specifics makes it difficult to provide precise energy and financial savings estimates. But within the range of expected conditions, the study identified a few key variables that can have the greatest impact on financial returns: the cost of fuel, the ability and willingness to allocate heating costs to tenants, and a well-functioning heating system as a starting point. This study focused on two multifamily buildings, but additional use cases, such as commercial buildings and affordable housing, should be explored to better understand the full market potential. While this type of upgrade has the potential for deep energy reductions and cost savings, future projects should take into account the balance of costs and benefits between owners and tenants, especially in the affordable, regulated, or other low-to-moderate income (LMI) segments of the market. Rent credits, utility allowances, or a shared savings program are possible options to accelerate adoption of this strategy in these market segments.

32 ENERGY CONSERVATION, CONSUMPTION, AND UTILIZATI↗