29.10.2014 Views

1 general introduction 2 energy use related to ... - UCC, IT in AEC

1 general introduction 2 energy use related to ... - UCC, IT in AEC

1 general introduction 2 energy use related to ... - UCC, IT in AEC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1 GENERAL INTRODUCTION................................................................................... 5<br />

1.1 ENERGY CONSUMPTION.............................................................................5<br />

1.2 BUILDING ENERGY AUD<strong>IT</strong>ING..................................................................8<br />

1.3 WHOLE BUILDING ENERGY ANALYSIS..................................................9<br />

1.4 BUILDING ENERGY MANAGEMENT SYSTEMS ..................................10<br />

1.5 THE <strong>IT</strong> NETWORK AND THE BEMS.........................................................11<br />

1.6 THE FUTURE OF BUILDING ENERGY CONTROL.................................11<br />

1.7 THESIS STRUCTURE SCHEMATIC...........................................................13<br />

1.8 LAYOUT OF THESIS....................................................................................14<br />

2 ENERGY USE RELATED TO CLIMATE CHANGE......................... 15<br />

2.1 WORLDWIDE LEGISLATION W<strong>IT</strong>H REGARD CO 2 EMMISIONS .......16<br />

2.2 KYOTO PROTOCOL AND THE EU............................................................16<br />

2.3 ENERGY RELATED CO 2 EMISSIONS - THE UNIVERSAL<br />

PERSPECTIVE...........................................................................................................17<br />

2.4 SUMMARY....................................................................................................22<br />

3 BUILDING ENERGY USE ........................................................................................ 23<br />

3.1 ENERGY ANALYSIS IN THE DESIGN STAGE ........................................24<br />

3.2 CR<strong>IT</strong>ERIA USED TO MON<strong>IT</strong>OR BUILDING OPERATIONAL<br />

PERFORMANCE .......................................................................................................26<br />

3.3 DECISION MAKING SUPPORT FOR STAKEHOLDERS.........................29<br />

3.4 BUILDING ENERGY MANAGEMENT SYSTEMS ...................................31<br />

3.5 SUMMARY....................................................................................................32<br />

4 WHOLE BUILDING ENERGY USE................................................................... 34<br />

4.1 INTRODUCTION ..........................................................................................35<br />

4.2 DISAGGREGATION OF ENERGY USE .....................................................35<br />

4.3 CALCULATING ENERGY USE BY COMPONENT..................................38<br />

4.4 USING WHOLE BUILDING ENERGY ANALYSIS TO ANALYSE REAL<br />

DATA..........................................................................................................................40<br />

1


4.5 AHU 1 – THE POOL AREA AHU ................................................................41<br />

4.6 CONCLUSIONS.............................................................................................44<br />

4.7 SUMMARY....................................................................................................45<br />

5 INFORMATION/ DATA MODELLING ......................................................... 46<br />

5.1 STEP COMPLIANCE .....................................................................................48<br />

5.2 XML.................................................................................................................49<br />

5.3 STEP AND XML...........................................................................................52<br />

5.4 DOCUMENT TYPE DEFIN<strong>IT</strong>IOIN (DTD) .................................................52<br />

5.5 GbXML............................................................................................................53<br />

5.6 MYSQL............................................................................................................54<br />

5.7 OPEN SOURCE SOFTWARE........................................................................55<br />

5.8 DATABASE DEVELOPMENT......................................................................56<br />

5.9 SUMMARY....................................................................................................58<br />

6 THE MARDYKE ARENA ...........................................Error! Bookmark not def<strong>in</strong>ed.<br />

6.1 INTRODUCTION TO THE MARDYKE ARENA ......Error! Bookmark not<br />

def<strong>in</strong>ed.<br />

6.2 BUILDING USAGE PROFILE...................... Error! Bookmark not def<strong>in</strong>ed.<br />

6.3 BUILDING ENERGY USE............................ Error! Bookmark not def<strong>in</strong>ed.<br />

6.4 BUILDING HVAC DESIGN ......................... Error! Bookmark not def<strong>in</strong>ed.<br />

6.5 CONCLUSIONS............................................. Error! Bookmark not def<strong>in</strong>ed.<br />

6.6 SUMMARY.................................................... Error! Bookmark not def<strong>in</strong>ed.<br />

7 SPECIFICATIONS OF REQUIREMENTS .................................................. 60<br />

7.1 PRESENT S<strong>IT</strong>UATION AND PROPOSED NEW DIRECTION ..................61<br />

7.2 ARCHIVING ..................................................................................................63<br />

7.3 DATA TRANSFER AND INTEROPERABIL<strong>IT</strong>Y .......................................65<br />

7.4 USER INTERACTION ANALYSIS AND DESIGN ....................................69<br />

2


7.5 LINKING THE TECHNOLOGIES TOGETHER..........................................76<br />

7.6 SUMMARY.....................................................................................................78<br />

8 DESIGN..................................................................................................................................... 80<br />

8.1 INTRODUCTION ..........................................................................................80<br />

8.2 VIEW LAYER - GUI DESIGN......................................................................88<br />

8.3 MODEL LAYER - DATABASE DESIGN....................................................93<br />

8.4 CONTROL LAYER – PHP ............................................................................95<br />

8.5 SECUR<strong>IT</strong>Y - USER AUTHENTICATION .................................................101<br />

8.6 SUMMARY..................................................................................................105<br />

9 IMPLEMENTATION................................................................................................... 106<br />

9.1 BACKGROUND ..........................................................................................106<br />

9.2 MARDYKE ARENA HARDWARE S<strong>IT</strong>UATION .....................................106<br />

9.3 UNIVERS<strong>IT</strong>Y SERVER ..............................................................................110<br />

9.4 WORKING APPLICATION ........................................................................113<br />

9.5 GUI DEVELOPMENT W<strong>IT</strong>H IMPLEMENTED CONTROL STRUCTURE<br />

139<br />

9.5 SUMMARY.................................................................................................145<br />

10 TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE ARENA..... 147<br />

10.1 SOFTWARE TESTING ................................................................................148<br />

10.2 REVIEW OF HARDWARE S<strong>IT</strong>UATION IN THE MARDYKE ARENA.150<br />

10.3 PROBLEMS ENCOUNTERED AND SOLUTIONS FOUND ...................151<br />

10.4 NETWORK CONNECTION DIFFICULTIES ............................................154<br />

10.5 FILE PERMISSION PROBLEMS USING IIS ............................................155<br />

10.6 UPLOAD PROBLEMS ................................................................................156<br />

10.7 QUANTIFYING DATA STORAGE CAPAC<strong>IT</strong>Y.......................................158<br />

10.8 A CASE STUDY – THE MARDYKE ARENA ..........................................160<br />

10.9 RESULTS AND CONCLUSIONS................................................................167<br />

3


10.10 SUMMARY..............................................................................................170<br />

11 FUTURE WORK......................................................................................................... 171<br />

11.1 METERING OF FACIL<strong>IT</strong>IES......................................................................171<br />

11.2 TECHNOLOGY REQUIRED TO ENSURE OPTIMUM INFORMATION<br />

RETREIVAL FROM A FACIL<strong>IT</strong>Y .........................................................................172<br />

11.3 XML INTEGRATION W<strong>IT</strong>H OFF THE SHELF APPLICATIONS .........174<br />

11.4 USING GD-LIBRARY TO GRAPHICALLY INTERTPRET RETURNED<br />

RESULTS .................................................................................................................175<br />

11.5 WHOLE BUILDING ENERGY ANALYSIS OF THE MARDYKE ARENA<br />

...................................................................................................................................177<br />

11.6 CREATION OF AN EXECUTABLE FILE TO AUTOMATICALLY<br />

UPLOAD DATA TO MySQL DATABASE............................................................178<br />

11.7 SESSION CONTROL IMPLEMENTATION.............................................179<br />

11.8 REMOTE UPLOAD OF DATA W<strong>IT</strong>H SSL INTEGRATION ..................179<br />

11.9 DEVELOPMENT OF A MORE PROFESSIONAL GUI ...........................181<br />

11.10 FUTURE BUSINESS PLAN......................................................................182<br />

11.11 SUMMARY.................................................................................................184<br />

12 REFERENCES.............................................................................................................. 185<br />

13 APPENDICES ................................................................................................................ 197<br />

A - HOVAL HEAT EXCHANGER CATALOGUE................................................197<br />

B – EU DIRECTIVE ON THE ENERGY PERFORMANCE OF BUILDINGS.....201<br />

C – EPA MISSION STATEMENT REGARDING EMISSIONS TRADING<br />

SCHEME ..................................................................................................................208<br />

D – CYLON Ltd. UN<strong>IT</strong>RON CONTROL SYSTEM MANUAL ............................210<br />

4


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

GENERAL INTRODUCTION<br />

1.1 ENERGY CONSUMPTION<br />

The latest report from the Intergovernmental Panel on Climate Change [IPCC, 2001]<br />

refers directly <strong>to</strong> the emissions of gases such as CO 2 as the ma<strong>in</strong> reason for global<br />

warm<strong>in</strong>g [Rolfsman, 2002], and with their emission be<strong>in</strong>g a direct result from the<br />

<strong>energy</strong> generation process, the need for the reduction of worldwide <strong>energy</strong> <strong>use</strong> is<br />

highlighted. The major contribu<strong>to</strong>rs of CO 2 emissions are the developed and<br />

<strong>in</strong>dustrialised countries notably <strong>in</strong> Europe and North America. The whole of Asia<br />

contributes about 36.4% of which Ch<strong>in</strong>a and Japan contribute about 14% and 15%<br />

respectively [Priambodo, Kumar, 2001]. The projected rise <strong>in</strong> greenho<strong>use</strong> gas emissions<br />

<strong>in</strong> Ireland from 1990 <strong>to</strong> 2010 is 25% compared <strong>to</strong> the limit of 13% under the EU<br />

burden-shar<strong>in</strong>g agreement.<br />

Reports by the Intergovernmental Panel on Climate Change (IPCC) and the US<br />

Department of Energy note that build<strong>in</strong>gs account for 25-30% of <strong>to</strong>tal <strong>energy</strong>-<strong>related</strong><br />

carbon dioxide (CO 2 ) emissions [Wiel et al, 1998]. The overall build<strong>in</strong>g s<strong>to</strong>ck <strong>in</strong> the U.S<br />

accounted for 40% of the <strong>to</strong>tal <strong>energy</strong> consumption of the entire country [Filipp<strong>in</strong>,<br />

2000]. Energy consumption for build<strong>in</strong>gs-<strong>related</strong> services accounts for approximately<br />

one third of <strong>to</strong>tal EU <strong>energy</strong> consumption [EU, 2002]. Energy consumption <strong>in</strong> build<strong>in</strong>gs<br />

accounts for approximately 30% of greenho<strong>use</strong> gas emissions <strong>in</strong> Ireland with build<strong>in</strong>gs<br />

account<strong>in</strong>g for approximately 40% of <strong>to</strong>tal <strong>energy</strong> consumed, mean<strong>in</strong>g that this is an<br />

area of much significance if <strong>energy</strong> conservation and susta<strong>in</strong>ability is <strong>to</strong> be achieved <strong>in</strong><br />

this country.<br />

1.1.2 A global breakdown of <strong>energy</strong> <strong>use</strong> <strong>in</strong> build<strong>in</strong>gs<br />

S<strong>in</strong>ce 1950 global CO 2 emissions from <strong>energy</strong>-<strong>related</strong> activities have grown 3.2%<br />

annually <strong>to</strong> an estimated 6188 million <strong>to</strong>nnes (Mt) of carbon <strong>in</strong> 1991. North America<br />

accounts for nearly a fourth of world emissions, followed by Eastern Europe and the<br />

former Soviet Union (19%), Western Europe (15%) and Centrally Planned Asia (12%)<br />

[Wiel et al, 1998]. The fastest growth <strong>in</strong> emissions has taken place <strong>in</strong> the Middle East<br />

and Centrally Planned Asia (both about three times the world average), followed by<br />

countries <strong>in</strong> the Far East [Marland et al., 1994]. Build<strong>in</strong>gs-<strong>related</strong> emissions account for<br />

approximately 30% of <strong>to</strong>tal global CO 2 emissions from <strong>energy</strong> <strong>use</strong> (19% from the<br />

5


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

residential sec<strong>to</strong>r and 10% from the commercial sec<strong>to</strong>r) [Lev<strong>in</strong>e et al., 1996a]. Even <strong>in</strong><br />

climatically favourable Australia, <strong>energy</strong> consumption <strong>in</strong> build<strong>in</strong>gs accounts for 25% of<br />

<strong>to</strong>tal <strong>energy</strong> consumption [Filipp<strong>in</strong>, 2000]. The IPCC report further notes that the rate of<br />

growth <strong>in</strong> emissions from develop<strong>in</strong>g countries was over four times the average world<br />

rate between 1973 and 1990 (4.4%), and that their share of world build<strong>in</strong>g emissions<br />

has grown from an estimated 11% of the world <strong>to</strong>tal <strong>in</strong> 1973 <strong>to</strong> 19% <strong>in</strong> 1990 [Wiel et al,<br />

1998]. The global breakdown of CO 2 emissions from build<strong>in</strong>gs can be seen <strong>in</strong> Figure<br />

1.1.<br />

Figure 1.1: CO 2 emissions from build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> by region [Wiel et al., 1998]<br />

1.1.2.1 United States<br />

Reports by the Intergovernmental Panel on Climate Change (IPCC) and the US<br />

Department of Energy note that build<strong>in</strong>gs account for 25-30% of <strong>to</strong>tal <strong>energy</strong>-<strong>related</strong><br />

carbon dioxide (CO 2 ) emissions [Wiel et al, 1998], [DOE, 2002]. In 1992, 27 % of the<br />

4.8 million commercial build<strong>in</strong>gs <strong>in</strong> the United States were mercantile build<strong>in</strong>gs <strong>use</strong>d<br />

primarily for sale and/or distribution of goods and services. These build<strong>in</strong>gs had 18 %<br />

of the 67.9 billion square feet of commercial floorspace and <strong>use</strong>d 15 % of the 5.8<br />

quadrillion Btu (1BtU = 1.055 kJ) of site commercial <strong>energy</strong> <strong>to</strong> provide <strong>energy</strong> services.<br />

Office build<strong>in</strong>gs accounted for only 16 % of all build<strong>in</strong>gs and floorspace, but<br />

commanded 22 % of all the commercial site <strong>energy</strong> <strong>use</strong>d <strong>in</strong> 1992. The overall build<strong>in</strong>g<br />

s<strong>to</strong>ck <strong>in</strong> the U.S accounted for 40% of the <strong>to</strong>tal <strong>energy</strong> consumption of the entire<br />

country [Filipp<strong>in</strong>, 2000]. In 1989 the largest proportion of the <strong>energy</strong> <strong>use</strong>d for <strong>energy</strong><br />

6


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

services <strong>in</strong> commercial build<strong>in</strong>gs was for space heat<strong>in</strong>g (35 %) followed by light<strong>in</strong>g (18<br />

%), water heat<strong>in</strong>g (9 %), office equipment (7 %), space cool<strong>in</strong>g (5 %), ventilation (5 %),<br />

cook<strong>in</strong>g (3 %) and refrigeration (5%)[EIA, 1992]. Some build<strong>in</strong>g activities <strong>use</strong> more of<br />

a particular <strong>energy</strong> service than other build<strong>in</strong>g activities; for example, office build<strong>in</strong>gs<br />

<strong>use</strong>d only 30 % of the <strong>to</strong>tal site <strong>energy</strong> for space heat<strong>in</strong>g, but educational build<strong>in</strong>gs <strong>use</strong>d<br />

54 % of <strong>to</strong>tal site <strong>energy</strong> for space heat<strong>in</strong>g.<br />

1.1.2.2 European Union (EU)<br />

Energy consumption for build<strong>in</strong>gs-<strong>related</strong> services accounts for approximately one third<br />

of <strong>to</strong>tal EU <strong>energy</strong> consumption [EU, 2002]. The EU Commission considers that, with<br />

<strong>in</strong>itiatives <strong>in</strong> this area, significant <strong>energy</strong> sav<strong>in</strong>gs can be achieved, thus help<strong>in</strong>g <strong>to</strong> atta<strong>in</strong><br />

objectives on climate change as set out by the Kyo<strong>to</strong> pro<strong>to</strong>col and security of supply.<br />

Office equipment (personal computers, moni<strong>to</strong>rs, fax mach<strong>in</strong>es, scanners, copiers,<br />

pr<strong>in</strong>ters, etc.) accounts for a large proportion of electricity consumption <strong>in</strong> the tertiary<br />

sec<strong>to</strong>r. In the context of the Community's <strong>in</strong>ternational commitments, particularly <strong>in</strong> the<br />

area of climate change (notably the KYOTO PROTOCOL), and given its objectives <strong>in</strong><br />

such areas as susta<strong>in</strong>able development, the <strong>energy</strong>-efficiency <strong>in</strong>itiatives take on special<br />

significance. The implementation of a coord<strong>in</strong>ated labell<strong>in</strong>g programme (known as<br />

ENERGY STAR [EnergyStar, 2003] will enable consumers <strong>to</strong> identify <strong>energy</strong>-efficient<br />

appliances and should therefore result <strong>in</strong> electricity sav<strong>in</strong>gs that will help not only <strong>to</strong><br />

protect the environment but also <strong>to</strong> ensure the security of <strong>energy</strong> supply. The<br />

programme may also help <strong>to</strong> encourage the manufacture and sale of <strong>energy</strong>-efficient<br />

products.<br />

1.1.2.3 Ireland<br />

Energy consumption <strong>in</strong> build<strong>in</strong>gs accounts for approximately 30% of greenho<strong>use</strong> gas<br />

emissions <strong>in</strong> Ireland and accounts for 40% of the <strong>to</strong>tal <strong>energy</strong> consumption. The <strong>to</strong>tal<br />

Irish hous<strong>in</strong>g s<strong>to</strong>ck is about 1.1 million units, a significant proportion of which has no<br />

exist<strong>in</strong>g <strong>in</strong>sulation, with build<strong>in</strong>g completions estimated at 20,000 – 30,000 a year,<br />

mak<strong>in</strong>g Ireland unique <strong>in</strong> the EU <strong>in</strong> relative growth terms [TFI, 2002]. There is vast<br />

potential <strong>to</strong> reduce <strong>energy</strong> consumption and improve comfort levels <strong>in</strong> both new and<br />

exist<strong>in</strong>g build<strong>in</strong>gs through an <strong>in</strong>tegrated range of measures designed <strong>to</strong> support <strong>energy</strong><br />

conservation and improved efficiency, and <strong>in</strong>creased <strong>use</strong> of renewable energies <strong>in</strong><br />

7


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

build<strong>in</strong>gs; especially passive solar heat<strong>in</strong>g, daylight<strong>in</strong>g, natural cool<strong>in</strong>g and active solar<br />

systems, where appropriate.<br />

Even after tak<strong>in</strong>g account of the expected <strong>in</strong>crease <strong>in</strong> build<strong>in</strong>g s<strong>to</strong>ck by 2015, it should<br />

still be possible <strong>to</strong> reduce the <strong>to</strong>tal <strong>energy</strong> consumption and carbon dioxide emissions of<br />

the build<strong>in</strong>gs sec<strong>to</strong>r significantly.<br />

A number of ways currently exist <strong>to</strong> first of all quantify the <strong>energy</strong> <strong>use</strong>d <strong>in</strong> a facility and<br />

secondly identify areas where the performance could be improved with a view <strong>to</strong><br />

reduc<strong>in</strong>g the <strong>energy</strong> consumption and hence CO 2 emissions.<br />

1.2 BUILDING ENERGY AUD<strong>IT</strong>ING<br />

1.2.1 Energy audit<strong>in</strong>g as a support <strong>to</strong>ol<br />

With performance and economic viability tak<strong>in</strong>g such a prime position <strong>in</strong> any decision<br />

that the stakeholders <strong>in</strong> any project make, it is essential <strong>to</strong> have a <strong>to</strong>ol that comb<strong>in</strong>es<br />

both <strong>in</strong> order <strong>to</strong> get <strong>to</strong> a best practice solution. An <strong>energy</strong> audit would be one such <strong>to</strong>ol.<br />

Energy audits and surveys are <strong>in</strong>vestigations conducted on a site with a view <strong>to</strong><br />

identify<strong>in</strong>g cost sav<strong>in</strong>g measures, reduc<strong>in</strong>g the <strong>energy</strong> <strong>use</strong>d, as well as the detrimental<br />

environmental impact of the <strong>energy</strong> <strong>use</strong> of that site. Their results should be<br />

comprehensive and <strong>use</strong>ful <strong>to</strong> different groups of <strong>use</strong>rs [Bennett, Newborough, 2001],<br />

i.e., both the skilled eng<strong>in</strong>eer and the facility manager. They are an essential part of the<br />

control of <strong>energy</strong> costs and should be carried out every 3 – 5 years. Audits along with<br />

rout<strong>in</strong>e moni<strong>to</strong>r<strong>in</strong>g of a facility ensure that <strong>energy</strong> is utilized cost effectively. Through<br />

their <strong>use</strong>, future consumption could be predicted and strategies could be devised <strong>to</strong><br />

reduce it [Bennett, Newborough 2001], this be<strong>in</strong>g of <strong>in</strong>terest when the EU directives<br />

targets for Ireland are taken <strong>in</strong><strong>to</strong> account.<br />

The <strong>energy</strong> audit can take a number of forms from an overall <strong>energy</strong> audit <strong>to</strong> a more<br />

specific light<strong>in</strong>g audit which would highlight deficiencies specifically <strong>in</strong> the area of<br />

light<strong>in</strong>g.<br />

1.2.2 Build<strong>in</strong>g Benchmark<strong>in</strong>g<br />

By quantify<strong>in</strong>g a build<strong>in</strong>gs <strong>energy</strong> usage over a predeterm<strong>in</strong>ed amount of time, its actual<br />

performance can be compared with representative figures for that particular build<strong>in</strong>gs<br />

usage sec<strong>to</strong>r (benchmarks), e.g. Leisure facilities [DETR ECON 19, 2002]. The EU<br />

benchmark <strong>use</strong>d is <strong>energy</strong> <strong>use</strong>d per metre of floor area (kWh/m 2 ) <strong>in</strong> the build<strong>in</strong>g. If a<br />

build<strong>in</strong>g is assessed and its <strong>energy</strong> usage is above the benchmark for its usage sec<strong>to</strong>r,<br />

8


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

remedial action can take place <strong>to</strong> br<strong>in</strong>g the <strong>energy</strong> usage down <strong>to</strong> the recommended and<br />

more cost effective level. The benchmarks are derived from surveys of large amounts of<br />

occupied build<strong>in</strong>gs so as <strong>to</strong> determ<strong>in</strong>e an average value, known as the “typical” value,<br />

and also a value which would represent that sec<strong>to</strong>r that has significantly lower <strong>energy</strong><br />

consumption, and employs <strong>energy</strong> management features <strong>in</strong> its usage, this build<strong>in</strong>g <strong>to</strong> be<br />

known as a “good practice” build<strong>in</strong>g.<br />

However these techniques even though very effective <strong>in</strong> an overall <strong>energy</strong> conservation<br />

fashion, do not specifically identify where excess <strong>energy</strong> usage is tak<strong>in</strong>g place, which<br />

would lead <strong>to</strong> a more accurate solution. Section 1.3 <strong>in</strong>troduces the concept of Whole<br />

Build<strong>in</strong>g Energy analysis, which is the analysis of a build<strong>in</strong>g by its constituent <strong>energy</strong><br />

utilis<strong>in</strong>g parts, lead<strong>in</strong>g <strong>to</strong> a more effective and exact solution.<br />

1.3 WHOLE BUILDING ENERGY ANALYSIS<br />

1.3.1 Components of <strong>energy</strong> <strong>use</strong> <strong>in</strong> build<strong>in</strong>gs<br />

By splitt<strong>in</strong>g a build<strong>in</strong>gs <strong>energy</strong> <strong>use</strong> <strong>in</strong><strong>to</strong> its <strong>in</strong>dividual constituents, the <strong>energy</strong> <strong>use</strong> can be<br />

tracked more closely with a view <strong>to</strong> identify<strong>in</strong>g areas where optimal performance is not<br />

be<strong>in</strong>g achieved, thus allow<strong>in</strong>g the contracted eng<strong>in</strong>eer <strong>to</strong> make changes <strong>to</strong> the system <strong>to</strong><br />

improve performance.<br />

1.3.2 Disaggregation of <strong>energy</strong> <strong>use</strong><br />

The <strong>energy</strong> <strong>use</strong> <strong>in</strong> the build<strong>in</strong>g is disaggregated us<strong>in</strong>g the monthly utility bills <strong>in</strong><strong>to</strong> the<br />

components of [Vital Signs, 2003]:<br />

:<br />

• Energy and costs for fan mo<strong>to</strong>r operation;<br />

• Energy and costs for light<strong>in</strong>g;<br />

• Energy and costs for receptacles (e.g. computers, office equipment and small<br />

appliances);<br />

• Energy and costs for water heat<strong>in</strong>g;<br />

• Energy and costs for space cool<strong>in</strong>g;<br />

• Energy and costs for space heat<strong>in</strong>g.<br />

9


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

Once disaggregated, the <strong>energy</strong> can be more easily accounted for with any shortfalls <strong>in</strong><br />

performance easily identified. This method ensures that all systems are accountable for<br />

their <strong>energy</strong> <strong>use</strong>, so ensur<strong>in</strong>g efficient system performance.<br />

The effective utilisation of this analysis technique does however require the data that a<br />

Build<strong>in</strong>g Energy Management System can record, and this <strong>in</strong> turn is the next area <strong>to</strong> be<br />

discussed.<br />

1.4 BUILDING ENERGY MANAGEMENT SYSTEMS<br />

Build<strong>in</strong>g Energy Management Systems (BEMSs) can significantly improve the overall<br />

<strong>energy</strong> management and performance of build<strong>in</strong>gs. BEMS’s have become a significant<br />

part of the modern build<strong>in</strong>g, add<strong>in</strong>g sav<strong>in</strong>g potential as well as <strong>in</strong>creas<strong>in</strong>g functionality<br />

[Wang, Zheng 2001]. The operational feedback obta<strong>in</strong>ed from the BEMS can cut <strong>energy</strong><br />

costs by by 10 – 20% compared with <strong>in</strong>dividual control operation for each facet of the<br />

system [CIBSE, 2002a]. However, for a BEMS <strong>to</strong> operate effectively it needs <strong>to</strong> be well<br />

specified and managed correctly by tra<strong>in</strong>ed staff. An easily understandable graphical<br />

<strong>use</strong>r <strong>in</strong>terface (GUI) design is also an essential part of any BEMS <strong>to</strong> ensure good<br />

operation.<br />

The moni<strong>to</strong>r<strong>in</strong>g facilities of a BEMS allows plant status, environmental conditions and<br />

<strong>energy</strong> <strong>use</strong> <strong>to</strong> be moni<strong>to</strong>red allow<strong>in</strong>g the <strong>use</strong>r <strong>to</strong> have a real time understand<strong>in</strong>g of the<br />

operation of the build<strong>in</strong>g. This often leads <strong>to</strong> the <strong>use</strong>r identify<strong>in</strong>g areas that the build<strong>in</strong>g<br />

is not perform<strong>in</strong>g well, e.g. a period of high <strong>energy</strong> usage with no mitigat<strong>in</strong>g<br />

circumstances. Energy consumption is at a m<strong>in</strong>imum when the source (electrical<br />

<strong>energy</strong>) tracks the load perfectly, which will be discussed <strong>in</strong> Chapter 9 on the<br />

implementation of this project with respect <strong>to</strong> the control of HVAC equipment. When a<br />

mismatch occurs, <strong>energy</strong> losses are high [Bhatt, 2000]. Thus through the <strong>use</strong> of the<br />

BEMS, the build<strong>in</strong>gs <strong>energy</strong> <strong>use</strong> can be tailored <strong>to</strong> meet its load pattern and <strong>to</strong> achieve<br />

the highest possible states of comfort at least cost. BEMSs can therefore improve<br />

build<strong>in</strong>g management by trend logg<strong>in</strong>g performance, benefit<strong>in</strong>g forward plann<strong>in</strong>g and<br />

cost<strong>in</strong>g, and when coupled with whole build<strong>in</strong>g analysis, serve as a very effective<br />

<strong>energy</strong> conservation system for build<strong>in</strong>gs.<br />

The BEMS system can also serve as an early warn<strong>in</strong>g system so that if set<br />

environmental conditions are exceeded, or plant shutdown has occurred outside<br />

operat<strong>in</strong>g procedure, an alarm can be set <strong>to</strong> go off. This would make the <strong>use</strong>r aware that<br />

10


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

a problem may exist. BEMSs that <strong>in</strong>tegrate security, access control and light<strong>in</strong>g are now<br />

available, which where appropriate can further reduce runn<strong>in</strong>g costs.<br />

A new advance <strong>in</strong> the BEMS field is the <strong>use</strong> of the <strong>IT</strong> network as the communications<br />

medium for the system, and this is <strong>to</strong> be the next area of <strong>in</strong>terest <strong>in</strong> this project.<br />

1.5 THE <strong>IT</strong> NETWORK AND THE BEMS<br />

<strong>IT</strong> networks are a standard part of most non-domestic build<strong>in</strong>gs and their <strong>use</strong> as the<br />

communications system for BEMSs has emerged as the next step <strong>in</strong> develop<strong>in</strong>g<br />

<strong>in</strong>telligent build<strong>in</strong>g control [CIBSE, 2002]. The vast majority of these systems are based<br />

on the Ethernet and most employ Transmission Control Pro<strong>to</strong>col/Internet Pro<strong>to</strong>col<br />

(TCP/IP) as the communications procedure for data transport. The fall<strong>in</strong>g cost and the<br />

newly found ease of <strong>in</strong>stallation mean that this technology is now at the forefront <strong>in</strong><br />

BEMS system communication technology.<br />

The Local Area Networks (LANs) l<strong>in</strong>ked <strong>to</strong> the controllers are then connected <strong>to</strong> the<br />

Ethernet which <strong>in</strong> turn is presided over by a supervisory W<strong>in</strong>dows based PC which<br />

governs the whole system. This enables the BEMS <strong>to</strong> take advantage of the <strong>IT</strong> networks<br />

high speed and flexibility [CIBSE, 2002]. The next generation of supervisors will also<br />

be able <strong>to</strong> serve up HTML, the language of the World Wide Web, <strong>to</strong> display data <strong>in</strong> a<br />

common web browser. This coupled with the fact that XML could be then generated<br />

enabl<strong>in</strong>g a data transfer solution ensures that the future <strong>use</strong> of the <strong>IT</strong> network <strong>in</strong> build<strong>in</strong>g<br />

moni<strong>to</strong>r<strong>in</strong>g and control has only reached the tip of the iceberg.<br />

1.6 THE FUTURE OF BUILDING ENERGY CONTROL – PROJECT<br />

OBJECTIVES<br />

The impact of the current <strong>energy</strong> conservation policy and the associated environmental<br />

<strong>in</strong>itiatives with this mean that the associated costs of runn<strong>in</strong>g a build<strong>in</strong>g now take equal<br />

if not greater importance than the actual capital costs of its construction [CIBSE,<br />

2002b]. Build<strong>in</strong>g control and moni<strong>to</strong>r<strong>in</strong>g as well as the ability <strong>to</strong> label a build<strong>in</strong>gs<br />

<strong>energy</strong> <strong>use</strong> are now the areas that most research is address<strong>in</strong>g. The <strong>use</strong> of Internet<br />

Pro<strong>to</strong>col (IP), which enables the control layer data <strong>to</strong> be transferred <strong>to</strong> the computer<br />

screen at a fast rate and high quantity, will also be utilised.<br />

In the UK and Ireland, the Build<strong>in</strong>g Energy Management System (BEMS) is expected<br />

<strong>to</strong> play an important role <strong>in</strong> build<strong>in</strong>g <strong>energy</strong> management and security over the com<strong>in</strong>g<br />

years [CIBSE, 2002c]. With the <strong><strong>in</strong>troduction</strong> of the Ethernet as the communications<br />

11


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

backbone for the BEMS, it now has the added flexibility and speed of the <strong>IT</strong> system.<br />

Over the Ethernet, the download of a 100-po<strong>in</strong>t data log for example would take just a<br />

fraction of a second [CIBSE, 2002]. Devices have been developed which allow a much<br />

more plug and play approach <strong>to</strong> connect<strong>in</strong>g a control device <strong>to</strong> the Ethernet, which will<br />

have a huge impact on data shar<strong>in</strong>g between systems <strong>in</strong> a build<strong>in</strong>g. This would allow a<br />

much more <strong>in</strong>tegrated solution with for example the HVAC and fire alarms systems<br />

be<strong>in</strong>g displayed on the same Graphical User Interface (GUI) [CIBSE, 2002c].<br />

The build<strong>in</strong>g data will also be archived us<strong>in</strong>g a relational database management system.<br />

This archiv<strong>in</strong>g of build<strong>in</strong>g data will allow its performance <strong>to</strong> be moni<strong>to</strong>red on an<br />

ongo<strong>in</strong>g basis, so mak<strong>in</strong>g it as efficient as possible <strong>in</strong> its everyday <strong>use</strong>.<br />

The GUI is the next area <strong>to</strong> be taken <strong>to</strong> the next level with the advent of the Ethernet<br />

and IP as the communications network for the BEMS. Some of the latest BEMSs are<br />

able <strong>to</strong> display data <strong>in</strong> HTML (hypertext mark-up language), which is the language of<br />

the World Wide Web on a simple web browser. This facilitates a much more flexible<br />

data analysis platform as the extensibility of the Ethernet and the usability of the web<br />

browser mean off site analysis is now possible via the IP network. This will mean that<br />

many more people will not only have access <strong>to</strong> the data but will understand it.<br />

The <strong>use</strong> of a language called XML (extensible mark-up language) is the next step <strong>in</strong> this<br />

process. This language is the evolution of HTML, and is <strong>use</strong>d <strong>to</strong> structure data on the<br />

web. Many control manufacturers are now develop<strong>in</strong>g controllers that have the ability <strong>to</strong><br />

transfer data <strong>in</strong> XML across the Ethernet. This allows the formatt<strong>in</strong>g of their data, as<br />

well as the ability <strong>to</strong> comb<strong>in</strong>e data from different controllers <strong>in</strong> one XML document for<br />

analysis, so emphasis<strong>in</strong>g the comb<strong>in</strong>ed system approach that the BEMS is now tak<strong>in</strong>g<br />

[CIBSE, 2002d]. XML files could also be created from the sensor data obta<strong>in</strong>ed via the<br />

web browser enabl<strong>in</strong>g data <strong>to</strong> be transferred <strong>to</strong> third party packages that have the ability<br />

<strong>to</strong> read XML for analysis such as Energyplus and DOE 2. A build<strong>in</strong>g sec<strong>to</strong>r specific<br />

version of the XML language called gbXML will be <strong>use</strong>d <strong>to</strong> facilitate the transfer of<br />

build<strong>in</strong>g specific data for <strong>use</strong> with these applications. This will make it much more time<br />

and cost effective <strong>to</strong> analyse build<strong>in</strong>g data with a view <strong>to</strong> reduc<strong>in</strong>g the associated <strong>energy</strong><br />

costs.<br />

This ability <strong>to</strong> display multiple build<strong>in</strong>g systems on a web browser, along with the<br />

ability <strong>to</strong> transfer data <strong>in</strong> a structured, generic form across the Ethernet for analysis<br />

means the possibilities for improvements <strong>in</strong> the way build<strong>in</strong>gs are moni<strong>to</strong>red is endless.<br />

If this is added <strong>to</strong> the fact that <strong>use</strong>rs can access <strong>in</strong>formation from any convenient<br />

12


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

location us<strong>in</strong>g web browsers, personal organisers, or even mobile phones, this po<strong>in</strong>t is<br />

emphasised. With the <strong><strong>in</strong>troduction</strong> of whole build<strong>in</strong>g <strong>energy</strong> analysis <strong>in</strong><strong>to</strong> this problemsolv<strong>in</strong>g<br />

loop, the <strong>energy</strong> sav<strong>in</strong>g potential is enormous.<br />

1.7 THESIS STRUCTURE SCHEMATIC<br />

The Thesis Structure schematic shown <strong>in</strong> Figure 1.2 illustrates the different areas that<br />

this thesis exam<strong>in</strong>es <strong>in</strong> the development of this software <strong>to</strong>ol. The colour cod<strong>in</strong>g at the<br />

beg<strong>in</strong>n<strong>in</strong>g of each section signifies the beg<strong>in</strong>n<strong>in</strong>g of a new <strong>to</strong>pic of exam<strong>in</strong>ation.<br />

Moni<strong>to</strong>r<strong>in</strong>g<br />

Energy <strong>use</strong><br />

ENERGYEYE<br />

Energy Archiv<strong>in</strong>g and<br />

Analysis Tool<br />

Kyo<strong>to</strong> Pro<strong>to</strong>col<br />

PHP<br />

MySQL<br />

Unitron & BACnet<br />

Environmental<br />

Requirements<br />

Whole Build<strong>in</strong>g<br />

Energy Analysis<br />

gbXML<br />

Technology<br />

Methodology<br />

Real Case Study<br />

THE MARDYKE ARENA<br />

Figure 1.2: Thesis structure schematic<br />

13


CHAPTER 1<br />

GENERAL INTRODUCTION<br />

1.8 LAYOUT OF THESIS<br />

Chapter 2 exam<strong>in</strong>es the current legislation with regard <strong>to</strong> <strong>energy</strong> <strong>related</strong> CO 2 emissions<br />

<strong>in</strong> both a National and International perspective and exam<strong>in</strong>es how build<strong>in</strong>gs contribute<br />

a high percentage of this <strong>energy</strong>. Chapter 3 addresses the <strong>energy</strong> <strong>use</strong> <strong>in</strong> build<strong>in</strong>gs at the<br />

three stages of build<strong>in</strong>g development and foc<strong>use</strong>s more closely on the operational phase<br />

of <strong>energy</strong> <strong>use</strong>. BEMSs are <strong>in</strong>troduced and the <strong>in</strong>dividual ways <strong>in</strong> which build<strong>in</strong>g <strong>energy</strong><br />

<strong>use</strong> can be evaluated is also exam<strong>in</strong>ed. Chapter 4 <strong>in</strong>troduces the concept of whole<br />

build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> and analysis as a means <strong>to</strong> more closely moni<strong>to</strong>r build<strong>in</strong>g <strong>energy</strong><br />

performance. Chapter 5 looks at mak<strong>in</strong>g the BEMS more extensible through the <strong>use</strong> of<br />

the gbXML build<strong>in</strong>g data exchange format, as well as <strong>in</strong>troduc<strong>in</strong>g the idea of the<br />

database management system <strong>to</strong> take advantage of the BEMS systems ability <strong>to</strong> log<br />

build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> data. This will allow data <strong>to</strong> be archived with a view <strong>to</strong> future<br />

analysis. Chapter 6 <strong>in</strong>troduces the Mardyke Arena sports complex as the facility <strong>to</strong> be<br />

<strong>use</strong>d as a pro<strong>to</strong>type for this project. It also describes the build<strong>in</strong>g services <strong>in</strong> existence <strong>in</strong><br />

the Arena with a view <strong>to</strong> choos<strong>in</strong>g a specific area <strong>to</strong> be analysed us<strong>in</strong>g the whole<br />

build<strong>in</strong>g analysis framework. Chapter 7 returns <strong>to</strong> the core objectives of this project that<br />

be<strong>in</strong>g <strong>to</strong> create an extensible <strong>use</strong>r friendly build<strong>in</strong>g <strong>energy</strong> archiv<strong>in</strong>g and analysis<br />

software package and goes on <strong>to</strong> exam<strong>in</strong>e software that could be <strong>use</strong>d <strong>to</strong> achieve these<br />

goals. Chapter 8 looks at the design process now that the software has been hosen, and<br />

<strong>use</strong>s the Object Oriented approach <strong>to</strong> design the Graphical User Interface (GUI).<br />

Chapter 9 describes the actual process <strong>use</strong>d <strong>to</strong> implement the software environment<br />

us<strong>in</strong>g the pro<strong>to</strong>type facility and its <strong>in</strong>herent build<strong>in</strong>g services <strong>to</strong> develop a pro<strong>to</strong>type<br />

package. It beg<strong>in</strong>s by exam<strong>in</strong><strong>in</strong>g the hardware <strong>in</strong>terface, and then us<strong>in</strong>g performance<br />

metric analysis derives the relevant formulae <strong>to</strong> quantify the <strong>energy</strong> <strong>use</strong> <strong>in</strong> the facility at<br />

component level. It then implements the package start<strong>in</strong>g with the GUI until desired<br />

functionality is achieved. Chapter 10 outl<strong>in</strong>es the test<strong>in</strong>g process <strong>use</strong>d <strong>in</strong> this project<br />

along with exam<strong>in</strong><strong>in</strong>g some of the problems encountered <strong>in</strong> its implementation. Chapter<br />

11 concludes the research and describes a future development process for the software<br />

environment.<br />

14


CHAPTER 2<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

As Figure 2.1 illustrates, this section exam<strong>in</strong>es the environmental requirements that are<br />

<strong>related</strong> <strong>to</strong> the consumption of <strong>energy</strong>, and <strong>in</strong>troduces the idea of <strong>energy</strong> <strong>related</strong> CO 2<br />

emissions.<br />

Moni<strong>to</strong>r<strong>in</strong>g<br />

Energy <strong>use</strong><br />

ENERGYEYE<br />

Energy Archiv<strong>in</strong>g and<br />

Analysis Tool<br />

Kyo<strong>to</strong> Pro<strong>to</strong>col<br />

PHP<br />

MySQL<br />

Unitron & BACnet<br />

Environmental<br />

Requirements<br />

Whole Build<strong>in</strong>g<br />

Energy Analysis<br />

gbXML<br />

Technology<br />

Methodology<br />

Real Case Study<br />

THE MARDYKE ARENA<br />

Figure 2.1: General thesis Structure schematic with emphasis on Environmental<br />

Requirements of Energy <strong>use</strong><br />

15


CHAPTER 2<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

2.1 WORLDWIDE LEGISLATION W<strong>IT</strong>H REGARD CO2 EMMISIONS<br />

One of the major greenho<strong>use</strong> gases is Carbon Dioxide (CO 2 ). The latest report from the<br />

Intergovernmental Panel on Climate Change [IPCC, 2001] refers directly <strong>to</strong> the<br />

emissions of gases such as CO 2 as the ma<strong>in</strong> reason for global warm<strong>in</strong>g [Rolfsman,<br />

2002]. The relationship between the emissions of such gases and the detrimental effects<br />

on the environment that resulted has long been known. Beca<strong>use</strong> of this knowledge, <strong>in</strong><br />

1992, the United Nations Framework Convention on Climate Change (UNFCCC) was<br />

agreed at the Earth Summit. The UNFCCC would like <strong>to</strong> limit the amount of<br />

greenho<strong>use</strong> gases emitted <strong>to</strong> the atmosphere so as <strong>to</strong> curtail the damage be<strong>in</strong>g done.<br />

Developed countries committed themselves <strong>to</strong> adopt policies with the aim of return<strong>in</strong>g<br />

<strong>in</strong>dividually or jo<strong>in</strong>tly <strong>to</strong> their 1990 levels of emissions of CO 2 and other greenho<strong>use</strong><br />

gases.<br />

2.2 KYOTO PROTOCOL AND THE EU<br />

In 1997, the Kyo<strong>to</strong> Pro<strong>to</strong>col of the UNFCCC was agreed and set legally b<strong>in</strong>d<strong>in</strong>g targets<br />

for developed countries for the period 2008-2012. Under the Kyo<strong>to</strong> Pro<strong>to</strong>col, the EU<br />

has agreed <strong>to</strong> reduce emissions of the six greenho<strong>use</strong> gases, carbon dioxide, methane,<br />

nitrous oxide, hydrofluorocarbons, perfluorocarbons, and sulphur hexafluoride, by 8%<br />

below 1990 levels by the period 2008-2012. Under the provisions of this agreement and<br />

as part of the EU burden shar<strong>in</strong>g agreement, Ireland has agreed <strong>to</strong> limit the <strong>in</strong>crease <strong>in</strong><br />

emissions of the six greenho<strong>use</strong> gases <strong>to</strong> 13% above 1990 levels by the same period<br />

[DPE, 2002].<br />

The pro<strong>to</strong>col looks <strong>to</strong> the domestic governments themselves <strong>to</strong> <strong>in</strong>itiate mechanisms<br />

whereby the criteria will be met, but also establishes a series of flexible mechanisms,<br />

which may be <strong>use</strong>d <strong>to</strong> supplement domestic action through <strong>in</strong>ternational offsets. These<br />

"Kyo<strong>to</strong> mechanisms" <strong>in</strong>clude:<br />

1.”Tradable permits (Article 17) - a provision, which allow Annex 1 Parties <strong>to</strong> trade<br />

emissions”;<br />

2.”Jo<strong>in</strong>t Implementation (JI) (Article 6) - provid<strong>in</strong>g that emissions credits generated<br />

through project activities may be traded among Annex I Parties”;<br />

16


CHAPTER 2<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

3.”Clean Development Mechanism (CDM) (Article 12) - through which project based<br />

reduction credits acquired from activities <strong>in</strong> non-Annex I countries may be <strong>use</strong>d <strong>to</strong><br />

offset Annex I country commitments”.<br />

The mechanisms were created <strong>to</strong> reduce the costs of compliance, but the time required<br />

for their full elaboration only left approximately 10 years for their <strong>use</strong> <strong>to</strong> meet the Kyo<strong>to</strong><br />

objectives as they were fully outl<strong>in</strong>ed <strong>in</strong> 2000. Emissions trad<strong>in</strong>g which is the most<br />

important of the flexibility mechanisms from Ireland's viewpo<strong>in</strong>t will not start until<br />

2008, though the EU may commence emissions trad<strong>in</strong>g <strong>in</strong> some form prior <strong>to</strong> 2008.<br />

Two aspects are also worth not<strong>in</strong>g:<br />

1.”Penalties for non-compliance with the Pro<strong>to</strong>col will have <strong>to</strong> be agreed by the<br />

Conference <strong>to</strong> the Parties as required under Article 18. In any event Ireland must be<br />

seen <strong>to</strong> comply with the Pro<strong>to</strong>col <strong>in</strong> keep<strong>in</strong>g with its commitments <strong>to</strong> the <strong>in</strong>ternational<br />

community”;<br />

2.”Reliable and pro-active moni<strong>to</strong>r<strong>in</strong>g and verification systems are essential for the<br />

assessment of progress and therefore form an important part of adequate preparations<br />

for the implementation of the Pro<strong>to</strong>col”.<br />

The official term <strong>use</strong>d <strong>in</strong> relation <strong>to</strong> emissions reduction <strong>in</strong> the Kyo<strong>to</strong> Pro<strong>to</strong>col is<br />

“quantified emissions limitations and commitments” (QELRCs) [Halsnaes, 2001], and it<br />

is only through meet<strong>in</strong>g these commitments that the levels of CO 2 <strong>in</strong> the atmosphere<br />

will be controlled.<br />

2.3 ENERGY RELATED CO 2 EMISSIONS - THE UNIVERSAL<br />

PERSPECTIVE<br />

In 1990, the global <strong>in</strong>dustrial sec<strong>to</strong>r consumed about 91EJ (1 exajoule (EJ) = 1.0 x 10 18<br />

J) of end <strong>use</strong> <strong>energy</strong>, which resulted <strong>in</strong> emissions of an estimated 1.8GtC (1.8 x 10 9<br />

<strong>to</strong>nnes of Carbon). The major contribu<strong>to</strong>rs of CO 2 emissions are the developed and<br />

<strong>in</strong>dustrialised countries notably <strong>in</strong> Europe and North America. The whole of Asia<br />

contributes about 36.4% of which Ch<strong>in</strong>a and Japan contribute about 14% and 15%<br />

respectively [Priambodo, Kumar, 2001]. The breakdown of CO 2 emissions universally<br />

can be exam<strong>in</strong>ed more closely from Figure 2.2.<br />

17


CHAPTER 2<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

Figure 2.2 Total carbon emissions by country [Wiel et al., 1994]<br />

2.3.1 EU<br />

With 1990 basel<strong>in</strong>e levels of greenho<strong>use</strong> gases tak<strong>in</strong>g a pivotal role <strong>in</strong> the Kyo<strong>to</strong><br />

pro<strong>to</strong>cols reform<strong>in</strong>g policy, the fact that tak<strong>in</strong>g the EU as a whole, <strong>energy</strong> <strong>use</strong> and<br />

production is by far the most important source of Greenho<strong>use</strong> gas emissions,<br />

represent<strong>in</strong>g 80% of 1990 emissions [KYOTO Strategy, 1998], means that this is go<strong>in</strong>g<br />

<strong>to</strong> be the key area of change if the pro<strong>to</strong>cols are <strong>to</strong> be met. S<strong>in</strong>ce the aggregate <strong>energy</strong><br />

demand <strong>in</strong> the EU is expected <strong>to</strong> rise by over 60% by 2010 [Sun, 2001], and the fact<br />

that climate change can be directly attributed <strong>in</strong> a large part <strong>to</strong> the <strong>use</strong> of <strong>energy</strong> means<br />

that a fresh look is now required at the current <strong>energy</strong> policy <strong>in</strong> place. There is also a<br />

new importance on the research and development side of <strong>energy</strong> <strong>use</strong> and production as<br />

it is strived <strong>to</strong> reverse or at the least curb this worry<strong>in</strong>g trend of climate change.<br />

18


CHAPTER 2<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

2.3.2 Ireland<br />

With<strong>in</strong> the EU burden shar<strong>in</strong>g agreement <strong>in</strong> order <strong>to</strong> meet its obligation under the Kyo<strong>to</strong><br />

Pro<strong>to</strong>col, Ireland must stabilise its Greenho<strong>use</strong> gas emissions at 13% above 1990 levels<br />

with<strong>in</strong> the period 2008 <strong>to</strong> 2012 [EEC, 1998]. For the three new gases (HFCs, PFCs and<br />

SF6,), the reference year is 1995.<br />

Table 2.1 Ireland's Greenho<strong>use</strong> Gas Emissions 1990 – 2010 [DPE, 2002]<br />

Source: His<strong>to</strong>rical CO 2 data based on DPE Energy Balances 1980-1998. CO 2 projections based on ESRI<br />

and DPE data. Provisional data for non-<strong>energy</strong> <strong>related</strong> CO 2 and other gases and s<strong>in</strong>ks DELG. Methane<br />

figures represent emissions from the Agriculture sec<strong>to</strong>r<br />

Table 2.1 shows Ireland's greenho<strong>use</strong> gas emissions for the period 1990 - 2010 1 . By<br />

2010, on a bus<strong>in</strong>ess as usual basis, it is projected that the limit will be exceeded by the<br />

equivalent of 6.8 million <strong>to</strong>nnes CO 2 . The projected rise <strong>in</strong> greenho<strong>use</strong> gas emissions<br />

from 1990 <strong>to</strong> 2010 is 25% compared <strong>to</strong> the limit of 13% under the EU burden-shar<strong>in</strong>g<br />

agreement.<br />

Energy <strong>related</strong> CO 2 emissions account for most of the growth. It is projected that there<br />

will be 18.2 million <strong>to</strong>nnes more of CO 2 emitted due <strong>to</strong> the production, transmission,<br />

supply and end <strong>use</strong> of <strong>energy</strong> <strong>in</strong> 2010 compared <strong>to</strong> 1990. As a proportion of greenho<strong>use</strong><br />

gas emissions overall, <strong>energy</strong> <strong>related</strong> CO 2 emissions accounted for 51% <strong>in</strong> 1990<br />

compared <strong>to</strong> a projected 66% <strong>in</strong> 2010, with <strong>energy</strong> <strong>use</strong> <strong>in</strong> build<strong>in</strong>gs be<strong>in</strong>g at present<br />

30% of this <strong>to</strong>tal.<br />

To exam<strong>in</strong>e where this growth occurs, Table 2.2 shows the <strong>in</strong>crease <strong>in</strong> <strong>energy</strong> <strong>related</strong><br />

CO 2 emissions by sec<strong>to</strong>r after <strong>energy</strong> <strong>use</strong>d <strong>in</strong> transformation is apportioned <strong>to</strong> sec<strong>to</strong>rs.<br />

1 Note that CO 2 emissions from aviation kerosene for <strong>in</strong>ternational <strong>use</strong> are excluded under the<br />

Kyo<strong>to</strong> Pro<strong>to</strong>col<br />

19


CHAPTER 2<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

The <strong>in</strong>creases <strong>in</strong> <strong>energy</strong> demand <strong>in</strong> transport that is projected <strong>in</strong> the com<strong>in</strong>g years are<br />

reflected here by the 157% <strong>in</strong>crease <strong>in</strong> transport <strong>related</strong> CO 2 emissions <strong>in</strong> 2010<br />

compared <strong>to</strong> 1990. The second largest growth sec<strong>to</strong>r <strong>in</strong> CO 2 with an <strong>in</strong>crease of 76% is<br />

the tertiary sec<strong>to</strong>r, with <strong>in</strong>dustry be<strong>in</strong>g the third largest <strong>in</strong>crease. With both the tertiary<br />

sec<strong>to</strong>r and the <strong>in</strong>dustrial sec<strong>to</strong>r be<strong>in</strong>g build<strong>in</strong>g dependant <strong>to</strong> a large extent, the need for<br />

<strong>energy</strong> consumption <strong>to</strong> be reduced <strong>in</strong> these areas aga<strong>in</strong> highlights the need for more<br />

efficient build<strong>in</strong>g <strong>energy</strong> management.<br />

Table 2.2: Ireland's Energy Related CO 2 Emissions 1990 - 2010 2 (Million Tonnes)<br />

[DPE, 2002]<br />

Figure 2.3 graphs the aforementioned projected growth levels by sec<strong>to</strong>r relative <strong>to</strong> 1990<br />

and Table 2.3 shows CO 2 emissions by source <strong>to</strong> further clarify the worry<strong>in</strong>g trends of<br />

<strong>in</strong>creases <strong>in</strong> all sec<strong>to</strong>rs.<br />

Source: DPE, 1999<br />

Figure 2.3: Projected growth of <strong>energy</strong> <strong>related</strong> CO 2 emissions <strong>to</strong> 2010 [DPE, 2002]<br />

2 Energy <strong>related</strong> CO 2 emissions <strong>in</strong> transformation have been allocated <strong>to</strong> sec<strong>to</strong>rs.<br />

20


CHAPTER 2<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

2.3.3 General Conclusions<br />

Due <strong>to</strong> susta<strong>in</strong>ed economic growth, Ireland's primary <strong>energy</strong> consumption has <strong>in</strong>creased<br />

by 58% s<strong>in</strong>ce 1980, and is projected <strong>to</strong> <strong>in</strong>crease <strong>in</strong> l<strong>in</strong>e with economic growth by a<br />

further 37% by 2010 <strong>in</strong> a bus<strong>in</strong>ess as usual scenario. As a result, the target set for<br />

greenho<strong>use</strong> gas emissions for the period 2008 - 2012 will be reached far earlier than the<br />

target year of 2010 as set by the Kyo<strong>to</strong> pro<strong>to</strong>col. In the bus<strong>in</strong>ess as usual case, Ireland<br />

will exceed its target limit by 6.8 million <strong>to</strong>nnes of CO 2 equivalent <strong>in</strong> 2010. The<br />

projected growth <strong>in</strong> <strong>energy</strong> <strong>related</strong> CO 2 emissions are 63% above 1990 levels. In<br />

meet<strong>in</strong>g Irelands’ commitments aris<strong>in</strong>g from the Kyo<strong>to</strong> Pro<strong>to</strong>col, it will be necessary <strong>to</strong><br />

separate <strong>energy</strong> growth from economic growth as the associated proportional <strong>in</strong>crease <strong>in</strong><br />

CO 2 emissions is <strong>to</strong>o high a price <strong>to</strong> pay <strong>in</strong> environmental terms. In order <strong>to</strong> reverse this<br />

worry<strong>in</strong>g trend of <strong>in</strong>creas<strong>in</strong>g emissions, people’s behavioural patterns must firstly<br />

change both <strong>in</strong> their lifestyles and <strong>in</strong> their <strong>energy</strong> consumption practices. The more<br />

widespread <strong>use</strong> of <strong>energy</strong> efficient production, process<strong>in</strong>g and distribution techniques<br />

will also serve <strong>to</strong> reverse this trend [Filipp<strong>in</strong>, 2000]. Figure 2.4 summarises the<br />

projected growth <strong>in</strong> the economy, <strong>energy</strong> consumption, <strong>energy</strong> <strong>related</strong> CO 2 emissions<br />

and greenho<strong>use</strong> gas emissions all of which are projected <strong>to</strong> rise by worry<strong>in</strong>g levels. This<br />

means that <strong>energy</strong> management and conservation is now a more important subject at<br />

both economic and environmental levels than ever, with solutions be<strong>in</strong>g sought<br />

immediately <strong>to</strong> reverse these trends.<br />

Figure 2.4: Projected growths of economy, <strong>energy</strong> consumption and Energy<br />

<strong>related</strong> CO 2 emissions <strong>to</strong> 2010 [DPE, 2002]<br />

21


CHAPTER 2<br />

ENERGY USE RELATED TO CLIMATE CHANGE<br />

2.4 SUMMARY<br />

Ireland has committed <strong>to</strong> a 13% reduction of GHG emissions by 2010 but if current<br />

<strong>energy</strong> <strong>use</strong> trends cont<strong>in</strong>ue will exceed 1990 levels by 25% by this time. This means<br />

that urgent attention is required <strong>to</strong> curb this trend if commitments are <strong>to</strong> be upheld.<br />

Build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> accounts for 40% of Irelands present <strong>energy</strong> <strong>use</strong> figures and hence<br />

is an important area <strong>to</strong> be ref<strong>in</strong>ed if targets are <strong>to</strong> be met. Chapter 3 foc<strong>use</strong>s on build<strong>in</strong>g<br />

<strong>energy</strong> <strong>use</strong> and the associated moni<strong>to</strong>r<strong>in</strong>g and analysis techniques <strong>in</strong> current <strong>use</strong> <strong>to</strong><br />

legislate this sec<strong>to</strong>r. This chapter cont<strong>in</strong>ues on the <strong>energy</strong> <strong>related</strong> environmental<br />

requirements section of this thesis.<br />

Chapter 4 exam<strong>in</strong>es the whole build<strong>in</strong>g <strong>energy</strong> analysis technique whereby a build<strong>in</strong>g is<br />

analysed down <strong>to</strong> its constituent <strong>energy</strong> utilis<strong>in</strong>g parts. At the beg<strong>in</strong>n<strong>in</strong>g of this section<br />

the thesis structure schematic will aga<strong>in</strong> appear as it does <strong>in</strong> Figure 2.1, but this time<br />

with the next section highlighted <strong>to</strong> signify the beg<strong>in</strong>n<strong>in</strong>g of a new <strong>to</strong>pic of exam<strong>in</strong>ation.<br />

The <strong>in</strong>dividual software technologies <strong>use</strong>d <strong>to</strong> achieve this software <strong>to</strong>ols’ goals and their<br />

implementation will be discussed <strong>in</strong> a later section, beg<strong>in</strong>n<strong>in</strong>g with Chapter 7 aga<strong>in</strong> with<br />

the new area of the schematic highlighted.<br />

22


CHAPTER 3<br />

BUILDING ENERGY USE<br />

BUILDING ENERGY USE<br />

With the application of the Kyo<strong>to</strong> pro<strong>to</strong>col on an <strong>in</strong>ternational level the EU directive on<br />

climate change was put <strong>in</strong> place stat<strong>in</strong>g that build<strong>in</strong>g’s will be issued with <strong>energy</strong><br />

utilisation certificates based on their consumption at all three stages of the build<strong>in</strong>g<br />

lifecycle as displayed <strong>in</strong> Figure 3.1. This will ensure that the m<strong>in</strong>imum <strong>energy</strong><br />

efficiency requirements demanded are met [EU Directive, 2002]. This legislation is<br />

driv<strong>in</strong>g the <strong>energy</strong> efficiency market <strong>to</strong> new levels of productivity. With the<br />

<strong><strong>in</strong>troduction</strong> of this legislation, end <strong>use</strong>rs of the <strong>energy</strong> will be made accountable for the<br />

amount that they <strong>use</strong>, and will be made <strong>to</strong> pay f<strong>in</strong>ancially for any waste on their part.<br />

As mentioned <strong>in</strong> Chapter 2, <strong>energy</strong> <strong>use</strong> <strong>in</strong> build<strong>in</strong>gs accounts for 40% of the <strong>energy</strong><br />

<strong>use</strong>d <strong>in</strong> Ireland and as such demands serious consideration <strong>in</strong> any national <strong>energy</strong><br />

management strategy. Energy <strong>use</strong> <strong>in</strong> build<strong>in</strong>gs is metered by the supply company and is<br />

measured <strong>in</strong> kWh’s. This kWh quantity is also applicable when CO 2 emissions are<br />

considered beca<strong>use</strong> depend<strong>in</strong>g on the source generation process (the fuel <strong>use</strong>d <strong>to</strong><br />

generate the <strong>energy</strong>), the exact amount of CO 2 emitted <strong>to</strong> the atmosphere can be<br />

calculated as it is directly proportional <strong>to</strong> the amount of kWh’s of <strong>energy</strong> that is utilised.<br />

A number of strategies are currently <strong>use</strong>d <strong>to</strong> calculate this kWh quantity with <strong>energy</strong><br />

audit<strong>in</strong>g, a process similar <strong>to</strong> the more well known practice of f<strong>in</strong>ancial audit<strong>in</strong>g be<strong>in</strong>g<br />

one of the more prom<strong>in</strong>ent. These are undertaken <strong>in</strong> order <strong>to</strong> quantify the <strong>energy</strong> utilised<br />

at all three stages of the build<strong>in</strong>g lifecycle as <strong>in</strong> Figure 3.1. With the improvements <strong>in</strong><br />

technology over the years, simulation and analysis packages have also been developed<br />

which allow a build<strong>in</strong>gs <strong>energy</strong> <strong>use</strong> <strong>to</strong> be <strong>in</strong>spected <strong>in</strong> the design, construction and<br />

operation processes, all lead<strong>in</strong>g ideally <strong>to</strong> an <strong>energy</strong> efficient build<strong>in</strong>g. This process is<br />

expla<strong>in</strong>ed more clearly <strong>in</strong> Figure 3.1. The follow<strong>in</strong>g sections outl<strong>in</strong>e the <strong>to</strong>ols <strong>use</strong> <strong>to</strong><br />

appraise build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> at each of the aforementioned stages <strong>in</strong> the build<strong>in</strong>g life<br />

cycle.<br />

23


CHAPTER 3<br />

BUILDING ENERGY USE<br />

Build<strong>in</strong>g Life Cycle<br />

DESIGN<br />

CONSTRUCTION<br />

OPERATION<br />

Simulation packages:<br />

Energyplus<br />

DOE 2<br />

Commission<strong>in</strong>g<br />

and<br />

Mechanical checks<br />

Energy Audit<strong>in</strong>g<br />

and<br />

Benchmark<strong>in</strong>g<br />

Figure 3.1: Build<strong>in</strong>g Lifecycle<br />

3.1 ENERGY ANALYSIS IN THE DESIGN STAGE<br />

At this stage of the development of a build<strong>in</strong>g as displayed <strong>in</strong> Figure 3.1, it is important<br />

<strong>to</strong> take <strong>in</strong><strong>to</strong> consideration the <strong>energy</strong> that the build<strong>in</strong>g is projected <strong>to</strong> <strong>use</strong> and build<strong>in</strong>g it<br />

<strong>in</strong> such a way as <strong>to</strong> m<strong>in</strong>imise the <strong>energy</strong> utilised <strong>in</strong> the future. This process is aided by<br />

the <strong>use</strong> of <strong>energy</strong> simulation packages, which have been developed just for this purpose.<br />

For two decades the US government supported the development of two hourly build<strong>in</strong>g<br />

<strong>energy</strong> simulation programs, BLAST and DOE 2, but <strong>in</strong> 1996, a US federal agency<br />

began work on a new <strong>to</strong>ol which built on the developments made by the previous two,<br />

called Energyplus [Crawley et al, 2001].<br />

3.1.1 DOE 2<br />

The DOE-2 program for build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> analysis provides the build<strong>in</strong>g construction<br />

and research communities with an up-<strong>to</strong>-date, unbiased, well-documented computer<br />

program for build<strong>in</strong>g <strong>energy</strong> analysis [DOE SIM, 2002]. DOE-2 is a portable<br />

FORTRAN program that can be <strong>use</strong>d on a large variety of computers, <strong>in</strong>clud<strong>in</strong>g PC's.<br />

Us<strong>in</strong>g DOE-2, designers can quickly determ<strong>in</strong>e the choice of build<strong>in</strong>g parameters,<br />

24


CHAPTER 3<br />

BUILDING ENERGY USE<br />

which improve <strong>energy</strong> efficiency while ma<strong>in</strong>ta<strong>in</strong><strong>in</strong>g thermal comfort. A <strong>use</strong>r can<br />

provide a simple or <strong>in</strong>creas<strong>in</strong>gly detailed description of a build<strong>in</strong>g design or alternative<br />

design options and obta<strong>in</strong> an accurate estimate of the proposed build<strong>in</strong>g's <strong>energy</strong><br />

consumption, <strong>in</strong>terior environmental conditions and <strong>energy</strong> operation cost.<br />

DOE-2 is an up-<strong>to</strong>-date, unbiased computer program that predicts the hourly <strong>energy</strong> <strong>use</strong><br />

and <strong>energy</strong> cost of a build<strong>in</strong>g given hourly weather <strong>in</strong>formation and a description of the<br />

build<strong>in</strong>g and its HVAC equipment and utility rate structure. [Dhakel et al, 2003]. DOE-<br />

2 <strong>use</strong>s five modules <strong>to</strong> accomplish this:<br />

• LOADS module, which calculates the hourly heat<strong>in</strong>g and cool<strong>in</strong>g loads <strong>in</strong> the<br />

structure;<br />

• SYSTEMS module, which simulates performance of the HVAC equipment<br />

employed;<br />

• PLANT module, which calculates the performance of the <strong>energy</strong> conversion<br />

equipment;<br />

• ECONOMICS module, which utilises utility pric<strong>in</strong>g <strong>in</strong>formation <strong>to</strong> come up<br />

with a cost<strong>in</strong>g analysis of the <strong>energy</strong> <strong>use</strong>d;<br />

• WEATHER PROCESSOR module, which prepares the weather data for <strong>use</strong> <strong>in</strong><br />

the package.<br />

Us<strong>in</strong>g DOE-2, designers can determ<strong>in</strong>e the choice of build<strong>in</strong>g parameters that improve<br />

<strong>energy</strong> efficiency while ma<strong>in</strong>ta<strong>in</strong><strong>in</strong>g thermal comfort and cost-effectiveness. DOE 2 is<br />

heavy <strong>to</strong> <strong>use</strong> but very effective <strong>in</strong> its results [Ndoye, Sorr, 2003].<br />

3.1.2 BLAST<br />

The BLAST (Build<strong>in</strong>g Loads Analysis and System Thermodynamics) [BLAST, 2002]<br />

system is a set of computer programs for predict<strong>in</strong>g heat<strong>in</strong>g and cool<strong>in</strong>g <strong>energy</strong><br />

consumption <strong>in</strong> build<strong>in</strong>gs, and analys<strong>in</strong>g <strong>energy</strong> costs, based on a heat balance approach<br />

[Crawley et al, 2001]. This means that equations are written for each facet of the<br />

build<strong>in</strong>g environment, walls, floors etc., then solved simultaneously lead<strong>in</strong>g <strong>to</strong> an<br />

“exact” solution [Al-Rabghi, Hittle, 2001].<br />

BLAST was orig<strong>in</strong>ally developed on ma<strong>in</strong>frame computers, and a portable/workstation<br />

version is actively supported. For W<strong>in</strong>dows <strong>use</strong>rs, an important feature is the graphical<br />

25


CHAPTER 3<br />

BUILDING ENERGY USE<br />

<strong>use</strong>r <strong>in</strong>terface, HBLC. This <strong>in</strong>terface allows <strong>use</strong>rs <strong>to</strong> access all the important features of<br />

BLAST and its auxiliary programs <strong>in</strong> a convenient and easily understandable format.<br />

Furthermore, it significantly speeds the process of enter<strong>in</strong>g build<strong>in</strong>g data compared <strong>to</strong><br />

the <strong>in</strong>put processors previously available for BLAST.<br />

3.1.3 ENERGYPLUS<br />

EnergyPlus [Energyplus, 2002] is a new Department of Energy-supported project that<br />

merges two major build<strong>in</strong>g <strong>energy</strong> simulation programs, DOE-2 and Build<strong>in</strong>g Loads<br />

Analysis and System Thermodynamics (BLAST). The goal of EnergyPlus is <strong>to</strong> take the<br />

best features of DOE-2 and BLAST and unite them <strong>in</strong> a s<strong>in</strong>gle program [Crawley et al,<br />

2001]. The program greatly improves the simulation of whole-build<strong>in</strong>g approaches <strong>in</strong><br />

design, plann<strong>in</strong>g and construction [DOE SIM, 2002]. It allows <strong>use</strong>rs <strong>to</strong> calculate the<br />

impacts of different heat<strong>in</strong>g, cool<strong>in</strong>g and ventilat<strong>in</strong>g equipment and various types of<br />

light<strong>in</strong>g and w<strong>in</strong>dows <strong>to</strong> maximize build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> and occupant comfort. Users can<br />

simulate the effect of w<strong>in</strong>dow bl<strong>in</strong>ds, elec<strong>to</strong>r chromic w<strong>in</strong>dow glaz<strong>in</strong>g, and complex day<br />

light<strong>in</strong>g systems, features not available <strong>in</strong> earlier DOE software.<br />

3.2 CR<strong>IT</strong>ERIA USED TO MON<strong>IT</strong>OR BUILDING OPERATIONAL<br />

PERFORMANCE<br />

It is important <strong>to</strong> regularly measure and moni<strong>to</strong>r build<strong>in</strong>g performance after build<strong>in</strong>gs<br />

are built <strong>in</strong> order <strong>to</strong> optimize their performance and learn ways <strong>to</strong> improve future<br />

build<strong>in</strong>gs [MP, 2002]. This section is aga<strong>in</strong> highlighted <strong>in</strong> Figure 3.1 and is the next<br />

stage of the build<strong>in</strong>g life cycle.<br />

3.2.1 Energy Audit<strong>in</strong>g<br />

Energy audits and surveys are <strong>in</strong>vestigations conducted on a site with a view <strong>to</strong><br />

identify<strong>in</strong>g cost sav<strong>in</strong>g measures, reduc<strong>in</strong>g the <strong>energy</strong> <strong>use</strong>d, as well as the detrimental<br />

environmental impact of that site. Their results should be comprehensive and <strong>use</strong>ful <strong>to</strong><br />

different groups of <strong>use</strong>rs [Bennett, Newborough, 2001], i.e., both the skilled eng<strong>in</strong>eer<br />

and the facility manager. They are an essential part of the control of <strong>energy</strong> costs and<br />

should be carried out every 3 – 5 years. Audits along with rout<strong>in</strong>e moni<strong>to</strong>r<strong>in</strong>g of a<br />

facility ensure that <strong>energy</strong> is utilised cost effectively and through their <strong>use</strong>, future<br />

consumption could be predicted and strategies could be devised for its reduction<br />

[Bennett, Newborough, 2001].<br />

26


CHAPTER 3<br />

BUILDING ENERGY USE<br />

They <strong>in</strong>volve the collection of utility bills over a predeterm<strong>in</strong>ed period usually one year,<br />

which are analysed with a view <strong>to</strong> determ<strong>in</strong><strong>in</strong>g the <strong>to</strong>tal <strong>energy</strong> <strong>use</strong> for this period. The<br />

<strong>in</strong>dividual <strong>energy</strong> <strong>use</strong>rs <strong>in</strong> the facility would also be exam<strong>in</strong>ed with a view <strong>to</strong><br />

identify<strong>in</strong>g areas where the systems are underperform<strong>in</strong>g. The overall goal is <strong>to</strong> reduce<br />

the <strong>to</strong>tal <strong>energy</strong> <strong>use</strong>d. By compar<strong>in</strong>g the actual performance of the prime <strong>energy</strong> <strong>use</strong>rs <strong>in</strong><br />

a facility with published benchmarks, which will be discussed <strong>in</strong> the subsequent section,<br />

for similar facilities, areas with potential for <strong>energy</strong> and hence cost sav<strong>in</strong>gs can be<br />

identified.<br />

3.2.2 Benchmark<strong>in</strong>g<br />

Benchmark<strong>in</strong>g is the comparison of a bus<strong>in</strong>ess's current level of performance aga<strong>in</strong>st a<br />

pre-def<strong>in</strong>ed po<strong>in</strong>t of reference (or benchmark) <strong>in</strong> order <strong>to</strong> evaluate performance. This<br />

benchmark may be an <strong>in</strong>dustry standard or established, commonly accepted norm. For<br />

example, DETR's Energy Efficiency Best Practice Programme (EEBPP) suggests no<br />

more than 48 kWh/m 2 /yr of <strong>energy</strong> should be <strong>use</strong>d <strong>in</strong> heat<strong>in</strong>g small offices.<br />

Alternatively, companies may set <strong>in</strong>ternal benchmarks <strong>to</strong> compare performance over<br />

time, or between different sites or operational units. Whether <strong>in</strong>ternal or external<br />

benchmark<strong>in</strong>g is <strong>use</strong>d, if the level of <strong>energy</strong> consumption exceeds the benchmark this<br />

provides an <strong>in</strong>dication that performance can probably be improved, sav<strong>in</strong>gs made and<br />

environmental impacts reduced. However, climatic conditions need <strong>to</strong> be taken <strong>in</strong><strong>to</strong><br />

account when compar<strong>in</strong>g benchmarks for facilities <strong>to</strong> ensure they are applicable <strong>in</strong><br />

different regions [Filipp<strong>in</strong>, 2000].<br />

Energy consumption benchmarks for a range of build<strong>in</strong>gs are readily available from<br />

EEBPP. These figures are derived from heat<strong>in</strong>g and light<strong>in</strong>g requirements and do not<br />

<strong>in</strong>corporate other forms of consumption such as the operation of mach<strong>in</strong>ery.<br />

Benchmarks are typically expressed as annual <strong>energy</strong> consumption divided by floor area<br />

, kWh/ m 2 /yr. The follow<strong>in</strong>g steps would need <strong>to</strong> be completed <strong>to</strong> evaluate how a<br />

particular build<strong>in</strong>g is perform<strong>in</strong>g:<br />

1. Select build<strong>in</strong>gs (or whole site) <strong>to</strong> be evaluated for performance aga<strong>in</strong>st <strong>in</strong>dustry<br />

norms;<br />

2. Assemble electricity <strong>in</strong>voices and add <strong>to</strong>gether <strong>to</strong>tal electricity consumption for the<br />

whole year (kWh/yr);<br />

27


CHAPTER 3<br />

BUILDING ENERGY USE<br />

3. Calculate the treated floor area of the selected build<strong>in</strong>g (m 2 ). Treated floor area refers<br />

only <strong>to</strong> that area that you heat and light;<br />

4. Divide annual electricity consumption by treated floor area <strong>to</strong> calculate a<br />

Performance Index <strong>in</strong> kWh/m 2 per year;<br />

5. Compare the build<strong>in</strong>gs Performance Index, i.e. its particular <strong>energy</strong> <strong>use</strong> per square<br />

meter, aga<strong>in</strong>st <strong>in</strong>dustry norms for that build<strong>in</strong>g sec<strong>to</strong>r;<br />

6. Investigate the ca<strong>use</strong> of each build<strong>in</strong>gs performance. Could performance be improved<br />

or do fac<strong>to</strong>rs other than heat<strong>in</strong>g and light<strong>in</strong>g account for the difference? If the latter<br />

is true, then the consumption attributable <strong>to</strong> heat<strong>in</strong>g and light<strong>in</strong>g may be isolated<br />

from other forms by us<strong>in</strong>g a technique called degree-day analysis;<br />

7. Repeat steps 1 - 6 <strong>to</strong> identify heat consumption due <strong>to</strong> fossil fuels (gas etc.) [EABEC,<br />

2002].<br />

3.2.3 CO 2 Emissions Audit<br />

Each kWh of <strong>energy</strong> delivered <strong>to</strong> a build<strong>in</strong>g ca<strong>use</strong>s atmospheric emissions of the major<br />

greenho<strong>use</strong> gas CO 2 from the extraction, process<strong>in</strong>g and delivery of the fuel <strong>to</strong> its<br />

eventual consumption on site [DETR, 2002]. The more <strong>energy</strong> <strong>use</strong>d on site by a<br />

facility, the more CO 2 is emitted <strong>to</strong> the atmosphere and hence the more damage is done<br />

<strong>to</strong> the environment.<br />

As was expla<strong>in</strong>ed <strong>in</strong> more detail <strong>in</strong> Chapter 2, penalties will be imposed on facility<br />

owners <strong>in</strong> proportion <strong>to</strong> the emission of CO 2 by their facility <strong>to</strong> the atmosphere when<br />

compared <strong>to</strong> its basel<strong>in</strong>e levels. A facility perform<strong>in</strong>g badly <strong>in</strong> <strong>energy</strong> terms will face<br />

heavy f<strong>in</strong>ancial penalties when the KYOTO pro<strong>to</strong>col comes <strong>in</strong><strong>to</strong> effect at the beg<strong>in</strong>n<strong>in</strong>g<br />

of 2005 [EPA, 2003].<br />

To obta<strong>in</strong> the figures of CO 2 emitted by a facility, the DETR econ guide 78 provides<br />

conversion from the fuel type <strong>use</strong>d on site <strong>to</strong> kg of CO 2 emitted and is shown <strong>in</strong> Table<br />

3.1. Hence by calculat<strong>in</strong>g the amount of CO 2 emitted by a facility, it can be determ<strong>in</strong>ed<br />

if it is perform<strong>in</strong>g well, and hence if the penalties imposed will be at a m<strong>in</strong>imum if at<br />

all.<br />

28


CHAPTER 3<br />

BUILDING ENERGY USE<br />

Table 3.1: Conversion <strong>to</strong> CO 2 emissions from different fuel types [DETR ECON<br />

19, 2002]<br />

3.3 DECISION MAKING SUPPORT FOR STAKEHOLDERS<br />

In order <strong>to</strong> make the correct decision regard<strong>in</strong>g <strong>energy</strong> management <strong>in</strong> the future of any<br />

project; a full analysis of the project is required. This analysis would take various forms,<br />

the first be<strong>in</strong>g a performance assessment where key questions are answered: is the<br />

primary objective of the project be<strong>in</strong>g met? Are the secondary objectives suffer<strong>in</strong>g <strong>in</strong><br />

order <strong>to</strong> meet the primary one?<br />

The second and usually most important form of assessment <strong>in</strong> any project whether new<br />

or exist<strong>in</strong>g is the economic assessment. It is on this s<strong>in</strong>gle aspect of performance that<br />

most decisions are usually made. In a new project, the capital costs are usually the<br />

driv<strong>in</strong>g force, whereas <strong>in</strong> an exist<strong>in</strong>g project the runn<strong>in</strong>g or lifecycle costs are of ma<strong>in</strong><br />

concern.<br />

It is a comb<strong>in</strong>ation of this performance and economic data that the “stakeholders” <strong>in</strong> any<br />

project base their decisions on. A balance must be found between performance and cost<br />

for any project <strong>to</strong> be successful as well as economically viable.<br />

3.3.1 Decision mak<strong>in</strong>g criteria on an economic level<br />

When determ<strong>in</strong><strong>in</strong>g the economic viability of a new project or a change <strong>to</strong> an exist<strong>in</strong>g<br />

one, a number of decision-mak<strong>in</strong>g criteria exist <strong>to</strong> aid a decision. By far the most<br />

popular criteria for analys<strong>in</strong>g the cost effectiveness of any project is the payback period.<br />

Simply put, this is the time taken for the <strong>in</strong>itial <strong>in</strong>vestment <strong>to</strong> be recouped, with the new<br />

<strong>in</strong>vestment properties <strong>in</strong> place. An example of this would be when <strong>energy</strong> sav<strong>in</strong>g<br />

measures are put <strong>in</strong> place by a company for say 1000 Euro, sav<strong>in</strong>g the company 200<br />

Euro each year. The payback period for these sav<strong>in</strong>gs would be 5 years. In a survey of<br />

29


CHAPTER 3<br />

BUILDING ENERGY USE<br />

over 100 firms <strong>in</strong> Australia between 1991 and 1997, the Enterprise Energy Audit<br />

Programme (EEAP) found that 80% of the firms <strong>use</strong>d the payback period as their<br />

primary decision mak<strong>in</strong>g <strong>to</strong>ol for establish<strong>in</strong>g whether an <strong>in</strong>vestment was cost effective<br />

or not. The time that these firms were prepared <strong>to</strong> wait <strong>to</strong> recoup their <strong>in</strong>itial <strong>in</strong>vestment<br />

varied but the average expected was 42 months [Harris et al, 2000].<br />

Two other criteria <strong>use</strong>d <strong>to</strong> analyse a prospective <strong>in</strong>vestments’ potential are the benefit <strong>to</strong><br />

cost ratio and the rate of return on the <strong>in</strong>itial <strong>in</strong>vestment. The first relates the benefits of<br />

the <strong>in</strong>vestment <strong>to</strong> the cost of it as a means of compar<strong>in</strong>g one potential <strong>in</strong>vestment<br />

opportunity <strong>to</strong> another. The second looks <strong>to</strong> establish a figure for the amount of the<br />

<strong>in</strong>itial <strong>in</strong>vestment that can be expected by the firm <strong>to</strong> recoup. In the EEAP survey<br />

mentioned earlier, 53% of companies sited the rate of return on <strong>in</strong>vestments as one of<br />

the ma<strong>in</strong> ways that they would establish an <strong>in</strong>vestments viability, with a 26% rate of<br />

return be<strong>in</strong>g the average return sought on the <strong>in</strong>itial <strong>in</strong>vestment [Harris et al, 2000].<br />

3.3.2 Energy audit<strong>in</strong>g as a support <strong>to</strong>ol<br />

With performance and economic viability tak<strong>in</strong>g such a prime position <strong>in</strong> any decision<br />

that the stakeholders <strong>in</strong> any project make, it is essential <strong>to</strong> have a <strong>to</strong>ol that comb<strong>in</strong>es<br />

both <strong>in</strong> order <strong>to</strong> get <strong>to</strong> a best practice solution. An <strong>energy</strong> audit would be one such <strong>to</strong>ol.<br />

The <strong>energy</strong> audit would be typically carried out every 3 – 5 years and its results would<br />

typically <strong>in</strong>dicate how well a project is operat<strong>in</strong>g, thus giv<strong>in</strong>g a performance <strong>in</strong>dication,<br />

as well as an overall economic cost. With this <strong>in</strong>formation a correct decision can be<br />

made so as <strong>to</strong> determ<strong>in</strong>e whether the project is viable or not <strong>in</strong> its current situation or<br />

whether changes are required <strong>in</strong> order <strong>to</strong> ensure economic stability.<br />

30


CHAPTER 3<br />

BUILDING ENERGY USE<br />

3.4 BUILDING ENERGY MANAGEMENT SYSTEMS<br />

Build<strong>in</strong>g Energy Management Systems (BEMSs) can significantly improve the overall<br />

<strong>energy</strong> management and performance of build<strong>in</strong>gs. BEMS’s have become a significant<br />

part of the modern build<strong>in</strong>g, add<strong>in</strong>g sav<strong>in</strong>g potential as well as <strong>in</strong>creas<strong>in</strong>g functionality<br />

[Wang, Zheng 2001]. The operational feedback obta<strong>in</strong>ed from the BEMS can cut <strong>energy</strong><br />

costs by 10 – 20% compared with <strong>in</strong>dividual control operation for each facet of the<br />

system [CIBSE, 2002]. However, for a BEMS <strong>to</strong> operate effectively it needs <strong>to</strong> be well<br />

specified and managed correctly by tra<strong>in</strong>ed staff. An easily understandable Graphical<br />

User Interface (GUI) design is also an essential part of any BEMS <strong>to</strong> ensure efficient<br />

operation. Recent advances <strong>in</strong> <strong>in</strong>formation technology (<strong>IT</strong>) have led <strong>to</strong> developments <strong>in</strong><br />

BEMSs [Clarke et al, 2002]. Significant developments have also been made <strong>in</strong> the<br />

standardisation of communication pro<strong>to</strong>cols as well as <strong>in</strong> the <strong>use</strong> of web controllers<br />

(Clarke et al, 2002). However <strong>in</strong> recent years it has become clear that although BEMSs<br />

are be<strong>in</strong>g utilised effectively <strong>in</strong> their primary position of plant control systems, their<br />

strategic functions such as <strong>energy</strong> moni<strong>to</strong>r<strong>in</strong>g and target<strong>in</strong>g are be<strong>in</strong>g ignored. This <strong>in</strong><br />

turn affects the efficiency and the cost of manag<strong>in</strong>g the facility [Lowery, 2002].<br />

The moni<strong>to</strong>r<strong>in</strong>g facilities of a BEMS allows plant status, environmental conditions and<br />

<strong>energy</strong> <strong>use</strong> <strong>to</strong> be moni<strong>to</strong>red allow<strong>in</strong>g the <strong>use</strong>r <strong>to</strong> have a real time understand<strong>in</strong>g of the<br />

operation of the build<strong>in</strong>g. This often leads <strong>to</strong> the <strong>use</strong>r identify<strong>in</strong>g areas of poor<br />

performance, e.g. a period of high-<strong>energy</strong> usage with no mitigat<strong>in</strong>g circumstances.<br />

Energy consumption is at a m<strong>in</strong>imum when the source (electrical <strong>energy</strong>) tracks the load<br />

perfectly. When a mismatch occurs, <strong>energy</strong> losses are high [Bhatt, 2000]. Thus through<br />

the <strong>use</strong> of the BEMS, the build<strong>in</strong>gs <strong>energy</strong> <strong>use</strong> can be tailored <strong>to</strong> meet its load pattern. It<br />

will also achieve the highest possible states of comfort at least cost. In order <strong>to</strong> achieve<br />

this goal however, the BEMS system must be utilised fully, with the addition of <strong>energy</strong><br />

meters, which would provide real time <strong>energy</strong> consumption patterns of the prime <strong>energy</strong><br />

movers of the build<strong>in</strong>g. Then through the <strong>use</strong> of the data logg<strong>in</strong>g <strong>to</strong>ols of the system,<br />

these results could be compared for different periods of <strong>use</strong>, lead<strong>in</strong>g <strong>to</strong> a greater<br />

understand<strong>in</strong>g of the build<strong>in</strong>gs performance. BEMSs can therefore improve build<strong>in</strong>g<br />

management by trend logg<strong>in</strong>g performance, benefit<strong>in</strong>g forward plann<strong>in</strong>g and cost<strong>in</strong>g. At<br />

the moment however, problems <strong>in</strong> User Interface design coupled with the lack of<br />

knowledge on the <strong>use</strong>rs part of the system, mean that the BEMS is not be<strong>in</strong>g <strong>use</strong>d <strong>to</strong> its<br />

full potential [Lowery, 2002].<br />

31


CHAPTER 3<br />

BUILDING ENERGY USE<br />

As well as this data analysis, the BEMS system can also serve as an early warn<strong>in</strong>g<br />

system so that if set environmental conditions are exceeded, or plant shutdown has<br />

occurred outside operat<strong>in</strong>g procedure, an alarm can be set <strong>to</strong> go off thus mak<strong>in</strong>g the <strong>use</strong>r<br />

aware that a problem may exist. BEMSs that <strong>in</strong>tegrate security, access control and<br />

light<strong>in</strong>g are now available, which where appropriate can further reduce runn<strong>in</strong>g costs.<br />

3.4.1 BEMS implementation issues<br />

When a BEMS is <strong>to</strong> be utilized <strong>to</strong> improve build<strong>in</strong>g performance a number of issues<br />

must first be discussed <strong>to</strong> ensure its efficient <strong>use</strong>. The staff designated as the BEMS<br />

<strong>use</strong>rs must be tra<strong>in</strong>ed <strong>in</strong> its efficient <strong>use</strong> and must be present when all set po<strong>in</strong>ts are<br />

chosen as well as be<strong>in</strong>g made aware why these set po<strong>in</strong>ts are chosen. Emula<strong>to</strong>rs, which<br />

simulate the heat<strong>in</strong>g, ventilation and air condition<strong>in</strong>g (HVAC) systems response <strong>to</strong><br />

BEMS commands, are now be<strong>in</strong>g <strong>use</strong>d <strong>in</strong> the tra<strong>in</strong><strong>in</strong>g of their opera<strong>to</strong>rs [Clarke et al,<br />

2002]. Without this understand<strong>in</strong>g of the system and the events, <strong>in</strong>efficient <strong>use</strong> of the<br />

system will result lead<strong>in</strong>g <strong>to</strong> a reduction <strong>in</strong> any sav<strong>in</strong>gs that will result from its <strong>use</strong>. A<br />

significant level of support should be obta<strong>in</strong>ed from the BEMS supplier <strong>to</strong> ensure<br />

smooth operation of the system. User documentation should also be freely available <strong>to</strong><br />

those with access <strong>to</strong> the system.<br />

The other facility that can promote efficient <strong>use</strong> of a BEMS system is a <strong>use</strong>r-friendly<br />

GUI. With a good graphical, well-displayed GUI, a <strong>use</strong>r can more easily navigate a<br />

BEMS system. Unfortunately, over elaborate GUI design is commonplace <strong>in</strong> the<br />

<strong>in</strong>dustry at this time, lead<strong>in</strong>g <strong>to</strong> <strong>in</strong>efficient <strong>use</strong> of the system [Lowery, 2002]. The level<br />

of understand<strong>in</strong>g of the systems <strong>use</strong> can be greatly improved by allow<strong>in</strong>g the <strong>use</strong>r <strong>to</strong> see<br />

colour-coded graphs of system operation, thus reduc<strong>in</strong>g the specialised tra<strong>in</strong><strong>in</strong>g required<br />

<strong>to</strong> efficiently utilise the system.<br />

A full life cycle cost<strong>in</strong>g analysis should take place before any BEMS is <strong>in</strong>stalled <strong>to</strong><br />

ensure that it is warranted. This should <strong>in</strong>clude payback period as a result of <strong>energy</strong><br />

consumption sav<strong>in</strong>gs, and improved ma<strong>in</strong>tenance procedures.<br />

3.5 SUMMARY<br />

Build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> accounts for 40% of Irelands current <strong>energy</strong> <strong>use</strong> figures. The<br />

<strong><strong>in</strong>troduction</strong> of environmental legislation with regard <strong>to</strong> CO 2 emissions and the advent<br />

of the EU directive on <strong>energy</strong> <strong>use</strong> demands that this area is now be<strong>in</strong>g exam<strong>in</strong>ed with a<br />

view <strong>to</strong> reduc<strong>in</strong>g <strong>energy</strong> <strong>use</strong>. This is be<strong>in</strong>g achieved by focus<strong>in</strong>g on the three phases of<br />

32


CHAPTER 3<br />

BUILDING ENERGY USE<br />

the build<strong>in</strong>g cycle. In each phase, the opportunity exists <strong>to</strong> m<strong>in</strong>imise the <strong>energy</strong> <strong>use</strong>d by<br />

the build<strong>in</strong>g, from simulation packages be<strong>in</strong>g <strong>use</strong>d <strong>in</strong> the design phase <strong>to</strong> <strong>energy</strong> audits<br />

be<strong>in</strong>g undertaken <strong>in</strong> the operational phase. Look<strong>in</strong>g more closely at the operational<br />

phase of the build<strong>in</strong>g, the BEMS could be <strong>use</strong>d more effectively <strong>to</strong> reduce build<strong>in</strong>g<br />

<strong>energy</strong> <strong>use</strong>. With the correct <strong>to</strong>ols at the disposal of the facility manager, <strong>in</strong>formed<br />

decisions can be made on the runn<strong>in</strong>g of the facility with the result be<strong>in</strong>g a more <strong>energy</strong><br />

efficient build<strong>in</strong>g.<br />

With Energy efficiency now a key fac<strong>to</strong>r <strong>in</strong> a build<strong>in</strong>gs lifecycle, Chapter 4 exam<strong>in</strong>es<br />

the theory beh<strong>in</strong>d the whole build<strong>in</strong>g <strong>energy</strong> analysis process. It develops the idea of<br />

exam<strong>in</strong><strong>in</strong>g a build<strong>in</strong>g at component level with a view <strong>to</strong> recognis<strong>in</strong>g shortfalls <strong>in</strong> its<br />

performance at source. This method of build<strong>in</strong>g <strong>energy</strong> analysis could be <strong>in</strong>tr<strong>in</strong>sic <strong>to</strong> the<br />

development of a truly <strong>energy</strong> efficient solution for build<strong>in</strong>gs and <strong>to</strong> the development of<br />

this software framework.<br />

33


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

4 WHOLE BUILDING ENERGY USE<br />

This section <strong>in</strong>troduces the idea of whole build<strong>in</strong>g <strong>energy</strong> analysis. It establishes how<br />

build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> can be more effectively quantified when the constituent<br />

components of the build<strong>in</strong>g are looked at <strong>in</strong>dividually. It then looks at the various data<br />

transfer methods available <strong>to</strong> free up this data once it has been collected<br />

ENERGYEYE<br />

Energy Archiv<strong>in</strong>g and<br />

Analysis Tool<br />

Moni<strong>to</strong>r<strong>in</strong>g<br />

Energy <strong>use</strong><br />

Kyo<strong>to</strong> Pro<strong>to</strong>col<br />

PHP<br />

MySQL<br />

Environmental<br />

Requirements<br />

Whole Build<strong>in</strong>g<br />

Energy Analysis<br />

gbXML<br />

Technology<br />

Unitron & BACnet<br />

Methodology<br />

Real Case Study<br />

THE MARDYKE ARENA<br />

Figure 4.1: Thesis structure schematic focus<strong>in</strong>g on whole build<strong>in</strong>g analysis and<br />

data transfer<br />

34


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

4.1 INTRODUCTION<br />

There are several methods available <strong>to</strong> identify a build<strong>in</strong>gs’ actual <strong>energy</strong> consumption,<br />

but one of the most effective is achieved by us<strong>in</strong>g the pr<strong>in</strong>ciple of Whole Build<strong>in</strong>g<br />

Energy analysis [Vital Signs, 2003]. This <strong>in</strong>volves us<strong>in</strong>g the monthly utility records<br />

obta<strong>in</strong>ed from the utility company <strong>use</strong>d <strong>to</strong> supply the build<strong>in</strong>g, and disaggregat<strong>in</strong>g them<br />

<strong>in</strong><strong>to</strong> the components of heat<strong>in</strong>g, cool<strong>in</strong>g, fan mo<strong>to</strong>r, light<strong>in</strong>g, equipment, and water<br />

heat<strong>in</strong>g <strong>energy</strong> [Vital Signs, 2003]. By splitt<strong>in</strong>g the build<strong>in</strong>gs <strong>energy</strong> <strong>use</strong> <strong>in</strong><strong>to</strong> its<br />

<strong>in</strong>dividual constituents like this, the <strong>energy</strong> <strong>use</strong> can be tracked more closely with a view<br />

<strong>to</strong> identify<strong>in</strong>g areas where optimal performance is not be<strong>in</strong>g achieved. This then allows<br />

the contracted eng<strong>in</strong>eer <strong>to</strong> make changes <strong>to</strong> the system <strong>to</strong> improve performance.<br />

4.2 DISAGGREGATION OF ENERGY USE<br />

The <strong>energy</strong> <strong>use</strong> <strong>in</strong> the build<strong>in</strong>g is disaggregated us<strong>in</strong>g the monthly utility bills <strong>in</strong><strong>to</strong> the<br />

components of;<br />

• Energy and costs for fan mo<strong>to</strong>r operation;<br />

• Energy and costs for light<strong>in</strong>g;<br />

• Energy and costs for receptacles (e.g. computers, office equipment and small<br />

appliances);<br />

• Energy and costs for water heat<strong>in</strong>g;<br />

• Energy and costs for space cool<strong>in</strong>g;<br />

• Energy and costs for space heat<strong>in</strong>g.<br />

This data is then displayed for ease of access <strong>in</strong> pie charts as <strong>in</strong> Figure 4.2 [CIBSE CDa,<br />

2003] <strong>to</strong> emphasise which areas are <strong>energy</strong> <strong>in</strong>tensive, or are displayed <strong>in</strong> bar charts<br />

versus the benchmarks for the associated build<strong>in</strong>g <strong>use</strong> as <strong>in</strong> Figure 4.3, Figure 4.4, and<br />

Figure 4.5 [TM 22, 2003] <strong>to</strong> show whether the build<strong>in</strong>g is perform<strong>in</strong>g well or not.<br />

35


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

Figure 4.2: Pie Charts show<strong>in</strong>g the breakdown of <strong>energy</strong> <strong>use</strong> <strong>in</strong> a swimm<strong>in</strong>g pool<br />

centre [DETR GPG 219, 2002]<br />

Figure 4.3: Pie Charts show<strong>in</strong>g the breakdown of <strong>energy</strong> <strong>use</strong> <strong>in</strong> a facility by fuel<br />

type [DETR Fuel 1, 2002]<br />

36


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

Figure 4.4: Bar Chart of Cost of Type of <strong>energy</strong> <strong>use</strong>d versus Established<br />

Benchmarks [TM 22, 2003]<br />

Figure 4.5: Bar Chart of Energy Use by sec<strong>to</strong>r versus Established Benchmarks<br />

[TM 22, 2003]<br />

37


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

The eng<strong>in</strong>eer can now focus more closely on match<strong>in</strong>g the <strong>to</strong>tal <strong>in</strong>put <strong>energy</strong> <strong>to</strong> the<br />

build<strong>in</strong>g (obta<strong>in</strong>ed from the utility bills) with the sum of the actual <strong>energy</strong> <strong>use</strong>d by the<br />

<strong>in</strong>dividual constituents of the build<strong>in</strong>g. The optimum solution is then that of <strong>energy</strong><br />

<strong>in</strong>put <strong>to</strong> the build<strong>in</strong>g equall<strong>in</strong>g <strong>energy</strong> <strong>use</strong>d (sum of constituent components) <strong>in</strong> the<br />

build<strong>in</strong>g.<br />

CALCULATING ENERGY USE BY COMPONENT<br />

4.3.1 Energy <strong>use</strong> calculations for fan mo<strong>to</strong>rs, light<strong>in</strong>g and receptacles<br />

In order <strong>to</strong> quantify the amount of <strong>energy</strong> <strong>use</strong>d by any piece of equipment, it must firstly<br />

be known how often that piece of equipment is <strong>use</strong>d. The build<strong>in</strong>g manager must be<br />

<strong>in</strong>terviewed and the operat<strong>in</strong>g schedule for that particular piece of equipment studied <strong>in</strong><br />

order <strong>to</strong> determ<strong>in</strong>e the answer <strong>to</strong> this question. It is possible that a fan unit would never<br />

be turned off, but it is more likely that a prescribed schedule exists that utilises it only<br />

when the build<strong>in</strong>g is occupied. This <strong>in</strong>formation is then recorded for each piece of<br />

equipment.<br />

The next step <strong>in</strong> the process is <strong>to</strong> record data from each piece of equipments’ <strong>in</strong>dividual<br />

electrical nameplate. Aga<strong>in</strong> us<strong>in</strong>g the fan unit as an example, the nameplate would yield<br />

the power of the unit at full capacity <strong>in</strong> kW. Depend<strong>in</strong>g on the type of fan <strong>use</strong>d (variable<br />

speed etc), an average value for kW can be obta<strong>in</strong>ed and when multiplied by the<br />

aforementioned <strong>to</strong>tal hours <strong>in</strong> operation would yield the <strong>to</strong>tal kWh of electricity that the<br />

fan utilises <strong>in</strong> the period <strong>in</strong> question (usually 1 year). Then a simple calculation us<strong>in</strong>g<br />

the cost of electricity per kWh would allow the eng<strong>in</strong>eer <strong>to</strong> calculate exactly how much<br />

of the associated <strong>in</strong>put <strong>energy</strong> bill can be attributed <strong>to</strong> runn<strong>in</strong>g the fan.<br />

This pattern of load calculation is very similar for the light<strong>in</strong>g and the receptacles <strong>in</strong> the<br />

build<strong>in</strong>g with the time each piece of equipment is <strong>in</strong> <strong>use</strong> firstly be<strong>in</strong>g quantified by<br />

<strong>in</strong>terview<strong>in</strong>g the build<strong>in</strong>g manager or from schedule <strong>in</strong>formation. The kW rat<strong>in</strong>g of each<br />

unit is then obta<strong>in</strong>ed and once multiplied by the time <strong>in</strong> operation would yield the <strong>to</strong>tal<br />

load, once the <strong>to</strong>tal number of the equipment is summed.<br />

38


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

4.3.2 Water heat<strong>in</strong>g, space heat<strong>in</strong>g and cool<strong>in</strong>g <strong>energy</strong> calculation<br />

The water-heat<strong>in</strong>g situation is a little more difficult <strong>to</strong> quantify. Firstly the occupancy<br />

must be known so that an average amount of hot water utilised by each person can be<br />

calculated. Then the average hot water <strong>energy</strong> <strong>use</strong> is calculated from the equation <strong>in</strong><br />

Equation 4.1.<br />

Equation 4.1: Calculation necessary <strong>to</strong> f<strong>in</strong>d the <strong>energy</strong> <strong>use</strong>d <strong>in</strong> the water heat<strong>in</strong>g<br />

process [Vital Signs, 2003]<br />

( OCCxLPDx4.54x(60<br />

− TG)<br />

xODPY)<br />

kWh = 3412*<br />

EFF<br />

Where<br />

OCC = Number of Build<strong>in</strong>g occupants (CONSTANT)<br />

LPD = Litres per day per person of hot water <strong>use</strong> (CONSTANT)<br />

60 = Hot water supply temp (C)<br />

TG<br />

= Ground temp (C)<br />

ODPY = Occupied days of year<br />

EFF<br />

= Efficiency of water heater (usually 0.75 for gas)<br />

If the build<strong>in</strong>g is gas heated, then all the electric <strong>energy</strong> not <strong>use</strong>d by the previously<br />

calculated end <strong>use</strong>rs is assumed <strong>to</strong> be <strong>use</strong>d by the space cool<strong>in</strong>g system. Otherwise a<br />

monthly analysis of outside temperature is required <strong>to</strong> give the <strong>energy</strong> <strong>use</strong>d. S<strong>in</strong>ce the<br />

fan <strong>energy</strong> <strong>use</strong> will have already been calculated by this time, the cool<strong>in</strong>g <strong>energy</strong> is<br />

def<strong>in</strong>ed as the compressor <strong>energy</strong> and the chilled water and condenser water pumps<br />

<strong>energy</strong>.<br />

A similar system is <strong>use</strong>d <strong>to</strong> def<strong>in</strong>e the space heat<strong>in</strong>g load, as if it is gas heated build<strong>in</strong>g<br />

then the <strong>to</strong>tal gas <strong>in</strong>put m<strong>in</strong>us that <strong>use</strong>d for water heat<strong>in</strong>g will determ<strong>in</strong>e the result.<br />

Otherwise the electric load can aga<strong>in</strong> be found us<strong>in</strong>g the monthly temperature analysis.<br />

After this calculation process has been completed, a clear picture of where the <strong>in</strong>put<br />

<strong>energy</strong> is be<strong>in</strong>g <strong>use</strong>d should exist with any shortfalls <strong>in</strong> performance be<strong>in</strong>g apparent<br />

from higher than expected <strong>energy</strong> usage <strong>in</strong> a particular area.<br />

39


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

4.4 USING WHOLE BUILDING ENERGY ANALYSIS TO ANALYSE REAL<br />

DATA<br />

Whole build<strong>in</strong>g <strong>energy</strong> analysis us<strong>in</strong>g utility bills is a very good way <strong>to</strong> identify the<br />

areas where build<strong>in</strong>g <strong>energy</strong> is be<strong>in</strong>g consumed. It does however centre on a lot of<br />

assumed, and unverified quantities such as <strong>in</strong> the case of the <strong>in</strong>terview with the build<strong>in</strong>g<br />

manager for example which is dependant upon the level of knowledge and the <strong>energy</strong><br />

management ability of that person [Waltz, 1999]. From this <strong>in</strong>terview, the eng<strong>in</strong>eer<br />

takes the time that the end <strong>use</strong>rs such as the lights and other HVAC mach<strong>in</strong>ery are <strong>in</strong><br />

action, and <strong>use</strong>s these quantities <strong>in</strong> the calculations <strong>use</strong>d <strong>to</strong> obta<strong>in</strong> the kWh’s <strong>use</strong>d by<br />

each component.<br />

If however a situation existed where the data recorded by the sensors <strong>in</strong> the build<strong>in</strong>g at<br />

any time was recorded <strong>in</strong> a relevant database table, and this table could be accessed with<br />

the data be<strong>in</strong>g then <strong>in</strong>serted <strong>in</strong><strong>to</strong> the relevant formulae <strong>to</strong> determ<strong>in</strong>e exactly how much<br />

<strong>energy</strong> each component was us<strong>in</strong>g at any time, a far more accurate picture of whole<br />

build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> could be obta<strong>in</strong>ed.<br />

These sensors would already exist as they would be required by the Build<strong>in</strong>g Energy<br />

Management System (BEMS). By access<strong>in</strong>g the temperature sensors before and after a<br />

heat<strong>in</strong>g coil, know<strong>in</strong>g the mass flow rate of air through the duct that services this coil,<br />

the exact <strong>energy</strong> that the coil <strong>use</strong>s can be calculated. If this practice was repeated for<br />

every <strong>energy</strong> <strong>use</strong>r <strong>in</strong> the facility as described <strong>in</strong> the previous section, and us<strong>in</strong>g real data<br />

recorded and s<strong>to</strong>red via the various sensors <strong>in</strong> the facility, the exact whole build<strong>in</strong>g<br />

<strong>energy</strong> <strong>use</strong> could be determ<strong>in</strong>ed then compared <strong>to</strong> the <strong>in</strong>put <strong>energy</strong> <strong>to</strong> the facility. This<br />

would allow any utilised <strong>energy</strong> <strong>to</strong> be accounted for, hence f<strong>in</strong>d<strong>in</strong>g exactly where the<br />

<strong>energy</strong> is consumed.<br />

It was decided <strong>to</strong> focus on the HVAC equipment <strong>in</strong> the facility, as this was a ma<strong>in</strong><br />

<strong>energy</strong> <strong>use</strong>r <strong>in</strong> it. And s<strong>in</strong>ce the correct implementation of this procedure on one<br />

particular area of this equipment could be imitated for each area of it, it was decided <strong>to</strong><br />

focus on the AHU <strong>in</strong> the pool area of the facility, as this had components common <strong>to</strong> all<br />

AHU’s onsite such as a heat<strong>in</strong>g coil for example. If this area of the HVAC system could<br />

be analysed correctly then the whole HVAC system could be analysed <strong>in</strong> the same way,<br />

and hence the whole build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> calculated from real data. The pumps and fans<br />

<strong>in</strong> this unit were not analysed <strong>in</strong> this project due <strong>to</strong> time constra<strong>in</strong>ts, as they were by far<br />

the lesser <strong>energy</strong> <strong>use</strong>rs when compared <strong>to</strong> the other components of <strong>energy</strong> <strong>use</strong> <strong>in</strong> the<br />

AHU.<br />

40


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

4.5 AHU 1 – THE POOL AREA AHU<br />

In look<strong>in</strong>g <strong>to</strong> establish the <strong>energy</strong> load of the AHU <strong>in</strong> the pool area of the Mardyke<br />

Arena, it was first necessary <strong>to</strong> establish the ma<strong>in</strong> <strong>use</strong>rs of <strong>energy</strong> <strong>in</strong> it. As illustrated <strong>in</strong><br />

Figure 4.6, these are the heat exchanger and the afterheater, with their <strong>use</strong>s now be<strong>in</strong>g<br />

expla<strong>in</strong>ed.<br />

Heat Exchanger<br />

Afterheater<br />

Figure 4.6: AHU 1, The Pool AHU [WN 3000, 2003]<br />

4.5.1 The heat exchanger<br />

As can be clearly seen from Figure 4.6, the heat exchanger is the first piece of apparatus<br />

<strong>to</strong> impart <strong>energy</strong> <strong>to</strong> the <strong>in</strong>com<strong>in</strong>g fresh air. It does this <strong>in</strong> a very economical way with<br />

the <strong>in</strong>com<strong>in</strong>g air receiv<strong>in</strong>g its <strong>energy</strong> from the return airflow from the space <strong>to</strong> be<br />

ma<strong>in</strong>ta<strong>in</strong>ed, which <strong>in</strong> this case <strong>in</strong> the pool area.<br />

In this plate heat exchanger [Hoval, 2003] the warm return air and the cool fresh air are<br />

separated by th<strong>in</strong> plates and pass each other <strong>in</strong> cross-flow. No mix<strong>in</strong>g of the two air<br />

streams takes place <strong>in</strong> order <strong>to</strong> avoid cross contam<strong>in</strong>ation. Heat is transmitted from the<br />

return air <strong>to</strong> the fresh air by conduction and convection as a result of the temperature<br />

difference between the two air streams. This exchange of <strong>energy</strong> means that the amount<br />

of work <strong>to</strong> be done by the afterheater directly after this piece of apparatus is greatly<br />

reduced, so sav<strong>in</strong>g <strong>energy</strong> <strong>in</strong> the process. This piece of apparatus is shown <strong>in</strong> Figure 4.7.<br />

41


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

Figure 4.7: Plate Heat Exchanger [Hoval, 2003]<br />

The load on the Heat Exchanger would be calculated by look<strong>in</strong>g at the temperature of<br />

air before and after it, as well as the mass flow rate of the air flow<strong>in</strong>g through it, and of<br />

course the specific heat capacity of the air, which is a measure of how much <strong>energy</strong> it<br />

takes <strong>to</strong> raise the temperature of the air by one degree. The equation, which comb<strong>in</strong>es<br />

all of these fac<strong>to</strong>rs <strong>to</strong> return a load for the apparatus, is shown <strong>in</strong> Equation 4.2.<br />

42


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

Equation 4.2<br />

Q<br />

HE<br />

.<br />

= m a*<br />

C<br />

pma<br />

*( T<br />

OFF<br />

− T<br />

OUT<br />

)<br />

Where<br />

Q<br />

HE<br />

=Load on the heat exchanger (kW)<br />

ṁ a<br />

C pma<br />

=Mass flow rate of air across the unit (kg/s)<br />

=specific heat capacity of the air (kJ/kgK)<br />

T<br />

OFF<br />

=Temperature of the air after the unit (C)<br />

T<br />

OUT<br />

=Temperature of the air before the heat exchanger, i.e. the outside air temperature (C)<br />

4.5.2 The afterheater<br />

Figure 4.8 shows a diagram obta<strong>in</strong>ed from the WN3000 BMS software <strong>to</strong>ol, which<br />

shows the common situation <strong>in</strong> an Air Handl<strong>in</strong>g Unit (AHU), of a afterheater be<strong>in</strong>g <strong>use</strong>d<br />

<strong>to</strong> heat the <strong>in</strong>com<strong>in</strong>g fresh air for <strong>use</strong> <strong>in</strong> the conditioned space <strong>to</strong> provide comfortable<br />

conditions for its occupants, show<strong>in</strong>g that its <strong>use</strong> was common <strong>to</strong> other AHU’s.<br />

Afterheater<br />

Figure 4.8: Afterheater as part of an AHU <strong>in</strong> the Mardyke Arena [WN 3000, 2003]<br />

43


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

In AHU 1, the pool AHU, the air once it has received <strong>energy</strong> and had its temperature<br />

<strong>in</strong>creased by the heat exchanger moves through the afterheater <strong>to</strong> receive its f<strong>in</strong>al <strong>energy</strong><br />

pickup <strong>to</strong> reach its required supply temperature.<br />

The load on the afterheater can be calculated by analys<strong>in</strong>g the temperature of air that<br />

entered it, i.e. the air com<strong>in</strong>g from the heat exchanger, and the temperature of air that<br />

left it, i.e. the supply temperature, along with the mass flow rate of air that passed<br />

through it, as long as the properties of the air are known. The equation <strong>use</strong>d <strong>to</strong> calculate<br />

the load on the afterheater is shown <strong>in</strong> Equation 4.3.<br />

Equation 4.3: Equation <strong>use</strong>d <strong>to</strong> calculate the Load on an Afterheater<br />

Q<br />

ah<br />

.<br />

= m a*<br />

C<br />

pma<br />

*( T<br />

off<br />

− T<br />

on<br />

)<br />

Where<br />

Q<br />

ah<br />

=Load on the unit (kW)<br />

ṁ a =Mass flow rate of air across the unit (kg/s)<br />

C pma =specific heat capacity of the air (kJ/kgK)<br />

T<br />

off<br />

=Temperature of the air after the unit (C)<br />

T<br />

on<br />

=Temperature of the air before the unit (C)<br />

4.6 CONCLUSIONS<br />

This software framework would be beneficial if a situation existed where the real data<br />

from the sensors could be obta<strong>in</strong>ed and <strong>in</strong>serted <strong>in</strong><strong>to</strong> Equations 4.2 and 4.3, then the<br />

exact loads on the heat exchanger and the afterheater could be obta<strong>in</strong>ed for any duration<br />

of time. The data would firstly be obta<strong>in</strong>ed from the facility and archived for a one-year<br />

period, then <strong>in</strong>serted <strong>in</strong><strong>to</strong> Equations 4.2 and 4.3 <strong>in</strong> time-steps, summ<strong>in</strong>g each obta<strong>in</strong>ed<br />

step <strong>to</strong> get the annual load. The objective of this project would then be achieved, that<br />

be<strong>in</strong>g <strong>to</strong> quantify the exact annual load on one particular area of a facility <strong>in</strong> order <strong>to</strong><br />

facilitate a whole build<strong>in</strong>g <strong>energy</strong> analysis of the same build<strong>in</strong>g <strong>in</strong> future.<br />

44


CHAPTER 4<br />

WHOLE BUILDING ENERGY USE<br />

4.7 SUMMARY<br />

Whole Build<strong>in</strong>g Energy analysis is the disaggregation of <strong>energy</strong> <strong>use</strong> <strong>in</strong><strong>to</strong> its component<br />

parts allow<strong>in</strong>g for the more accurate evaluation of performance by component. If the<br />

<strong>energy</strong> <strong>use</strong> of each component can be looked at <strong>in</strong>dividually, shortfalls <strong>in</strong> performance<br />

become evident far more easily and remedial actions become much easier <strong>to</strong> undertake,<br />

as the exact ca<strong>use</strong> of the <strong>energy</strong> <strong>in</strong>efficiency is known.<br />

In real terms, if a facility is broken down <strong>in</strong><strong>to</strong> its <strong>in</strong>dividual <strong>energy</strong> <strong>use</strong> sec<strong>to</strong>rs, HVAC,<br />

light<strong>in</strong>g etc., and these sec<strong>to</strong>rs are broken down <strong>in</strong><strong>to</strong> their <strong>in</strong>dividual components, then<br />

the <strong>energy</strong> <strong>use</strong> can be tracked from source <strong>to</strong> end <strong>use</strong> effectively.<br />

Chapter 5 exam<strong>in</strong>es ways <strong>to</strong> develop the extensibility of the BEMS by mak<strong>in</strong>g the<br />

recorded data <strong>in</strong>teroperable and hence <strong>use</strong>ful <strong>to</strong> third party analysis applications with a<br />

view <strong>to</strong> moni<strong>to</strong>r<strong>in</strong>g and reduc<strong>in</strong>g build<strong>in</strong>g <strong>energy</strong> <strong>use</strong>.<br />

45


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

INFORMATION/ DATA MODELLING<br />

Chapters 2 and 3 describe the emerg<strong>in</strong>g <strong>in</strong>ternational environmental policy and<br />

associated legislation with regard <strong>to</strong> the <strong>energy</strong> performance and certification of<br />

build<strong>in</strong>gs. This places the demand that any effective solution must be an <strong>in</strong>tegrated one<br />

that is underp<strong>in</strong>ned by both the build<strong>in</strong>g product model (The build<strong>in</strong>g product model<br />

conta<strong>in</strong>s geometry, dimensions, and technical data and allows for shar<strong>in</strong>g of <strong>in</strong>formation<br />

between different discipl<strong>in</strong>es with<strong>in</strong> the <strong>AEC</strong>) philosophy and whole build<strong>in</strong>g <strong>energy</strong><br />

<strong>use</strong> methodology. STEP, the ISO standard for the exchange of product model data,<br />

provides the basis for such an <strong>in</strong>tegrated solution [STEPTOOLS, 2002]. Specifically,<br />

STEP Part-28 allows for XML representations of the EXPRESS schemas that comprise<br />

STEP. GbXML is a specific implementation of STEP Part-28 that conta<strong>in</strong>s all of the<br />

STEP entities (written <strong>in</strong> XML) relevant <strong>to</strong> the design [ISO, 2003], construction and<br />

operation of Green Build<strong>in</strong>gs. Figure 5.1 illustrates the l<strong>in</strong>ks between the various data<br />

standards and pro<strong>to</strong>cols.<br />

STEP Standard<br />

ISO 10303<br />

Part 21 - Relates <strong>to</strong><br />

CAD application support<br />

Part 28- Relates <strong>to</strong><br />

XML application support<br />

SGML<br />

ISO 8879<br />

XML<br />

gbXML<br />

Build<strong>in</strong>g Specific<br />

Version of XML<br />

Figure 5.1: Relationship between STEP, SGML, XML and gbXML<br />

46


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

In exam<strong>in</strong><strong>in</strong>g this area the flow of discussion will start by focus<strong>in</strong>g on the front-end of<br />

the solution as illustrated <strong>in</strong> Figure 5.2, with the technology <strong>use</strong>d shown <strong>in</strong> Table 5.1<br />

and denoted by the FE (Frontend). This discussion beg<strong>in</strong>s by exam<strong>in</strong><strong>in</strong>g the STEP data<br />

standard and cont<strong>in</strong>ues as follows:<br />

• STEP;<br />

• XML;<br />

• STEP and XML;<br />

• XML DTD;<br />

• GbXML.<br />

Then the focus turns <strong>to</strong> the backend (BE) of the solution where the raw data is archived<br />

before it is manipulated <strong>in</strong><strong>to</strong> gbXML. This is illustrated once aga<strong>in</strong> <strong>in</strong> Figure 5.2 and <strong>in</strong><br />

Table 5.1 with the flow be<strong>in</strong>g;<br />

• MySQL;<br />

• Opensource Software;<br />

• Database Development.<br />

BACKEND<br />

FRONTEND<br />

MYSQL database<br />

populated by PHP<br />

with sensor data from BMS<br />

GUI<br />

loaded with data from database<br />

gbXML report<br />

generated by PHP<br />

Figure 5.2: Front-end and Backend of Software solution<br />

47


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

Table 5.1: Outl<strong>in</strong>e of methods and software <strong>use</strong>d <strong>in</strong> the development of this project<br />

METHOD LANGUAGE TOOL<br />

REPORT GBXML WEB BROWSER<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

GUI HTML DREAMWEAVER<br />

F<br />

E<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

DATA RELATIONAL MYSQL<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

DATA CSV BEMS<br />

B<br />

E<br />

5.1 STEP COMPLIANCE<br />

5.1.1 Introduction <strong>to</strong> STEP<br />

STEP, the Standard for the Exchange of Product Model Data, is a comprehensive ISO<br />

standard (ISO 10303)[ISO, 2003] that describes how <strong>to</strong> represent and exchange digital<br />

product <strong>in</strong>formation [STEPTOOLS, 2002]. It was first issued <strong>in</strong> 1994 [Pratt, Anderson,<br />

2001] and has been constructed as a multi-part ISO standard. ISO 10303, which is the<br />

area which refers <strong>to</strong> the STEP process, foc<strong>use</strong>s on the neutral file approach, where the<br />

files are translated from their natural format <strong>in</strong><strong>to</strong> a neutral ISO file format, then<br />

translated from there <strong>to</strong> the native format of the receiv<strong>in</strong>g system [Pratt, Anderson,<br />

2001].<br />

Digital product data must conta<strong>in</strong> enough <strong>in</strong>formation <strong>to</strong> cover a product's entire life<br />

cycle, from design <strong>to</strong> analysis, manufacture, quality control test<strong>in</strong>g, <strong>in</strong>spection and<br />

product support functions. In order <strong>to</strong> do this, STEP must cover geometry, <strong>to</strong>pology,<br />

<strong>to</strong>lerances, relationships, attributes, assemblies, configuration and more.<br />

To accomplish this ambitious goal, STEP has been constructed as a multi-part ISO<br />

standard. The basic parts are complete and published, while more are under<br />

development. These parts cover <strong>general</strong> areas, such as test<strong>in</strong>g procedures, file formats<br />

and programm<strong>in</strong>g <strong>in</strong>terfaces, as well as <strong>in</strong>dustry-specific <strong>in</strong>formation. The most<br />

important aspect of STEP is extensibility. STEP is built on the Express language that<br />

48


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

can formally describe the structure and correctness conditions of any eng<strong>in</strong>eer<strong>in</strong>g<br />

<strong>in</strong>formation that needs <strong>to</strong> be exchanged.<br />

5.1.2 The future of STEP<br />

STEP was developed by an <strong>in</strong>ternational community for all eng<strong>in</strong>eer<strong>in</strong>g data. And<br />

beca<strong>use</strong> it is open and extensible, it can be sure that it will meet design and<br />

manufactur<strong>in</strong>g needs well <strong>in</strong><strong>to</strong> the next century. The benefits of STEP are faster design<br />

times and better communication. Concurrent eng<strong>in</strong>eer<strong>in</strong>g can be achieved by manag<strong>in</strong>g<br />

data more efficiently. Product data can be communicated <strong>to</strong> cus<strong>to</strong>mers and suppliers<br />

worldwide and data can be archived <strong>in</strong> a format that will be supported by CAD systems,<br />

as def<strong>in</strong>ed <strong>in</strong> part 21 of the standard, for many years <strong>in</strong><strong>to</strong> the future.<br />

STEP is be<strong>in</strong>g written <strong>in</strong><strong>to</strong> a grow<strong>in</strong>g number of contracts worldwide beca<strong>use</strong> of the<br />

scope, flexibility, and quality of its product representation capabilities. STEP is<br />

<strong>in</strong>ternational, and was developed by <strong>use</strong>rs, not vendors. User-driven standards are<br />

results-oriented, while vendor-driven standards are technology-oriented. STEP has, and<br />

will cont<strong>in</strong>ue <strong>to</strong>, survive changes <strong>in</strong> technology and can be <strong>use</strong>d for long-term archiv<strong>in</strong>g<br />

of product data. STEP is <strong>in</strong>creas<strong>in</strong>gly be<strong>in</strong>g recognised by the construction <strong>in</strong>dustry as<br />

an effective means of exchang<strong>in</strong>g product <strong>related</strong> data between CAD systems and<br />

applications [Pratt, Anderson, 2001], and it should enable them <strong>to</strong> do this with more<br />

success than was previously possible [Ma et al, 2001].<br />

5.2 XML<br />

5.2.1 Background<br />

XML [XML, 2002] is the Extensible Mark-up Language. It is designed <strong>to</strong> improve the<br />

functionality of the Web by provid<strong>in</strong>g more flexible and adaptable <strong>in</strong>formation<br />

identification. It is called extensible beca<strong>use</strong> it is not a fixed format like HTML (a<br />

s<strong>in</strong>gle, predef<strong>in</strong>ed mark-up language). Instead, XML is actually a `metalanguage' , a<br />

language for describ<strong>in</strong>g other languages, which lets the <strong>use</strong>r def<strong>in</strong>e their own<br />

cus<strong>to</strong>mized mark-up languages for limitless different types of documents. XML is<br />

simple, recognisable [Aloisio et al, 1999], and describes a documents structure and<br />

mean<strong>in</strong>g [Badard, Richard 2001]. XML can do this beca<strong>use</strong> it's written <strong>in</strong> SGML as<br />

49


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

illustrated <strong>in</strong> Figure 5.1, the <strong>in</strong>ternational standard metalanguage for text mark-up<br />

systems (ISO 8879) [XML, 2002].<br />

ISO standards like SGML are governed by the International Organization for<br />

Standardization (ISO) <strong>in</strong> Geneva, Switzerland, and voted <strong>in</strong><strong>to</strong> or out of existence by<br />

representatives from every country's national standards body. HTML is the HyperText<br />

Mark-up Language, a small application of SGML, which is <strong>use</strong>d on the Web. It def<strong>in</strong>es<br />

a very simple class of report-style documents, with section head<strong>in</strong>gs, paragraphs, lists,<br />

tables, and illustrations, with a few <strong>in</strong>formational and presentational items, and some<br />

hypertext and multimedia.<br />

XML is <strong>in</strong>tended <strong>to</strong> make it easy and straightforward <strong>to</strong> <strong>use</strong> SGML on the Web as well<br />

as make it easy <strong>to</strong> def<strong>in</strong>e document types and share them across the Web. It def<strong>in</strong>es an<br />

extremely simple dialect of SGML, which is completely described <strong>in</strong> the XML<br />

Specification. The goal is <strong>to</strong> enable generic SGML <strong>to</strong> be served, received, and processed<br />

on the Web <strong>in</strong> the way that is now possible with HTML. For this reason, XML has been<br />

designed for ease of implementation, and for <strong>in</strong>teroperability with both SGML and<br />

HTML, and it is through its strong l<strong>in</strong>ks <strong>to</strong> these languages that it has ga<strong>in</strong>ed <strong>use</strong>r<br />

acceptance worldwide [Aloisio et al, 1999]. SGML is very large, powerful, and<br />

complex. It has been <strong>in</strong> heavy <strong>in</strong>dustrial and commercial <strong>use</strong> for over a decade, and<br />

there is a significant body of expertise and software <strong>to</strong> go with it. XML is a lightweight<br />

cut-down version of SGML, which keeps enough of its functionality <strong>to</strong> make it <strong>use</strong>ful,<br />

but removes all the optional features, which make SGML <strong>to</strong>o complex <strong>to</strong> program for <strong>in</strong><br />

a Web environment.<br />

5.2.2 XML for data transfer<br />

XML is ga<strong>in</strong><strong>in</strong>g acceptance <strong>to</strong>day beca<strong>use</strong> many problems require its flexibility and<br />

simplicity [Devarticles, 2003]. XML is designed <strong>to</strong> organise <strong>in</strong>formation which makes it<br />

perfect for the data exchange purposes [Badard, Richard, 2001]. It enables the <strong>use</strong>r <strong>to</strong><br />

create structured and semi-structured documents that can be transferred and read by<br />

people and programs <strong>in</strong> multiple formats (for example, pages that can be read on the<br />

web, handheld devices and pr<strong>in</strong>t). This "multi-<strong>use</strong>" of content is the driv<strong>in</strong>g force<br />

beh<strong>in</strong>d the adoption of XML technology.<br />

XML lets bus<strong>in</strong>ess <strong>use</strong>rs create structured documents that can be leveraged for multiple<br />

purposes <strong>in</strong>-ho<strong>use</strong> and exchanged <strong>to</strong> people and bus<strong>in</strong>esses around the world.<br />

Information on a network, which connects many different types of computer, has <strong>to</strong> be<br />

50


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

usable on all of them. Public <strong>in</strong>formation cannot afford <strong>to</strong> be restricted <strong>to</strong> one make or<br />

model or manufacturer, or <strong>to</strong> concede control of its data format <strong>to</strong> private hands. It is<br />

also helpful for such <strong>in</strong>formation <strong>to</strong> be <strong>in</strong> a form that can be re<strong>use</strong>d <strong>in</strong> many different<br />

ways, as this can m<strong>in</strong>imize wasted time and effort. Proprietary data formats, no matter<br />

how well documented or publicised, are simply not an option as their control still<br />

resides <strong>in</strong> private hands and they can be changed or withdrawn arbitrarily without<br />

notice. SGML is the <strong>in</strong>ternational standard for def<strong>in</strong><strong>in</strong>g this k<strong>in</strong>d of application, with<br />

XML, its cut down version, be<strong>in</strong>g the obvious choice <strong>to</strong> facilitate <strong>in</strong>ternational <strong>use</strong>r<br />

acceptance.<br />

5.2.3 The Future of XML<br />

XML is <strong>use</strong>r driven with such <strong>use</strong>s be<strong>in</strong>g developed as CAD-CAM, UML (software<br />

design and model<strong>in</strong>g), and other graphically oriented content. Widespread adoption of<br />

XML technology depends on the DTD, which is expla<strong>in</strong>ed <strong>in</strong> a subsequent section, and<br />

schema designs that provide a structure convenient for humans. In other words, people<br />

will <strong>use</strong> XML only if it is easy and solves a problem.<br />

XML may solve database problems by provid<strong>in</strong>g a common format <strong>to</strong> exchange data.<br />

But databases have been around for a long time, and most database problems have been<br />

solved. XML will be the next generation of Bus<strong>in</strong>ess <strong>to</strong> Bus<strong>in</strong>ess (B2B) data transfer<br />

language [Yen et al, 2002]. XML is at the moment be<strong>in</strong>g <strong>use</strong>d <strong>in</strong> the transfer of<br />

<strong>in</strong>formation between databases and simulation <strong>to</strong>ols and packages, where the data is<br />

s<strong>to</strong>red <strong>in</strong> a relational database, translated <strong>to</strong> XML form then fed <strong>to</strong> the XML compliant<br />

simulation <strong>to</strong>ol [Kokkonen et al, 2003]. This is made possible beca<strong>use</strong> parsers that<br />

<strong>in</strong>terpret XML can be built <strong>in</strong><strong>to</strong> a wide variety of <strong>to</strong>ols at low cost and <strong>in</strong> any number of<br />

programm<strong>in</strong>g languages, thus aid<strong>in</strong>g <strong>in</strong>teroperability and <strong>use</strong>r acceptance on a global<br />

scale [Kim, 2001].<br />

The <strong>use</strong> of XML for the purpose of this project is highly recommended beca<strong>use</strong> of its<br />

<strong>use</strong> <strong>in</strong> association with the ISO STEP standard <strong>to</strong> represent product data <strong>in</strong> a generic<br />

format for data transfer as well as its easy <strong>to</strong> <strong>use</strong> and structured format allow<strong>in</strong>g it <strong>to</strong> be<br />

easily displayed over the World Wide Web, which is derived form its predecessor, the<br />

ISO standard SGML as is illustrated <strong>in</strong> Figure 5.3. However <strong>in</strong> order <strong>to</strong> be of most <strong>use</strong><br />

<strong>in</strong> the build<strong>in</strong>g field, a specific version of the XML language needed <strong>to</strong> be developed<br />

which def<strong>in</strong>ed the tags and attributes <strong>in</strong>dividual <strong>to</strong> this particular <strong>in</strong>dustry, those be<strong>in</strong>g<br />

sensors and environmental conditions <strong>to</strong> name but two. This specific type of XML<br />

51


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

(gbXML) would require the construction of its own DTD, which would outl<strong>in</strong>e these<br />

new tags and attributes for <strong>use</strong> with<strong>in</strong> the document.<br />

STEP - ISO Standard<br />

10303-28<br />

SGML - ISO Standard<br />

8879<br />

XML<br />

Figure 5.3: XML derived from two ISO standards for <strong>use</strong> <strong>in</strong> this project<br />

5.3 STEP AND XML<br />

The step standard has taken <strong>in</strong><strong>to</strong> account the advantages of us<strong>in</strong>g XML for bus<strong>in</strong>ess-<strong>to</strong>bus<strong>in</strong>ess<br />

data transfer <strong>in</strong> the construction <strong>in</strong>dustry and has developed a section<br />

perta<strong>in</strong><strong>in</strong>g <strong>to</strong> the language itself. ISO 10303-28 is a standard for Industrial and<br />

au<strong>to</strong>mation systems and their <strong>in</strong>tegration and it allows for product data <strong>to</strong> be represented<br />

and exchanged. Part 28: Implementation methods, more specifically allows for XML<br />

representations of EXPRESS schemas and data <strong>to</strong> facilitate bus<strong>in</strong>ess-<strong>to</strong>-bus<strong>in</strong>ess<br />

exchange of data [ISO, 2003] as shown <strong>in</strong> Figure 5.1 and Figure 5.3. XML can be <strong>use</strong>d<br />

<strong>to</strong> encode any product <strong>in</strong>formation, <strong>in</strong> this case construction, and make it widely<br />

accessible via the web, and this standard ensures that the data is <strong>in</strong> standard form so it<br />

can be recognised by all systems us<strong>in</strong>g it.<br />

5.4 DOCUMENT TYPE DEFIN<strong>IT</strong>IOIN (DTD)<br />

This Document Type Def<strong>in</strong>tion (DTD) is the key <strong>to</strong> the extensibility of XML and <strong>in</strong> this<br />

case gbXML. The DTD def<strong>in</strong>es the mean<strong>in</strong>g of the specific tags that are valid <strong>in</strong> a<br />

gbXML document. For example <strong>in</strong> the case of gbXML, the sensor tag would be allowed<br />

whereas a MathML function tag would not.<br />

52


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

With gbXML a build<strong>in</strong>g’s sensor <strong>in</strong>formation can be embedded <strong>in</strong> the associated tags as<br />

def<strong>in</strong>ed <strong>in</strong> the DTD as commissioned by gbXML.org. A DTD is <strong>use</strong>d <strong>to</strong> def<strong>in</strong>e the<br />

structure of an XML document. It lists the set of legal element names, specifies the<br />

hierarchy and gives a list<strong>in</strong>g of the allowable attribute names that are agreed upon by<br />

the different parties <strong>in</strong>volved <strong>in</strong> creat<strong>in</strong>g the particular application of the XML<br />

language. A validat<strong>in</strong>g parser can then verify that the received XML document<br />

conforms with the structure as def<strong>in</strong>ed by the DTD, thus giv<strong>in</strong>g a valid document<br />

[Kokkonen et al, 2003]. It is <strong>in</strong> this document that the mean<strong>in</strong>g of each of the tags is<br />

described, and a simple verification by the DTD on the gbXML report that is generated,<br />

def<strong>in</strong>es each of the tags, and hence gives mean<strong>in</strong>g <strong>to</strong> the data enclosed <strong>in</strong> each tag.<br />

Us<strong>in</strong>g this process, <strong>in</strong>dependent groups of people can agree <strong>to</strong> <strong>use</strong> a common DTD for<br />

<strong>in</strong>terchang<strong>in</strong>g data [W3SCHOOLS, 2003].<br />

When a new <strong>use</strong> of the XML language is identified, a new DTD is required so that the<br />

tags have mean<strong>in</strong>g. The DTD allows self-describ<strong>in</strong>g data exchanges and allows<br />

developers <strong>to</strong> <strong>use</strong> their own sec<strong>to</strong>r specific syntax [Badard, Richard, 2001]. To <strong>use</strong> a<br />

metaphor, the tags are like hangers from which the data is hung with each hanger hav<strong>in</strong>g<br />

a different title. And <strong>in</strong> the DTD, the title for each hanger is def<strong>in</strong>ed, so that <strong>in</strong> turn what<br />

hangs from them has mean<strong>in</strong>g. Verification by the gbXML DTD def<strong>in</strong>es the tags <strong>in</strong> a<br />

gbXML document, and verification by an aecXML DTD def<strong>in</strong>es the tags for an<br />

aecXML document.<br />

5.5 GbXML<br />

5.5.1 Background<br />

The Green Build<strong>in</strong>g XML schema, gbXML, was developed <strong>to</strong> facilitate the transfer of<br />

build<strong>in</strong>g <strong>in</strong>formation essential <strong>to</strong> design<strong>in</strong>g resource efficient build<strong>in</strong>gs [gbXML, 2002].<br />

This approach allows build<strong>in</strong>g designers <strong>to</strong> focus on what they want <strong>to</strong> i.e. design<strong>in</strong>g<br />

<strong>energy</strong> efficient build<strong>in</strong>gs that will meet their owner's needs with m<strong>in</strong>imal cost and<br />

environmental impact. gbXML also allows solutions for the operation, ma<strong>in</strong>tenance,<br />

and recycl<strong>in</strong>g of build<strong>in</strong>gs [gbXML, 2002]. The explosive growth of XML-based<br />

proposals such as CML [CML, 2003], and MathML [MathML, 2003] show the<br />

progressive nature as well as the strength of the XML language <strong>in</strong> free<strong>in</strong>g data for <strong>use</strong><br />

by other applications [Kim, 2001].<br />

53


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

Now that a means exists <strong>to</strong> exchange the data <strong>in</strong> a generic format specific <strong>to</strong> the<br />

construction <strong>in</strong>dustry, the raw data needed <strong>to</strong> be accessed and s<strong>to</strong>red somewhere before<br />

it was translated <strong>in</strong><strong>to</strong> gbXML. This would be achieved us<strong>in</strong>g the s<strong>to</strong>rage capacity and<br />

flexibility of a database management system called MySQL.<br />

5.6 MYSQL<br />

In order <strong>to</strong> generate gbXML output from a GUI, this be<strong>in</strong>g the front-end of the solution,<br />

it was necessary <strong>to</strong> manipulate the raw sensor data as recorded by the BEMS and s<strong>to</strong>re it<br />

<strong>in</strong> a database, this be<strong>in</strong>g the backend of the solution. This structure is clearly shown <strong>in</strong><br />

Figure 5.2. Later <strong>in</strong> this thesis, the means of <strong>in</strong>teraction between the backend and the<br />

front-end, a server side script<strong>in</strong>g language called PHP which was developed us<strong>in</strong>g the<br />

object oriented software eng<strong>in</strong>eer<strong>in</strong>g framework will be exam<strong>in</strong>ed, but for now the<br />

process is <strong>in</strong>troduced.<br />

5.6.1 Background<br />

MySQL [MySQL, 2002] pronounced “my ess que el” is an open source, enterprise<br />

level, multi thread, Relational Database Management System (RDBMS). A consult<strong>in</strong>g<br />

firm <strong>in</strong> Sweden called TcX, when they realised that the fast and flexible database they<br />

required for their bus<strong>in</strong>ess needs, did not exist developed it. Universities, Internet<br />

service providers and non-profit organisations are the ma<strong>in</strong> <strong>use</strong>rs of MYSQL, ma<strong>in</strong>ly<br />

beca<strong>use</strong> its open source, which basically means its widely available and free <strong>to</strong> <strong>use</strong>. It<br />

has however managed <strong>to</strong> permeate the bus<strong>in</strong>ess world beca<strong>use</strong> of its fast and reliable<br />

makeup.<br />

5.6.2 Understand<strong>in</strong>g MySQL<br />

MySQL is often conf<strong>use</strong>d with SQL, the structured query language developed by IBM.<br />

It is not a form of the language but is <strong>in</strong> fact a database system that <strong>use</strong>s the language <strong>to</strong><br />

create, manipulate, and show data. MySQL is a program that manages databases, much<br />

like Microsoft EXCEL manages spreadsheets. It controls who can <strong>use</strong> them and how<br />

they are manipulated. It logs actions and runs cont<strong>in</strong>uously <strong>in</strong> the background. Database<br />

management systems (DBMS) can conta<strong>in</strong> many databases. Users connect <strong>to</strong> the<br />

database server and issue requests. The database server queries the database and returns<br />

54


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

the results <strong>to</strong> the issuer. Databases such as Microsoft Access are not DBMS’s and would<br />

be a step down from this type of system [SAMSa, 2001].<br />

[SAMSb, 2001] MySQL is a full-featured relational database management system. It is<br />

very stable and has proven itself s<strong>in</strong>ce its first creation <strong>in</strong> 1979. It has been publicly<br />

available s<strong>in</strong>ce 1996. MySQL is a multi-thread server, mean<strong>in</strong>g that every time<br />

someone establishes a connection with the server, the server program creates a thread or<br />

process <strong>to</strong> handle that client’s requests. This makes for an extremely fast server, as <strong>in</strong><br />

effect every client who connects <strong>to</strong> the MySQL server gets his or her own thread.<br />

As MySQL was an open source resource, this software development and shar<strong>in</strong>g<br />

resource is now exam<strong>in</strong>ed.<br />

5.7 OPEN SOURCE SOFTWARE<br />

5.7.1 Background<br />

The basic idea beh<strong>in</strong>d open source is very simple: When programmers can read,<br />

redistribute, and modify the source code for a piece of software, the software evolves.<br />

Open Source software is made freely available <strong>to</strong> anyone who wants it as long as they<br />

agree <strong>to</strong> the licens<strong>in</strong>g terms [Krogh, von Hippel, 2003]. When developers are given<br />

access <strong>to</strong> the source code <strong>use</strong>d <strong>to</strong> create a software application, they can <strong>use</strong> their<br />

knowledge <strong>to</strong> make changes <strong>to</strong> it with the end goal be<strong>in</strong>g the improvement of the overall<br />

package [Lakhani, van Hippel, 2003]. This can happen at a speed that, if one is <strong>use</strong>d <strong>to</strong><br />

the slow pace of conventional software development, seems as<strong>to</strong>nish<strong>in</strong>g<br />

[OPENSOURCE, 2002]. Open source software came about as a result of many software<br />

companies provid<strong>in</strong>g not only a product but also the source code as well, so that<br />

consumers could see how the program worked and modify it <strong>to</strong> meet their own<br />

particular needs. Other motivations for the open source movement <strong>in</strong>clude the<br />

<strong>in</strong>tellectual gratification that the developers get when they make a particular<br />

advancement [Bonalcorsi, Rossi, 2003], and the fact that a good contribution can result<br />

<strong>in</strong> an enhanced reputation for the developer [Lakhani, van Hippel, 2003].<br />

Open Source development orig<strong>in</strong>ated from university and research environments, where<br />

the recognition from peers was the prime motivational fac<strong>to</strong>r beh<strong>in</strong>d its emergence, and<br />

at present there is an estimated 120,000 developers actively <strong>in</strong>volved <strong>in</strong> the movement<br />

[Bonalcorsi, Rossi, 2003]. Today, there is an <strong>in</strong>creased <strong>in</strong>terest <strong>in</strong> Open Source<br />

development beca<strong>use</strong> of the success of its products [Fugetta, 2003].<br />

55


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

5.8 DATABASE DEVELOPMENT<br />

5.8.1 Previously encountered problems <strong>in</strong> data s<strong>to</strong>rage - flat file s<strong>to</strong>rage<br />

The first real type of computer data s<strong>to</strong>rage mechanism was achieved us<strong>in</strong>g flat files as<br />

a s<strong>to</strong>rage media. However a number of problems were encountered us<strong>in</strong>g this such as<br />

the slow down experienced <strong>in</strong> operational efficiency when the file became very large.<br />

Another problem encountered was the lack of searchabilty <strong>in</strong> the flat file system, as the<br />

data was not ordered by nature. Even if the data were written <strong>to</strong> the file <strong>in</strong> ordered form,<br />

each entry would have <strong>to</strong> be read <strong>in</strong> and checked <strong>in</strong>dividually, <strong>in</strong> order <strong>to</strong> f<strong>in</strong>d patterns<br />

of <strong>in</strong>formation. Also concurrent access <strong>to</strong> the file was not permitted, so the queue for<br />

people <strong>to</strong> access the data could become impractical <strong>in</strong> real situations where a number of<br />

people could require access <strong>to</strong> the data at the same time.<br />

Random data access was also a problem. If it was required <strong>to</strong> add or delete entries <strong>to</strong> the<br />

file, the whole file would have had <strong>to</strong> be read <strong>in</strong> <strong>to</strong> memory, changed and then rewritten,<br />

and with a large data file this becomes somewhat of a chore. Also the issue of security<br />

ca<strong>use</strong>s problems as beyond file permissions there was no way of grant<strong>in</strong>g <strong>use</strong>r<br />

privileges based on an adm<strong>in</strong>istra<strong>to</strong>r <strong>use</strong>r type situation where <strong>use</strong>rs are given limited<br />

access with only the adm<strong>in</strong>istra<strong>to</strong>r hav<strong>in</strong>g full read/write capabilities.<br />

5.8.2 Relational databases<br />

Relational databases were the solution <strong>to</strong> all of the aforementioned problems of flat file<br />

s<strong>to</strong>rage [SAMSb, 2001], as they offered faster access, were searchable, offered<br />

concurrent and random access, and most importantly offered a built <strong>in</strong> privilege system.<br />

5.8.2.1 Relational database concepts<br />

Relational databases are by far the most commonly <strong>use</strong>d type of database. They are<br />

made up of relations, more commonly known as tables, each table be<strong>in</strong>g filled with<br />

data. Each table is made up of columns and rows, with the values <strong>in</strong> the rows<br />

correspond<strong>in</strong>g <strong>to</strong> the data type specified by the column it also occupies. The relational<br />

database usually consists of multiple tables and <strong>use</strong>s a key <strong>to</strong> relate one table <strong>to</strong> another,<br />

a key be<strong>in</strong>g an assigned value given <strong>to</strong> each row of data.<br />

56


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

5.8.3 Data normalisation<br />

The normalisation process of database design is essentially a simplification process<br />

whereby the database tables are stripped <strong>to</strong> their basest and most efficient levels. It's the<br />

art of organiz<strong>in</strong>g your database <strong>in</strong> such a way that your tables are <strong>related</strong> where<br />

appropriate and flexible for future growth [Informit, 2003]. The sets of rules <strong>use</strong>d <strong>in</strong><br />

normalization are called normal forms. If your database design follows the first set of<br />

rules, it's considered <strong>in</strong> the first normal form. If the first three sets of rules of<br />

normalization are followed, your database is said <strong>to</strong> be <strong>in</strong> the third normal form.<br />

If we take the example of a flat table with many columns <strong>in</strong> it, we can see how<br />

normalisation works. In a flat table there is no relationship between multiple tables and<br />

all the data we could possibly want is at our disposal. However, this is not necessarily<br />

efficient, as some data is repeated and could be ho<strong>use</strong>d <strong>in</strong> a much more <strong>use</strong>r friendly<br />

and usable manner. Here is where data normalisation comes <strong>in</strong>.<br />

Normalisation is based on the pr<strong>in</strong>ciple of m<strong>in</strong>imis<strong>in</strong>g redundancy of <strong>in</strong>formation<br />

[Elmasri and Navathe, 2000], so <strong>to</strong> start with the data is taken <strong>to</strong> first normal form. The<br />

rules for the first normal form <strong>in</strong>clude:<br />

• Elim<strong>in</strong>ate repeat<strong>in</strong>g <strong>in</strong>formation;<br />

• Create separate tables for <strong>related</strong> data.<br />

So by elim<strong>in</strong>at<strong>in</strong>g any white space or <strong>in</strong>formation that occurs more than once, the table<br />

is made more efficient. Also the fact that more than one table exists means that a one-<strong>to</strong>many<br />

relationship of one <strong>to</strong>pic <strong>to</strong> many others also exists, so aga<strong>in</strong> mak<strong>in</strong>g the<br />

<strong>in</strong>formation more easily accessible. The next step is <strong>to</strong> put the tables <strong>in</strong><strong>to</strong> the second<br />

normal form. The rule for the second normal form is:<br />

• No non-key attributes depend on a portion of the primary key.<br />

In pla<strong>in</strong> English, this means that if fields <strong>in</strong> the table are not entirely <strong>related</strong> <strong>to</strong> a primary<br />

key, more work must be done. The f<strong>in</strong>al step is the third normal form and the rule for<br />

this is;<br />

• No attributes depend on other non-key attributes.<br />

57


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

This rule simply means that the tables must be exam<strong>in</strong>ed <strong>to</strong> see if more fields exist that<br />

can be broken down further and are also not dependent on a key. Th<strong>in</strong>k about remov<strong>in</strong>g<br />

repeated data and the answer is clear. Third normal form is usually adequate for<br />

remov<strong>in</strong>g redundancy and allow<strong>in</strong>g for flexibility and growth.<br />

Now that the database layout has been discussed with a view <strong>to</strong> m<strong>in</strong>imis<strong>in</strong>g repetition of<br />

data and hence m<strong>in</strong>imis<strong>in</strong>g the space required <strong>to</strong> s<strong>to</strong>re the data, the code <strong>use</strong>d <strong>to</strong> access<br />

and manipulate the data, PHP code, is exam<strong>in</strong>ed with a view <strong>to</strong> firstly m<strong>in</strong>imis<strong>in</strong>g it,<br />

and secondly mak<strong>in</strong>g it as readable, usable and simple <strong>to</strong> operate as possible. This was<br />

achieved us<strong>in</strong>g the object-oriented approach <strong>to</strong> programm<strong>in</strong>g.<br />

5.9 SUMMARY<br />

Table 5.1: Outl<strong>in</strong>e of methods and software <strong>use</strong>d <strong>in</strong> the development of this project<br />

METHOD LANGUAGE TOOL<br />

REPORT GBXML WEB BROWSER<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

GUI HTML DREAMWEAVER<br />

F<br />

E<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

DATA RELATIONAL MYSQL<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

DATA CSV BEMS<br />

B<br />

E<br />

In exam<strong>in</strong><strong>in</strong>g the three phases of the build<strong>in</strong>g life cycle, the operational phase and its<br />

associated data returned via the BEMS could be an answer <strong>to</strong> the <strong>energy</strong> efficiency<br />

problem if it could be freed up. The STEP standard is a standard for the exchange of<br />

data with<strong>in</strong> the construction <strong>in</strong>dustry. A relationship existed between STEP and another<br />

data transfer language called XML, which itself had a build<strong>in</strong>g specific sibl<strong>in</strong>g <strong>in</strong><br />

gbXML. This language allowed build<strong>in</strong>g specific data <strong>to</strong> be enclosed <strong>in</strong> gbXML tags for<br />

exchange purposes at the front end of the solution as shown <strong>in</strong> Figure 5.4 with the <strong>to</strong>ols<br />

<strong>use</strong>d shown <strong>in</strong> Table 5.1 denoted by the F.E.<br />

58


CHAPTER 5<br />

INFORMATION/DATA MODELLING<br />

The database at the backend of the solution as described <strong>in</strong> Figure 5.4 and with the <strong>to</strong>ols<br />

<strong>use</strong>d <strong>in</strong> Table 5.1 denoted by the B.E., which would be the start<strong>in</strong>g po<strong>in</strong>t for the<br />

archived data <strong>to</strong> be enclosed <strong>in</strong> these build<strong>in</strong>g specific tags, is commonly <strong>use</strong>d <strong>to</strong>day <strong>in</strong><br />

data driven projects. MySQL, a database management system, with its fast, flexible and<br />

open source, mean<strong>in</strong>g that it was free <strong>to</strong> <strong>use</strong>, nature, was the clear front runner.<br />

Database design now becomes the next dilemma with data normalisation be<strong>in</strong>g the key<br />

<strong>to</strong> the early stage of the design process for the software <strong>to</strong>ol <strong>to</strong> be designed <strong>in</strong> this thesis.<br />

With the technologies now <strong>in</strong>troduced which will achieve this extensible <strong>energy</strong><br />

analysis mechanism, Chapter 6 expands on the whole build<strong>in</strong>g <strong>energy</strong> analysis theme by<br />

exam<strong>in</strong><strong>in</strong>g the <strong>in</strong>dividual components of the HVAC system <strong>in</strong> a pro<strong>to</strong>type facility, the<br />

Mardyke Arena, by zone with the end result be<strong>in</strong>g a clearer understand<strong>in</strong>g of where<br />

exactly the <strong>energy</strong> is <strong>use</strong>d <strong>in</strong> the system.<br />

59


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

SPECIFICATIONS OF REQUIREMENTS<br />

The thesis structure schematic <strong>in</strong> Figure 7.1 illustrates the focus shift<strong>in</strong>g <strong>to</strong> the software<br />

side of the development process, with the various technologies available be<strong>in</strong>g<br />

scrut<strong>in</strong>ised <strong>to</strong> f<strong>in</strong>d the most suitable. Once obta<strong>in</strong>ed, the suitable software will be<br />

implemented <strong>to</strong> facilitate the end goal of a work<strong>in</strong>g pro<strong>to</strong>type software <strong>to</strong>ol.<br />

ENERGYEYE<br />

Energy Archiv<strong>in</strong>g and<br />

Analysis Tool<br />

Moni<strong>to</strong>r<strong>in</strong>g<br />

Energy <strong>use</strong><br />

Kyo<strong>to</strong> Pro<strong>to</strong>col<br />

PHP<br />

MySQL<br />

Environmental<br />

Requirements<br />

Whole Build<strong>in</strong>g<br />

Energy Analysis<br />

gbXML<br />

Technology<br />

Unitron & BACnet<br />

Methodology<br />

Real Case Study<br />

THE MARDYKE ARENA<br />

Figure 7.1: Thesis Structure schematic with the focus now on the software aspects<br />

of the thesis<br />

60


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

7.1 PRESENT S<strong>IT</strong>UATION AND PROPOSED NEW DIRECTION<br />

7.1.1 Data s<strong>to</strong>rage<br />

A BEMS is a microprocessor-based system, which provides the facility <strong>to</strong> control any<br />

build<strong>in</strong>g service [Action Energy, 2003]. The current Build<strong>in</strong>g Energy Management<br />

Systems (BEMS’s) <strong>in</strong> operation <strong>to</strong>day do not as a rule archive the build<strong>in</strong>g data that<br />

they moni<strong>to</strong>r. Instead they periodically dump this data, outputt<strong>in</strong>g it <strong>in</strong> the form of a<br />

non-searchable, not au<strong>to</strong>matically manipulatable pr<strong>in</strong><strong>to</strong>ut, <strong>to</strong> be looked over by the<br />

contracted eng<strong>in</strong>eer on a bi-monthly (or some similar timeframe) basis. This data once<br />

<strong>in</strong> hard copy form is now much more difficult <strong>to</strong> work with as any calculations must<br />

now be done by hand rather than by the much faster and more efficient means of a<br />

computer processor.<br />

As well as los<strong>in</strong>g the flexibility of this data, the ability <strong>to</strong> track trends that might have<br />

shown themselves had this data been analysed over a larger period of time is also lost.<br />

By track<strong>in</strong>g trends <strong>in</strong> build<strong>in</strong>g performance with a view <strong>to</strong> reduc<strong>in</strong>g higher usage<br />

periods, the performance and hence the cost of runn<strong>in</strong>g a build<strong>in</strong>g, can be greatly<br />

improved. As soon as this data is discarded from the BEMS and taken out of electronic<br />

format, this trend logg<strong>in</strong>g becomes much more difficult, if not impossible.<br />

7.1.2 Interoperability<br />

Another problem of the current build<strong>in</strong>g performance analysis situation is that s<strong>in</strong>ce so<br />

many different manufacturers develop the different devices that moni<strong>to</strong>r, manage and<br />

analyse build<strong>in</strong>g performance, no common data transfer pro<strong>to</strong>col exits between them.<br />

By this it is also meant that the output from each data analysis <strong>to</strong>ol, or data-moni<strong>to</strong>r<strong>in</strong>g<br />

<strong>to</strong>ol may be completely different and hence not compatible with the other. At present<br />

much of the data exchange takes place <strong>in</strong> paper form ow<strong>in</strong>g <strong>to</strong> a lack of <strong>in</strong>tegration<br />

between <strong>to</strong>ols [Sun, Lockly, 1997]. This <strong>in</strong> turn means that any further analysis of the<br />

results that each piece of equipment obta<strong>in</strong>s now becomes much more difficult <strong>to</strong> work<br />

with, with much of the time be<strong>in</strong>g exhausted <strong>in</strong> translat<strong>in</strong>g the data from each device or<br />

<strong>to</strong>ol <strong>to</strong> a common form for further analysis. If an exchange standard was <strong>to</strong> be <strong>use</strong>d, an<br />

open architecture for exchang<strong>in</strong>g data between software packages or simulation <strong>to</strong>ols<br />

could be designed [Kim, 2001].<br />

61


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

7.1.3 More accessible BEMS<br />

One of the ma<strong>in</strong> issues that most build<strong>in</strong>g managers encounter on a daily basis is the<br />

fact that <strong>use</strong>rs need <strong>to</strong> be skilled <strong>in</strong> the operation of a BEMS <strong>in</strong> order for it <strong>to</strong> function<br />

efficiently, and any data that it collects needs <strong>to</strong> be analysed by the contracted eng<strong>in</strong>eer<br />

<strong>in</strong> order <strong>to</strong> make any changes <strong>to</strong> the system <strong>to</strong> improve performance. It is partly due <strong>to</strong><br />

these facts that it is widely reported that BEMS <strong>use</strong>rs are not mak<strong>in</strong>g full <strong>use</strong> of their<br />

systems, so ensur<strong>in</strong>g that the build<strong>in</strong>g they control is not be<strong>in</strong>g most efficient <strong>in</strong> its<br />

<strong>energy</strong> <strong>use</strong> [Lowry, 2002]. Many advances have been made <strong>in</strong> mak<strong>in</strong>g the BEMS more<br />

accessible from off site, with these advances closely follow<strong>in</strong>g those made <strong>in</strong> the<br />

Information Technology (<strong>IT</strong>) sec<strong>to</strong>r [Clarke et al, 2002], but as yet no means really<br />

exists that couples the remote flexibility with an easy <strong>to</strong> operate system. This is where<br />

the Internet and its flexibility come <strong>in</strong>.<br />

One <strong>in</strong> six people <strong>use</strong> the Internet <strong>in</strong> North America and Europe [Internet Indica<strong>to</strong>rs,<br />

2003]. These figures support the idea that the Internet is easily accessible and familiar <strong>to</strong><br />

a large portion of the population. Any solution us<strong>in</strong>g this media would <strong>in</strong>stantly be<br />

accessible <strong>to</strong> most beca<strong>use</strong> of the exist<strong>in</strong>g knowledge of the media that already exists. If<br />

the flexibility that the Etherent/Interent offers, allow<strong>in</strong>g <strong>use</strong>rs <strong>to</strong> access the same<br />

<strong>in</strong>formation from anywhere <strong>in</strong> the network/world, is coupled with its familiarity <strong>to</strong><br />

<strong>use</strong>rs, its full power can beg<strong>in</strong> <strong>to</strong> be seen.<br />

<strong>IT</strong> networks are a standard part of most non-domestic build<strong>in</strong>gs and their <strong>use</strong> as the<br />

communications system for BEMSs has emerged as the next step <strong>in</strong> develop<strong>in</strong>g<br />

<strong>in</strong>telligent build<strong>in</strong>g control. The vast majority of these systems are based on the<br />

Ethernet and most employ Transmission Control Pro<strong>to</strong>col/Internet Pro<strong>to</strong>col (TCP/IP) as<br />

the communications procedure for data transport. The Local Area Networks (LANs)<br />

that the controllers are l<strong>in</strong>ked <strong>to</strong> are then l<strong>in</strong>ked <strong>to</strong> the Ethernet which <strong>in</strong> turn is presided<br />

over by a supervisory W<strong>in</strong>dows based PC which governs the whole system, thus<br />

enabl<strong>in</strong>g the BEMS <strong>to</strong> take advantage of the <strong>IT</strong> networks high speed and flexibility<br />

[CIBSE, 2002].<br />

To emphasise this po<strong>in</strong>t, a situation where a facility manager for a large organisation<br />

with many build<strong>in</strong>gs under his/her responsibility is taken as an example, say at a<br />

university campus. The BEMS is accessed over the university network, and<br />

immediately the data accessed <strong>in</strong> a <strong>use</strong>r-friendly format, which allows him/her <strong>to</strong> make<br />

decisions on the efficient runn<strong>in</strong>g of each build<strong>in</strong>g. If trend logg<strong>in</strong>g and a method <strong>to</strong><br />

transfer data <strong>to</strong> off the shelf build<strong>in</strong>g analysis <strong>to</strong>ols is also <strong>in</strong>cluded, the amaz<strong>in</strong>g<br />

62


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

potential that such a solution would offer <strong>to</strong> not only reduce build<strong>in</strong>g <strong>energy</strong> cost and<br />

management, but also <strong>to</strong> enable the archived data <strong>to</strong> be utilised for future analysis and<br />

transmission beg<strong>in</strong>s <strong>to</strong> become apparent.<br />

7.2 ARCHIVING<br />

The BEMS is primarily a moni<strong>to</strong>r<strong>in</strong>g and control <strong>to</strong>ol <strong>use</strong>d by a build<strong>in</strong>g’s manager <strong>to</strong><br />

keep <strong>energy</strong> usage as economical as possible while ma<strong>in</strong>ta<strong>in</strong><strong>in</strong>g the required<br />

atmospheric conditions so as not <strong>to</strong> exceed the comfort levels of the build<strong>in</strong>gs patrons. It<br />

could however do so much more.<br />

In order <strong>to</strong> moni<strong>to</strong>r and control a build<strong>in</strong>gs performance, the BEMS calls data from the<br />

controllers, which <strong>in</strong> turn call data from the actual sensors fitted <strong>in</strong> the build<strong>in</strong>g. This<br />

data is then displayed on the BEMS, and compared with the relative set po<strong>in</strong>ts <strong>to</strong> ensure<br />

that the required level of control is be<strong>in</strong>g obta<strong>in</strong>ed. The data is not as a rule archived by<br />

the BEMS, and as mentioned earlier <strong>in</strong> Section 7.1.1, is more often than not, s<strong>to</strong>red as<br />

pr<strong>in</strong>t outs, or even discarded al<strong>to</strong>gether. It is this data, which would be archived with a<br />

view <strong>to</strong> analys<strong>in</strong>g it, <strong>in</strong> order <strong>to</strong> determ<strong>in</strong>e if the build<strong>in</strong>g is perform<strong>in</strong>g well. Then if it<br />

is not, it would be possible <strong>to</strong> determ<strong>in</strong>e which areas of it, and at which times it is not<br />

do<strong>in</strong>g so, with the end result be<strong>in</strong>g a more <strong>energy</strong> efficient build<strong>in</strong>g that is cheaper <strong>to</strong><br />

run.<br />

7.2.2 Database options<br />

Now that the reasons why the data was archived from the controllers via the BEMS had<br />

been identified and expanded on, the database system <strong>to</strong> be <strong>use</strong>d <strong>to</strong> archive the data had<br />

<strong>to</strong> be researched <strong>in</strong> order <strong>to</strong> f<strong>in</strong>d the most suitable. A number of choices were available.<br />

7.2.2.1 Microsoft Access<br />

The first system exam<strong>in</strong>ed was the Microsoft offer<strong>in</strong>g called ACCESS. This was<br />

appeal<strong>in</strong>g due <strong>to</strong> its simplicity and the fact that it was a Microsoft development and<br />

hence was widely available. Microsoft Access was first released <strong>in</strong> 1992, and beca<strong>use</strong> of<br />

the fact that it cost just $99, it managed <strong>to</strong> claim a large chunk of the database <strong>in</strong>dustry<br />

[Getz, Litw<strong>in</strong>, Gilbert 1999]. Microsoft has released 4 major upgrades s<strong>in</strong>ce then<br />

culm<strong>in</strong>at<strong>in</strong>g <strong>in</strong> Access 2000. Access does not however support the ANSI SQL standards<br />

<strong>in</strong> their entirety with it <strong>in</strong>stead us<strong>in</strong>g a sort of hybrid version called Access SQL that<br />

performs most of the same commands. But actions such as grant<strong>in</strong>g <strong>use</strong>rs different<br />

63


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

levels of permissions for example are not available us<strong>in</strong>g Access SQL, but can be<br />

obta<strong>in</strong>ed us<strong>in</strong>g the Jet 4 SQL 92 extensions, which add <strong>to</strong> the usability of the Access<br />

SQL if tak<strong>in</strong>g somewhat from the simplicity of <strong>use</strong> of the system. Some sub-queries or<br />

more complex queries that ANSI SQL outl<strong>in</strong>es are also not supported by Access or the<br />

Jet 4 SQL 92 extensions [Getz, Litw<strong>in</strong>, Gilbert, 1999].<br />

As soon as it was realised that SQL coupled with XML support seemed <strong>to</strong> be the keys <strong>to</strong><br />

achiev<strong>in</strong>g the required solution <strong>in</strong> this project, i.e. perform calculations on retrieved data<br />

with the end result be<strong>in</strong>g usable, <strong>in</strong>formative data, SQL Server 2000, another Microsoft<br />

offer<strong>in</strong>g, was the next logical choice of database system <strong>to</strong> be researched.<br />

7.2.2.2 SQL Server 2000<br />

SQL Server 2000 is the latest and most powerful version of Microsoft’s data<br />

warehous<strong>in</strong>g and relational database management system, and offers a newly developed<br />

support system for XML. This facility allows SQL query result-sets <strong>to</strong> be returned<br />

directly <strong>in</strong> XML format, so mean<strong>in</strong>g that no secondary translation is needed on the<br />

client side <strong>in</strong> order <strong>to</strong> view the returned data on a web browser. SQL Server 2000 <strong>use</strong>s<br />

Transact SQL <strong>to</strong> execute statements. This is a dialect of SQL and is ANSI SQL 92<br />

compliant [Vieira, 2000]. This lead <strong>to</strong> the conclusion that a database system, which is<br />

based on SQL and is capable of outputt<strong>in</strong>g XML; the two most important functions of<br />

the software <strong>to</strong>ol, was now available. However the high cost of SQL Server 2000<br />

[Microsoft, 2003] was a ca<strong>use</strong> for concern so the search for an efficient, cost effective<br />

solution cont<strong>in</strong>ued.<br />

7.2.2.3 MySQL<br />

A far easier and much more cost-effective alternative <strong>to</strong> SQL Server 2000 was MySQL.<br />

This was an open-source offer<strong>in</strong>g, which meant it was free <strong>to</strong> <strong>use</strong> for everyone who<br />

wished <strong>to</strong> <strong>use</strong> it. It was also fast and highly flexible. It was developed by a consult<strong>in</strong>g<br />

firm <strong>in</strong> Sweden called TcX, when they realised that the fast and flexible database they<br />

required for their bus<strong>in</strong>ess needs, did not exist [SAMSb, 2001]. MYSQL is a program<br />

that manages databases, much like Microsoft EXCEL manages spreadsheets. It controls<br />

who can <strong>use</strong> them and how they are manipulated. The MySQL database management<br />

system conta<strong>in</strong>s an enormous amount of functionality and power. Us<strong>in</strong>g a simple set of<br />

commands for <strong>in</strong>sert<strong>in</strong>g, retriev<strong>in</strong>g, delet<strong>in</strong>g and updat<strong>in</strong>g data, a complex set of databases<br />

64


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

and tables could be developed. There are several reasons why MySQL was chosen. Here are<br />

some of them [Devarticles, 2003]:<br />

• MySQL can be accessed and manipulated from a huge number of popular<br />

programm<strong>in</strong>g languages. A complete set of API’s is provided for MySQL <strong>in</strong> C,<br />

C++, Eiffel, Java, Perl, PHP, Python, and Tcl;<br />

• MySQL was written <strong>in</strong> C and C++, and is completely optimized for both the<br />

Unix and W<strong>in</strong>32 platforms. It <strong>use</strong>s <strong>in</strong>-memory hash tables, thread-based memory<br />

allocation, kernel threads that are capable of utiliz<strong>in</strong>g multiple processors, and<br />

highly optimized <strong>in</strong>dividual pre-compiled class libraries;<br />

• MySQL conta<strong>in</strong>s built-<strong>in</strong> support for every common field type, <strong>in</strong>clud<strong>in</strong>g<br />

FLOAT, DOUBLE, CHAR, VARCHAR, TEXT, BLOB, DATE, SET and<br />

ENUM;<br />

• MySQL supports a subset of advanced query<strong>in</strong>g and group<strong>in</strong>g functions,<br />

<strong>in</strong>clud<strong>in</strong>g GROUP BY and ORDER BY, COUNT(), AVG(), STD(), SUM()<br />

MAX() and MIN();<br />

• MySQL allows per-server password allocation. Also, any passwords that are<br />

passed <strong>to</strong> the MySQL eng<strong>in</strong>e for authentication are fully encrypted;<br />

• MySQL supports a variety of connection methods <strong>in</strong>clud<strong>in</strong>g TCP/IP sockets,<br />

Unix Sockets, and named pipes for W<strong>in</strong>dows NT/2000;<br />

• MySQL is a free download, and comes complete with all of the <strong>to</strong>ols needed <strong>to</strong><br />

beg<strong>in</strong> its <strong>use</strong>. The W<strong>in</strong>32 version <strong>in</strong>cludes a GUI based management and<br />

configuration <strong>to</strong>ol named w<strong>in</strong>mysql.exe.<br />

MySQL is also one of the most stable database systems available. Due <strong>to</strong> this and the<br />

fact that it was PHP compliant allow<strong>in</strong>g XML output and allowed <strong>use</strong>r authentication<br />

which will all be utilised <strong>in</strong> this project later as well as the fact that it was open source<br />

and so free <strong>to</strong> <strong>use</strong>, it was chosen as the database system for our project.<br />

7.3 DATA TRANSFER AND INTEROPERABIL<strong>IT</strong>Y<br />

As mentioned <strong>in</strong> Section 7.1.2, the output from different manufacturers products more<br />

often that not are <strong>in</strong> different formats, leads <strong>to</strong> <strong>in</strong>creased analysis times, and costs. It<br />

also adds <strong>to</strong> the possibility of mistakes <strong>in</strong> analysis be<strong>in</strong>g made due <strong>to</strong> the need for<br />

translation <strong>to</strong> a common format. If one format could be chosen that each device outputs<br />

<strong>to</strong>, one can only imag<strong>in</strong>e the time and money that would be saved. No more would the<br />

65


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

CAD developer have <strong>to</strong> spend countless man hours chang<strong>in</strong>g the 2-d draw<strong>in</strong>g<br />

dimensions <strong>to</strong> the 3-d format that he/she requires, or the build<strong>in</strong>g simulation analyst<br />

have <strong>to</strong> <strong>in</strong>put every data po<strong>in</strong>t <strong>in</strong>dividually. The <strong>in</strong>formation could now be received <strong>in</strong><br />

the standard form and the program run <strong>to</strong> simulate the data, so enabl<strong>in</strong>g the <strong>use</strong>r <strong>to</strong><br />

concentrate on the end goal with more time <strong>to</strong> spend analys<strong>in</strong>g the results and hence<br />

obta<strong>in</strong><strong>in</strong>g a cheaper and ideally better solution.<br />

7.3.1 Choice of directions<br />

This however is not a new <strong>to</strong>pic of conversation and has been attempted before.<br />

However, no true universally acceptable data exchange format for the construction<br />

<strong>in</strong>dustry currently exists. So <strong>in</strong> order <strong>to</strong> cont<strong>in</strong>ue this work, the next generation of data<br />

transfer pro<strong>to</strong>col that could overcome the problems that prevented the previous attempts<br />

<strong>to</strong> facilitate this end goal had <strong>to</strong> be chosen. Efforts <strong>in</strong> data <strong>in</strong>teroperability <strong>in</strong>clude the<br />

STEP standard and the IFC standards developed by the <strong>in</strong>ternational alliance for<br />

<strong>in</strong>teroperability (IAI) [IAI, 2002, Hassana<strong>in</strong> et al, 2001], so this is where research<br />

began.<br />

7.3.1.1 Industry Foundation Classes (IFC’s)<br />

The Industry Foundation Classes (IFC’s) [IFC, 2002] were the first <strong>to</strong>pic <strong>to</strong> be looked at<br />

with a view <strong>to</strong> us<strong>in</strong>g them as the method of data exchange. The IFC’S were developed<br />

by the IAI (International Alliance for Interoperability). The IAI is a division of the ISO<br />

(International Standards Organization), the body that controls the IGES<br />

[IGES, 2003] and STEP data standards and was established <strong>in</strong> 1996 with a view <strong>to</strong><br />

found<strong>in</strong>g <strong>in</strong>teroperability <strong>in</strong> the <strong>in</strong>dustrial process <strong>in</strong> all construction orientated fields,<br />

allow<strong>in</strong>g computers <strong>use</strong>d by the participants of this <strong>in</strong>dustry <strong>to</strong> exchange product<br />

<strong>in</strong>formation [Hassana<strong>in</strong> et al, 2001]. The IFC system is a data representation standard<br />

and file format for def<strong>in</strong><strong>in</strong>g architectural and constructional CAD graphic data as 3D<br />

real-world objects. This was ma<strong>in</strong>ly so that architectural CAD <strong>use</strong>rs could transfer<br />

design data <strong>to</strong> and from rival products with no compromises [Cad Info, 2003]. The<br />

IAI’s IFC system comprises a set of def<strong>in</strong>itions of all the objects encountered <strong>in</strong> the<br />

build<strong>in</strong>g <strong>in</strong>dustry, and a text based structure for s<strong>to</strong>r<strong>in</strong>g those def<strong>in</strong>itions <strong>in</strong> a data file.<br />

When us<strong>in</strong>g the IFC standard, the time taken <strong>to</strong> manually <strong>in</strong>put data is cut beca<strong>use</strong> the<br />

data can be <strong>in</strong>put directly from the IFC file created by the IFC compliant <strong>to</strong>ol or<br />

package [Karola et al, 2002]. As the development work on the basic IFC set for graphic<br />

66


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

representation slowly moves <strong>to</strong>ward completion, there have been moves <strong>to</strong> extend its<br />

scope <strong>to</strong> support<strong>in</strong>g data associated with estimat<strong>in</strong>g and project management and similar<br />

non-graphic data, although the IFC system is essentially a graphic representation or<br />

object modell<strong>in</strong>g system and essentially aids <strong>in</strong>teroperability for design <strong>to</strong>ols [Karola et<br />

al, 2002]. For these reasons the next option for data exchange was now exam<strong>in</strong>ed, this<br />

be<strong>in</strong>g the STEP standard mentioned <strong>in</strong> relation <strong>to</strong> the IFC’s.<br />

7.3.1.2 STEP Standard<br />

STEP [STEP, 2002], the Standard for the Exchange of Product Model Data, is a<br />

comprehensive ISO standard (ISO 10303) that describes how <strong>to</strong> represent and exchange<br />

digital product <strong>in</strong>formation. It was first issued <strong>in</strong> 1994 [Pratt, Anderson, 2001] and has<br />

been constructed as a multi-part ISO standard. ISO 10303 foc<strong>use</strong>s on the neutral file<br />

approach, where the files are translated from their natural format <strong>in</strong><strong>to</strong> a neutral ISO file<br />

format, then translated from here <strong>to</strong> the native format of the receiv<strong>in</strong>g system [Pratt,<br />

Anderson, 2001].<br />

The basic parts are complete and published, while more are under development. These<br />

parts cover <strong>general</strong> areas, such as test<strong>in</strong>g procedures, file formats and programm<strong>in</strong>g<br />

<strong>in</strong>terfaces, as well as <strong>in</strong>dustry-specific <strong>in</strong>formation. The most important aspect of STEP<br />

is extensibility. STEP is built on a language that can formally describe the structure and<br />

correctness conditions of any eng<strong>in</strong>eer<strong>in</strong>g <strong>in</strong>formation that needs <strong>to</strong> be exchanged.<br />

Industry experts <strong>use</strong> this language, called EXPRESS, <strong>to</strong> detail the <strong>in</strong>formation required<br />

<strong>to</strong> describe products of that <strong>in</strong>dustry. These "Application Pro<strong>to</strong>cols" form the bulk of the<br />

standard, and are the basis for STEP product data exchange [STEPTOOLS Library,<br />

2003]. STEP is <strong>in</strong>creas<strong>in</strong>gly be<strong>in</strong>g recognised by the construction <strong>in</strong>dustry as an<br />

effective means of exchang<strong>in</strong>g product <strong>related</strong> data between CAD systems and<br />

applications [Pratt and Anderson, 2001], and it should enable them <strong>to</strong> do this with more<br />

success than was previously possible [Ma et al, 2001]. From this research it became<br />

clear that the STEP standard was more <strong>related</strong> <strong>to</strong> product <strong>in</strong>formation than recorded<br />

data, which would not have been the ma<strong>in</strong> area of <strong>in</strong>terest <strong>in</strong> this project, however it was<br />

while research<strong>in</strong>g the STEP standard that part 28 of it was uncovered, which detailed<br />

how <strong>to</strong> represent data <strong>in</strong> XML form. This was now <strong>to</strong> become the next area <strong>to</strong> be<br />

researched.<br />

67


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

7.3.1.3 XML<br />

XML [XML, 2002] is the Extensible Mark-up Language. It is designed <strong>to</strong> improve the<br />

functionality of the Web by provid<strong>in</strong>g more flexible and adaptable <strong>in</strong>formation<br />

identification. It is a powerful mechanism for humans and computers <strong>to</strong> exchange data<br />

[Aloisio et al, 1999], as the data even though functional <strong>in</strong> it’s formatt<strong>in</strong>g, is also<br />

readable. It is called extensible beca<strong>use</strong> it is not a fixed format like HTML (a s<strong>in</strong>gle,<br />

predef<strong>in</strong>ed mark-up language) [XML, 2002]. Instead, XML is actually a<br />

`metalanguage', a language for describ<strong>in</strong>g other languages, which lets its <strong>use</strong>r design<br />

their own cus<strong>to</strong>mized mark-up languages for limitless different types of documents.<br />

However, s<strong>in</strong>ce XML is very similar <strong>to</strong> HTML <strong>in</strong> its make-up, universal acceptance of<br />

the language is guaranteed [Aloisio et al, 1999]. XML enables its <strong>use</strong>r <strong>to</strong> create structured<br />

and semi-structured documents that can be transferred and read by people and programs <strong>in</strong><br />

multiple formats (for example, pages that can be read on the web, handheld devices and<br />

pr<strong>in</strong>t). XML lets bus<strong>in</strong>ess <strong>use</strong>rs create structured documents that can be leveraged for<br />

multiple purposes <strong>in</strong>-ho<strong>use</strong> and exchanged <strong>to</strong> people and bus<strong>in</strong>esses around the world.<br />

S<strong>in</strong>ce E-commerce is made up of two types of data transfer, bus<strong>in</strong>ess <strong>to</strong> bus<strong>in</strong>ess (B <strong>to</strong> B),<br />

and bus<strong>in</strong>ess <strong>to</strong> cus<strong>to</strong>mer (B <strong>to</strong> C), it is essential that a transfer norm exists for transferr<strong>in</strong>g<br />

this data. XML will be this next generation B <strong>to</strong> B data transfer language as it allows each<br />

developer <strong>to</strong> develop their own data exchange format [Yen, 02]. This flexibility of design that<br />

developers now have has contributed <strong>to</strong> the explosive growth of XML based proposals, such<br />

as the Chemical mark-up language (CML)[CML, 2003], and the Mathematical mark-up<br />

language (MathML) [MathML, 2003], show<strong>in</strong>g its strength <strong>in</strong> a grow<strong>in</strong>g market [Kim,<br />

2001].<br />

7.3.1.4 GBXML<br />

The Green Build<strong>in</strong>g XML schema, gbXML, was developed <strong>to</strong> facilitate the transfer of<br />

build<strong>in</strong>g <strong>in</strong>formation essential <strong>to</strong> design<strong>in</strong>g resource efficient build<strong>in</strong>gs [gbXML, 2002].<br />

With gbXML a build<strong>in</strong>g’s sensor <strong>in</strong>formation can be embedded <strong>in</strong> the associated tags as<br />

def<strong>in</strong>ed <strong>in</strong> the Document Type Def<strong>in</strong>ition (DTD) as commissioned by gbXML.org<br />

[GbXML Schema, 2002]. This DTD is the key <strong>to</strong> the extensibility of XML and <strong>in</strong> this<br />

case gbXML. This DTD enables self-describ<strong>in</strong>g data exchange and allows developers <strong>to</strong><br />

def<strong>in</strong>e their own syntax [Badard, Richard, 2001]. It is <strong>in</strong> this document that the mean<strong>in</strong>g<br />

of each of the tags is described, and a simple call aga<strong>in</strong>st the DTD by the gbXML report<br />

that is generated via a parser, def<strong>in</strong>es each of the tags, and hence gives mean<strong>in</strong>g <strong>to</strong> the<br />

data enclosed <strong>in</strong> each tag. This area now became the core of this project with an end<br />

result of a gbXML report of the build<strong>in</strong>g data be<strong>in</strong>g the ma<strong>in</strong> objective.<br />

68


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

7.4 USER INTERACTION ANALYSIS AND DESIGN<br />

The present situation of build<strong>in</strong>g control centres on the facility manager and more<br />

importantly the contracted build<strong>in</strong>g services eng<strong>in</strong>eer. Beca<strong>use</strong> of the complex nature of<br />

the BEMS, the facility manager becomes responsible for the everyday runn<strong>in</strong>g of the<br />

system, with any encountered problems be<strong>in</strong>g referred <strong>to</strong> the contracted eng<strong>in</strong>eer. This<br />

leads <strong>to</strong> a situation where any reported problem with the system requires a site visit<br />

more often than not by the eng<strong>in</strong>eer <strong>in</strong> order <strong>to</strong> rectify it. There are two problems with<br />

this situation:<br />

1) The eng<strong>in</strong>eer is required <strong>to</strong> visit the site no matter how small the problem;<br />

2) The facility manager is cut from the problem-solv<strong>in</strong>g loop beca<strong>use</strong> of the<br />

complex nature of the BEMS.<br />

Although work has been undertaken <strong>to</strong> make BEMS’s more accessible over the World<br />

Wide Web, on the whole wireless technology and easily accessible <strong>use</strong>r <strong>in</strong>terfaces have<br />

not been embraced <strong>in</strong> the build<strong>in</strong>g control situation. It is <strong>in</strong> these areas that the need for<br />

improvements can be clearly seen.<br />

Firstly, the ability <strong>to</strong> generate reports from the data that the BEMS collects <strong>in</strong> the form<br />

of gbXML documents would be required, thus enabl<strong>in</strong>g them <strong>to</strong> be forwarded <strong>to</strong> the<br />

build<strong>in</strong>g services eng<strong>in</strong>eer, allow<strong>in</strong>g him/her <strong>to</strong> carry out analysis on them from their<br />

work<strong>in</strong>g environment without the need for costly and unnecessary site visits. The<br />

eng<strong>in</strong>eer could then put the recommendations found <strong>in</strong><strong>to</strong> practice either via the facility<br />

manager or via the Web by us<strong>in</strong>g their own browser as the <strong>in</strong>terface <strong>to</strong> the BEMS on<br />

site.<br />

Secondly, a more easily understandable <strong>use</strong>r <strong>in</strong>terface would be created, focus<strong>in</strong>g on the<br />

areas that make most sense <strong>to</strong> the facility manager, i.e. <strong>energy</strong> consumption, and<br />

monetary cost. By provid<strong>in</strong>g read outs <strong>in</strong> this format, much like an <strong>energy</strong> audit, the<br />

manager can see very quickly if the build<strong>in</strong>g is perform<strong>in</strong>g well, and if it is not, <strong>in</strong><br />

which areas it is not do<strong>in</strong>g so, <strong>in</strong> turn allow<strong>in</strong>g him/her <strong>to</strong> provide accurate <strong>in</strong>formation<br />

<strong>to</strong> the eng<strong>in</strong>eer so he/she can more quickly analyse why the shortfall <strong>in</strong> performance is<br />

occurr<strong>in</strong>g.<br />

69


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

7.4.1 XML Report generation<br />

Generic data transfer has for a long time been the goal of the software eng<strong>in</strong>eer, and this<br />

is no different <strong>in</strong> the eng<strong>in</strong>eer<strong>in</strong>g environment. In the build<strong>in</strong>g services environment, the<br />

data displayed on the BEMS systems is obta<strong>in</strong>ed from sensors via controllers, which<br />

may be from different manufacturers and hence <strong>use</strong> different data <strong>in</strong>teroperability<br />

pro<strong>to</strong>cols. So the problem <strong>in</strong> this project was f<strong>in</strong>d<strong>in</strong>g a common language that the data<br />

could be translated <strong>in</strong><strong>to</strong> <strong>in</strong> order <strong>to</strong> facilitate generic data transfer.<br />

As previously exam<strong>in</strong>ed <strong>in</strong> Section 7.3, the IFC pro<strong>to</strong>col, the STEP standard, and<br />

various other options for data transfer were exam<strong>in</strong>ed and analysed. However XML was<br />

the clear leader beca<strong>use</strong> of its extensibility and flexibility. Also the fact that a schema<br />

had been developed specifically for the build<strong>in</strong>g services environment (gbXML),<br />

coupled with the fact that the development of the Ethernet as the communications<br />

backbone <strong>to</strong> current BEMSs means that XML will be available as a front end <strong>to</strong>ol for<br />

data exchange [CIBSE, 2002], meant that it was the preferred option.<br />

On decid<strong>in</strong>g <strong>to</strong> <strong>use</strong> PHP as the <strong>in</strong>termediary language <strong>in</strong> this project, the ability with<br />

PHP’s built <strong>in</strong> functions, <strong>to</strong> output archived data directly <strong>to</strong> gbXML which cut<br />

development time significantly, and added <strong>to</strong> the usability of this package was now<br />

available.<br />

The User Interface was now exam<strong>in</strong>ed, as this was the next step <strong>in</strong> the creation of the<br />

software environment.<br />

7.4.2 User <strong>in</strong>terface design<br />

Hav<strong>in</strong>g identified the problems with the current BEMS User Interfaces <strong>in</strong> operation,<br />

attention now foc<strong>use</strong>d on the creation of a more easily accessible, more <strong>in</strong>formative<br />

solution for the non-specialist. The goal was <strong>to</strong> <strong>use</strong> the accessibility of the Internet and<br />

the already well-def<strong>in</strong>ed knowledge of <strong>use</strong>r preference <strong>in</strong> display and navigation of web<br />

GUI’s, <strong>to</strong> deliver a more usable build<strong>in</strong>g services GUI <strong>to</strong> the facility manager. It was<br />

also necessary <strong>to</strong> couple this Internet design process with the equally well researched<br />

area of everyday GUI design, so essentially offer<strong>in</strong>g the <strong>use</strong>r the best of both worlds.<br />

7.4.2.1 Web design<br />

Introduction<br />

70


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

Users of Web documents do not just look at <strong>in</strong>formation but <strong>in</strong>stead they also <strong>in</strong>teract<br />

with it [Web Style Guide, 2002]. The Graphical User Interface (GUI) of a computer<br />

screen comprises the <strong>in</strong>teraction metaphors, images and concepts <strong>use</strong>d <strong>to</strong> convey<br />

function and mean<strong>in</strong>g on it. However most of the guidance needed <strong>to</strong> design, create and<br />

assemble a web page does not differ greatly from the current methods <strong>use</strong>d <strong>in</strong> pr<strong>in</strong>t<br />

media. GUI are designed <strong>to</strong> give people control over what they are view<strong>in</strong>g onscreen. It<br />

is important <strong>to</strong> put a great emphasis on the target audience, and <strong>to</strong> design for both the<br />

experienced and un<strong>in</strong>itiated <strong>use</strong>r.<br />

Design and layout<br />

Graphic Design creates a visual logic and allows a balance <strong>to</strong> be found between<br />

deliver<strong>in</strong>g <strong>in</strong>formation and aesthetic pleasure. Without the visual impact of shape and<br />

colour, pages appear un<strong>in</strong>terest<strong>in</strong>g and will not appeal <strong>to</strong> the viewer so any <strong>in</strong>formation<br />

locked <strong>in</strong> them will also be lost <strong>to</strong> the viewer as happens <strong>in</strong> the first page <strong>in</strong> Figure 7.2.<br />

The primary task of graphic design is <strong>to</strong> create a strong, consistent visual hierarchy<br />

where important elements are emphasised and content is organised logically as well as<br />

predictably ensur<strong>in</strong>g viewer <strong>in</strong>terest and confidence. Graphic design is the management<br />

of visual <strong>in</strong>formation us<strong>in</strong>g page layout and graphics <strong>to</strong> lead the reader’s eye <strong>to</strong> the<br />

po<strong>in</strong>ts and <strong>in</strong>formation of <strong>in</strong>terest <strong>to</strong> them as occurs <strong>in</strong> the second page <strong>in</strong> Figure 7.2<br />

where a menu <strong>to</strong> the left of the screen is highlighted allow<strong>in</strong>g the reader <strong>to</strong> easily locate<br />

it. Also the <strong>in</strong>dividual po<strong>in</strong>ts <strong>in</strong> the content are separated by paragraphs <strong>to</strong> aid<br />

readability and understand<strong>in</strong>g. A balance must be obta<strong>in</strong>ed between visual appeal and<br />

<strong>in</strong>formation organisation <strong>in</strong> order <strong>to</strong> ensure the optimal usage of the GUI.<br />

71


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

Figure 7.2: Examples of page designs [Web Style Guide, 2002].<br />

The most effective designs for <strong>general</strong> view<strong>in</strong>g <strong>use</strong> a careful balance of text and l<strong>in</strong>ks<br />

with small images ensur<strong>in</strong>g pages are loaded quickly <strong>in</strong><strong>to</strong> the browsers even when us<strong>in</strong>g<br />

a slow modem for connection.<br />

The design grids that underlie most well designed paper publications are equally<br />

necessary when design<strong>in</strong>g electronic documents. HTML can be <strong>use</strong>d <strong>to</strong> create complex<br />

and highly functional <strong>in</strong>formation systems. Haphazardly mix<strong>in</strong>g graphics and texts<br />

detracts from the usability of the GUI, so a balanced and consistent design scheme aga<strong>in</strong><br />

serves <strong>to</strong> re<strong>in</strong>force <strong>use</strong>r confidence.<br />

Figure 7.3: Examples of page layouts [Web Style Guide, 2002].<br />

72


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

Navigation<br />

Most <strong>use</strong>r <strong>in</strong>teractions <strong>in</strong> web pages are done through hypertext l<strong>in</strong>ks <strong>to</strong> various<br />

documents. The ma<strong>in</strong> problem <strong>in</strong> this area is <strong>to</strong> establish a sense of knowledge of where<br />

one is <strong>in</strong> relation <strong>to</strong> the entire site. In order <strong>to</strong> overcome this problem, graphic identity<br />

schemes or text navigation bars are <strong>use</strong>d <strong>to</strong> give the <strong>use</strong>r a confidence that they can f<strong>in</strong>d<br />

what they are look<strong>in</strong>g for without wast<strong>in</strong>g time. Users should also be always able <strong>to</strong><br />

return <strong>to</strong> the first <strong>in</strong>troduc<strong>to</strong>ry page or, “home” page as it is otherwise known, of the<br />

GUI and <strong>to</strong> other major navigation po<strong>in</strong>ts <strong>in</strong> it with these l<strong>in</strong>ks be<strong>in</strong>g located <strong>in</strong><br />

consistent locations on every page.<br />

Repetition is not bor<strong>in</strong>g but <strong>in</strong>stead gives the GUI a consistent identity as well as<br />

re<strong>in</strong>forc<strong>in</strong>g a confidence <strong>in</strong> the <strong>use</strong>r that they can navigate freely. A consistent approach<br />

<strong>to</strong> navigation and layout allows <strong>use</strong>rs <strong>to</strong> adapt quickly <strong>to</strong> the design as well as <strong>to</strong><br />

confidently predict the location of the <strong>in</strong>formation that they are look<strong>in</strong>g for.<br />

Page headers and footers<br />

In order <strong>to</strong> create a unique visual identity for the site, careful graphic design is needed.<br />

A “signature” graphic and page layout will allow the <strong>use</strong>r <strong>to</strong> grasp almost immediately<br />

the function of the document <strong>in</strong> relation <strong>to</strong> the overall GUI. The header element should<br />

conta<strong>in</strong> a prom<strong>in</strong>ent title so aga<strong>in</strong> re<strong>in</strong>forc<strong>in</strong>g the <strong>use</strong>rs sense of “place”. Well-designed<br />

page footers offer the <strong>use</strong>r a set of l<strong>in</strong>ks <strong>to</strong> other pages and also some essential<br />

<strong>in</strong>formation about the site such as copyright <strong>in</strong>formation or contact details. Both the<br />

header and footer should be located on every page <strong>in</strong> the site <strong>to</strong> re<strong>in</strong>force confidence <strong>in</strong><br />

navigation but <strong>to</strong> also identify each page of the site as be<strong>in</strong>g a part oft the overall GUI.<br />

Conclusions<br />

Consistency of design and navigation and the <strong>use</strong> of the correct layout <strong>to</strong>ols are the two<br />

most important areas <strong>in</strong> GUI design. If these are addressed properly a <strong>use</strong>r-friendly<br />

atmosphere is created where <strong>in</strong>formation is easy <strong>to</strong> f<strong>in</strong>d and once found is pleasurable <strong>to</strong><br />

view.<br />

73


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

7.4.2.2 Pr<strong>in</strong>ciples of GUI design<br />

A well designed Graphical User Interface establishes consistent and predictable<br />

behaviour on the part of the <strong>use</strong>r, and pulls them <strong>in</strong><strong>to</strong> a situation where they suspend<br />

disbelief and treat the objects they encounter onscreen as real, such as but<strong>to</strong>ns, <strong>to</strong>ols etc.<br />

[Shneiderman, 1992]. Shneidermann identified 8 areas where care should be taken <strong>in</strong><br />

develop<strong>in</strong>g a well-commissioned <strong>use</strong>r <strong>in</strong>terface, these “8 Golden Rules” as he called<br />

them are:<br />

1) Strive for consistency – the most frequently violated pr<strong>in</strong>ciple. Relies on<br />

consistent sequences of actions be<strong>in</strong>g <strong>in</strong>corporated <strong>in</strong> similar situations so<br />

re<strong>in</strong>forc<strong>in</strong>g the <strong>use</strong>rs sense of confidence <strong>in</strong> their surround<strong>in</strong>gs. Identical<br />

term<strong>in</strong>ology should be <strong>use</strong>d <strong>in</strong> prompts, menus and help screens aga<strong>in</strong> <strong>to</strong> build<br />

<strong>use</strong>r confidence;<br />

2) Enable frequent <strong>use</strong>rs <strong>to</strong> <strong>use</strong> shortcuts – as the frequency of <strong>use</strong> <strong>in</strong>creases so <strong>to</strong>o<br />

does the desire <strong>to</strong> cut the amount of time taken and the <strong>in</strong>teraction needed <strong>to</strong><br />

reach ones end goal. Frequent knowledge <strong>use</strong>rs appreciate abbreviations and<br />

hidden commands <strong>to</strong> ease the burden of <strong>use</strong>;<br />

3) Offer <strong>in</strong>formative feedback – for every opera<strong>to</strong>r action there should be some<br />

form of system feedback;<br />

4) Design dialogs <strong>to</strong> yield closure – sequences of actions should have a clear<br />

beg<strong>in</strong>n<strong>in</strong>g, middle and end. The <strong>in</strong>formative feedback at the completion of a<br />

group of actions gives the <strong>use</strong>r a sense of accomplishment;<br />

5) Offer simple error handl<strong>in</strong>g – <strong>in</strong> so far as is reasonably possible, design the<br />

system so that the <strong>use</strong>r cannot make a fatal, irreversible error. If an error is<br />

detected, the system should yield some k<strong>in</strong>d of helpful advice for the <strong>use</strong>r <strong>to</strong><br />

negate their actions;<br />

6) Permit easy reversal of actions – <strong>in</strong> so far as is possible, actions should always<br />

be reversible, reliev<strong>in</strong>g any anxiety that the <strong>use</strong>r might feel <strong>to</strong>wards mov<strong>in</strong>g<br />

forward through the system;<br />

74


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

7) Support <strong>in</strong>ternal locus of control – experienced <strong>use</strong>rs strongly desire <strong>to</strong> feel <strong>in</strong><br />

control of the system, so difficulty <strong>in</strong> obta<strong>in</strong><strong>in</strong>g <strong>in</strong>formation or slow practice of<br />

actions leads <strong>to</strong> dissatisfaction on their part;<br />

8) Reduce short-term memory load – displays should be kept as simple as possible,<br />

so <strong>to</strong> be the least stra<strong>in</strong> possible on the short-term memory banks of the <strong>use</strong>r.<br />

These pr<strong>in</strong>ciples if followed and utilised correctly <strong>in</strong> the <strong>use</strong>r <strong>in</strong>terface design process<br />

will ensure that the <strong>use</strong>r feels comfortable <strong>in</strong> the environment created for them which <strong>in</strong><br />

turn means that the <strong>in</strong>formation that the <strong>in</strong>terface is home <strong>to</strong> will be much freer <strong>to</strong><br />

access.<br />

7.4.3 Choice of web server<br />

Now that the design for usability issue has been discussed <strong>in</strong> relation <strong>to</strong> the design of<br />

the GUI <strong>to</strong> be implemented <strong>to</strong> ensure universal acceptance of this software environment,<br />

the next step was <strong>to</strong> look at the means through which the GUI would be displayed over<br />

the Internet. This was <strong>to</strong> be achieved through the <strong>use</strong> of Web Server software which is a<br />

cont<strong>in</strong>uously loop<strong>in</strong>g server that waits for requests from the client for documents over<br />

the network [Web Servers, 2003]. Once it receives these requests, it takes the<br />

correspond<strong>in</strong>g actions <strong>in</strong> order <strong>to</strong> execute the script or return the required document as<br />

the client wished.<br />

In order <strong>to</strong> choose web server software for this project, the two most widely <strong>use</strong>d were<br />

compared with the more efficient and suited <strong>to</strong> this project be<strong>in</strong>g the one chosen<br />

[Network Comput<strong>in</strong>g, 2003].<br />

7.4.3.1 Microsoft Internet Information Server (IIS)<br />

The first Web Server software <strong>to</strong> be exam<strong>in</strong>ed with the view of us<strong>in</strong>g it <strong>in</strong> this project<br />

was the Microsoft Internet Information Services (IIS) version 5.0 server. This is the<br />

latest version of Microsoft's IIS and comes as part of the NT Option Pack.<br />

IIS has superior performance across the board than most of its competi<strong>to</strong>rs and can<br />

serve up pages for view<strong>in</strong>g at a faster rate, however it does have some notable<br />

drawbacks <strong>in</strong> the form of its frequent need <strong>to</strong> reboot, its lack of support for non<br />

w<strong>in</strong>dows platforms and the security issues that accompany it. IIS is managed with a<br />

75


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

Microsoft Management Console (MMC) plug-<strong>in</strong>, which is both efficient and easy <strong>to</strong><br />

<strong>use</strong>, this be<strong>in</strong>g one of its major advantages over its competi<strong>to</strong>rs, most of which <strong>use</strong><br />

command l<strong>in</strong>e, text based management, mak<strong>in</strong>g them sometimes difficult <strong>to</strong> manage.<br />

In comparison with its competi<strong>to</strong>rs, IIS outperformed Apache on L<strong>in</strong>ux, for the serverside<br />

<strong>in</strong>clude (SSI) test<strong>in</strong>g. However, IIS proved <strong>to</strong> be on par only with the Perl-based<br />

CGI tests with the Apache Server.<br />

7.4.3.2 APACHE Web server<br />

Apache Server quietly and reliably serves up content for most Web sites <strong>in</strong> existence,<br />

accord<strong>in</strong>g <strong>to</strong> NetCraft's Web Server survey [Netcraft, 2003]. Apache is freely available<br />

on the Internet and has earned the reputation for be<strong>in</strong>g the most reliable Web server<br />

available. Unfortunately, reliability does exact a small price as Apache Server's<br />

management isn't much more than text edit<strong>in</strong>g and a few <strong>use</strong>ful server-status Web pages<br />

that are difficult <strong>to</strong> manage when compared <strong>to</strong> IIS’s management system.<br />

Apache Server's greatest strengths are its huge amount of end-<strong>use</strong>r support, nearly<br />

universal platform support, and rapid bug fixes and product cycles. It is however not as<br />

robust and feature-rich as Microsoft's IIS. Apache Server's performance was <strong>general</strong>ly<br />

marg<strong>in</strong>ally <strong>in</strong>ferior <strong>to</strong> that of Microsoft's IIS, particularly on the SSI tests.<br />

Configur<strong>in</strong>g and manag<strong>in</strong>g the Apache Server is done almost entirely from the<br />

command l<strong>in</strong>e or text edi<strong>to</strong>r prov<strong>in</strong>g aga<strong>in</strong> <strong>to</strong> be a bit more difficult especially for<br />

novice <strong>use</strong>rs.<br />

7.4.3.3 Conclusion<br />

Microsoft’s IIS is the chosen option for Web Server technology <strong>in</strong> this project due <strong>to</strong> its<br />

strengths <strong>in</strong> management and configuration, with an easy <strong>to</strong> <strong>use</strong> management console,<br />

when compared <strong>to</strong> Apache’s text edi<strong>to</strong>r command l<strong>in</strong>e control. It was also available <strong>to</strong><br />

this project for no extra cost as the option pack that came with the computer system<br />

purchased for this project conta<strong>in</strong>ed it.<br />

7.5 LINKING THE TECHNOLOGIES TOGETHER<br />

Now that the technologies were decided upon, it was time <strong>to</strong> decide how <strong>to</strong> l<strong>in</strong>k them<br />

<strong>to</strong>gether <strong>to</strong> achieve a solution. The backend MySQL database where the raw data<br />

would reside would need <strong>to</strong> be accessed. This data would then need <strong>to</strong> be operated on <strong>to</strong><br />

get the correct figures for analysis. Once operated on this data would then need <strong>to</strong> be<br />

76


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

displayed on the World Wide Web via a <strong>use</strong>r-friendly <strong>use</strong>r <strong>in</strong>terface (UI) on a web<br />

browser. Once here the <strong>use</strong>r would not only need <strong>to</strong> be able <strong>to</strong> navigate through it, but<br />

also download it <strong>in</strong> a generic, <strong>in</strong>teroperable form, i.e. gbXML. The key <strong>to</strong> achiev<strong>in</strong>g all<br />

this data and l<strong>in</strong>k<strong>in</strong>g the aforementioned technologies <strong>to</strong>gether turned out <strong>to</strong> be a server<br />

side script<strong>in</strong>g language called PHP.<br />

7.5.1 PHP<br />

PHP (Hypertext Preprocessor) [PHP, 2002] is a widely <strong>use</strong>d Open Source <strong>general</strong><br />

purpose script<strong>in</strong>g language that is especially suited for Web development and can be<br />

embedded <strong>in</strong><strong>to</strong> HTML [PHP MANUAL, 2003]. PHP has many functions and <strong>in</strong>terfaces<br />

and is <strong>use</strong>d on many Web based <strong>in</strong>teractive server systems [Inoue et al, 2002]. PHP<br />

code is executed on the server, which means that the client would receive the results of<br />

runn<strong>in</strong>g the script, with no way of determ<strong>in</strong><strong>in</strong>g what the underly<strong>in</strong>g code may be. This is<br />

especially <strong>use</strong>ful when consider<strong>in</strong>g the security issues of this software environment and<br />

the sensitive data that it handles. PHP can be <strong>use</strong>d on all major operat<strong>in</strong>g systems,<br />

<strong>in</strong>clud<strong>in</strong>g L<strong>in</strong>ux, many Unix variants (<strong>in</strong>clud<strong>in</strong>g HP-UX, Solaris and OpenBSD),<br />

Microsoft W<strong>in</strong>dows, Mac OS X, RISC OS, and probably others. PHP has also support<br />

for most of the web servers <strong>to</strong>day. This <strong>in</strong>cludes Apache, Microsoft Internet Information<br />

Server, Personal Web Server, Netscape and iPlanet servers, Oreilly Website Pro server,<br />

Caudium, Xitami, OmniHTTP, and many others. With PHP one is not limited <strong>to</strong><br />

outputt<strong>in</strong>g HTML. PHP's abilities <strong>in</strong>cludes outputt<strong>in</strong>g images, PDF files and even Flash<br />

movies, but where it is most <strong>in</strong>terest<strong>in</strong>g and <strong>use</strong>ful <strong>in</strong> this project is its ability <strong>to</strong> output<br />

any text, such as XHTML and any other XML file [PHP MANUAL 2, 2003]. PHP can<br />

au<strong>to</strong> generate these files, and save them <strong>in</strong> the file system, <strong>in</strong>stead of pr<strong>in</strong>t<strong>in</strong>g it out, thus<br />

allow<strong>in</strong>g the <strong>use</strong>r <strong>to</strong> easily set up a method for data transfer us<strong>in</strong>g XML as the transfer<br />

media. PHP also has a better relationship with database management systems such as<br />

MySQL than ASP or JAVA [Inoue et al, 2002], so mak<strong>in</strong>g it the perfect choice for this<br />

project.<br />

7.5.2 Proposed process us<strong>in</strong>g PHP<br />

S<strong>in</strong>ce MySQL was PHP compliant, SQL could be embedded <strong>in</strong> PHP tags and <strong>use</strong>d <strong>to</strong><br />

access the database. The predef<strong>in</strong>ed MySQL access functions of the PHP language<br />

allowed access <strong>to</strong> the database, the ability <strong>to</strong> perform an SQL query on the data, then<br />

us<strong>in</strong>g loops, and various other operations, the ability <strong>to</strong> operate mathematical<br />

77


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

procedures on the raw data <strong>in</strong> order <strong>to</strong> output the results required <strong>to</strong> variables. Once <strong>in</strong><br />

these variables, the embedded HTML could be <strong>use</strong>d <strong>to</strong> display them on the World Wide<br />

Web via a browser. This <strong>in</strong> essence was the solution. The <strong>use</strong>r could now navigate the<br />

data obta<strong>in</strong>ed directly from the database like a web page, someth<strong>in</strong>g that most people<br />

are very familiar with due <strong>to</strong> the popularity and extensive usage of the World Wide<br />

Web.<br />

The f<strong>in</strong>al part of the solution was the output of the data <strong>in</strong> a gbXML report. This aga<strong>in</strong><br />

was achieved us<strong>in</strong>g PHP, as the data once <strong>in</strong> variables, was <strong>in</strong>serted between the<br />

relevant gbXML tags, as def<strong>in</strong>ed by the schema [GbXML Schema, 2002], and written<br />

<strong>to</strong> a new file for download, or just for view<strong>in</strong>g. This allowed the <strong>use</strong>r <strong>to</strong> view the data <strong>in</strong><br />

gbXML form, and hence freed up the data for <strong>use</strong> with any XML compliant software<br />

<strong>to</strong>ol once it was downloaded. Each <strong>in</strong>dividual part of this process will be discussed <strong>in</strong><br />

the next chapter with examples of the code <strong>use</strong>d <strong>in</strong> each situation also expanded on.<br />

7.6 SUMMARY<br />

The three key objectives of this project are <strong>to</strong> archive the build<strong>in</strong>g data with a view <strong>to</strong><br />

analys<strong>in</strong>g it, <strong>to</strong> make the recorded data generic so that it can be exchanged between third<br />

party analysis <strong>to</strong>ols and f<strong>in</strong>ally <strong>to</strong> develop a <strong>use</strong>r friendly GUI. A number of software<br />

options were available <strong>in</strong> each area, such as SQL server and ACCESS at the database<br />

side of development, but these were both passed over <strong>in</strong> favour of MySQL, a database<br />

management system that was both fast and flexible but also free <strong>to</strong> <strong>use</strong>.<br />

A number of options also existed <strong>in</strong> the data <strong>in</strong>teroperability field with the IFC’s, STEP<br />

standard be<strong>in</strong>g just two, which apply <strong>to</strong> the construction <strong>in</strong>dustry. A language called<br />

XML, and its sibl<strong>in</strong>g gbXML, which is more specific <strong>to</strong> the build<strong>in</strong>g services <strong>in</strong>dustry<br />

was however more suited <strong>to</strong> this project.<br />

The f<strong>in</strong>al area <strong>to</strong> be exam<strong>in</strong>ed <strong>in</strong> respect of the software <strong>to</strong> be <strong>use</strong>d was the GUI. A<br />

number of web servers, which are display mechanisms for World Wide Web<br />

applications, are <strong>in</strong> existence, with the Apache system firstly be<strong>in</strong>g exam<strong>in</strong>ed. This<br />

however was passed over <strong>in</strong> favour of IIS as it was freely available <strong>to</strong> the project and<br />

had a more accessible <strong>use</strong>r <strong>in</strong>terface so speed<strong>in</strong>g up the development process.<br />

Once these technologies had been chosen, a means <strong>to</strong> <strong>in</strong>teract between them <strong>to</strong> arrive at<br />

the f<strong>in</strong>al solution was required. A server side script<strong>in</strong>g language called PHP was chosen,<br />

which could <strong>in</strong>teract with the MySQL database and output gbXML through IIS <strong>to</strong> the<br />

World Wide Web, so f<strong>in</strong>alis<strong>in</strong>g the technologies <strong>to</strong> be <strong>use</strong>d <strong>in</strong> this project.<br />

78


CHAPTER 7<br />

SPECIFICATION OF REQUIREMENTS<br />

With the technologies chosen, the design process needed <strong>to</strong> be exam<strong>in</strong>ed. This will be<br />

done <strong>in</strong> Chapter 8 with the View/Control/Model design process based on development<br />

center<strong>in</strong>g on the GUI be<strong>in</strong>g <strong>use</strong>d as the foundation for this process.<br />

79


CHAPTER 8<br />

DESIGN<br />

DESIGN<br />

8.1 INTRODUCTION<br />

Chapter 5 and Chapter 7 described the software architecture from the front end (FE) and<br />

backend (BE) of the GUI scenarios. The follow<strong>in</strong>g chapter describes <strong>in</strong> more detail the<br />

specifications as outl<strong>in</strong>ed <strong>in</strong> these previous Chapters. These will l<strong>in</strong>k <strong>to</strong>gether as shown<br />

<strong>in</strong> Figure 8.2 <strong>in</strong> order <strong>to</strong> generate a self-updat<strong>in</strong>g Graphical User Interface (GUI) with<br />

real time BEMS data. As Chapter 5 discussed, the Backend, database, portion of the<br />

package and the Front-end, report generation from the GUI, of the package will be<br />

exam<strong>in</strong>ed <strong>in</strong> greater detail. The model, control view software design process will be<br />

adhered <strong>to</strong>, with the GUI be<strong>in</strong>g the driv<strong>in</strong>g force beh<strong>in</strong>d the development of the<br />

software environment. It will be designed firstly us<strong>in</strong>g the concept of data stubs, and<br />

then gradually stage by stage be <strong>in</strong>corporated with real data from the model layer by<br />

means of the control layer. Figure 8.1 shows the flow of data from the backend <strong>to</strong> the<br />

front-end of the package with Table 8.1 show<strong>in</strong>g the <strong>to</strong>ols <strong>use</strong>d <strong>to</strong> achieve this flow <strong>in</strong><br />

more detail.<br />

BACKEND<br />

FRONTEND<br />

MYSQL database<br />

populated by PHP<br />

with sensor data from BMS<br />

GUI<br />

loaded with data from database<br />

gbXML report<br />

generated by PHP<br />

Figure 8.1: Flow of data from the backend <strong>to</strong> the front-end of the package<br />

80


CHAPTER 8<br />

DESIGN<br />

Sensor 1 Sensor 2<br />

Sensor 3 Sensor 4<br />

UC16<br />

UC16<br />

<strong>UCC</strong> 4<br />

UDS 10<br />

Data transferred over college network us<strong>in</strong>g TCP/IP<br />

PC with WN3000<br />

BMS software logs data us<strong>in</strong>g ccReport<br />

CSV file<br />

MS Scheduler runs PHP script which<br />

uploads data from CSV file <strong>to</strong> MySQL Database us<strong>in</strong>g embedded SQL<br />

BACKEND<br />

MYSQL<br />

DATABASE<br />

FRONTEND<br />

Generation of gbXML Reports<br />

GUI<br />

Figure 8.2: Data flow <strong>in</strong> order <strong>to</strong> arrive at GUI<br />

The method <strong>use</strong>d <strong>to</strong> design this software <strong>to</strong>ol is based on the model, view, control,<br />

software eng<strong>in</strong>eer<strong>in</strong>g method as Figure 8.3 depicts, where the Graphical User <strong>in</strong>terface<br />

is the driv<strong>in</strong>g force beh<strong>in</strong>d the development process [Liant, 1992]. It is essentially the<br />

end result that dictates the data that is required and the way <strong>in</strong> which this data is<br />

manipulated from the raw recorded data. So <strong>in</strong> this case, the values and graphs that will<br />

be displayed onscreen <strong>in</strong> the GUI (VIEW layer) are chosen, the data that is required <strong>to</strong><br />

obta<strong>in</strong> these values is obta<strong>in</strong>ed (Model data layer), and f<strong>in</strong>ally the manipulation of this<br />

81


CHAPTER 8<br />

DESIGN<br />

data (Control layer) is achieved <strong>to</strong> obta<strong>in</strong> the necessary end result, this be<strong>in</strong>g a two way<br />

process as data is constantly be<strong>in</strong>g called from the GUI and obta<strong>in</strong>ed from the Model<br />

layer by means of the Control mechanism.<br />

VIEW Layer - (GUI)<br />

CONTROL Layer - (PHP)<br />

MODEL Layer - (DATA)<br />

Figure 8.3: Pr<strong>in</strong>ciples of software design process <strong>use</strong>d <strong>in</strong> the development of this<br />

package<br />

The software and programm<strong>in</strong>g techniques <strong>use</strong>d <strong>in</strong> this process are outl<strong>in</strong>ed <strong>in</strong> Table<br />

8.1, with two data model layers, one the orig<strong>in</strong>al CSV files obta<strong>in</strong>ed from the BEMS<br />

us<strong>in</strong>g ccReport and the other the MySQL database that ho<strong>use</strong>s the data when archived.<br />

82


CHAPTER 8<br />

DESIGN<br />

Table 8.1: Software flow details<br />

METHOD LANGUAGE TOOL<br />

REPORT GBXML WEB BROWSER<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

GUI HTML DREAMWEAVER<br />

F<br />

E<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

DATA RELATIONAL MYSQL<br />

CONTROL PHP ED<strong>IT</strong>PLUS<br />

DATA CSV BEMS<br />

B<br />

E<br />

Initially, the design process was centred as discussed on the GUI, as this would be the<br />

area that the third party <strong>use</strong>r would be <strong>in</strong>teract<strong>in</strong>g with, and the correct detail<strong>in</strong>g of it<br />

was a necessity. Once the correct format of data had been arrived at by contact<strong>in</strong>g the<br />

Environmental Protection Agency (EPA) [EPA, 2003], and the Department for the<br />

Environment, Food and Rural Affairs (DEFRA) [DEFRA, 2003] <strong>in</strong> the UK, as will be<br />

discussed <strong>in</strong> Section 10.8.3, the next step was <strong>to</strong> look at the raw data that would be<br />

com<strong>in</strong>g from the sensors on site and look <strong>to</strong> manipulate them <strong>in</strong> order <strong>to</strong> arrive at the<br />

necessary values for display.<br />

This was achieved by focus<strong>in</strong>g attention on one area of the GUI and us<strong>in</strong>g as close an<br />

approximation of real data as was possible <strong>to</strong> obta<strong>in</strong>, as if the scale of the process could<br />

be kept <strong>to</strong> a m<strong>in</strong>imum then it was easier <strong>to</strong> develop and could be later expanded <strong>to</strong> the<br />

rest of the GUI. An approximation was <strong>in</strong>itially <strong>use</strong>d, as the actual data was not<br />

available at this early stage. This approximated, static data <strong>use</strong>d <strong>in</strong> the development of<br />

the GUI is known as a data “stub”, with the each data “stub” be<strong>in</strong>g replaced by real data<br />

one by one as the development process successfully progresses [Liant, 1992] and is<br />

shown <strong>in</strong> Figure 8.4.<br />

83


CHAPTER 8<br />

DESIGN<br />

GUI<br />

Analysis Section<br />

Graphical Section<br />

STUB<br />

STUB<br />

STUB<br />

Figure 8.4: Data Stubs <strong>use</strong>d <strong>in</strong> development process as applied <strong>to</strong> the analysis<br />

section only<br />

In order <strong>to</strong> illustrate this development process an example is offered. One of the first<br />

and most important areas <strong>to</strong> be developed <strong>in</strong> the GUI was the <strong>energy</strong> analysis portion of<br />

it. It needed <strong>to</strong> show the monthly <strong>energy</strong> <strong>use</strong> for each component <strong>in</strong> AHU 1 <strong>in</strong> kWh,<br />

kWh/m 2 , and cost, all of which would serve <strong>to</strong> help the third party analyst <strong>in</strong> their<br />

<strong>in</strong>spection of the facility’s <strong>energy</strong> <strong>use</strong>. In order <strong>to</strong> do this, the data would need <strong>to</strong> be<br />

eventually extracted from the CSV file and <strong>in</strong>serted <strong>in</strong><strong>to</strong> the relevant tables <strong>in</strong> the<br />

MySQL database. Then once there, it would need <strong>to</strong> be accessed and the calculations as<br />

outl<strong>in</strong>ed <strong>in</strong> Section 9.4.1.2 performed on it, <strong>in</strong> order <strong>to</strong> have the correct figures available<br />

for display by the PHP code <strong>in</strong> HTML <strong>in</strong> the web browser.<br />

In order <strong>to</strong> effectively design the GUI for this area of the project, the data stubs were<br />

<strong>use</strong>d <strong>to</strong> bypass this complicated procedure, as shown <strong>in</strong> Stage 1 of Figure 8.7,<br />

illustrat<strong>in</strong>g once aga<strong>in</strong> how the GUI drives the development, with the GUI be<strong>in</strong>g<br />

illustrated <strong>in</strong> Figure 8.5. Once the look and functionality of the GUI were f<strong>in</strong>e tuned, the<br />

stubs could beg<strong>in</strong> <strong>to</strong> be replaced one by one with real data obta<strong>in</strong>ed from the BEMS.<br />

84


CHAPTER 8<br />

DESIGN<br />

Figure 8.5: F<strong>in</strong>al GUI design with data from stubs<br />

In order <strong>to</strong> be able <strong>to</strong> replace the data stubs with real data from the BEMS, the real data<br />

needed <strong>to</strong> be accessible <strong>to</strong> the GUI as shown <strong>in</strong> Stage 2 of Figure 8.7. By this it is meant<br />

that the data needed <strong>to</strong> be manipulated <strong>in</strong><strong>to</strong> such a format that it could be uploaded <strong>to</strong><br />

the MySQL database and then called on demand by the GUI from there, this be<strong>in</strong>g the<br />

control layer of the design process. PHP was <strong>use</strong>d <strong>to</strong> access the database from the GUI<br />

end of the process us<strong>in</strong>g SQL queries embedded <strong>in</strong> the code <strong>to</strong> choose the relevant data<br />

and manipulate it for display. It also turned out <strong>to</strong> be the answer <strong>to</strong> the file manipulation<br />

situation, as it was <strong>use</strong>d <strong>to</strong> access the flat CSV file and manipulate the data for upload <strong>to</strong><br />

the database as well as take care of the upload process while it was do<strong>in</strong>g so. This entire<br />

process and its <strong>in</strong>tricacies will be expanded on <strong>in</strong> the follow<strong>in</strong>g sections.<br />

The f<strong>in</strong>al step <strong>to</strong> remov<strong>in</strong>g the static stubs was <strong>to</strong> be able <strong>to</strong> access the data <strong>in</strong> the<br />

MySQL database on demand from the GUI with no data stubs rema<strong>in</strong><strong>in</strong>g <strong>in</strong> this section<br />

of the GUI as is shown <strong>in</strong> Stage 3 of the process illustrated <strong>in</strong> Figure 8.7. L<strong>in</strong>ks were<br />

added <strong>to</strong> the GUI as shown <strong>in</strong> Figure 8.6, which launched PHP script <strong>to</strong> obta<strong>in</strong> the<br />

relevant data then perform calculations on it. Once the correct values as def<strong>in</strong>ed by the<br />

<strong>in</strong>itial GUI design process us<strong>in</strong>g the Data Stubs had been arrived at <strong>in</strong> this way, the real<br />

85


CHAPTER 8<br />

DESIGN<br />

data was displayed <strong>in</strong> the web browser replac<strong>in</strong>g the stubs that had previously been<br />

there. This left one fully functional area of the software package, with data stubs still<br />

present <strong>in</strong> the other areas wait<strong>in</strong>g for the development process <strong>to</strong> extend <strong>to</strong> their section.<br />

Figure 8.6: Screenshot of first area of package <strong>to</strong> be developed us<strong>in</strong>g the data stub<br />

process<br />

86


CHAPTER 8<br />

DESIGN<br />

VIEW Layer - GUI<br />

ANALYSIS Section<br />

STAGE 1<br />

STUBS<br />

VIEW Layer - GUI<br />

ANALYSIS Section<br />

STAGE 2<br />

STUBS<br />

MODEL LAYER accessed via the CONTROL method<br />

VIEW Layer - GUI<br />

ANALYSIS Section<br />

STAGE 3<br />

MODEL LAYER<br />

via CONTROL method<br />

Figure 8.7: Model/View/Control design methodology<br />

87


CHAPTER 8<br />

DESIGN<br />

This process is now expla<strong>in</strong>ed <strong>in</strong> more detail <strong>in</strong> the next sections, with the programm<strong>in</strong>g<br />

code <strong>use</strong>d <strong>in</strong> each situation be<strong>in</strong>g illustrated <strong>to</strong> further clarify the process. S<strong>in</strong>ce the GUI<br />

was the driv<strong>in</strong>g force beh<strong>in</strong>d the development process, it is here that the explanation<br />

beg<strong>in</strong>s.<br />

8.2 VIEW LAYER - GUI DESIGN<br />

At present, the <strong>use</strong>r <strong>in</strong>terface of a BEMS, even though highly graphical <strong>in</strong> most cases, is<br />

still not easily understandable and usable by the people that operate the facility on a<br />

daily basis, the facility managers. It is beca<strong>use</strong> of this lack of knowledge that the<br />

problems <strong>in</strong> the GUI persist [Lowry, 2002]. It is here that the <strong><strong>in</strong>troduction</strong> of a web<br />

frontend can add <strong>to</strong> the functionality of the BEMS.<br />

Beca<strong>use</strong> of the fact that one <strong>in</strong> six people <strong>use</strong> the Internet on a daily basis [Internet<br />

Indica<strong>to</strong>rs, 2003], it became apparent that this media was the best option available <strong>to</strong><br />

maximise the usability of the GUI.<br />

<strong>IT</strong> networks are a standard part of most non-domestic build<strong>in</strong>gs and their <strong>use</strong> as the<br />

communications system for BEMSs has emerged as the next step <strong>in</strong> develop<strong>in</strong>g<br />

<strong>in</strong>telligent build<strong>in</strong>g control. The vast majority of these systems are based on the<br />

Ethernet and most employ Transmission Control Pro<strong>to</strong>col/Internet Pro<strong>to</strong>col (TCP/IP) as<br />

the communications procedure for data transport. The Local Area Networks (LANs)<br />

that the controllers are l<strong>in</strong>ked <strong>to</strong> are then l<strong>in</strong>ked <strong>to</strong> the Ethernet which <strong>in</strong> turn is presided<br />

over by a supervisory W<strong>in</strong>dows based PC where the GUI will reside [CIBSE, 2002].<br />

It was required <strong>to</strong> keep the layout simple and easily navigatable with easy <strong>to</strong> follow<br />

l<strong>in</strong>ks lead<strong>in</strong>g the <strong>use</strong>r <strong>to</strong> the <strong>in</strong>formation that they required. In order <strong>to</strong> do this Hypertext<br />

Mark-up Language (HTML), as expla<strong>in</strong>ed <strong>in</strong> Section 5.2.1 was utilised, which is the<br />

language most commonly <strong>use</strong>d on the Internet <strong>in</strong> site design. It was decided <strong>to</strong> <strong>use</strong> a<br />

concept known as version control <strong>to</strong> keep development as efficient and reversible as<br />

possible.<br />

8.2.1 Version<strong>in</strong>g of software<br />

Version control [SAMSb, 2001] is the management of change as applied <strong>to</strong> software<br />

eng<strong>in</strong>eer<strong>in</strong>g. Version control acts as a k<strong>in</strong>d of archive situation where any code <strong>use</strong>d can<br />

be s<strong>to</strong>red and shared. Imag<strong>in</strong>e a situation where the programmer tries <strong>to</strong> improve the<br />

code but <strong>in</strong>stead accidentally s<strong>to</strong>ps or dim<strong>in</strong>ishes its functionality, or another situation,<br />

where the client or programmer decides that an earlier version of the site was better.<br />

88


CHAPTER 8<br />

DESIGN<br />

Without version control, the earlier, functionally superior version of the site would be<br />

lost.<br />

Version control is the track<strong>in</strong>g of code. It means that when a site is considered<br />

functional, the code <strong>use</strong>d is locked and s<strong>to</strong>red <strong>in</strong> this format so that any changes made <strong>to</strong><br />

it are tracked and can be regressed should the need arise. When the code has moved on<br />

<strong>to</strong> the next level of functionality, this version<strong>in</strong>g takes place once aga<strong>in</strong> with the newly<br />

created code once aga<strong>in</strong> be<strong>in</strong>g locked and s<strong>to</strong>red. This would be version two of the site<br />

and would now be <strong>use</strong>d as the base level of code, should it be considered that it was<br />

superior <strong>to</strong> the first version of the site. However if this was <strong>to</strong> be found <strong>to</strong> be untrue with<br />

later test<strong>in</strong>g, the first version of the site would still be locked and s<strong>to</strong>red and could once<br />

aga<strong>in</strong> be <strong>use</strong>d. Three versions of the GUI design <strong>in</strong> this project were <strong>use</strong>d before the<br />

f<strong>in</strong>al design was decided upon.<br />

8.2.1.1 Version 1 - Frames<br />

The first GUI layout that was <strong>use</strong>d was based on HTML frames, which split the browser<br />

w<strong>in</strong>dow <strong>in</strong><strong>to</strong> parts def<strong>in</strong>ed by the programmer. By us<strong>in</strong>g these frames an easy <strong>to</strong> <strong>use</strong><br />

navigation bar was made available <strong>to</strong> the <strong>use</strong>r at all times, with the content requested<br />

be<strong>in</strong>g loaded <strong>in</strong><strong>to</strong> the ma<strong>in</strong> segment of the browser w<strong>in</strong>dow as shown <strong>in</strong> Figure 8.8.<br />

Although HTML frames allowed the GUI <strong>to</strong> be divided accord<strong>in</strong>gly onscreen for easy<br />

view<strong>in</strong>g, it was not the most efficient method as some of the content might not fit <strong>in</strong> the<br />

w<strong>in</strong>dow so scroll bars would be needed <strong>to</strong> view all. This although not a fatal flaw did<br />

take from the usability, and coupled with the fact that HTML frames were also not that<br />

efficient <strong>in</strong> terms of their usability, with some browsers not hav<strong>in</strong>g the ability <strong>to</strong> display<br />

them, the decision was taken <strong>to</strong> keep the version of the site but move on and try<br />

different approaches <strong>to</strong> layout.<br />

89


CHAPTER 8<br />

DESIGN<br />

Figure 8.8: Screenshot of Version 1 of Energyeye Software <strong>to</strong>ol, which <strong>use</strong>d HTML<br />

frame<br />

8.2.1.2 Version 2 – HTML “INCLUDES”<br />

The next design method exam<strong>in</strong>ed was HTML “<strong>in</strong>cludes”. This meant that <strong>in</strong>stead of<br />

load<strong>in</strong>g content <strong>in</strong><strong>to</strong> a frame as <strong>in</strong> the previous version, the file was <strong>in</strong>cluded <strong>in</strong> a parent<br />

file <strong>in</strong> the program itself. By do<strong>in</strong>g this, the file was loaded directly <strong>in</strong><strong>to</strong> the browser<br />

w<strong>in</strong>dow and appeared as the frames would have but without the associated browser<br />

support problems. The design is shown, as it would appear <strong>in</strong> the browser w<strong>in</strong>dow <strong>in</strong><br />

Figure 8.9. This method of screen display was perfectly usable and effective but did<br />

lack a little professionalism <strong>in</strong> its look so aga<strong>in</strong> the decision was taken <strong>to</strong> name it as<br />

Version 2 for data retrieval purposes and move on <strong>in</strong> the hope of f<strong>in</strong>d<strong>in</strong>g an even better<br />

solution.<br />

90


CHAPTER 8<br />

DESIGN<br />

Figure 8.9: Screenshot of Version 2 of Energyeye Software <strong>to</strong>ol, which <strong>use</strong>d HTML<br />

“<strong>in</strong>cludes”<br />

8.2.1.3 Version 3 – Macromedia STUDIO MX Site<br />

On do<strong>in</strong>g some research <strong>in</strong><strong>to</strong> web design and the techniques <strong>use</strong>d <strong>to</strong> design a<br />

professional look<strong>in</strong>g and functional web site, it was decided <strong>to</strong> <strong>in</strong>vest <strong>in</strong> some software<br />

<strong>to</strong> help <strong>in</strong> the design process. A package called Macromedia Studio MX [Macromedia,<br />

2003] was purchased which allowed the web designer <strong>to</strong> create very professional web<br />

sites while m<strong>in</strong>imis<strong>in</strong>g the code required as templates and other devices were available<br />

<strong>in</strong> the software. One of the <strong>to</strong>ols that came with it the StudioMX package was called<br />

Dreamweaver MX, which did a lot of the hard cod<strong>in</strong>g for the developer, allow<strong>in</strong>g<br />

him/her <strong>to</strong> concentrate more on the actual layout and design of the site. Us<strong>in</strong>g<br />

Dreamweaver MX a much more usable GUI was created which was able <strong>to</strong> l<strong>in</strong>k <strong>to</strong> the<br />

database us<strong>in</strong>g hand coded HTML and PHP. This form of pro<strong>to</strong>typ<strong>in</strong>g was necessary <strong>in</strong><br />

the design process <strong>to</strong> ensure that the GUI was designed effectively. In Dreamweaver<br />

MX HTML tables were <strong>use</strong>d <strong>to</strong> organise the look and feel of the site. These were a lot<br />

like frames and <strong>in</strong>cludes as they <strong>to</strong>o split the browser w<strong>in</strong>dow <strong>in</strong><strong>to</strong> areas that<br />

<strong>in</strong>formation could be displayed. They however were much more flexible than either of<br />

the previous methods and allowed a navigation panel and logo header <strong>to</strong> be added <strong>to</strong> the<br />

91


CHAPTER 8<br />

DESIGN<br />

GUI that rema<strong>in</strong>ed on each page of the site <strong>to</strong> serve as a <strong>to</strong>ol <strong>to</strong> aid navigation around it.<br />

Screenshots of the f<strong>in</strong>al design are shown <strong>in</strong> Figure 8.10 and Figure 8.11.<br />

Figure 8.10: Screenshot of F<strong>in</strong>al Site designed us<strong>in</strong>g Macromedia Studio MX<br />

Figure 8.11: Screenshot of Energyeye Site designed us<strong>in</strong>g Macromedia Studio MX<br />

92


CHAPTER 8<br />

DESIGN<br />

Now that the design of the GUI had been decided upon and fed with data stubs <strong>in</strong> order<br />

<strong>to</strong> f<strong>in</strong>alise the layout, the model layer was exam<strong>in</strong>ed <strong>in</strong> order <strong>to</strong> cont<strong>in</strong>ue the<br />

development process <strong>to</strong>wards us<strong>in</strong>g real data.<br />

8.3 MODEL LAYER - DATABASE DESIGN<br />

On exam<strong>in</strong><strong>in</strong>g the BEMS <strong>in</strong> the pro<strong>to</strong>type situation <strong>in</strong> the Mardyke Arena on campus, it<br />

was noticed that the data obta<strong>in</strong>ed from the sensors via the controllers could be output <strong>in</strong><br />

a Comma Separated Value (CSV) file. Note was also taken of the format of the output<br />

file, as this would shape the eventual form of the database tables that the data would<br />

reside <strong>in</strong> on upload <strong>to</strong> the MySQL database. This data would also need <strong>to</strong> be<br />

manipulated so that only the required data was uploaded <strong>to</strong> the database. Through the<br />

<strong>use</strong> of data normalisation as expla<strong>in</strong>ed <strong>in</strong> more detail <strong>in</strong> Section 5.8.3, the f<strong>in</strong>al form of<br />

the database tables was decided upon, with each sensor essentially hav<strong>in</strong>g its own<br />

database table, where just the raw recorded sensor data i.e. temperatures or relative<br />

humidity’s, were recorded. This data was however date stamped and set with an ID so<br />

as <strong>to</strong> label each data po<strong>in</strong>t <strong>in</strong>dividually.<br />

Table 8.2 shows the data obta<strong>in</strong>ed directly from the WN3000 ccReport <strong>to</strong>ol .The first<br />

draft of the database table “pool area temperature” was designed <strong>to</strong> co<strong>in</strong>cide with the<br />

head<strong>in</strong>gs <strong>in</strong> the CSV file obta<strong>in</strong>ed from the pool area sensor directly. But as only the<br />

actual temperatures were required, only this data was uploaded <strong>to</strong> the table, with the rest<br />

be<strong>in</strong>g disregarded. By do<strong>in</strong>g this, the data would go straight <strong>in</strong><strong>to</strong> the relevant table<br />

column on upload. Properties were also applied <strong>to</strong> the database columns based on the<br />

type of data that they would conta<strong>in</strong>. The column where the sensor data itself would<br />

reside was given a “float” which is a “real” number, property. This was a number with a<br />

def<strong>in</strong>ed amount of decimal places. By do<strong>in</strong>g this the size of the number recorded for<br />

both visual and s<strong>to</strong>rage capacity purposes was def<strong>in</strong>ed. The ID column, which would be<br />

<strong>use</strong>d <strong>to</strong> give each row of data a unique identifier so that later when SQL queries called<br />

the data, each row would be unique due <strong>to</strong> this column, allow<strong>in</strong>g the SQL <strong>to</strong> more easily<br />

pick certa<strong>in</strong> rows for analysis, was <strong>in</strong>cluded <strong>in</strong> each table <strong>in</strong> the database, so that data<br />

obta<strong>in</strong>ed at the same time would have the same ID identify<strong>in</strong>g it.<br />

93


CHAPTER 8<br />

DESIGN<br />

Ma<strong>in</strong> Controller<br />

loaded with<br />

Strategies<br />

Pool Controller l<strong>in</strong>ked<br />

<strong>to</strong> ma<strong>in</strong> Controller<br />

Seconds<br />

between<br />

read<strong>in</strong>gs i.e. 15<br />

m<strong>in</strong>utes<br />

Table 8.2: CSV file Output from BEMS [WN3000, 2003]<br />

UC24 - 004 - AHU<br />

<strong>UCC</strong>4 - 001 01 Pool AHU Pool Area Temperature 900 °C<br />

32976.9792 192 28.63 28.58 28.49<br />

Assum<strong>in</strong>g that for each sensor, a CSV file could be logged and retrieved as described<br />

earlier, a table was created <strong>in</strong> the MySQL database, named accord<strong>in</strong>g <strong>to</strong> the area<br />

moni<strong>to</strong>red, i.e. a table called “supply temp” would archive data from the supply<br />

temperature sensor. S<strong>in</strong>ce creat<strong>in</strong>g tables and various other operations carried out <strong>in</strong><br />

MySQL are now be<strong>in</strong>g discussed, the method <strong>use</strong>d will briefly be discussed, that be<strong>in</strong>g<br />

the DOS prompt dialog box. It was here that the command <strong>to</strong> be carried out was<br />

<strong>in</strong>serted, with MySQL <strong>in</strong>itiat<strong>in</strong>g it. For example the code necessary <strong>to</strong> show exist<strong>in</strong>g<br />

databases s<strong>to</strong>red <strong>in</strong> the MySQL database is listed <strong>in</strong> Figure 8.12 and takes the form of<br />

the MySQL <strong>in</strong>terface language SQL. Later more of this process would be au<strong>to</strong>mated<br />

us<strong>in</strong>g HTML l<strong>in</strong>ks <strong>in</strong> the GUI l<strong>in</strong>ked <strong>to</strong> server side PHP which would have the SQL<br />

queries embedded <strong>in</strong> it. For now this basic method would suffice. But <strong>in</strong> order <strong>to</strong> arrive<br />

at this more efficient solution the control layer was now looked at with a view <strong>to</strong> f<strong>in</strong>d<strong>in</strong>g<br />

an effective solution <strong>to</strong> the data manipulation and retrieval problems.<br />

Figure 8.12: Dos Prompt Dialog box <strong>use</strong>d <strong>to</strong> access MYSQL database<br />

94


CHAPTER 8<br />

DESIGN<br />

8.4 CONTROL LAYER – PHP<br />

The GUI had been designed and was ready <strong>to</strong> receive data and the database was up and<br />

runn<strong>in</strong>g <strong>in</strong> an efficient, if manual form. An au<strong>to</strong>matic method of access<strong>in</strong>g the data, and<br />

manipulat<strong>in</strong>g it <strong>in</strong><strong>to</strong> the format desired was exam<strong>in</strong>ed. This was achieved us<strong>in</strong>g the<br />

flexibility and language <strong>in</strong>tegration of PHP.<br />

8.4.1 Previous approach<br />

Normally, as mentioned <strong>in</strong> Section 8.2, the MySQL database was accessed us<strong>in</strong>g DOS<br />

and SQL queries. However once the result was obta<strong>in</strong>ed, it was not usable <strong>in</strong> any other<br />

programs but was just available <strong>to</strong> view. A way <strong>to</strong> access the data and output it <strong>to</strong> a web<br />

front-end, so that the <strong>use</strong>r could exam<strong>in</strong>e it anywhere on demand, was however the<br />

desired result. More complex operations on the data would also need <strong>to</strong> be performed so<br />

that the output was more streaml<strong>in</strong>ed <strong>to</strong> what the <strong>use</strong>r needed. PHP was able <strong>to</strong> do just<br />

this.<br />

8.4.2 PHP and MySQL<br />

PHP has built <strong>in</strong> functions for access<strong>in</strong>g a MySQL database. These functions allowed<br />

the <strong>use</strong>r <strong>to</strong> <strong>in</strong>put a <strong>use</strong>rname and password, so PHP and MySQL could determ<strong>in</strong>e if the<br />

<strong>use</strong>r had the required <strong>use</strong>r privileges <strong>to</strong> carry out the command required, access the<br />

database <strong>to</strong> retrieve data from it, and retrieve the <strong>in</strong>formation itself from the <strong>in</strong>dividual<br />

tables by means of SQL queries embedded <strong>in</strong> the script as <strong>in</strong> Table 8.3. This code<br />

snippet is <strong>in</strong> fact a function call <strong>to</strong> a “classes” file, which is the Object Oriented<br />

approach <strong>to</strong> programm<strong>in</strong>g. The actual PHP function that connects <strong>to</strong> the database is the<br />

“mysql_connect” function, which is shown <strong>in</strong> Table 8.4 <strong>in</strong> the way it appears <strong>in</strong> the<br />

“classes” file. It is these native PHP functions that allow a connection <strong>to</strong> the database <strong>to</strong><br />

be easily made.<br />

95


CHAPTER 8<br />

DESIGN<br />

Table 8.3: Code snippet of a PHP connection <strong>to</strong> a MYSQL database<br />

require("classes..php");<br />

This is an Object Oriented Programme so this file is<br />

where the query is outl<strong>in</strong>ed and the connection <strong>to</strong> the<br />

database made<br />

//<strong>in</strong>itiate connection<br />

$conn = new Connection;<br />

$conn->connect("mardyke_arena", "<strong>use</strong>r", "pass");<br />

Def<strong>in</strong>es the database <strong>to</strong> be connected<br />

along with a <strong>use</strong>rname and password<br />

//call the function from classes_new.php <strong>to</strong> display the monthly kwhr loads onscreen<br />

$display = new Display;<br />

$display->display_monthly_cool_load_data();<br />

This function outl<strong>in</strong>es the display<br />

parameters that the result array will<br />

undergo<br />

Table 8.4: Actual PHP <strong>to</strong> connect <strong>to</strong> database<br />

class Connection<br />

{<br />

function Connection()<br />

{<br />

return true;<br />

}<br />

function connect($dbname, $<strong>use</strong>r, $password)<br />

{<br />

mysql_connect("localhost", $<strong>use</strong>r, $password) or die(mysql_error());<br />

}<br />

}<br />

mysql_select_db($dbname) or die(mysql_error());<br />

Once obta<strong>in</strong>ed, this data could then be s<strong>to</strong>red <strong>in</strong> variables, <strong>to</strong> be output <strong>to</strong> the GUI <strong>in</strong> a<br />

browser w<strong>in</strong>dow us<strong>in</strong>g loops and other operations embedded <strong>in</strong> HTML <strong>in</strong> order <strong>to</strong><br />

display the results as required. An example of the code <strong>use</strong>d <strong>to</strong> do just this is given <strong>in</strong><br />

Table 8.5.<br />

96


CHAPTER 8<br />

DESIGN<br />

Table 8.5: Code snippet of the output process us<strong>in</strong>g embedded HTML<br />

$iTotal = 0;<br />

while( $l<strong>in</strong>e = mysql_fetch_array($result, MYSQL_NUM))<br />

{<br />

$iTotal +=$l<strong>in</strong>e[0];<br />

$Total_CO2=$iTotal*0.5;<br />

$Total_cost=$Total_CO2*100;<br />

Result array, which is now manipulated <strong>to</strong> get<br />

required fields<br />

}<br />

echo "\n";<br />

echo "\n MONTH\n";<br />

echo "\n".$iTotal."\n";<br />

echo "\n".$Total_CO2."\n";<br />

echo "\n".$Total_cost."\n";<br />

echo "\n";<br />

Embedded HTML, which is output us<strong>in</strong>g PHP.<br />

Variables s<strong>to</strong>re the f<strong>in</strong>al figures, which are<br />

displayed us<strong>in</strong>g the HTML tags, here a table<br />

$start=$start+$i;<br />

$i+=$i;<br />

}<br />

A loop is <strong>use</strong>d <strong>to</strong> do calculations on each set of<br />

results and then display them <strong>in</strong> turn<br />

echo"\n";<br />

The beauty of us<strong>in</strong>g PHP with embedded SQL queries <strong>to</strong> access the MySQL database<br />

was the fact that all the complicated mathematical operations <strong>to</strong> be done on the raw<br />

archived data could now take place <strong>in</strong> the server side code. This lead <strong>to</strong> a situation<br />

where the <strong>use</strong>r could access the database, pick the data wanted, multiply/divide or<br />

perform a complex mathematical operation on the data us<strong>in</strong>g the SQL query, then s<strong>to</strong>re<br />

the result <strong>in</strong> a variable for output <strong>to</strong> the GUI. All the hard work is done beh<strong>in</strong>d the<br />

scenes (server side), with the results alone displayed <strong>to</strong> the <strong>use</strong>r.<br />

It was now required <strong>to</strong> do analysis on the archived data <strong>in</strong> order <strong>to</strong> track <strong>energy</strong><br />

consumption and greenho<strong>use</strong> gas emissions us<strong>in</strong>g this process. Complex SQL queries<br />

were <strong>use</strong>d <strong>in</strong> order <strong>to</strong> both call the data, and perform mathematical operations on it. For<br />

example, <strong>to</strong> quantify the load on an afterheater over a predef<strong>in</strong>ed period, the post-unit<br />

temperature, pre-unit temperature, as well as the mass flow rate of air travell<strong>in</strong>g across<br />

the unit would have been needed from the database. This data would then be <strong>use</strong>d <strong>to</strong><br />

calculate the required loads us<strong>in</strong>g the mathematical equation shown <strong>in</strong> Equation 8.1, <strong>to</strong><br />

achieve the load on the unit. The results of this operation would aga<strong>in</strong> be s<strong>to</strong>red <strong>in</strong> an<br />

array, which would then be displayed by the browser the same way as before us<strong>in</strong>g<br />

embedded HTML with a complex SQL query like that <strong>in</strong> Table 8.6.<br />

97


CHAPTER 8<br />

DESIGN<br />

Equation 8.1: After heater Load Calculation<br />

Qhc<br />

.<br />

= ma*<br />

C *( T<br />

pma s<br />

− T )<br />

p<br />

Q<br />

hc<br />

= Afterheater Load (kW)<br />

m<br />

a<br />

= Mass Flow Rate of Air pass<strong>in</strong>g through the apparatus (kg/s)<br />

C<br />

pma<br />

= Specific Heat Capacity of Air (kJ/kgK)<br />

T s<br />

T p<br />

= Supply Temperature (C)<br />

= Pre-afterheater Temperature (C)<br />

Table 8.6: Complex SQL <strong>use</strong>d <strong>to</strong> calculate the load on the afterheater from<br />

Equation 8.1<br />

function calc_cool_load()<br />

{<br />

$query = "select (Mass_flow_rate*1.02*(post-unit_temp – pre_unit_temp)) from Massflowratetable, posttemptable and<br />

preunittempteable";<br />

$result = mysql_query($query) or die(mysql_error());<br />

}<br />

8.4.3 gbXML Report generation<br />

The last and most important area that required the functionality of PHP <strong>to</strong> operate was<br />

the output of gbXML reports. This language would <strong>in</strong> the future be the data transfer<br />

language <strong>use</strong>d <strong>to</strong> exchange build<strong>in</strong>g specific data once the build<strong>in</strong>g <strong>in</strong>dustry<br />

<strong>in</strong>corporates it <strong>in</strong><strong>to</strong> exist<strong>in</strong>g and develop<strong>in</strong>g software <strong>to</strong>ols. To do this the filesystem<br />

functionality of PHP was aga<strong>in</strong> <strong>use</strong>d. A blank file was created and opened each time a<br />

report was <strong>to</strong> be generated. The “tags”, which are the method of data identification <strong>use</strong>d<br />

<strong>in</strong> gbXML, were then written <strong>in</strong><strong>to</strong> this file <strong>in</strong> gbXML form by PHP us<strong>in</strong>g the “fwrite”<br />

file function. The tags were assigned <strong>to</strong> the data based on what they were describ<strong>in</strong>g <strong>in</strong><br />

agreement with the schema for gbXML as def<strong>in</strong>ed at gbXML.org. [gbXML Schema,<br />

2002]. For example, the results of a query <strong>to</strong> the database that returned supply<br />

98


CHAPTER 8<br />

DESIGN<br />

temperatures would have been placed between tags that identified the figures as the<br />

same. This can be seen more clearly <strong>in</strong> the code snippet <strong>in</strong> Table 8.7.<br />

Table 8.7: Code snippet of the process required <strong>to</strong> output gbXML us<strong>in</strong>g PHP<br />

filesystem functions<br />

$conn = new Connection;<br />

$conn->connect("mardyke_arena", "ken", "hatrick");<br />

$sql = "SELECT * FROM real_supply_temp where id


CHAPTER 8<br />

DESIGN<br />

Table 8.8: gbXML file as created us<strong>in</strong>g PHP and real BMS data obta<strong>in</strong>ed from<br />

WN3000<br />

<br />

<br />

<br />

<br />

91.70032<br />

<br />

<br />

0.330121152<br />

<br />

<br />

0.000330121152<br />

<br />

<br />

7.3360256<br />

<br />

<br />

<br />

Specific gbXML tags<br />

and attributes, which<br />

def<strong>in</strong>e the build<strong>in</strong>g<br />

specific data<br />

Actual value<br />

enclosed between<br />

gbXML tags, which<br />

give it mean<strong>in</strong>g<br />

8.4.3.1 Display<strong>in</strong>g XML reports - XML and XSL<br />

Once these reports have been transferred <strong>to</strong> the next <strong>use</strong>r for exam<strong>in</strong>ation, they could<br />

either directly <strong>use</strong> the XML pro<strong>to</strong>col <strong>in</strong> applications conta<strong>in</strong><strong>in</strong>g an XML import<br />

function, or exam<strong>in</strong>e the results <strong>in</strong> their basic XML form us<strong>in</strong>g another language, one<br />

specifically designed <strong>to</strong> display XML documents called the Extensible Stylesheet<br />

Language (XSL). XSL allows developers <strong>to</strong> format XML documents for World Wide<br />

Web view<strong>in</strong>g [Kim, 2001] and is a standard recommended by the World Wide Web<br />

Consortium. The first two parts of the language (XSLT and XPath) became a W3C<br />

Recommendation <strong>in</strong> November 1999 [W3SCHOOLS, 2003b,]. The full XSL<br />

Recommendation <strong>in</strong>clud<strong>in</strong>g XSL formatt<strong>in</strong>g became a W3C Recommendation <strong>in</strong><br />

Oc<strong>to</strong>ber 2001 [W3SCHOOLS, 2003b,]. XSLT is the most important part of the XSL<br />

Standard. It is the part of XSL that is <strong>use</strong>d <strong>to</strong> transform an XML document <strong>in</strong><strong>to</strong> another<br />

XML document, or another type of document that is recognized by a browser. A<br />

common way <strong>to</strong> describe the transformation process is <strong>to</strong> say that XSL <strong>use</strong>s XSLT <strong>to</strong><br />

transform an XML source tree <strong>in</strong><strong>to</strong> an XML result tree with the parts of the source<br />

document that do not match a template will end up unmodified <strong>in</strong> the result document<br />

[W3SCHOOLS, 2003b].<br />

100


CHAPTER 8<br />

DESIGN<br />

The <strong>use</strong> of XSL <strong>to</strong> transform the gbXML report generated <strong>in</strong> this package for <strong>use</strong> by the<br />

third party analyst will be returned <strong>to</strong> <strong>in</strong> Section 10.8.4 of this thesis, with a pro<strong>to</strong>type<br />

application described.<br />

Now that a way existed <strong>to</strong> free up the archived data for transfer over the World Wide<br />

Web, the next important issue that needed <strong>to</strong> be addressed was the security issue as the<br />

data was of a sensitive nature.<br />

8.5 SECUR<strong>IT</strong>Y - USER AUTHENTICATION<br />

Beca<strong>use</strong> of the nature of the archived data, some system of <strong>use</strong>r authentication needed<br />

<strong>to</strong> be put <strong>in</strong> place <strong>in</strong> order <strong>to</strong> filter the personnel that could view the <strong>in</strong>formation. This<br />

was especially important when the security issues that us<strong>in</strong>g the World Wide Web as a<br />

transmission media are considered. Http is a stateless pro<strong>to</strong>col, mean<strong>in</strong>g that it has no<br />

way of ma<strong>in</strong>ta<strong>in</strong><strong>in</strong>g state between two transactions. When a <strong>use</strong>r requests one page then<br />

moves on <strong>to</strong> another, HTTP does not have a way of track<strong>in</strong>g whether both requests<br />

came from the same <strong>use</strong>r [SSL, 2003]. This becomes a problem when <strong>use</strong>rs of sensitive<br />

<strong>in</strong>formation need <strong>to</strong> be tracked, maybe only allow<strong>in</strong>g certa<strong>in</strong> authorised people <strong>to</strong> view<br />

the data over a number of pages. Beca<strong>use</strong> HTTP is stateless, <strong>use</strong>rs cannot be tracked<br />

from page <strong>to</strong> page, so data <strong>in</strong> turn cannot be kept secure. A number of options were<br />

available <strong>in</strong> this area, and a brief description of each as well as the reasons that they<br />

were passed over or f<strong>in</strong>ally chosen follows.<br />

8.5.1 Session control<br />

The idea of session control [SAMSb, 2001] is the ability <strong>to</strong> track a <strong>use</strong>r’s movements <strong>in</strong><br />

a web site over a s<strong>in</strong>gle visit or session <strong>to</strong> the site. If this could be done a situation could<br />

easily be set up where a <strong>use</strong>r is logged <strong>in</strong> and allowed access <strong>to</strong> secure data based on<br />

his/her authorisation privileges. Sessions <strong>in</strong> PHP are driven us<strong>in</strong>g a unique session ID,<br />

a cryp<strong>to</strong>graphically random number. This session ID is generated by PHP and s<strong>to</strong>red on<br />

the clients side for the duration of their session <strong>in</strong> either a cookie, which is a small piece<br />

of <strong>in</strong>formation that scripts s<strong>to</strong>re on the <strong>use</strong>r’s mach<strong>in</strong>e or it is passed along through<br />

URL’s, the address bar of the site itself. Once the session ID is s<strong>to</strong>red and the sessions<br />

variables registered, the <strong>use</strong>r has access <strong>to</strong> the secure <strong>in</strong>formation.<br />

These cookies have some associated problems however. Some browsers do not allow<br />

cookies and some <strong>use</strong>rs may have disabled cookies as they do <strong>in</strong>volve hav<strong>in</strong>g foreign,<br />

uncontrollable <strong>in</strong>formation s<strong>to</strong>red on their mach<strong>in</strong>e. PHP <strong>use</strong>s cookies by default then<br />

101


CHAPTER 8<br />

DESIGN<br />

sends the session ID through the URL should cookies fail. It is for this reason and the<br />

fact that sessions are new <strong>to</strong> PHP and so have associated bugs that session control was<br />

passed over <strong>in</strong> favour of another approach.<br />

8.5.2 Secure Sockets Layer (SSL)<br />

The SSL suite was first developed by Netscape <strong>to</strong> facilitate secure communication<br />

between web servers and web browsers. It has s<strong>in</strong>ce been adopted as the standard way<br />

for browsers and servers <strong>to</strong> transfer sensitive <strong>in</strong>formation.<br />

Digital certificates encrypt data us<strong>in</strong>g Secure Sockets Layer (SSL) technology, the<br />

<strong>in</strong>dustry-standard method for protect<strong>in</strong>g web communications developed by Netscape<br />

Communications Corporation [Netscape SSL, 2003]. The SSL security pro<strong>to</strong>col<br />

provides data encryption, server authentication, message <strong>in</strong>tegrity, and optional client<br />

authentication for a TCP/IP connection. When a digital certificate is <strong>in</strong>stalled, the<br />

security is simply turned on by the browser or web server as they are pre-<strong>in</strong>stalled.<br />

SSL comes <strong>in</strong> two strengths, 40-bit and 128-bit, which refer <strong>to</strong> the length of the "session<br />

key" generated by every encrypted transaction. The longer the key, the more difficult it<br />

is <strong>to</strong> break the encryption code. Most browsers support 40-bit SSL sessions, and the<br />

latest browsers, <strong>in</strong>clud<strong>in</strong>g Netscape Communica<strong>to</strong>r 4.0, enable <strong>use</strong>rs <strong>to</strong> encrypt<br />

transactions <strong>in</strong> 128-bit sessions which is far more secure than the 40 bit system.<br />

Server certificates are designed <strong>to</strong> protect the site and visi<strong>to</strong>rs <strong>to</strong> it by <strong>in</strong>stall<strong>in</strong>g a digital<br />

certificate, which lets the <strong>use</strong>r:<br />

• Authenticate the site - A digital certificate on the server au<strong>to</strong>matically<br />

communicates the site's authenticity <strong>to</strong> the <strong>use</strong>rs web browser, confirm<strong>in</strong>g that<br />

the <strong>use</strong>r is actually communicat<strong>in</strong>g with the site, and not with a fraudulent site<br />

steal<strong>in</strong>g credit card numbers or personal <strong>in</strong>formation;<br />

• Keep private communications private - Digital certificates encrypt the data<br />

visi<strong>to</strong>rs that exchange with the site <strong>to</strong> keep it safe from <strong>in</strong>terception or tamper<strong>in</strong>g<br />

us<strong>in</strong>g SSL technology.<br />

SSL would be someth<strong>in</strong>g <strong>to</strong> exam<strong>in</strong>e <strong>in</strong> future, but for the present purposes of the<br />

package, it was <strong>to</strong>o expensive and over secure <strong>in</strong> relation <strong>to</strong> the data archived. It would<br />

however be the next logical step should the package grow <strong>in</strong> stature.<br />

102


CHAPTER 8<br />

DESIGN<br />

8.5.3 Password protection<br />

Password protection is the simplest form of <strong>use</strong>r authentication available <strong>to</strong> the<br />

adm<strong>in</strong>istra<strong>to</strong>r of any database/website. It <strong>in</strong>volves the registration of authorised <strong>use</strong>rs<br />

and the s<strong>to</strong>rage of passwords <strong>in</strong>dividual <strong>to</strong> each <strong>use</strong>r <strong>in</strong> a database table. A log<strong>in</strong> page is<br />

then utilised by the adm<strong>in</strong>istra<strong>to</strong>r <strong>to</strong> allow the client <strong>to</strong> <strong>in</strong>put their name and password,<br />

which <strong>in</strong> turn is checked aga<strong>in</strong>st the s<strong>to</strong>red authorised <strong>use</strong>rnames and passwords <strong>in</strong> the<br />

database table. If an exact match occurs then the client is allowed access <strong>to</strong> the secure<br />

pages.<br />

This format is not however 100% secure and could not be utilised on its own <strong>in</strong> order <strong>to</strong><br />

achieve a secure package. Beca<strong>use</strong> the Internet address bar is clearly visible <strong>to</strong> all <strong>in</strong> the<br />

browser w<strong>in</strong>dow, the “secure” pages could just be accessed by <strong>in</strong>putt<strong>in</strong>g the <strong>in</strong>dividual<br />

page addresses, thus bypass<strong>in</strong>g the log<strong>in</strong> page. This is where the previously mentioned<br />

idea of session control would have come <strong>in</strong>, track<strong>in</strong>g the <strong>use</strong>r from page <strong>to</strong> page so<br />

mak<strong>in</strong>g sure that a valid password/<strong>use</strong>rname comb<strong>in</strong>ation had been entered at the<br />

beg<strong>in</strong>n<strong>in</strong>g of the <strong>use</strong>rs session.<br />

8.5.4 Chosen option<br />

The option f<strong>in</strong>ally decided upon <strong>to</strong> ensure the security of the archived data, was a<br />

comb<strong>in</strong>ation of an <strong>in</strong>itial <strong>use</strong>rname/password form as <strong>in</strong> Figure 8.7, with encryption<br />

enabled lead<strong>in</strong>g, once verification is obta<strong>in</strong>ed, <strong>to</strong> a javascript pop up w<strong>in</strong>dow. This pop<br />

up w<strong>in</strong>dow was chosen beca<strong>use</strong> of the security issues that us<strong>in</strong>g the get/post method of<br />

password control allow<strong>in</strong>g <strong>use</strong>rs <strong>to</strong> view log <strong>in</strong> <strong>in</strong>formation <strong>in</strong> the address bar and also<br />

allow<strong>in</strong>g <strong>use</strong>rs <strong>to</strong> return <strong>to</strong> logged <strong>in</strong> pages by directly <strong>in</strong>putt<strong>in</strong>g the address of the<br />

“secure” page. By us<strong>in</strong>g the pop up w<strong>in</strong>dow, the <strong>use</strong>r is allowed <strong>to</strong> view the archived<br />

data only <strong>in</strong> the w<strong>in</strong>dow itself which has no address bar, so not allow<strong>in</strong>g a return visit <strong>to</strong><br />

the secure area without first be<strong>in</strong>g verified as a registered <strong>use</strong>r via the<br />

<strong>use</strong>rname/password form. This is shown <strong>in</strong> Figure 8.13 and Figure 8.14. Once the <strong>use</strong>r<br />

has f<strong>in</strong>ished view<strong>in</strong>g the secure data, they can log out of this area and return <strong>to</strong> the nonsecure<br />

area <strong>to</strong> cont<strong>in</strong>ue us<strong>in</strong>g the software environment.<br />

103


CHAPTER 8<br />

DESIGN<br />

Figure 8.13: Screenshot of log<strong>in</strong> page<br />

Figure 8.14: Screenshot of secure archive – notice the lack of address bar<br />

104


CHAPTER 8<br />

DESIGN<br />

8.6 SUMMARY<br />

The model, view, control method of software development is a method whereby the<br />

GUI is the driv<strong>in</strong>g force beh<strong>in</strong>d the development process. It is here that the process<br />

beg<strong>in</strong>s with static, pro<strong>to</strong>type data be<strong>in</strong>g employed <strong>to</strong> allow the GUI <strong>to</strong> be designed<br />

<strong>in</strong>itially. These portions of static data otherwise known as data stubs are removed<br />

progressively as the functionality of the <strong>to</strong>ol develops, and <strong>in</strong>teraction with the model<br />

layer via the control layer is facilitated and replaced with real data from the model layer.<br />

This process was <strong>use</strong>d <strong>to</strong> <strong>in</strong>itially design the GUI for this software environment, as <strong>use</strong>r<br />

<strong>in</strong>teraction was a prime concern <strong>in</strong> this project. Data stubs were <strong>use</strong>d and the design<br />

f<strong>in</strong>alised us<strong>in</strong>g Macromedia Studio MX software. This pro<strong>to</strong>typ<strong>in</strong>g was necessary <strong>to</strong><br />

ensure optimal design at this stage. The model layer was then developed so that the data<br />

was <strong>in</strong> the correct format <strong>to</strong> be accessed and manipulated us<strong>in</strong>g the control layer. This<br />

was cont<strong>in</strong>ued until the data stubs had been fully replaced with real data for one section<br />

of the GUI, leav<strong>in</strong>g one fully functional area of the software environment. Security was<br />

the next issue <strong>to</strong> be exam<strong>in</strong>ed, with a number of options available. Due <strong>to</strong> a number of<br />

reasons, <strong>in</strong>clud<strong>in</strong>g time constra<strong>in</strong>ts, the chosen option was of a low level but was<br />

functional for present purposes.<br />

With the design process now complete, the implementation phase of the project will be<br />

discussed <strong>in</strong> Chapter 9, with the specific code and techniques outl<strong>in</strong>ed <strong>in</strong> this chapter<br />

be<strong>in</strong>g put <strong>in</strong><strong>to</strong> practice expla<strong>in</strong>ed <strong>in</strong> more detail.<br />

105


CHAPTER 9<br />

IMPLEMENTATION<br />

IMPLEMENTATION<br />

9.1 BACKGROUND<br />

In order <strong>to</strong> fully understand the problems fac<strong>in</strong>g the development of this software<br />

environment and hence the solutions required, it was decided <strong>to</strong> <strong>use</strong> the Mardyke<br />

Arena [Mardyke, 2003] off campus leisure facility as described <strong>in</strong> Chapter 6 as a<br />

pro<strong>to</strong>type site. This newly constructed leisure facility, ten m<strong>in</strong>utes walk from the<br />

ma<strong>in</strong> campus was chosen, as it had the required sensor technology present and was<br />

already on the college computer network, so lessen<strong>in</strong>g any f<strong>in</strong>ancial overheads. Full<br />

access was also available as it was still a college facility even though; an outside<br />

company managed it. A review of the sensor technology and control mechanisms <strong>in</strong><br />

place <strong>in</strong> the Arena is now undertaken as a start<strong>in</strong>g po<strong>in</strong>t <strong>in</strong> the implementation<br />

process.<br />

9.2 MARDYKE ARENA HARDWARE S<strong>IT</strong>UATION<br />

The Mardyke Arena has a complicated array of sensor and control technology <strong>in</strong><br />

order for it <strong>to</strong> ma<strong>in</strong>ta<strong>in</strong> the correct environmental conditions throughout. Sensors are<br />

located at key areas of the facility <strong>in</strong> order <strong>to</strong> moni<strong>to</strong>r conditions with controllers<br />

uploaded with control strategies ensur<strong>in</strong>g that the design conditions are ma<strong>in</strong>ta<strong>in</strong>ed.<br />

Temperature and humidity sensors are <strong>use</strong>d and the <strong>in</strong>formation they collect is<br />

relayed back <strong>to</strong> a controller so that it can be compared aga<strong>in</strong>st set po<strong>in</strong>ts, so that<br />

action can be taken if they are outside the allowable ranges, with valves and<br />

dampers be<strong>in</strong>g under their supervision. All of these sensors are l<strong>in</strong>ked on a<br />

communications network by means of the Unitron system as <strong>in</strong> Figure 9.4<br />

[Appendix D].<br />

9.2.1 The Unitron system<br />

The Mardyke Arena is controlled via the Unitron network of communications and<br />

universal controllers [UN<strong>IT</strong>RON, 2003]. Measurements from sensors and switches are<br />

processed through these <strong>in</strong>telligent controllers, which then control output devices such<br />

as valves and dampers. The system is viewed through a “supervisor” or PC runn<strong>in</strong>g the<br />

appropriate build<strong>in</strong>g management software, which <strong>in</strong> the case of the Mardyke Arena is<br />

the WN3000 package. This software is <strong>use</strong>d <strong>to</strong> adjust control parameter.<br />

In order for the controllers <strong>to</strong> be able <strong>to</strong> share <strong>in</strong>formation about different locations<br />

<strong>in</strong> the Arena, they are networked <strong>to</strong>gether as <strong>in</strong> Figure 9.4. A <strong>UCC</strong>4<br />

communications controller is <strong>use</strong>d <strong>to</strong> do this and the supervisory PC then moni<strong>to</strong>rs<br />

this network.<br />

106


CHAPTER 9<br />

IMPLEMENTATION<br />

9.2.2 The Universal Communications Controller (<strong>UCC</strong>4)<br />

The <strong>UCC</strong>4 is so called beca<strong>use</strong> of its 4 different modes of communication as will be<br />

expla<strong>in</strong>ed <strong>in</strong> Section 9.2.4. The <strong>UCC</strong>4 allows for communication between up <strong>to</strong> 63<br />

universal controllers on its own sub network. It takes data received from the universal<br />

controllers and transmits it <strong>to</strong> other universal controllers over the RS485 sub network. It<br />

also performs alarms functions for all the controllers on its sub network as well as<br />

provid<strong>in</strong>g a real time clock for the sub network. It can also communicate with other<br />

<strong>UCC</strong>4’s via ARCnet, which allows for very rapid transmitt<strong>in</strong>g of data. However this is<br />

not needed <strong>in</strong> the Mardyke Arena as only one <strong>UCC</strong>4 is required <strong>to</strong> control the entire<br />

build<strong>in</strong>g as less than 63 universal controllers are utilised. The universal controllers <strong>use</strong>d<br />

on the <strong>UCC</strong>4 sub network are UC16’s. They are so called beca<strong>use</strong> of the number of<br />

<strong>in</strong>put and output po<strong>in</strong>ts on them. These po<strong>in</strong>ts can be def<strong>in</strong>ed as either digital or<br />

analogue. The Eng<strong>in</strong>eer<strong>in</strong>g <strong>to</strong>ol <strong>in</strong> the WN3000 software suite allows for the assignment<br />

of these <strong>in</strong>put/output parameters.<br />

9.2.3 WN3000 Software suite<br />

WN3000 is a w<strong>in</strong>dows based software suite <strong>use</strong>d <strong>to</strong> commission, moni<strong>to</strong>r and supervise<br />

the Unitron system of controllers. Alarms, datalogg<strong>in</strong>g and reports programs allow for<br />

the moni<strong>to</strong>r<strong>in</strong>g of the system, and eng<strong>in</strong>eer<strong>in</strong>g <strong>to</strong>ols and time schedules allow the<br />

programm<strong>in</strong>g of it. The Alarm program is <strong>use</strong>d <strong>to</strong> alert the <strong>use</strong>r of the system <strong>to</strong> any<br />

difficulties with<strong>in</strong> the plant, while the Datalog Manager is designed <strong>to</strong> allow the <strong>use</strong>r <strong>to</strong><br />

analyse data obta<strong>in</strong>ed from the controllers. The Eng<strong>in</strong>eer<strong>in</strong>g Tool application is <strong>use</strong>d <strong>to</strong><br />

program the Unitron controllers and therefore is the key application of the WN3000<br />

software suite. Strategies are created graphically as illustrated <strong>in</strong> Figure 9.1 <strong>to</strong><br />

implement the control decisions made by the contracted eng<strong>in</strong>eer. These strategies when<br />

created are downloaded <strong>to</strong> the controller, so that they can take any control decision.<br />

107


CHAPTER 9<br />

IMPLEMENTATION<br />

Figure 9.1: Screenshot of WN3000 show<strong>in</strong>g Control Strategies Set-up [WN3000,<br />

9.2.4 Controller networks<br />

2003]<br />

The Unitron system has four ma<strong>in</strong> controller network types; Standalone,<br />

Subnetwork, ARCnet, and Ethernet. The Standalone system comprises of just one<br />

controller, which can be accessed via a keypad or via a modem and a remote PC<br />

with WN3000 software. It would typically be <strong>use</strong>d for boiler or AHU control <strong>in</strong> a<br />

small office or school.<br />

ARCnet is <strong>use</strong>d for communication between <strong>UCC</strong>4’s, which are <strong>in</strong>stalled with an<br />

ARCnet card, and then three different media exist <strong>to</strong> connect <strong>to</strong> them; Coax, Twisted<br />

pair, and Fiber, with different configuration required by the <strong>UCC</strong>4 for each media.<br />

In the Mardyke Arena the other two network types were of much more importance.<br />

Firstly the Subnetwork, which meant that one <strong>UCC</strong>4 could have 63 universal controllers<br />

under its supervision and more importantly aga<strong>in</strong> the Ethernet connection, which<br />

allowed the Unitron system <strong>to</strong> be accessed via a TCP/IP network by us<strong>in</strong>g a Term<strong>in</strong>al<br />

server. This Term<strong>in</strong>al Server had the ability <strong>to</strong> convert a serial signal <strong>to</strong> TCP/IP,<br />

allow<strong>in</strong>g access <strong>to</strong> the data collected by the controllers via the Ethernet based University<br />

network already <strong>in</strong> place. The Lantronix UDS10 term<strong>in</strong>al server was purchased as the<br />

term<strong>in</strong>al server <strong>to</strong> be <strong>use</strong>d <strong>in</strong> this project as shown <strong>in</strong> Figure 9.2 (LANTRONIX, 2003),<br />

108


CHAPTER 9<br />

IMPLEMENTATION<br />

which connected directly <strong>to</strong> the <strong>UCC</strong>4. This allowed remote access <strong>to</strong> any data collected<br />

by the controllers <strong>in</strong> the Arena through a PC located on campus <strong>in</strong>stalled with the<br />

WN3000 software suite.<br />

A new communications pro<strong>to</strong>col has recently been developed which would serve <strong>to</strong><br />

improve functionality <strong>in</strong> the com<strong>in</strong>g years even further, that be<strong>in</strong>g the BACnet<br />

communication pro<strong>to</strong>col [BACnet, 2003].<br />

Figure 9.2: Lantronix UDS 10 Term<strong>in</strong>al Server [LANTRONIX, 2003]<br />

Figure 9.3: Lan<strong>to</strong>nix UDS 10 as connected <strong>to</strong> Controller <strong>in</strong> Mardyke Arena<br />

109


CHAPTER 9<br />

IMPLEMENTATION<br />

9.2.5 BACnet<br />

Over the last five years the competi<strong>to</strong>rs <strong>in</strong> the build<strong>in</strong>g control pro<strong>to</strong>col field have been<br />

narrowed down <strong>to</strong> two; BACnet and LonWorks. LonWorks works on the pr<strong>in</strong>cipal of<br />

the output from one device be<strong>in</strong>g the <strong>in</strong>put <strong>to</strong> the next, whereas BACnet is based on a<br />

number of software objects simulat<strong>in</strong>g real world items like boilers and fans. BACnet is<br />

a data communication pro<strong>to</strong>col for Build<strong>in</strong>g Au<strong>to</strong>mation and Control Networks<br />

developed by the American Society of Heat<strong>in</strong>g, Refrigerat<strong>in</strong>g and Air-Condition<strong>in</strong>g<br />

Eng<strong>in</strong>eers (ASHRAE) [BACnet, 2003]. BACnet is a non-proprietary, open pro<strong>to</strong>col<br />

communication American national standard, European pre-standard, and an ISO global<br />

standard with the <strong>in</strong>tegratability of the TCP/IP network [BACnet, 2003]. BACnet/IP is<br />

now the most common comb<strong>in</strong>ation of technologies found <strong>in</strong> the build<strong>in</strong>g control sec<strong>to</strong>r<br />

[CIBSE, 2003b], and through the <strong>use</strong> of the TCP/IP network <strong>in</strong> this project, it is a<br />

feasible option <strong>in</strong> the future of this project <strong>to</strong> add even more <strong>to</strong> the <strong>in</strong>teroperability of<br />

the software package.<br />

The next step <strong>in</strong> the implementation of this project was <strong>to</strong> look at the other end of the<br />

communication setup, that be<strong>in</strong>g the university end where the data was <strong>to</strong> be ho<strong>use</strong>d on<br />

a new supervisory PC with the WN3000 software suite <strong>in</strong>stalled on it.<br />

9.3 UNIVERS<strong>IT</strong>Y SERVER<br />

In order <strong>to</strong> view the data translated by the Lantronix UDS 10, as shown <strong>in</strong> Figure 9.2<br />

and <strong>in</strong> <strong>use</strong> <strong>in</strong> the Mardyke Arena <strong>in</strong> Figure 9.3, the BMS software <strong>use</strong>d <strong>in</strong> the Mardyke<br />

Arena needed <strong>to</strong> be <strong>in</strong>stalled on the IRUSE University server. This WN3000 software<br />

was owned and created by CYLON Controls ltd. (CYLON CONTROLS Ltd, 2003),<br />

one of the University’s research project affiliates. It was obta<strong>in</strong>ed and with the help of<br />

their technical support team <strong>in</strong>stalled. The first step was now <strong>to</strong> <strong>in</strong>itiate a connection<br />

with the term<strong>in</strong>al server <strong>in</strong> the Mardyke Arena.<br />

9.3.1 Initiat<strong>in</strong>g a connection<br />

In order <strong>to</strong> communicate with the controllers <strong>in</strong> the Mardyke Arena, a live data po<strong>in</strong>t<br />

was needed for the UDS 10 <strong>to</strong> connect <strong>to</strong>, <strong>to</strong> allow communication with it. A data po<strong>in</strong>t<br />

was located <strong>in</strong> the vic<strong>in</strong>ity of the <strong>UCC</strong>4 and UDS 10, and on mak<strong>in</strong>g it live was<br />

connected <strong>to</strong> the hardware us<strong>in</strong>g an RJ 45 Ethernet cable. The UDS 10 had three ports<br />

as can been seen <strong>in</strong> Figure 9.2. One connected <strong>to</strong> the data po<strong>in</strong>t via the RJ 45 Ethernet<br />

cable as just mentioned, one connected <strong>to</strong> the <strong>UCC</strong>4 via an RS 232 cable with the last<br />

110


CHAPTER 9<br />

IMPLEMENTATION<br />

be<strong>in</strong>g a power connection. This now meant that the controller was fully accessible from<br />

the PC on campus via the college network, and hence the Ethernet, with the overall<br />

hardware situation <strong>in</strong> the Mardyke Arena be<strong>in</strong>g shown <strong>in</strong> Figure 9.4.<br />

Once everyth<strong>in</strong>g was <strong>in</strong> place on the server, BEMS software was accessed, where the<br />

data received could now be viewed. With the WN3000 software package, came a<br />

number of different <strong>to</strong>ols for alter<strong>in</strong>g control strategies and download<strong>in</strong>g them <strong>to</strong> the<br />

controllers as well as view<strong>in</strong>g the collected data. However the <strong>to</strong>ol that was most<br />

<strong>in</strong>terest<strong>in</strong>g and beneficial for this project was called ccReport, which will be described<br />

<strong>in</strong> more detail <strong>in</strong> a subsequent section.<br />

111


CHAPTER 9<br />

IMPLEMENTATION<br />

Sensor 1 Sensor 2<br />

Sensor 3 Sensor 4<br />

UC16<br />

UC16<br />

<strong>UCC</strong> 4<br />

UDS 10<br />

Data transferred over college network us<strong>in</strong>g TCP/IP<br />

PC with WN3000<br />

BMS software logs data us<strong>in</strong>g ccReport<br />

CSV file<br />

MS Scheduler runs PHP script which<br />

uploads data from CSV file <strong>to</strong> MySQL Database us<strong>in</strong>g embedded SQL<br />

MYSQL<br />

DATABASE<br />

PHP <strong>use</strong>d with embedded complex SQL queries <strong>to</strong> fetch data from MySQL database<br />

and return it <strong>to</strong> a web rowser for view<strong>in</strong>g<br />

Figure 9.4: Mardyke Arena Hardware Flow Diagram<br />

9.3.2 Proposed data flow situation<br />

ccReport was a data logg<strong>in</strong>g <strong>to</strong>ol, that had the facility <strong>to</strong> log data obta<strong>in</strong>ed from any<br />

sensor via its controller, the set up of which can be seen <strong>in</strong> Figure 9.5. ccReport allowed<br />

its <strong>use</strong>r <strong>to</strong> pick which data po<strong>in</strong>ts were <strong>to</strong> be logged. This data would then be<br />

downloaded from the controller on a schedule set by the <strong>use</strong>r, and saved <strong>in</strong> CSV format<br />

on<strong>to</strong> the hard drive of their server. A different CSV file would be created for each data<br />

po<strong>in</strong>t logged by ccReport. With this facility <strong>in</strong> place the process could now be<br />

112


CHAPTER 9<br />

IMPLEMENTATION<br />

au<strong>to</strong>mated, with a view <strong>to</strong> then tak<strong>in</strong>g it <strong>to</strong> the next step, and most important for this<br />

project, the archiv<strong>in</strong>g process us<strong>in</strong>g MS Schedular <strong>in</strong> conjunction with a PHP script<br />

us<strong>in</strong>g SQL commands. This process is covered <strong>in</strong> more detail <strong>in</strong> the next section, which<br />

outl<strong>in</strong>es the software <strong>to</strong>ol <strong>in</strong> <strong>use</strong> and the techniques <strong>use</strong>d <strong>in</strong> each process.<br />

Figure 9.5: Screenshot of ccReport sensor choice screen<br />

9.4 WORKING APPLICATION<br />

Once the BMS software had been <strong>in</strong>stalled on the server, the sensor data <strong>in</strong> the Mardyke<br />

Arena could now be accessed. This meant the schematics of the AHU’s that were <strong>in</strong> the<br />

Arena along with the relevant data obta<strong>in</strong>ed from each, could now be viewed. The<br />

control strategies, i.e. the control methods <strong>use</strong>d <strong>to</strong> control the environmental conditions,<br />

<strong>in</strong> <strong>use</strong> <strong>in</strong> the Arena could also be viewed and <strong>use</strong>d <strong>in</strong> order <strong>to</strong> better understand the<br />

runn<strong>in</strong>g of the facility. They were also studied <strong>in</strong> order <strong>to</strong> better assess which areas<br />

needed <strong>to</strong> be foc<strong>use</strong>d on <strong>in</strong> this project. A situation now existed where a remote BEMS<br />

could be <strong>use</strong>d, if the <strong>use</strong>r so wished, <strong>to</strong> alter any control strategies <strong>in</strong> the Arena by<br />

download<strong>in</strong>g new ones <strong>to</strong> the controller via the network through the UDS-10. This was<br />

113


CHAPTER 9<br />

IMPLEMENTATION<br />

not however with<strong>in</strong> the scope of this project Attention now switched <strong>to</strong> one subprogram<br />

<strong>in</strong> the WN3000 software suite, that be<strong>in</strong>g ccReport.<br />

9.4.1 Introduc<strong>in</strong>g ccreport<br />

ccReport was a program that allowed the <strong>use</strong>r of the BEMS <strong>to</strong> view every po<strong>in</strong>t on the<br />

control network that could be data-logged. It was based on a tree structure whereby on<br />

access<strong>in</strong>g a <strong>UCC</strong>4, each UC16 under its supervision could be viewed along with each<br />

associated sensor controlled. Next <strong>to</strong> each sensor displayed by ccReport there was a<br />

checkbox that once checked meant that, that particular sensor would now be data logged<br />

over a 48 hour period (as <strong>in</strong> Figure 9.5) that was determ<strong>in</strong>ed by the <strong>use</strong>r <strong>to</strong> start at any<br />

time of their convenience. This 48-hour period, be<strong>in</strong>g the maximum logg<strong>in</strong>g capacity of<br />

the <strong>UCC</strong>4’s memory.<br />

9.4.1.1 Datalogg<strong>in</strong>g process<br />

In order <strong>to</strong> determ<strong>in</strong>e which data po<strong>in</strong>ts were needed <strong>in</strong> order <strong>to</strong> calculate the load on<br />

any piece of equipment a performance metric analysis needed <strong>to</strong> be undertaken <strong>in</strong><br />

which, it was required <strong>to</strong> understand the process performed by that that piece of<br />

equipment. It was decided <strong>to</strong> concentrate on one AHU, the pool AHU, <strong>in</strong> the Mardyke<br />

Arena, as it was the most <strong>energy</strong> <strong>in</strong>tensive. Figure 9.6 illustrates AHU 1 <strong>in</strong> the Arena as<br />

shown by WN3000.<br />

Figure 9.6: Screenshot of AHU 1 as shown by WN3000<br />

114


CHAPTER 9<br />

IMPLEMENTATION<br />

As can be seen from Figure 9.6 and more basically with annotations <strong>in</strong> Figure 9.7, the<br />

outside air is passed through a heat exchanger and then an after heater <strong>in</strong> order for its<br />

temperature <strong>to</strong> be raised <strong>to</strong> the required supply temperature. In the plate heat exchanger<br />

the warm return air from the pool area and the cool outside air are separated by th<strong>in</strong><br />

plates and pass each other <strong>in</strong> cross-flow, thereby allow<strong>in</strong>g <strong>energy</strong> <strong>to</strong> be transferred <strong>to</strong> the<br />

outside air from the warm return air by way of conduction and convection [Hoval,<br />

2003]. On exit from the heat exchanger the supply air receives its f<strong>in</strong>al <strong>energy</strong> boost<br />

from the afterheater supplied by two boilers controlled by a 3-way mix<strong>in</strong>g valve. If the<br />

condition of the air, as well as its mass flow rate could be determ<strong>in</strong>ed before and after<br />

the apparatus, the <strong>energy</strong> supplied by the <strong>in</strong>dividual pieces of apparatus could be<br />

determ<strong>in</strong>ed us<strong>in</strong>g an <strong>energy</strong> balance as outl<strong>in</strong>ed <strong>in</strong> Equation 9.1 for the afterheater, and<br />

<strong>in</strong> Equation 9.2 for the heat exchanger.<br />

Outside Air<br />

(To)<br />

Return Air (Tr)<br />

HEAT<br />

EXCHANGER<br />

AFTER<br />

HEATER<br />

Exhaust Air<br />

(Te)<br />

Pre<br />

Afterheater<br />

Air (Tp)<br />

Supply Air<br />

(Ts)<br />

Conditioned Space<br />

(Tspace)<br />

Figure 9.7: Flow of air through AHU 1<br />

Equation 9.1: After heater Load Calculation<br />

Q ah<br />

.<br />

= ma*<br />

C *( T<br />

pma s<br />

− T )<br />

p<br />

Q<br />

ah<br />

= Afterheater Load (kW)<br />

ṁ a<br />

= Mass Flow Rate of Air pass<strong>in</strong>g through the apparatus (kg/s)<br />

C<br />

pma<br />

= Specific Heat Capacity of Air (kJ/kgK)<br />

T s<br />

T p<br />

= Supply Temperature (C)<br />

= Pre-afterheater Temperature (C)<br />

115


CHAPTER 9<br />

IMPLEMENTATION<br />

Equation 9.2: Heat Exchanger Load Calculation<br />

Q<br />

He<br />

.<br />

= ma*<br />

C *( T<br />

pma p<br />

− T )<br />

o<br />

Q<br />

He<br />

= Heat Exchanger Load (kW)<br />

.<br />

ma<br />

= Mass Flow Rate of Air pass<strong>in</strong>g through the apparatus (kg/s)<br />

C<br />

pma<br />

= Specific Heat Capacity of Air (kJ/kg.K)<br />

T<br />

o<br />

T<br />

p<br />

= Outside Temperature (C)<br />

= Pre afterheater Temperature (C)<br />

9.4.1.2 Actual load calculation procedure<br />

Afterheater load calculation<br />

However, on further <strong>in</strong>spection of the system, it became evident that the pre-after heater<br />

temperature was not moni<strong>to</strong>red by a sensor, so could not be obta<strong>in</strong>ed by us<strong>in</strong>g the<br />

ccReport <strong>to</strong>ol. This meant that Equations 9.1 and 9.2 could not be <strong>use</strong>d <strong>to</strong> determ<strong>in</strong>e the<br />

loads on the <strong>in</strong>dividual pieces of apparatus unless this value could be obta<strong>in</strong>ed. The post<br />

after-heater temperature <strong>in</strong> the form of the supply temperature was however moni<strong>to</strong>red<br />

along with the mass flow rate of air pass<strong>in</strong>g through the unit, mean<strong>in</strong>g that the preafterheater<br />

temperature alone was miss<strong>in</strong>g from Equation 9.1.<br />

The pre afterheater temperature could however be obta<strong>in</strong>ed by undertak<strong>in</strong>g the<br />

follow<strong>in</strong>g steps:<br />

1) Obta<strong>in</strong><strong>in</strong>g the design load on the afterheater from the manufacturers, which<br />

resulted <strong>in</strong> 197 kW [Masterair, 2003];<br />

2) Us<strong>in</strong>g ccReport <strong>to</strong> obta<strong>in</strong> the outside temperature at any 15 m<strong>in</strong>ute <strong>in</strong>stant;<br />

3) Us<strong>in</strong>g the fact that the ratio of the design temperature differences <strong>to</strong> the part load<br />

temperature differences, which is where the derivation of Equation 9.3 beg<strong>in</strong>s, it<br />

was possible <strong>to</strong> f<strong>in</strong>d the load on the unit at any 15 m<strong>in</strong>ute <strong>in</strong>terval. The equation<br />

<strong>use</strong>d <strong>to</strong> do just this is shown <strong>in</strong> Equation 9.3.<br />

116


CHAPTER 9<br />

IMPLEMENTATION<br />

Q<br />

design<br />

Q<br />

PL<br />

= UA(<br />

T<br />

design − space<br />

− T<br />

)<br />

design − outside<br />

= UA(<br />

T<br />

T<br />

)<br />

PL − space − PL − outside<br />

Re-arrang<strong>in</strong>g:<br />

Equation 9.3<br />

Q<br />

PL<br />

T − T<br />

PL − space PL − outside<br />

=<br />

T<br />

− T<br />

design − space design − outside<br />

*197<br />

Where<br />

Q = Design fabric losses from the space (kW) = 197kW<br />

design<br />

Q PL<br />

= Part Load fabric losses from the space (kW)<br />

UA<br />

T<br />

design −<br />

space<br />

= Fabric characteristics<br />

= Temperature ma<strong>in</strong>ta<strong>in</strong>ed <strong>in</strong> the space at design conditions(C)<br />

T<br />

PL −<br />

T<br />

PL<br />

T<br />

design<br />

space<br />

− outside<br />

− outside<br />

= Temperature ma<strong>in</strong>ta<strong>in</strong>ed <strong>in</strong> the space at part load conditions(C)<br />

= Temperature outside part load conditions (C)<br />

= Design outside Temperature (C)<br />

197 = The Maximum load that the after heater was sized for at design conditions (kW)<br />

Heat exchanger load calculation<br />

Now that the load on the after heater had been established, the earlier problem <strong>in</strong> f<strong>in</strong>d<strong>in</strong>g<br />

the pre-after heater temperature was turned <strong>to</strong> <strong>in</strong> order <strong>to</strong> quantify the actual load on the<br />

heat exchanger.<br />

Aga<strong>in</strong>, us<strong>in</strong>g the first law of thermodynamics, the after heater was further <strong>in</strong>spected <strong>in</strong><br />

terms of <strong>energy</strong> <strong>in</strong>puts and outputs <strong>to</strong> and from it, this imply<strong>in</strong>g an <strong>energy</strong> balance, with<br />

117


CHAPTER 9<br />

IMPLEMENTATION<br />

the aim be<strong>in</strong>g the determ<strong>in</strong>ation of the pre-unit temperature. The <strong>in</strong>puts <strong>to</strong> the unit were<br />

the air that passed over it via the ducts and the water that serviced it via the boiler loop,<br />

with the outputs be<strong>in</strong>g their respective end po<strong>in</strong>ts of the same systems. Equation 9.4<br />

illustrates this balance:<br />

∑<br />

∑<br />

Energy _ <strong>in</strong>puts = Energy _ ouputs<br />

.<br />

∑ miC<br />

piTi<br />

= ∑ m o C<br />

poTo<br />

.<br />

where<br />

.<br />

mi<br />

= Mass Flow rates <strong>in</strong>put <strong>to</strong> the afterheater (kg/s)<br />

C = Specific heat capacities <strong>in</strong>put <strong>to</strong> the afterheater ((C)<br />

pi<br />

T = Temperatures <strong>in</strong>put <strong>to</strong> the afterheater (C)<br />

i<br />

.<br />

mo<br />

= Mass Flow rates output <strong>to</strong> the afterheater (kg/s)<br />

C = Specific heat capacities output <strong>to</strong> the afterheater ((C)<br />

po<br />

T = Temperatures output <strong>to</strong> the afterheater (C)<br />

o<br />

Expand<strong>in</strong>g gives:<br />

.<br />

m<br />

C T<br />

a pa p<br />

.<br />

+ m<br />

C T<br />

w pa f<br />

.<br />

= m<br />

Equation 9.4<br />

C T<br />

a pa s<br />

.<br />

+ m<br />

C T<br />

w pw r<br />

.<br />

ma<br />

= The Mass Flow rate of the air pass<strong>in</strong>g through the unit (kg/s)<br />

C = The Specific Heat Capacity of the air pass<strong>in</strong>g through the unit (kJ/C) = 1.2kJ/kgK<br />

pa<br />

.<br />

mw<br />

= The Mass Flow rate of the water servic<strong>in</strong>g the unit via the boilers (kg/s)<br />

C = The Specific Heat Capacity of the water servic<strong>in</strong>g the unit (kJ/kgK) = 4.2 kJ/C<br />

pw<br />

118


CHAPTER 9<br />

IMPLEMENTATION<br />

T = The Temperature of the Air pre-afterheater (C)<br />

P<br />

T = The Flow Temperature of the water from the boiler (C)<br />

f<br />

T = The Temperature of the Air pre-afterheater (C)<br />

s<br />

T = The Flow Temperature of the water from the boiler (C)<br />

r<br />

Rearrang<strong>in</strong>g this equation as <strong>in</strong> Equation 9.5 yields a result for the pre-after-heater<br />

temperature as long as the temperature differential between the boiler flow and return<br />

temperatures can be obta<strong>in</strong>ed as these were not moni<strong>to</strong>red for this apparatus <strong>in</strong>dividually<br />

as can be seen <strong>in</strong> Figure 9.8 which is a screenshot from the WN3000 Software suite.<br />

This meant that it had <strong>to</strong> be done us<strong>in</strong>g the fact that the load on the after-heater could be<br />

determ<strong>in</strong>ed by allow<strong>in</strong>g the <strong>use</strong> of the water side of the system <strong>to</strong> calculate a load and<br />

hence through re-arrang<strong>in</strong>g <strong>to</strong> calculate the temperature differential if the load was<br />

already known, as is illustrated <strong>in</strong> Equations 9.6 and 9.7:<br />

Boiler Return water<br />

jo<strong>in</strong>s <strong>to</strong>gether from all<br />

apparatus so is mot<br />

uniquely measurable<br />

Figure 9.8: Boiler Flow and Return Situation <strong>in</strong> Mardyke Arena [WN3000, 2003]<br />

119


CHAPTER 9<br />

IMPLEMENTATION<br />

Equation 9.5<br />

mw C<br />

pw<br />

= T −<br />

⎛<br />

⎜T<br />

s<br />

⎝ f<br />

ma C<br />

pa<br />

T p .<br />

.<br />

− T<br />

r<br />

⎞<br />

⎟<br />

⎠<br />

Equation 9.6<br />

Q<br />

hc<br />

.<br />

=<br />

⎛<br />

mw C ⎜T<br />

pw⎝<br />

f<br />

− T<br />

r<br />

⎞<br />

⎟<br />

⎠<br />

Re-arrang<strong>in</strong>g;<br />

Equation 9.7<br />

T<br />

f<br />

− T<br />

r<br />

= Q hc<br />

.<br />

mw C<br />

pw<br />

Where<br />

Q hc = Load on the After Heater (kW)<br />

.<br />

mw = The Mass Flow rate of the water servic<strong>in</strong>g the afterheater via the boilers (kg/s)<br />

C = The Specific Heat Capacity of the water servic<strong>in</strong>g the afterheater (kJ/kgK)<br />

pw<br />

T<br />

f<br />

T<br />

s<br />

= The Flow Temperature of the water from the boiler (C)<br />

= The Temperature of the Air pre-afterheater (C)<br />

Once Equations 9.3, 9.7, and 9.5 have been <strong>use</strong>d <strong>to</strong> calculate the pre-afterheater<br />

temperature, this value is then substituted <strong>in</strong><strong>to</strong> Equation 9.2 <strong>to</strong> calculate the load on the<br />

heat exchanger.<br />

120


CHAPTER 9<br />

IMPLEMENTATION<br />

However on <strong>in</strong>spection of the returned results for the pre afterheater temperature (Tp),<br />

they did not match those expected us<strong>in</strong>g Equation 9.14, lead<strong>in</strong>g <strong>to</strong> the assumption that<br />

the maximum load that the afterheater was capable of impart<strong>in</strong>g on the air <strong>in</strong> the system<br />

was actually greater that the specifications had outl<strong>in</strong>ed [Masterair, 2003b].<br />

It was decided <strong>to</strong> perform the follow<strong>in</strong>g analysis <strong>to</strong> determ<strong>in</strong>e a realistic value for the<br />

max load on the afterheater us<strong>in</strong>g the values obta<strong>in</strong>ed from the ccReport <strong>to</strong>ol:<br />

1) A Microsoft Excel spreadsheet was filled with real data obta<strong>in</strong>ed from the<br />

WN3000 ccReport <strong>to</strong>ol, as Table 9.1 shows;<br />

2) This real time data was then <strong>use</strong>d <strong>to</strong> calculate the percentage error <strong>in</strong> the pre<br />

afterheater temperature (Tp <strong>in</strong> Table 9.1) when it was calculated us<strong>in</strong>g the<br />

afterheater max load (Q AH <strong>in</strong> Table 9.1) versus that expected from Equation<br />

9.14 (Tp2 <strong>in</strong> Table 9.1). The maximum load on the afterheater was varied <strong>to</strong><br />

obta<strong>in</strong> the result which yielded the lowest percentage errors (% Error <strong>in</strong> Table<br />

9.1) over the dataset which was between the values of –1 and 11 degrees outside<br />

temperature (Tout <strong>in</strong> Table 9.1).<br />

This lead <strong>to</strong> the conclusion that the actual afterheater <strong>in</strong> place <strong>in</strong> the Mardyke had the<br />

capability of impart<strong>in</strong>g approximately 270 kW of <strong>energy</strong> <strong>to</strong> the <strong>in</strong>com<strong>in</strong>g air as this<br />

yielded six percentage errors less than 25 percent, which was the best over the range of<br />

values exam<strong>in</strong>ed (as shown <strong>in</strong> Table 9.1). The three highest pre coil temperatures also<br />

had percentage errors of less than 70 percent, these be<strong>in</strong>g so high due <strong>to</strong> the extreme<br />

nature of both the outside temperatures and the supply temperatures and the fact that the<br />

step control <strong>in</strong> the facility as will be discussed later <strong>in</strong> this section, was not reactive<br />

enough and so yielded <strong>in</strong>accurate results at the extreme end of the supply temperature<br />

scale. This new maximum load of 270W would then be <strong>use</strong>d <strong>in</strong> Equation 9.3 and hence<br />

<strong>in</strong> the calculation equations for both the actual loads on the afterheater and the heat<br />

exchanger at any moment <strong>in</strong> time.<br />

However the percentage errors that this <strong>in</strong>spection of the system yielded were not<br />

satisfac<strong>to</strong>ry as they were <strong>to</strong>o high <strong>in</strong> <strong>general</strong> as they were greater than the allowable<br />

error fac<strong>to</strong>r of 5% with this be<strong>in</strong>g + or – 0.8 C on the pre afterheater value obta<strong>in</strong>ed with<br />

respect <strong>to</strong> that arrived at from Equation 9.14. The reason for such a high error<br />

percentage was that the control situation <strong>in</strong> existence <strong>in</strong> the Mardyke Arena was of an<br />

121


CHAPTER 9<br />

IMPLEMENTATION<br />

ON/OFF nature, where the system reacted <strong>to</strong> a drop below the set po<strong>in</strong>t by <strong>in</strong>creas<strong>in</strong>g<br />

the work done by it (ON) by 100 percent until the set po<strong>in</strong>t is returned <strong>to</strong> the required<br />

level, then do<strong>in</strong>g the opposite and impart<strong>in</strong>g the lower end po<strong>in</strong>t of work done (OFF),<br />

that be<strong>in</strong>g 0 percent, i.e. the bypass situation <strong>in</strong> the 3-way mix<strong>in</strong>g valve. This situation<br />

meant that a pattern existed <strong>in</strong> the supply temperatures <strong>to</strong> the space, with these rang<strong>in</strong>g<br />

from 29 <strong>to</strong> 41 degrees on an ongo<strong>in</strong>g basis <strong>in</strong>creas<strong>in</strong>g <strong>in</strong> steps of 4 or 5 degrees <strong>to</strong> max<br />

then return<strong>in</strong>g <strong>to</strong> m<strong>in</strong>imum, and cont<strong>in</strong>u<strong>in</strong>g <strong>in</strong> this range as the day progressed. This<br />

control strategy is known as step control with this situation illustrated from real data<br />

obta<strong>in</strong>ed from the facility over a ten-day (192 values <strong>in</strong> two day period per series)<br />

period <strong>in</strong> September 2003 <strong>in</strong> Figure 9.9. The conclusion was that the control was not<br />

reactive and reversible enough with respect <strong>to</strong> the outside temperature <strong>to</strong> yield an<br />

accurate result for the supply temperature needed <strong>to</strong> ma<strong>in</strong>ta<strong>in</strong> the space’s set conditions,<br />

and lacked the sensitivity <strong>to</strong> react effectively <strong>to</strong> changes <strong>in</strong> conditions. This meant that<br />

the percentage errors shown <strong>in</strong> Table 9.1 resulted. This correction fac<strong>to</strong>r situation could<br />

have been avoided if a sensor had been available before the afterheater <strong>in</strong> order <strong>to</strong> log<br />

data on either side of it, thus allow<strong>in</strong>g for the accurate determ<strong>in</strong>ation of the load on it at<br />

any given time, with this po<strong>in</strong>t be<strong>in</strong>g expanded on <strong>in</strong> the future work Chapter 11 of this<br />

thesis.<br />

122


CHAPTER 9<br />

IMPLEMENTATION<br />

123


CHAPTER 9<br />

IMPLEMENTATION<br />

Table 9.1: Excel spreadsheet <strong>use</strong>d <strong>to</strong> calculate the actual max load on the<br />

afterheater<br />

Tspace Tout TDesignOut Q AH Qact Tsupply Tp<br />

0 -3 -3 270 270 0 0<br />

0 -2 -3 180 0 0<br />

35.69 -1 -3 256 46.14 19.96<br />

26.38 0 -3 242 45.49 20.70<br />

27.07 1 -3 234 45.47 21.54<br />

27.92 2 -3 226 46.79 23.65<br />

29.21 3 -3 220 34.96 12.50<br />

28.83 4 -3 211 31.97 10.43<br />

28.81 5 -3 202 40.37 19.71<br />

29.21 6 -3 195 39.95 20.06<br />

28.82 7 -3 185 30 11.07<br />

29.17 8 -3 178 32.5 14.33<br />

29.6 9 -3 171 30.34 12.89<br />

29.41 10 -3 162 29.79 13.26<br />

30.54 11 -3 157 34.15 18.07<br />

Tp2 Error %Error<br />

0 0 0<br />

0 0 0<br />

16.345 -3.61 -22.1153<br />

12.19 -8.51 -69.8247<br />

13.035 -8.50 -65.2094<br />

13.96 -9.69 -69.3908<br />

15.105 2.61 17.27726<br />

15.415 4.98 32.31267<br />

15.905 -3.80 -23.8963<br />

16.605 -3.45 -20.7864<br />

16.91 5.84 34.54322<br />

17.585 3.25 18.49577<br />

18.3 5.41 29.5363<br />

18.705 5.45 29.12992<br />

19.77 1.70 8.617686<br />

Percentage errors <strong>to</strong>o<br />

high so correction fac<strong>to</strong>r<br />

was necessary <strong>in</strong> order<br />

<strong>to</strong> calculate the loads on<br />

the apparatus effectively<br />

Beca<strong>use</strong> of the control shortfall <strong>in</strong> performance it was decided <strong>to</strong> <strong>use</strong> a correction fac<strong>to</strong>r<br />

based on the fact that the part load situations should vary proportionally. The correction<br />

fac<strong>to</strong>r was obta<strong>in</strong>ed by calibrat<strong>in</strong>g the expected pre afterheater temperature as<br />

determ<strong>in</strong>ed from Equation 9.14 with the space temperature (Tspace), the supply<br />

temperature(Ts) and the outside temperature(To) at design and part load situations. This<br />

yielded an equation <strong>in</strong> terms of the measured supply temperature for the correction<br />

fac<strong>to</strong>r as derived <strong>in</strong><strong>to</strong> Equation 9.8 which was then curve fitted for this data us<strong>in</strong>g the<br />

fact that a trend l<strong>in</strong>e could be best fitted <strong>to</strong> the data lead<strong>in</strong>g <strong>to</strong> a function (Equation 9.9)<br />

for the correction fac<strong>to</strong>r as obta<strong>in</strong>ed by graph<strong>in</strong>g the supply temperatures aga<strong>in</strong>st the<br />

124


CHAPTER 9<br />

IMPLEMENTATION<br />

calculated correction fac<strong>to</strong>r <strong>in</strong> Microsoft Excel as through exam<strong>in</strong>ation of the data, the<br />

greatest connection resulted from vary<strong>in</strong>g the Supply Temperature with respect <strong>to</strong> the<br />

correction fac<strong>to</strong>r, as illustrated <strong>in</strong> the graph <strong>in</strong> Figure 9.10. This correction fac<strong>to</strong>r would<br />

<strong>in</strong> real terms be the adjusted flow rate of air pass<strong>in</strong>g through the apparatus at part load<br />

conditions.<br />

Deriv<strong>in</strong>g:<br />

Design − Inputs − <strong>to</strong> − space = Design − Outputs − from − space<br />

Part − Load − Inputs − <strong>to</strong> − space = Part − Load − Outputs − from − space<br />

.<br />

mD C ( T<br />

pD s<br />

.<br />

mPL C ( T<br />

pPL s<br />

− T ) = UA(<br />

T − T )<br />

p D space o D<br />

− T ) = UA(<br />

T − T )<br />

p PL space o PL<br />

Cancell<strong>in</strong>g and re-arrang<strong>in</strong>g:<br />

.<br />

mD<br />

.<br />

mPL<br />

=<br />

( T − T )<br />

space outside D<br />

( T − T )<br />

s p D<br />

( T − T )<br />

s p PL<br />

*<br />

( T − T )<br />

space o PL<br />

With design condition known, this Equation becomes:<br />

Equation 9.8<br />

CF<br />

=<br />

1<br />

0.645<br />

( T − T )<br />

s p PL<br />

( T − T )<br />

space o PL<br />

Where:<br />

CF<br />

T space<br />

T o<br />

T s<br />

T p<br />

m<br />

PL<br />

= Correction Fac<strong>to</strong>r (CONSTANT)<br />

= Space Temperature (C)<br />

= Outside temperature(C)<br />

= SupplyTemperature (C)<br />

= Pre afterheater temperature (C)<br />

= Mass flow rate of air<br />

= Part load conditions<br />

125


CHAPTER 9<br />

IMPLEMENTATION<br />

D = Design conditions<br />

Equation 9.9<br />

CF<br />

= 0.0547(<br />

T ) − 0.7126<br />

s<br />

Where:<br />

T s<br />

CF<br />

= Supply Temperature (C)<br />

= Correction Fac<strong>to</strong>r (CONSTANT)<br />

126


CHAPTER 9<br />

IMPLEMENTATION<br />

127


CHAPTER 9<br />

IMPLEMENTATION<br />

As can be seen clearly from Figure 9.10, the trend l<strong>in</strong>e is a very accurate fit for the<br />

lower bound values of the supply temperature, these be<strong>in</strong>g the operational range of the<br />

facility for the most part. The fact that the trend l<strong>in</strong>e is as good a fit for the upper bound<br />

figures can be attributed <strong>to</strong> the fact that the efficiency of the heat exchanger varies for<br />

both sets of data lead<strong>in</strong>g <strong>to</strong> the conclusion that two trend l<strong>in</strong>es would result <strong>in</strong> a more<br />

accurate f<strong>in</strong>al result. This is illustrated for the lower bound <strong>in</strong> Figure 9.11 and for the<br />

upper bound <strong>in</strong> Figure 9.12.<br />

1.4<br />

1.2<br />

1<br />

y = 0.0562x - 0.7734<br />

0.8<br />

0.6<br />

Series1<br />

L<strong>in</strong>ear (Series1)<br />

0.4<br />

0.2<br />

0<br />

29 30 31 32 33 34 35 36<br />

Figure 9.11: Trend l<strong>in</strong>e for the lower bound of the supply temperatures<br />

2.5<br />

2<br />

y = 0.0636x - 0.9726<br />

1.5<br />

Series1<br />

L<strong>in</strong>ear (Series1)<br />

1<br />

0.5<br />

0<br />

39 40 41 42 43 44 45 46 47 48<br />

Figure 9.12: Trend l<strong>in</strong>e for the upper bound of the supply temperatures<br />

128


CHAPTER 9<br />

IMPLEMENTATION<br />

This trend l<strong>in</strong>e analysis was validated us<strong>in</strong>g three months of real data from Oc<strong>to</strong>ber <strong>to</strong><br />

December 2003 and the graphs obta<strong>in</strong>ed are shown <strong>in</strong> Figures 9.13 and 9.14.<br />

M<strong>in</strong>imum Daily Values<br />

1.5<br />

1<br />

0.5<br />

Md/Mpl<br />

M<strong>in</strong>imum<br />

L<strong>in</strong>ear (M<strong>in</strong>imum)<br />

0<br />

0 5 10 15 20 25 30 35<br />

-0.5<br />

-1<br />

Tsupply<br />

Figure 9.13: Validation of trend l<strong>in</strong>e analysis and correction fac<strong>to</strong>r derivation<br />

us<strong>in</strong>g large amount of real data po<strong>in</strong>ts at the lower bound of supply temperatures<br />

129


CHAPTER 9<br />

IMPLEMENTATION<br />

Maximum Daily Values<br />

3.5<br />

3<br />

2.5<br />

2<br />

Md/Mpl<br />

1.5<br />

1<br />

Maximum<br />

L<strong>in</strong>ear (Maximum)<br />

0.5<br />

-0.5<br />

0<br />

0 10 20 30 40 50 60 70<br />

-1<br />

Tsupply<br />

Figure 9.14: Validation of trend l<strong>in</strong>e analysis and correction fac<strong>to</strong>r derivation<br />

us<strong>in</strong>g large amount of real data po<strong>in</strong>ts at the upper bound of supply temperatures<br />

This lead <strong>to</strong> two correction fac<strong>to</strong>r (CF) calculation Equations as shown <strong>in</strong> Equation 9.10<br />

and 9.11, whose respective results would <strong>in</strong> turn be substituted <strong>in</strong><strong>to</strong> Equation 9.12 <strong>to</strong><br />

calculate the required pre afterheater temperature for each, hence allow<strong>in</strong>g the<br />

calculation of the loads on both pieces of apparatus from Equations 9.1 and 9.2.<br />

Equation 9.10: Lower bound values supply temperature Equation<br />

CF<br />

= 0.0562(<br />

T ) − 0.7734<br />

s<br />

Where:<br />

T s<br />

CF<br />

= Supply Temperature (C)<br />

= Correction Fac<strong>to</strong>r (CONSTANT)<br />

130


CHAPTER 9<br />

IMPLEMENTATION<br />

Equation 9.11: Upper bound values supply temperature Equation<br />

CF<br />

= 0.0636(<br />

T ) − 0.9726<br />

s<br />

Where:<br />

T s<br />

CF<br />

= Supply Temperature (C)<br />

= Correction Fac<strong>to</strong>r (CONSTANT)<br />

Once this correction fac<strong>to</strong>r had been determ<strong>in</strong>ed for any value of supply temperature it<br />

could be <strong>use</strong>d <strong>to</strong> calculate the actual loads on the afterheater and heat exchanger by:<br />

1) Tak<strong>in</strong>g any supply temperature from the ccReport <strong>to</strong>ol and f<strong>in</strong>d<strong>in</strong>g the<br />

associated CF from the relevant graph, either that <strong>in</strong> Figure 9.10 or 9.11<br />

depend<strong>in</strong>g on the supply temperature;<br />

2) Us<strong>in</strong>g Equation 9.12 <strong>to</strong> calculate the corrected pre afterheater temperature;<br />

3) Insert<strong>in</strong>g this new pre afterheater temperature <strong>to</strong> calculate the loads on the<br />

afterheater and heat exchanger respectively from Equation 9.1 and 9.2.<br />

Re-arrang<strong>in</strong>g Equation 9.9 yields:<br />

Equation 9.12<br />

Tp = Ts − CF * 0.645*( Tspace − To)<br />

Where<br />

CF<br />

T space<br />

Ts<br />

T o<br />

= Correction Fac<strong>to</strong>r (CONSTANT)<br />

= Space Temperature (C)<br />

= Supply Temperature (C)<br />

= OutsideTemperature (C)<br />

131


CHAPTER 9<br />

IMPLEMENTATION<br />

Verify<strong>in</strong>g procedure us<strong>in</strong>g manufacturers specifications<br />

In order <strong>to</strong> verify the thought process that was <strong>use</strong>d <strong>to</strong> establish the Equations described<br />

<strong>in</strong> the previous section, which yielded a plausible result for both the afterheater and heat<br />

exchanger loads, the manufacturers specifications were consulted.<br />

Masterair (Masterair, 2003) were contacted and the specifications for the heat exchanger<br />

unit were obta<strong>in</strong>ed, and once studied, yielded an equation for the load on the unit as is<br />

shown <strong>in</strong> Equation 9.13.<br />

Equation 9.13<br />

.<br />

Q = ma*<br />

C * Eff *( T − T )<br />

he pma r o<br />

Where<br />

Q<br />

hc<br />

= Load on the Heat Exchanger (kW)<br />

m a<br />

C pma<br />

Eff<br />

T<br />

r<br />

T<br />

o<br />

= Mass Flow Rate of the air <strong>in</strong> the system (kg/s)<br />

= Specific Heat Capacity of Air (kJ/KgK)<br />

= Efficiency of the Heat Exchanger (CONSTANT)<br />

= Room Temperature (C)<br />

= Outside Temperature (C)<br />

This Equation once worked through with real values obta<strong>in</strong>ed from the ccReport <strong>to</strong>ol<br />

yielded a result, which was with<strong>in</strong> the allowable error parameters <strong>to</strong> that obta<strong>in</strong>ed by<br />

means of the previous Equation 9.2 for the load on the heat exchanger with the<br />

discrepancies be<strong>in</strong>g due <strong>in</strong> part <strong>to</strong> the lack of an efficiency fac<strong>to</strong>r <strong>in</strong> Equation 9.2. The<br />

load calculated (Q) <strong>in</strong> just below the load as expected (Q SPEC), which was obta<strong>in</strong>ed<br />

from the specification Equation 9.13. This proved that the thought process beh<strong>in</strong>d the<br />

evolution of these equations was <strong>in</strong>deed true and meant that they could be <strong>use</strong>d <strong>in</strong> the<br />

further determ<strong>in</strong>ation of loads <strong>in</strong> the software package itself.<br />

132


CHAPTER 9<br />

IMPLEMENTATION<br />

Table 9.2: Comparison of the calculated load on the Heat Exchanger for the lower<br />

bound values of the supply temp us<strong>in</strong>g Equation 9.2 and that obta<strong>in</strong>ed from the<br />

manufacturers specifications us<strong>in</strong>g Equation 9.13<br />

cf corr Ts tp corr Q Q SPEC Tspace To<br />

1.191352 34.96 14.81966 115.5963 134.7243 29.21 3<br />

1.023314 31.97 15.58127 113.2648 127.0448 28.83 4<br />

0.9126 30 17.15616 99.32723 110.2947 28.82 7<br />

1.0531 32.5 18.12029 98.97642 106.6776 29.17 8<br />

0.931708 30.34 17.9604 87.63267 103.5057 29.6 9<br />

0.900798 29.79 18.5125 83.25229 96.88352 29.41 10<br />

1.14583 34.15 19.70876 85.17168 97.60694 30.54 11<br />

Table 9.3: Comparison of the calculated load on the Heat Exchanger for the upper<br />

bound values of the supply temp us<strong>in</strong>g Equation 9.2 and that obta<strong>in</strong>ed from the<br />

manufacturers specifications us<strong>in</strong>g Equation 9.13<br />

cf corr Ts high tp Corr Q Q SPEC Tspace To<br />

1.920564 45.49 12.81141 125.2956 135.6703 26.38 0<br />

1.919292 45.47 13.19682 119.2849 133.9452 27.07 1<br />

2.003244 46.79 13.29897 110.5039 133.1105 27.92 2<br />

1.594932 40.37 15.87591 106.3664 121.3687 28.81 5<br />

1.56822 39.95 16.47304 102.4263 118.0298 29.21 6<br />

Verification of procedure and results by site and apparatus <strong>in</strong>spection and<br />

experimentation<br />

S<strong>in</strong>ce it was impossible <strong>to</strong> obta<strong>in</strong> a sensed result for the pre-afterheater temperature <strong>in</strong><br />

AHU 1 <strong>in</strong> the Mardyke Arena, the result of Equation 9.12 could not be validated aga<strong>in</strong>st<br />

real values.<br />

It was decided that s<strong>in</strong>ce the pre afterheater temperature was the critical value <strong>in</strong> all the<br />

load calculations that Equation 9.12 needed <strong>to</strong> be validated aga<strong>in</strong>st real returned values<br />

for the pre-afterheater temperature. On <strong>in</strong>spection of AHU 1 <strong>in</strong> the Arena, it became<br />

apparent that the manual measurement of this value was impossible as no access could<br />

be obta<strong>in</strong>ed <strong>to</strong> this area of the AHU mean<strong>in</strong>g the hand plac<strong>in</strong>g of a sensor such as the<br />

Hanna HI92000 (Hanna, 2003) could not be facilitated. An alternative approach needed<br />

<strong>to</strong> be found.<br />

The approach decided upon was <strong>to</strong> manually isolate the afterheater directly after the<br />

heat exchanger mean<strong>in</strong>g that the sensed supply temperature <strong>in</strong> the AHU would now<br />

actually be the pre afterheater temperature. This was required <strong>in</strong> the validation process<br />

133


CHAPTER 9<br />

IMPLEMENTATION<br />

of the equations <strong>use</strong>d <strong>in</strong> this package <strong>to</strong> determ<strong>in</strong>e the loads on the <strong>in</strong>dividual pieces of<br />

apparatus <strong>in</strong> AHU 1, m<strong>in</strong>us a 1.5 o <strong>to</strong> 2 degrees picked up over the fans <strong>in</strong> the system<br />

<strong>use</strong>d <strong>to</strong> deliver the air <strong>to</strong> the space. This process however had <strong>to</strong> be undertaken after the<br />

facility had closed for the night, as it would significantly affect the space conditions.<br />

At 10:30 at night, after the facility had closed for the night, the isolat<strong>in</strong>g valve<br />

deliver<strong>in</strong>g the boiler water <strong>to</strong> the afterheater <strong>in</strong> AHU 1 was manually switched off. After<br />

a 45-m<strong>in</strong>ute period, which allowed the exist<strong>in</strong>g water <strong>in</strong> the unit <strong>to</strong> become redundant<br />

for heat<strong>in</strong>g purposes, a colleague moni<strong>to</strong>r<strong>in</strong>g the remote BMS on campus recorded the<br />

value for the supply temperature every m<strong>in</strong>ute. This would later allow the comparison<br />

of actual values for the pre afterheater temperature with those obta<strong>in</strong>ed from Equation<br />

9.14, which gives an approximation for the pre afterheater temperature based on the<br />

possible heat transfer of the heat exchanger, allow<strong>in</strong>g first of all, the validation of the<br />

recorded dataset ensur<strong>in</strong>g the correct operation of the system and secondly the<br />

validation of the values obta<strong>in</strong>ed from Equation 9.12.<br />

Equation 9.14<br />

T<br />

P<br />

T<br />

=<br />

r<br />

+ T<br />

2<br />

o<br />

T<br />

P<br />

T<br />

T<br />

r<br />

o<br />

= Temperature of the Air before the afterheater (C)<br />

= Temperature of the Air return<strong>in</strong>g from the conditioned space (C)<br />

= Outside Temperature of the Air (C)<br />

On compar<strong>in</strong>g the recorded values for the pre afterheater temperature obta<strong>in</strong>ed on this<br />

night with those obta<strong>in</strong>ed us<strong>in</strong>g Equation 9.14, it was decided that the calculated results<br />

were with<strong>in</strong> the allowable error parameters <strong>to</strong> fully validate the process <strong>use</strong>d mean<strong>in</strong>g:<br />

1) The equipment was function<strong>in</strong>g satisfac<strong>to</strong>rily as the expected value obta<strong>in</strong>ed<br />

from Equation 9.14 for the pre afterheater temperature was be<strong>in</strong>g obta<strong>in</strong>ed<br />

(Supply Air Temp <strong>in</strong> Table 9.4 as afterheater redundant). The only worry was<br />

that the actual specification of the afterheater itself which was listed at 197 KW<br />

<strong>in</strong> the specifications but which now look<strong>in</strong>g at the recorded results <strong>in</strong> Table 9.5<br />

must be capable of much more. This meant that a larger afterheater must be<br />

134


CHAPTER 9<br />

IMPLEMENTATION<br />

present <strong>in</strong> the AHU, and hence a larger rat<strong>in</strong>g must be <strong>use</strong>d for the peak load<br />

<strong>use</strong>d <strong>in</strong> Equation 9.3. This also verified the earlier spreadsheet analysis <strong>in</strong> Table<br />

9.1 that the unit was <strong>in</strong> fact a higher capacity unit, <strong>in</strong> the region of a 270 kW<br />

unit, aga<strong>in</strong> verified by the f<strong>in</strong>d<strong>in</strong>gs <strong>in</strong> Table 9.5;<br />

2) The subsequent load calculation procedure described <strong>in</strong> Section 9.4.1.2 did<br />

<strong>in</strong>deed return the true loads on the <strong>in</strong>dividual pieces of apparatus <strong>in</strong> AHU 1. This<br />

meant that they could <strong>in</strong>deed be <strong>use</strong>d <strong>in</strong> this software packages load calculation<br />

procedure.<br />

Table 9.4: L<strong>in</strong>e of data confirm<strong>in</strong>g the correct operation of the Heat Exchanger<br />

Supply Return<br />

Outdoor<br />

Air Air<br />

Time Dry Bulb<br />

Temp Temp<br />

C<br />

(C) (C)<br />

Pool VSD<br />

Pool Area<br />

Damper<br />

Area Speed<br />

Temperature Postion<br />

humidity Signal<br />

(C)<br />

%<br />

(%) (%)<br />

Mix<strong>in</strong>g<br />

Heat<br />

Valve<br />

Exchnager<br />

Open<br />

Load<br />

(%)<br />

23:47 10.13 20 21.9 25.8 82 100 100 100 76.9686<br />

Time<br />

Table 9.5:L<strong>in</strong>e of data confirm<strong>in</strong>g that a larger afterheater was present <strong>in</strong><br />

Mardyke Arena AHU 1<br />

Outdoor<br />

Dry Bulb<br />

C<br />

Supply<br />

Air<br />

Temp<br />

(C)<br />

Return<br />

Pool VSD<br />

Pool Area<br />

Damper<br />

Air<br />

Area Speed<br />

Temperature Postion<br />

Temp<br />

humidity Signal<br />

(C)<br />

%<br />

(C)<br />

(%) (%)<br />

Mix<strong>in</strong>g<br />

Valve<br />

Open<br />

(%)<br />

Afterheater<br />

Load<br />

00:03 10.28 47.6 27.8 29.2 64.9 100 100 100 269.928<br />

9.4.1.3 ccReport output<br />

Once which po<strong>in</strong>ts <strong>to</strong> log had been chosen, some way of schedul<strong>in</strong>g when exactly they<br />

would be logged needed <strong>to</strong> be found. In ccReport two ways existed <strong>to</strong> do just this;<br />

manual or au<strong>to</strong>matic. In the case of this software <strong>to</strong>ol, au<strong>to</strong>matic was the obvious<br />

choice, as so many po<strong>in</strong>ts needed <strong>to</strong> be taken that human error would have been a<br />

problem. The time decided on <strong>to</strong> data-log was midnight as this would give two calendar<br />

days of data, and names for each sensor were set so that differentiation between logged<br />

files could be made. The manual logg<strong>in</strong>g process was however <strong>use</strong>d along with the error<br />

logg<strong>in</strong>g mechanism of ccReport <strong>to</strong> check that all was operational before sett<strong>in</strong>g the<br />

au<strong>to</strong>matic process <strong>in</strong> runn<strong>in</strong>g.<br />

135


CHAPTER 9<br />

IMPLEMENTATION<br />

Once logged the data was s<strong>to</strong>red <strong>in</strong> a CSV file <strong>in</strong> a specially created archive folder. The<br />

format of each CSV file followed the same pattern with the sensor ID, number of values<br />

etc. as displayed <strong>in</strong> Table 9.6, be<strong>in</strong>g listed followed by the values themselves obta<strong>in</strong>ed<br />

from the sensor <strong>in</strong> question. There were 192 values obta<strong>in</strong>ed from each sensor, this<br />

be<strong>in</strong>g the maximum capacity of s<strong>to</strong>red data that the <strong>UCC</strong>4 could hold before discard<strong>in</strong>g<br />

data. It translated <strong>to</strong> 48 hours of data; with one data po<strong>in</strong>t be<strong>in</strong>g taken every 15 m<strong>in</strong>utes,<br />

this be<strong>in</strong>g perfectly adequate for this packages purposes.<br />

Table 9.6: CSV File of output from ccReport <strong>to</strong>ol of BMS<br />

Controller<br />

accessed<br />

No. of values<br />

logged<br />

Data Set<br />

obta<strong>in</strong>ed<br />

Time <strong>in</strong> seconds between<br />

logged values<br />

UC24 - 004 - AHU<br />

<strong>UCC</strong>4 - 001 01 Pool AHU Pool Area Temperature 900 °C<br />

32976.9792 192 28.63 28.58 28.49<br />

9.4.2 CSV File format manipulation<br />

The next obstacle <strong>in</strong> the path of this package was the format of the CSV files saved <strong>to</strong><br />

the archive folder. The data <strong>to</strong> be archived <strong>in</strong> the database from these files was the raw<br />

sensor data, as the rema<strong>in</strong>der would just repeat itself over each log. In order <strong>to</strong> separate<br />

this data from the rest, the file-system functions on offer from PHP needed <strong>to</strong> be fully<br />

unders<strong>to</strong>od and utilised. This was done us<strong>in</strong>g the PHP manual (PHP MANUAL, 2003)<br />

and various books (SAMSa, 2001, SAMSb, 2001).<br />

9.4.2.1 PHP Filesystem functions<br />

Firstly the file from the archive folder needed <strong>to</strong> be accessed us<strong>in</strong>g the “fopen” function.<br />

The data <strong>in</strong> it then needed <strong>to</strong> be read through until the po<strong>in</strong>ter was at the beg<strong>in</strong>n<strong>in</strong>g of<br />

the data required <strong>in</strong> the file, this be<strong>in</strong>g the 192 values obta<strong>in</strong>ed <strong>in</strong>itially from the sensor.<br />

At this po<strong>in</strong>t this data would then be written <strong>to</strong> a new file vertically and once aga<strong>in</strong> <strong>in</strong><br />

CSV form. This was achieved us<strong>in</strong>g a comb<strong>in</strong>ation of functions, but most importantly<br />

136


CHAPTER 9<br />

IMPLEMENTATION<br />

us<strong>in</strong>g the “fgetcsv” function, which allowed the <strong>use</strong>r <strong>to</strong> parse the data read for fields <strong>in</strong><br />

CSV format return<strong>in</strong>g them <strong>to</strong> an array [PHP MANUAL 3, 2003] which was then<br />

output vertically <strong>to</strong> a new blank file. The data was required <strong>to</strong> be vertical <strong>in</strong> the new file<br />

as <strong>in</strong> this form it could most easily be uploaded <strong>to</strong> the MySQL database. When this was<br />

done, the orig<strong>in</strong>al file was emptied of all contents, so that it was ready <strong>to</strong> be rewritten at<br />

the next data-log time. The file-system code <strong>use</strong>d <strong>to</strong> do exactly this can be seen <strong>in</strong> its<br />

entirety <strong>in</strong> Table 9.7.<br />

Table 9.7: Code <strong>use</strong>d <strong>to</strong> manipulate CSV files obta<strong>in</strong>ed from ccReport<br />

function revamp_csv($uploadfilename)<br />

{<br />

$fp = fopen ($uploadfilename, "r+") or die ("could not open file");<br />

//i want <strong>to</strong> read <strong>to</strong> l<strong>in</strong>e 2 where the data beg<strong>in</strong>s then dump <strong>to</strong> a new file eventually<br />

$nav = fgets($fp, 100);<br />

for ($i=1; $i


CHAPTER 9<br />

IMPLEMENTATION<br />

database connection <strong>in</strong> the file-system code, but after the data manipulation had taken<br />

place. Then once connected the data was uploaded from its new location <strong>to</strong> the database<br />

us<strong>in</strong>g an SQL upload command, as illustrated <strong>in</strong> Table 9.8.<br />

Table 9.8: Code <strong>use</strong>d <strong>to</strong> upload manipulated data <strong>to</strong> the relevant database table<br />

function load_temps()<br />

{<br />

$query = "load data local <strong>in</strong>file \"C:/Inetpub/wwwroot/ver6/output22.csv\" <strong>in</strong><strong>to</strong> table temps";<br />

$result = mysql_query($query) or die(mysql_error());<br />

}<br />

9.4.2.3 Au<strong>to</strong>mation of upload process<br />

Next the au<strong>to</strong>mation process needed <strong>to</strong> be addressed. The first idea was <strong>to</strong> <strong>use</strong><br />

ccReport’s ability <strong>to</strong> launch another program once logg<strong>in</strong>g had been completed. This<br />

would have enabled the PHP upload script <strong>to</strong> be au<strong>to</strong>matically run on completion of the<br />

logg<strong>in</strong>g process. However, due <strong>to</strong> bugs <strong>in</strong> this new area of the ccReport <strong>to</strong>ol which<br />

meant that it was not fully operational and hence was unreliable, it was decided <strong>to</strong> <strong>use</strong> a<br />

desk<strong>to</strong>p <strong>to</strong>ol offered by Microsoft called MS Schedular <strong>to</strong> au<strong>to</strong>matically run the script<br />

on demand. This program allowed the <strong>use</strong>r <strong>to</strong> set a time when a program would<br />

au<strong>to</strong>matically be set <strong>to</strong> start-up. This then allowed the <strong>use</strong>r <strong>to</strong> set ccReport <strong>to</strong> log data at<br />

a particular time, then set MS Schedular <strong>to</strong> launch the upload script at a time after<br />

ccReport had f<strong>in</strong>ished as shown <strong>in</strong> Figure 9.15, so mean<strong>in</strong>g that the data would now be<br />

logged, manipulated and uploaded au<strong>to</strong>matically.<br />

However this process though meet<strong>in</strong>g the needs of the project for au<strong>to</strong>mation of the<br />

upload procedure, did not fully solve the problem as some manual ma<strong>in</strong>tenance was still<br />

necessary due <strong>to</strong> the fact that an executable file could not be created, thus mean<strong>in</strong>g that<br />

the script <strong>to</strong> upload data needed <strong>to</strong> be launched <strong>in</strong> <strong>in</strong>ternet explorer, which could not be<br />

shut down au<strong>to</strong>matically, hence requir<strong>in</strong>g human <strong>in</strong>tervention <strong>to</strong> close the program,<br />

leav<strong>in</strong>g the server ready <strong>to</strong> upload the next set of values <strong>to</strong> the database.<br />

138


CHAPTER 9<br />

IMPLEMENTATION<br />

Figure 9.15: Ms Scheduler set-up box<br />

9.5 GUI DEVELOPMENT W<strong>IT</strong>H IMPLEMENTED CONTROL<br />

STRUCTURE<br />

Now that the data was be<strong>in</strong>g collected, manipulated and uploaded <strong>to</strong> the database<br />

au<strong>to</strong>matically, attention turned <strong>to</strong> implement<strong>in</strong>g a data retrieval process, whereby the<br />

data would have calculations done on it so render<strong>in</strong>g more <strong>use</strong>ful <strong>in</strong>formation and<br />

would allow for the replacement of the data stubs <strong>use</strong>d <strong>in</strong> the development of the <strong>in</strong>itial<br />

GUI design. A graphical element would also be <strong>in</strong>cluded <strong>in</strong> the GUI, lett<strong>in</strong>g <strong>use</strong>rs see<br />

the relevant load <strong>in</strong>formation <strong>in</strong> bar graphs, so lead<strong>in</strong>g <strong>to</strong> more easily understandable<br />

<strong>in</strong>formation display.<br />

9.5.1 Database <strong>in</strong>formation retrieval<br />

The process for data retrieval from the MySQL database us<strong>in</strong>g PHP was expla<strong>in</strong>ed<br />

earlier <strong>in</strong> Section 8.4.2, but a number of new problems arose as the implementation of<br />

the package cont<strong>in</strong>ued. The one ma<strong>in</strong> problem that was encountered was the fact that<br />

the pre-afterheater temperature <strong>in</strong> AHU 1 was not moni<strong>to</strong>red and so could not be logged<br />

by ccReport mean<strong>in</strong>g that the assumption made <strong>in</strong> Section 8.4.2 that the load could be<br />

calculated from the equation <strong>in</strong> Equation 8.1 of the same section was now <strong>in</strong> error. A<br />

new idea for the calculation of this load us<strong>in</strong>g the a correction fac<strong>to</strong>r was decided upon,<br />

and was outl<strong>in</strong>ed <strong>in</strong> Section 9.4.1.2. These equations now needed <strong>to</strong> be translated <strong>in</strong><strong>to</strong><br />

complex SQL queries so that they could be embedded <strong>in</strong> PHP script and <strong>use</strong>d <strong>to</strong> access<br />

and manipulate the MySQL database data, so allow<strong>in</strong>g the calculation of the loads on<br />

the apparatus <strong>in</strong> AHU 1 at any given time accord<strong>in</strong>g <strong>to</strong> the archived data.<br />

139


CHAPTER 9<br />

IMPLEMENTATION<br />

9.5.1.1 Perform<strong>in</strong>g load calculations us<strong>in</strong>g SQL<br />

The first obstacle met <strong>in</strong> translat<strong>in</strong>g the equations <strong>in</strong><strong>to</strong> SQL was the fact that multiple<br />

tables needed <strong>to</strong> be accessed <strong>in</strong> the database <strong>in</strong> order <strong>to</strong> perform calculations. This<br />

meant us<strong>in</strong>g table jo<strong>in</strong>s, which is a method whereby multiple tables are accessed by<br />

us<strong>in</strong>g a nam<strong>in</strong>g convention where not only the table name is needed but also the column<br />

name. The same row of data also needed <strong>to</strong> be accessed from each table for each<br />

calculation <strong>to</strong> be correct. This was achieved by relat<strong>in</strong>g the tables <strong>to</strong> each other us<strong>in</strong>g a<br />

common column. This “ID” column conta<strong>in</strong>ed a primary key, which meant that each<br />

row was completely <strong>in</strong>dividual and so could be called on as such <strong>in</strong> each table. An<br />

example of the table set up is shown <strong>in</strong> Figure 9.16, as obta<strong>in</strong>ed from mySQL’s own<br />

management system called w<strong>in</strong>MySql.<br />

Figure 9.16: Screenshot of W<strong>in</strong>Mysql show<strong>in</strong>g database and table characteristics<br />

The next encountered problem <strong>in</strong> translat<strong>in</strong>g the mathematical equations <strong>in</strong><strong>to</strong> their SQL<br />

counterparts was choos<strong>in</strong>g the correct sequence for the mathematical operations <strong>to</strong> be<br />

executed. Much like a normal complex mathematical equation, the same set rules are<br />

followed, i.e. that portion of the equation <strong>in</strong> brackets be<strong>in</strong>g calculated firstly, then the<br />

rema<strong>in</strong>der etc. However <strong>in</strong> SQL syntax, not only do the brackets need <strong>to</strong> be <strong>in</strong> the<br />

correct place, but the order of the data retrieved matters as it is obta<strong>in</strong>ed from the<br />

database tables <strong>in</strong> the same order. So the equations were pieced <strong>to</strong>gether bit by bit<br />

140


CHAPTER 9<br />

IMPLEMENTATION<br />

ensur<strong>in</strong>g that the correct result was be<strong>in</strong>g returned for one l<strong>in</strong>e of data before mov<strong>in</strong>g on<br />

<strong>to</strong> the next problem, that be<strong>in</strong>g creat<strong>in</strong>g a while loop <strong>to</strong> execute the overall query until<br />

the required number of results had been obta<strong>in</strong>ed.<br />

9.5.1.2 Implement<strong>in</strong>g a control structure<br />

For the f<strong>in</strong>al Equations, Equations 9.1 & 2, <strong>to</strong> return the correct load value for the<br />

afterheater and heat exchanger, the previous three Equations 9.10, 9.11 and 9.12 firstly<br />

needed <strong>to</strong> access the database, perform their calculations, and then s<strong>to</strong>re the results <strong>in</strong><br />

variables for <strong>use</strong> <strong>in</strong> Equations 9.1 & 2. This would not have been much of a problem if<br />

just one l<strong>in</strong>e of data needed <strong>to</strong> be accessed, however, many l<strong>in</strong>es of data had <strong>to</strong> be<br />

accessed, return<strong>in</strong>g a value for the equations after each l<strong>in</strong>e. This was where a<br />

programm<strong>in</strong>g control structure needed <strong>to</strong> be implemented.<br />

9.5.1.3 Control structures<br />

Control structures are the structures with<strong>in</strong> a programm<strong>in</strong>g language that allow the<br />

programmer <strong>to</strong> control the flow of execution through a program or script (SAMSb,<br />

2001). In this case the control structure that suited these circumstances best was the<br />

“for” loop. It is the simplest k<strong>in</strong>d of loop <strong>in</strong> PHP and it operates by execut<strong>in</strong>g a piece of<br />

code as long as a certa<strong>in</strong> condition, set by the programmer, is true. It was perfect for this<br />

situation as the most common <strong>use</strong> of a for loop is when one doesn’t know how many<br />

iterations are required <strong>in</strong> order <strong>to</strong> make the condition true, as was the case <strong>in</strong> the results<br />

returned from the database <strong>in</strong> this situation. The loop was set <strong>to</strong> beg<strong>in</strong> at the first<br />

iteration correspond<strong>in</strong>g <strong>to</strong> the ID column <strong>in</strong> the database, cont<strong>in</strong>u<strong>in</strong>g until and not<br />

beyond the last relevant iteration correspond<strong>in</strong>g <strong>to</strong> the last ID concerned with here. A<br />

portion of the code <strong>use</strong>d <strong>in</strong> the application is shown <strong>in</strong> Table 9.9.<br />

141


CHAPTER 9<br />

IMPLEMENTATION<br />

Table 9.9: Code <strong>use</strong>d <strong>to</strong> calculate the load on the afterheater <strong>in</strong> AHU 1<br />

$sumTotal = 0;<br />

for ($i=1; $i


CHAPTER 9<br />

IMPLEMENTATION<br />

9.5.2 Graphical <strong>in</strong>terpretation<br />

Once the loads on the apparatus <strong>in</strong> AHU 1 were be<strong>in</strong>g returned, the task of display<strong>in</strong>g<br />

them <strong>in</strong> such a format that they were as accessible as possible <strong>to</strong> the untra<strong>in</strong>ed eye could<br />

be exam<strong>in</strong>ed. Firstly the results were displayed <strong>in</strong> table format, and due <strong>to</strong> the work<br />

done <strong>in</strong> the PHP script as shown <strong>in</strong> Table 9.7, the load <strong>in</strong> GJ/m 2 and more importantly<br />

for the facility manager, <strong>in</strong> monetary cost could be output, these be<strong>in</strong>g much more<br />

understandable quantities <strong>to</strong> the everyday <strong>use</strong>r.<br />

Tak<strong>in</strong>g the display <strong>to</strong> the next step was now the goal, so it was decided <strong>to</strong> implement<br />

some k<strong>in</strong>d of graphical output which would allow the <strong>use</strong>r <strong>to</strong> see the output <strong>in</strong> bar graph<br />

format, aga<strong>in</strong> mak<strong>in</strong>g it easier <strong>to</strong> identify where shortfalls <strong>in</strong> the system were occurr<strong>in</strong>g.<br />

In order <strong>to</strong> do this a number of options were considered.<br />

The first option considered was us<strong>in</strong>g a graphical library called GD library (GDLib,<br />

2003), which was an up-loadable library of PHP functions that allowed the programmer<br />

<strong>to</strong> set parameters for the construction of a graph, either a pie chart or bar graph, and<br />

even l<strong>in</strong>e graphs, based on returned values from a database. GDLibrary was available <strong>to</strong><br />

freely download from the GDLibrary homesite [GDLib, 2003]. However on download,<br />

a complex <strong>in</strong>stallation procedure had <strong>to</strong> be adhered <strong>to</strong> <strong>in</strong> order for the library <strong>to</strong> be<br />

<strong>in</strong>stalled correctly. The configuration process was also difficult and little supported text<br />

existed <strong>to</strong> aid this process. The gd 2.0.15, which is the latest version of the library,<br />

requires that the libpng, zlib and jpeg-6b libraries also be <strong>in</strong>stalled, <strong>in</strong> order <strong>to</strong> produce<br />

the <strong>related</strong> image formats. This process proved very difficult and beca<strong>use</strong> of this was<br />

abandoned <strong>in</strong> favour of a more time efficient solution, that be<strong>in</strong>g the <strong>use</strong> of HTML<br />

tables as a formatt<strong>in</strong>g <strong>to</strong>ol.<br />

9.5.2.1 HTML Tables <strong>use</strong>d <strong>to</strong> graphically display data<br />

The option decided upon <strong>to</strong> create a graphical <strong>in</strong>terpretation of the returned data turned<br />

out <strong>to</strong> be a much simpler option, if not as functional as the GD library. It was decided <strong>to</strong><br />

<strong>use</strong> PHP’s ability <strong>to</strong> output a table <strong>to</strong> the web browser. But whereas the normal HTML<br />

table generated was <strong>use</strong>d for position<strong>in</strong>g text or <strong>to</strong> display figures, <strong>in</strong>stead the possibility<br />

of us<strong>in</strong>g the table as a horizontal bar graph was now considered.<br />

To achieve this the returned results of a calculation query <strong>to</strong> the database were taken<br />

and s<strong>to</strong>red <strong>in</strong> variables. These variables were then <strong>use</strong>d as attributes <strong>in</strong> the table make up<br />

parameter. More specifically they were <strong>use</strong>d as the table row width attribute, so<br />

mean<strong>in</strong>g that the table row width would now equal <strong>to</strong> the value of the returned querys.<br />

143


CHAPTER 9<br />

IMPLEMENTATION<br />

By do<strong>in</strong>g this it meant that each table row now corresponded <strong>to</strong> the result of a returned<br />

query from the database, hence achiev<strong>in</strong>g the aim of creat<strong>in</strong>g a simple bar graph <strong>to</strong><br />

illustrate the result of each query. The code <strong>use</strong>d is displayed <strong>in</strong> Table 9.10 with the<br />

graph of monthly loads as displayed by the GUI illustrated <strong>in</strong> Figure 9.17.<br />

Table 9.10: Code <strong>use</strong>d <strong>to</strong> output a graph of retuned query<br />

while( $l<strong>in</strong>e = mysql_fetch_array($result, MYSQL_NUM))<br />

{<br />

$Total +=$l<strong>in</strong>e[0];<br />

}<br />

Assign<strong>in</strong>g result of<br />

query <strong>to</strong> $month_bar<br />

variable<br />

//the commented out section directly underneath is the changes necessary <strong>to</strong> display a gj graph<br />

$month_bar = $Total/*_Gj*110*//2;<br />

echo"\n";<br />

echo"\n";<br />

Us<strong>in</strong>g the $month_bar<br />

variable <strong>to</strong> set the table<br />

row width<br />

echo"$month$Total\n";<br />

echo"\n";<br />

echo"\n"<br />

}<br />

Figure 9.17:Screenshot of bar graph display<strong>in</strong>g monthly loads<br />

144


CHAPTER 9<br />

IMPLEMENTATION<br />

As can be seen the $month_bar variable is the result of the returned query and is <strong>use</strong>d <strong>to</strong><br />

set the width of each table row.<br />

Now a situation existed where the backend database is be<strong>in</strong>g au<strong>to</strong>matically uploaded<br />

with the relevant data directly from the sensors on site via the BEMS on the server.<br />

Us<strong>in</strong>g the PHP scripts previously expla<strong>in</strong>ed <strong>in</strong> Section 8.4.2, access <strong>to</strong> this data is<br />

obta<strong>in</strong>ed, calculations performed on it, then the f<strong>in</strong>al output be<strong>in</strong>g displayed <strong>in</strong> the<br />

browser. And f<strong>in</strong>ally, and most importantly, the ability <strong>to</strong> generate gbXML reports as<br />

required by the <strong>use</strong>r at the click of a mo<strong>use</strong> is the end result.<br />

9.5 SUMMARY<br />

The Mardyke Arena is controlled via the Unitron network of communications and<br />

universal controllers. The system is viewed through a “supervisor” or PC runn<strong>in</strong>g<br />

the appropriate build<strong>in</strong>g management software, which <strong>in</strong> the case of the Mardyke<br />

Arena is the WN3000 package. In order for the controllers <strong>to</strong> be able <strong>to</strong> share<br />

<strong>in</strong>formation about different locations <strong>in</strong> the Arena, they are networked <strong>to</strong>gether. A<br />

<strong>UCC</strong>4 communications controller is <strong>use</strong>d <strong>to</strong> do this and the supervisory PC then<br />

moni<strong>to</strong>rs this network. The Unitron system can be accessed via a TCP/IP network<br />

by us<strong>in</strong>g a Term<strong>in</strong>al server called the Lantronix UDS 10. The BEMS software <strong>use</strong>d<br />

<strong>in</strong> the Mardyke Arena was <strong>in</strong>stalled on the Informatics Research Unit for<br />

Susta<strong>in</strong>able Energy (IRUSE) University server so that the data could be viewed and<br />

s<strong>to</strong>red there.<br />

ccReport was a program <strong>in</strong> the WN3000 software suite, that allowed the <strong>use</strong>r of the<br />

BEMS <strong>to</strong> view every po<strong>in</strong>t on the control network that could be data-logged. This<br />

allowed the sensor data <strong>to</strong> be output <strong>in</strong> the form of CSV files. Once these files were<br />

accessed, attention turned <strong>to</strong> the fact that the pre afterheater temperature needed <strong>to</strong><br />

quantify the loads on the afterheater and heat exchanger <strong>in</strong> AHU 1 was not available<br />

<strong>to</strong> log, so an alternative approach was required.<br />

After much research and <strong>in</strong>vestigation, it was f<strong>in</strong>ally decided <strong>to</strong> <strong>use</strong> a correction<br />

fac<strong>to</strong>r (CF), which was determ<strong>in</strong>ed <strong>to</strong> be a function of the supply temperature based<br />

on curve fits depend<strong>in</strong>g on the value of the supply temperature <strong>to</strong> the space <strong>to</strong> f<strong>in</strong>d<br />

this pre afterheater temperature. Once this value was obta<strong>in</strong>ed, the loads on the<br />

<strong>in</strong>dividual pieces of apparatus could be determ<strong>in</strong>ed us<strong>in</strong>g Equations 9.1 and 9.2.<br />

This process was verified us<strong>in</strong>g the specifications for the heat exchanger and<br />

through a site <strong>in</strong>vestigation, both of which yielded positive results.<br />

The next obstacle <strong>in</strong> the path of this software environment was the format of the<br />

CSV files that were logged. A solution was achieved us<strong>in</strong>g the file-system functions<br />

of PHP. This system of data manipulation needed <strong>to</strong> be au<strong>to</strong>mated, and coupled with<br />

an upload procedure that would fill the relevant tables of the relevant database with<br />

the correct data. This was achieved <strong>to</strong> a good degree us<strong>in</strong>g the MS task manager<br />

program, which came with the w<strong>in</strong>dows operat<strong>in</strong>g system.<br />

Now that the data was be<strong>in</strong>g collected, manipulated and uploaded <strong>to</strong> the database<br />

au<strong>to</strong>matically, attention turned <strong>to</strong> implement<strong>in</strong>g a data retrieval process, whereby<br />

calculations are done on the data so render<strong>in</strong>g more <strong>use</strong>ful <strong>in</strong>formation. Aga<strong>in</strong> this<br />

145


CHAPTER 9<br />

IMPLEMENTATION<br />

was achieved us<strong>in</strong>g the functionality of the PHP programm<strong>in</strong>g language with<br />

embedded complex SQL queries.<br />

The implementation phase of development proved difficult and would need <strong>to</strong> be<br />

tested <strong>in</strong> order <strong>to</strong> ensure it was successful. Chapter 10 does just this, with the test<strong>in</strong>g<br />

procedure firstly outl<strong>in</strong>ed, then adhered <strong>to</strong> as the parts that made up the software<br />

<strong>to</strong>ol were tested <strong>in</strong>dividually and <strong>in</strong> unison <strong>to</strong> ensure the effective operation of the<br />

<strong>to</strong>ol.<br />

146


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE ARENA<br />

In order <strong>to</strong> ensure the smooth runn<strong>in</strong>g of the software <strong>to</strong>ol as developed <strong>in</strong> Chapter 9, an<br />

extensive test<strong>in</strong>g process is undertaken <strong>to</strong> ensure that any flaws <strong>in</strong> the design could be<br />

fixed, and improvements <strong>in</strong> <strong>use</strong>r <strong>in</strong>teraction achieved. Firstly the process is exam<strong>in</strong>ed.<br />

Moni<strong>to</strong>r<strong>in</strong>g<br />

Energy <strong>use</strong><br />

ENERGYEYE<br />

Energy Archiv<strong>in</strong>g and<br />

Analysis Tool<br />

Kyo<strong>to</strong> Pro<strong>to</strong>col<br />

PHP<br />

MySQL<br />

Unitron & BACnet<br />

Environmental<br />

Requirements<br />

Whole Build<strong>in</strong>g<br />

Energy Analysis<br />

gbXML<br />

Technology<br />

Methodology<br />

Real Case Study<br />

THE MARDYKE ARENA<br />

Figure 10.1: Thesis Schematic illustrat<strong>in</strong>g the beg<strong>in</strong>n<strong>in</strong>g of the software test<strong>in</strong>g<br />

section<br />

147


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

10.1 SOFTWARE TESTING<br />

10.1.1 Pr<strong>in</strong>ciples of software test<strong>in</strong>g<br />

It is important <strong>to</strong> approach the test<strong>in</strong>g process with the attitude of execut<strong>in</strong>g a program<br />

with the <strong>in</strong>tent of f<strong>in</strong>d<strong>in</strong>g errors, s<strong>in</strong>ce test<strong>in</strong>g can only show the presence of errors <strong>in</strong> a<br />

program and never their absence. There are two fundamental approaches <strong>to</strong> program<br />

test<strong>in</strong>g [Marcotty, 1991]:<br />

• Black Box Test<strong>in</strong>g – data driven test<strong>in</strong>g <strong>to</strong> illustrate compliance. The program is<br />

viewed as a black box whose <strong>in</strong>ternal aspects are not visible, with the method<br />

be<strong>in</strong>g <strong>to</strong> search for circumstances where the program or software does not<br />

behave accord<strong>in</strong>g <strong>to</strong> the way it was developed;<br />

• White Box Test<strong>in</strong>g – logic-driven test<strong>in</strong>g, where the <strong>in</strong>ternal aspects are known<br />

<strong>to</strong> the tester, with the method be<strong>in</strong>g <strong>to</strong> execute every s<strong>in</strong>gle path <strong>in</strong> the program<br />

or software with a view <strong>to</strong> f<strong>in</strong>d<strong>in</strong>g errors.<br />

By us<strong>in</strong>g these techniques with test cases, the programmer can test the software that<br />

they themselves have written. This is known as benevolent test<strong>in</strong>g.<br />

10.1.2 Debugg<strong>in</strong>g<br />

This is the part of the test<strong>in</strong>g process that programmers traditionally like the least<br />

beca<strong>use</strong> it means admitt<strong>in</strong>g that the program is flawed <strong>in</strong> some way. The ease with<br />

which a bug <strong>in</strong> the program can be tracked down depends on three th<strong>in</strong>gs:<br />

• Software Design – the formatt<strong>in</strong>g of each part of each script that encompasses<br />

the entire package controls how easy or hard it is <strong>to</strong> locate bugs. A welldesigned,<br />

well-annotated program will aid this process no end;<br />

• Plan for Debugg<strong>in</strong>g – if the programmer built some debugg<strong>in</strong>g applications <strong>to</strong><br />

solve problems as they occurred, then this aga<strong>in</strong> will speed up the debugg<strong>in</strong>g<br />

process;<br />

• Mental attitude of the Debugger – if the process is looked at as more of a<br />

challenge than a burden then most if not all of the problems will be solved.<br />

148


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

10.1.2.1 First actions <strong>in</strong> debugg<strong>in</strong>g process<br />

First, it must be possible <strong>to</strong> repeat the error reliably. This might sound strange as why<br />

would the <strong>use</strong>r want an error <strong>to</strong> happen every time; but it is logical, as if it does happen<br />

each time a certa<strong>in</strong> action takes place, then the chances of f<strong>in</strong>d<strong>in</strong>g the reason for it<br />

occurr<strong>in</strong>g are <strong>in</strong>creased exponentially. This put more logically is that when the same<br />

start<strong>in</strong>g conditions are met with the same <strong>in</strong>put data on a number of occasions, the<br />

output must be the same each time. Different output with constant data <strong>in</strong>put implies<br />

that the start<strong>in</strong>g conditions are chang<strong>in</strong>g, so lead<strong>in</strong>g the programmer <strong>to</strong> change the<br />

start<strong>in</strong>g conditions until the problem occurs every time, so lead<strong>in</strong>g <strong>to</strong> a more clear<br />

understand<strong>in</strong>g of why the failure is occurr<strong>in</strong>g, and hence <strong>to</strong> achiev<strong>in</strong>g a solution <strong>to</strong> it.<br />

10.1.2.2 F<strong>in</strong>d<strong>in</strong>g the route of the problem<br />

Often when an error occurs, the nature of it will po<strong>in</strong>t <strong>to</strong> a certa<strong>in</strong> area of the program<br />

that may be responsible for the error. However this is not always the case. To alleviate<br />

this ambiguity, error messages can be <strong>in</strong>serted <strong>in</strong><strong>to</strong> the program at different po<strong>in</strong>ts so<br />

clarify<strong>in</strong>g the reason for the error. Then after these have been <strong>in</strong>serted <strong>in</strong> most places, if<br />

no message appears onscreen, the search for the reason for the error becomes easier as<br />

fewer options rema<strong>in</strong> without associated error messages. This process is cont<strong>in</strong>ued until<br />

the reason for failure of the program is resolved.<br />

10.1.2.3 Fix<strong>in</strong>g the problems<br />

It is imperative that once the reason for the error is located that it is fixed correctly and<br />

not that it is bypassed <strong>in</strong> some way. The quick fix may be an attractive option, but the<br />

error may just be bypassed for that particular section of the package and may rear its<br />

ugly head <strong>in</strong> some other part, maybe even <strong>in</strong> a much more difficult place <strong>to</strong> f<strong>in</strong>d. Any<br />

correction must also preserve the structure of the code <strong>use</strong>d as this may otherwise lead<br />

<strong>to</strong> confusion later on.<br />

The methods <strong>to</strong> test the software <strong>to</strong>ol had now been identified and unders<strong>to</strong>od. They<br />

were now <strong>use</strong>d <strong>to</strong> test the <strong>to</strong>ol <strong>in</strong> its current format us<strong>in</strong>g the Mardyke Arena as the<br />

pro<strong>to</strong>type facility.<br />

149


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

10.2 REVIEW OF HARDWARE S<strong>IT</strong>UATION IN THE MARDYKE ARENA<br />

The Mardyke Arena is controlled via the Unitron [UN<strong>IT</strong>RON, 2003] network of<br />

communications and universal controllers. Measurements from sensors and switches are<br />

processed through these <strong>in</strong>telligent controllers, which then control output devices such<br />

as valves and dampers. The system is viewed through a “supervisor” or PC runn<strong>in</strong>g the<br />

appropriate build<strong>in</strong>g management software, which <strong>in</strong> the case of the Mardyke Arena<br />

was the WN3000 package developed by CYLON Controls Ltd. [Cylon Controls Ltd.,<br />

2003]. This software is <strong>use</strong>d <strong>to</strong> adjust control parameters as well as <strong>to</strong> perform other<br />

ma<strong>in</strong>tenance and analysis functions.<br />

In order for the controllers <strong>to</strong> be able <strong>to</strong> share <strong>in</strong>formation about different locations <strong>in</strong><br />

the Arena, they are networked <strong>to</strong>gether. A <strong>UCC</strong>4 communications controller is <strong>use</strong>d <strong>to</strong><br />

do this and the supervisory PC then moni<strong>to</strong>rs this network.<br />

WN3000 is a w<strong>in</strong>dows based software suite <strong>use</strong>d <strong>to</strong> commission, moni<strong>to</strong>r or supervise<br />

the Unitron system of controllers. Alarms, data logg<strong>in</strong>g and reports programs allow for<br />

the moni<strong>to</strong>r<strong>in</strong>g of the system, and eng<strong>in</strong>eer<strong>in</strong>g <strong>to</strong>ols and time schedules allow the<br />

programm<strong>in</strong>g of it. The Alarm program is <strong>use</strong>d <strong>to</strong> alert the <strong>use</strong>r <strong>to</strong> any difficulties with<strong>in</strong><br />

the plant, while the Datalog Manager is designed <strong>to</strong> allow the <strong>use</strong>r <strong>to</strong> analyse data<br />

obta<strong>in</strong>ed from the controllers.<br />

The Ethernet connection <strong>in</strong> the Mardyke Arena allowed the Unitron system <strong>to</strong> be<br />

accessed via a TCP/IP network by us<strong>in</strong>g the Lantronix UDS 10 Term<strong>in</strong>al server. This<br />

UDS 10 had the ability <strong>to</strong> convert a serial signal <strong>to</strong> TCP/IP, allow<strong>in</strong>g access <strong>to</strong> the data<br />

collected by the controllers via the University network already <strong>in</strong> place, and was<br />

connected directly <strong>to</strong> the <strong>UCC</strong>4. This allowed access <strong>to</strong> any data collected by the<br />

controllers <strong>in</strong> the Arena through a PC located on campus <strong>in</strong>stalled with the WN3000<br />

software suite.<br />

The problems encountered dur<strong>in</strong>g the test<strong>in</strong>g process on this software <strong>to</strong>ol are now<br />

exam<strong>in</strong>ed <strong>in</strong> more detail, with any solutions be<strong>in</strong>g outl<strong>in</strong>ed.<br />

150


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

10.3 PROBLEMS ENCOUNTERED AND SOLUTIONS FOUND<br />

Once the hardware situation <strong>in</strong> the Mardyke Arena was fully unders<strong>to</strong>od and connected<br />

via the UDS 10 <strong>to</strong> the PC on campus through the Ethernet connection between the<br />

Arena and the ma<strong>in</strong> campus, data from the sensors could be viewed onscreen us<strong>in</strong>g the<br />

WN3000 software suite <strong>in</strong>stalled on the PC as <strong>in</strong> Figure 10.2.<br />

Figure 10.2: Screenshot of AHU 1 Display<strong>in</strong>g Information retrieved via the sensors<br />

<strong>in</strong> the Mardyke Arena [WN3000, 2003]<br />

However, as everyth<strong>in</strong>g seemed <strong>to</strong> be set for the logg<strong>in</strong>g process <strong>to</strong> beg<strong>in</strong> us<strong>in</strong>g this<br />

system, the data flow from the Arena ceased. There were a few possible explanations<br />

for this:<br />

1) The network connection of the PC had failed or was faulty;<br />

2) The data po<strong>in</strong>t that the UDS 10 was connected <strong>to</strong> <strong>in</strong> the Mardyke Arena, or the<br />

one that the PC on campus was connected <strong>to</strong>, was faulty;<br />

151


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

3) The RS232 cable that connected the UDS 10 <strong>to</strong> the <strong>UCC</strong>4 or the RJ 45 Ethernet<br />

cable that connected it <strong>to</strong> the data po<strong>in</strong>t <strong>in</strong> the Mardyke Arena was faulty;<br />

4) The UDS 10 must be reconfigured <strong>to</strong> communicate with the WN3000 software<br />

suite over the TCP/IP network.<br />

10.3.1 Fault detection analysis<br />

10.3.1.1 Network connection check<br />

A network connection failure may be due <strong>to</strong> a number of different fac<strong>to</strong>rs; the computer<br />

that a connection is be<strong>in</strong>g sought with may be offl<strong>in</strong>e, the application server may be<br />

down, there might be a fault <strong>in</strong> the communications l<strong>in</strong>k somewhere, or one of any<br />

number of other fac<strong>to</strong>rs may have occurred.<br />

If a command prompt dialog box is opened on the computer and the “p<strong>in</strong>g” command<br />

<strong>use</strong>d, it can be determ<strong>in</strong>ed if the problem is that communication cannot be facilitated<br />

with the other mach<strong>in</strong>e or whether the problem is with the application that resides on the<br />

remote computer that is be<strong>in</strong>g accessed.<br />

The command is typed <strong>in</strong> followed by the IP address of the term<strong>in</strong>al server that is be<strong>in</strong>g<br />

checked. For example if the connection <strong>to</strong> an imag<strong>in</strong>ary term<strong>in</strong>al server that had an IP<br />

address of 200.80.128.7 needed <strong>to</strong> be checked, the text <strong>in</strong> Table 10.1 would be typed <strong>in</strong>.<br />

Table 10.1: P<strong>in</strong>g command <strong>to</strong> test network connection<br />

p<strong>in</strong>g 200.80.128.7<br />

The response that should be obta<strong>in</strong>ed if the term<strong>in</strong>al server was answer<strong>in</strong>g would be<br />

someth<strong>in</strong>g like that obta<strong>in</strong>ed <strong>in</strong> Table 10.2.<br />

Table 10.2: Result form a P<strong>in</strong>g command show<strong>in</strong>g a valid network connection<br />

P<strong>in</strong>g<strong>in</strong>g 200.80.128.7 with 32 bytes of data:<br />

Reply from 200.80.128.7: bytes=32 time


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

Table 10.3: Result from a P<strong>in</strong>g command show<strong>in</strong>g a failed network connection<br />

P<strong>in</strong>g<strong>in</strong>g 200.80.128.7 with 32 bytes of data:<br />

Request times out.<br />

Request times out.<br />

Request times out.<br />

Request times out.<br />

This process was carried out us<strong>in</strong>g the IP address assigned <strong>to</strong> the UDS 10 <strong>in</strong> the<br />

Mardyke Arena from the supervisory PC on campus, with no reply be<strong>in</strong>g obta<strong>in</strong>ed,<br />

mean<strong>in</strong>g that either the network connection was not work<strong>in</strong>g or that the UDS 10 itself<br />

was not function<strong>in</strong>g correctly<br />

10.3.1.2 Data po<strong>in</strong>t checks<br />

The data po<strong>in</strong>ts both <strong>in</strong> the Mardyke Arena and on campus were checked <strong>to</strong> see if they<br />

were operational. This was achieved by test<strong>in</strong>g <strong>to</strong> see if they could be accessed by<br />

another mach<strong>in</strong>e on the university network when a term<strong>in</strong>al server made a connection <strong>to</strong><br />

them.<br />

A DOS prompt dialog box was <strong>use</strong>d with the DOS “p<strong>in</strong>g” command be<strong>in</strong>g utilised <strong>to</strong><br />

test if a reply could be obta<strong>in</strong>ed from the IP number assigned <strong>to</strong> the PC <strong>in</strong> sequence,<br />

with this situation be<strong>in</strong>g similar <strong>to</strong> that shown <strong>in</strong> Table 10.2. If no reply was obta<strong>in</strong>ed<br />

from them us<strong>in</strong>g this approach, then the data po<strong>in</strong>ts were not operational and the<br />

problem was solved. However both data po<strong>in</strong>ts returned replies from an <strong>in</strong>dependent<br />

mach<strong>in</strong>e on the network thus verify<strong>in</strong>g that both were actually operational mean<strong>in</strong>g that<br />

the other possible problems needed <strong>to</strong> be explored.<br />

10.3.1.3 Cable checks<br />

The cable connect<strong>in</strong>g the server <strong>to</strong> the data po<strong>in</strong>t, the RJ 45 Ethernet cable, was tested<br />

by connect<strong>in</strong>g it <strong>to</strong> a different mach<strong>in</strong>e and data po<strong>in</strong>t pair, <strong>to</strong> see if a network<br />

connection could be obta<strong>in</strong>ed elsewhere thus prov<strong>in</strong>g that the cable was not at fault <strong>in</strong><br />

the orig<strong>in</strong>al situation. This was <strong>in</strong>deed the case as a connection was established on a<br />

different mach<strong>in</strong>e us<strong>in</strong>g the orig<strong>in</strong>al cable prov<strong>in</strong>g it <strong>to</strong> be operational.<br />

A similar process was adhered <strong>to</strong> <strong>in</strong> the Mardyke Arena where the cross cable and<br />

RS232 cable were checked and proven <strong>to</strong> be functional.<br />

153


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

10.3.1.4 Reconfiguration of UDS 10<br />

The sett<strong>in</strong>gs <strong>in</strong> the UDS 10, the term<strong>in</strong>al server, must be configured us<strong>in</strong>g a term<strong>in</strong>al<br />

program with<strong>in</strong> W<strong>in</strong>dows such as Hyperterm<strong>in</strong>al or Term<strong>in</strong>aLexe. Hyperterm<strong>in</strong>al was<br />

<strong>use</strong>d, as this was <strong>in</strong>cluded <strong>in</strong> the W<strong>in</strong>dows software suite on the supervisory PC on<br />

campus. The UDS 10 was connected <strong>to</strong> the PC via an Ethernet connection, with the IP<br />

address of it be<strong>in</strong>g firstly set <strong>in</strong> hyperterm <strong>in</strong> the TCP/IP (W<strong>in</strong>sock) connection option<br />

dialog box. The COM 1 properties are set accord<strong>in</strong>g <strong>to</strong> the CYLON controls ltd. manual<br />

(Appendix 1), as well as the term<strong>in</strong>al server properties and ASCII sett<strong>in</strong>gs with the<br />

successful connection be<strong>in</strong>g f<strong>in</strong>ally saved.<br />

Once the UDS 10 is connected <strong>to</strong> the same Ethernet network as the supervisory PC on<br />

campus, the PC can connect <strong>to</strong> it and configure it accord<strong>in</strong>gly us<strong>in</strong>g the Lantronix<br />

software, available from the Lantronix website (LANTRONIX, 2003). The APS<br />

Configuration Utility is <strong>in</strong>stalled on the PC. Us<strong>in</strong>g Telnet, the UDS 10 can be logged on<br />

<strong>to</strong>, but only after an IP address is assigned <strong>to</strong> it.<br />

The APS configuration utility is started from the programs menu of the PC, and the<br />

Assign IP l<strong>in</strong>k followed from the <strong>to</strong>ols menu, with the relevant IP address be<strong>in</strong>g filled<br />

<strong>in</strong><strong>to</strong> the dialog box, which is displayed. Once the IP address is assigned <strong>to</strong> the unit, it is<br />

connected <strong>to</strong> via Telnet, another W<strong>in</strong>dows utility, with a client program open<strong>in</strong>g on the<br />

PC. Once this screen is displayed, by press<strong>in</strong>g enter the setup area is entered and the<br />

f<strong>in</strong>al configuration of the UDS 10 can be completed, aga<strong>in</strong> accord<strong>in</strong>g <strong>to</strong> the CYLON<br />

manual [Appendix D].<br />

10.4 NETWORK CONNECTION DIFFICULTIES<br />

S<strong>in</strong>ce the network connection test yielded a negative result, it needed <strong>to</strong> be fixed or an<br />

alternative solution found before the archiv<strong>in</strong>g process could beg<strong>in</strong>.<br />

10.4.1 Purchase of a dedicated PC for this project<br />

It transpired on future <strong>in</strong>spection that the network card on the PC <strong>use</strong>d as the<br />

supervisory PC on campus was <strong>in</strong> fact not fully operational. Return<strong>in</strong>g the mach<strong>in</strong>e <strong>to</strong><br />

the manufacturer for the fault <strong>to</strong> be repaired could have solved this problem, however,<br />

the decision was taken <strong>to</strong> purchase a new, dedicated PC for the purpose of this project<br />

alone.<br />

This was done beca<strong>use</strong> it had become apparent that human <strong>in</strong>tervention could have<br />

become a problem, as the old mach<strong>in</strong>e was a multi purpose one. So <strong>in</strong> order <strong>to</strong> have the<br />

154


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

least possible chance of errors <strong>in</strong> the logg<strong>in</strong>g process occurr<strong>in</strong>g, a dedicated mach<strong>in</strong>e<br />

needed <strong>to</strong> be obta<strong>in</strong>ed. This meant that this mach<strong>in</strong>e now just ran the MS scheduler <strong>to</strong>ol,<br />

which <strong>in</strong> turn launched the PHP upload script. This populated the relevant database<br />

tables with the <strong>in</strong>formation obta<strong>in</strong>ed form the WN 3000 software suite, which <strong>in</strong>itially<br />

logged the data us<strong>in</strong>g the ccReport <strong>to</strong>ol. The dedicated mach<strong>in</strong>e also ensured that<br />

substantial memory was now available for the archiv<strong>in</strong>g process, so that many years<br />

worth of data could now be s<strong>to</strong>red and analysed <strong>in</strong> the future of this project. Once the<br />

software had been <strong>in</strong>stalled on the dedicated mach<strong>in</strong>e, the software <strong>to</strong>ol needed <strong>to</strong><br />

access the logged data that had been s<strong>to</strong>red <strong>in</strong> CSV format.<br />

10.5 FILE PERMISSION PROBLEMS USING IIS<br />

In order <strong>to</strong> upload data <strong>to</strong> the MySQL database us<strong>in</strong>g the PHP filesystem commands<br />

outl<strong>in</strong>ed <strong>in</strong> Section 9.4.2.1 access needed be granted <strong>to</strong> the files so that the “fopen”<br />

function could access them. The files <strong>in</strong> question, the CSV files logged by the ccReport<br />

<strong>to</strong>ol <strong>in</strong> the WN3000 software suite on the campus server, were freed up so that they<br />

could be accessed by the filesystem functions by allow<strong>in</strong>g read/write access, hence<br />

allow<strong>in</strong>g the manipulation of data <strong>in</strong> them for upload <strong>to</strong> the database.<br />

However even though access was allowed <strong>to</strong> these files, a file access problem still<br />

persisted, mean<strong>in</strong>g that the files could not be accessed and hence could not be uploaded.<br />

The ca<strong>use</strong> of this problem was the sett<strong>in</strong>g relat<strong>in</strong>g <strong>to</strong> files <strong>in</strong> IIS.<br />

10.5.1 Alter<strong>in</strong>g IIS properties <strong>to</strong> allow file access<br />

On open<strong>in</strong>g the IIS system and access<strong>in</strong>g the properties tab of the default web site a<br />

number of options are given <strong>in</strong> order <strong>to</strong> alter various parts of the runn<strong>in</strong>g of the site.<br />

This situation can be seen <strong>in</strong> Figure 10.3.<br />

155


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

Figure 10.3: Screenshot of default Web Site options <strong>in</strong> IIS<br />

In order <strong>to</strong> allow access <strong>to</strong> certa<strong>in</strong> file extensions through IIS, it is first necessary <strong>to</strong><br />

make their <strong>use</strong> known <strong>to</strong> the IIS server by <strong>in</strong>clud<strong>in</strong>g the file extensions <strong>to</strong> be accessed <strong>in</strong><br />

the default list associated with IIS. This is done <strong>in</strong> the Server Extensions and Home site<br />

Configuration tabs of the Server, thus mean<strong>in</strong>g that IIS will recognise these file types <strong>in</strong><br />

future thus allow<strong>in</strong>g their access and <strong>use</strong> with<strong>in</strong> the server, and hence solv<strong>in</strong>g the file<br />

access problems <strong>in</strong> this project. Once the data could be accessed it needed <strong>to</strong> be<br />

archived <strong>in</strong> the MySQL database.<br />

10.6 UPLOAD PROBLEMS<br />

10.6.1 Au<strong>to</strong>mation of file upload procedure concerns<br />

MS Scheduler was <strong>use</strong>d <strong>in</strong> conjunction with Internet Explorer <strong>to</strong> run the PHP script that<br />

uploads the MySQL database tables relat<strong>in</strong>g <strong>to</strong> each sensor logged. This process though<br />

meet<strong>in</strong>g the needs of the project for au<strong>to</strong>mation of the upload procedure, did not fully<br />

solve the problem as some manual ma<strong>in</strong>tenance was still necessary due <strong>to</strong> the fact that<br />

an executable file could not be created, thus mean<strong>in</strong>g that the script <strong>to</strong> upload data<br />

needed <strong>to</strong> be launched us<strong>in</strong>g Internet Explorer, which could not be shut down<br />

au<strong>to</strong>matically, hence requir<strong>in</strong>g human <strong>in</strong>tervention <strong>to</strong> close the program, leav<strong>in</strong>g the<br />

server ready <strong>to</strong> upload the next sets of values <strong>to</strong> the database. This human <strong>in</strong>tervention<br />

would be required once a week, so it was not a critical flaw so could be come back <strong>to</strong> at<br />

a later date for improvements <strong>to</strong> be made.<br />

156


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

Dur<strong>in</strong>g the test<strong>in</strong>g process, it became apparent however that this level of manual<br />

ma<strong>in</strong>tenance was not acceptable as a long-term solution <strong>to</strong> the upload process as it left<br />

open the door for human error lead<strong>in</strong>g <strong>to</strong> shortfalls <strong>in</strong> the archived data. A number of<br />

other possibilities <strong>to</strong> negate this problem will be considered <strong>in</strong> Chapter 11 of this thesis<br />

deal<strong>in</strong>g with future work <strong>to</strong> be carried out on this project with a view <strong>to</strong> improv<strong>in</strong>g it at<br />

a later date.<br />

10.6.2 Database upload problem<br />

When the data is written <strong>to</strong> the CSV files, <strong>to</strong> be s<strong>to</strong>red <strong>in</strong> the archive folder on the hard<br />

drive of the server by the ccReport <strong>to</strong>ol <strong>in</strong> the WN3000 software suite, it is written one<br />

l<strong>in</strong>e at a time with one l<strong>in</strong>e correspond<strong>in</strong>g <strong>to</strong> a 48 hour period of logged data, this be<strong>in</strong>g<br />

192 values. However, if this file was <strong>to</strong> be written <strong>to</strong> with each set of new values it<br />

would quickly become unmanageable due <strong>to</strong> its size. It would also take up unnecessary<br />

space on the hard drive of the server as well as also confus<strong>in</strong>g the upload process, as the<br />

file po<strong>in</strong>ter would need <strong>to</strong> be repositioned <strong>in</strong> the file after each new l<strong>in</strong>e had been added<br />

<strong>to</strong> ensure that the correct l<strong>in</strong>e of data was uploaded <strong>to</strong> the database.<br />

Table 10.4: CSV file as archived by the ccReport <strong>to</strong>ol prior <strong>to</strong> upload <strong>to</strong> the<br />

database<br />

UC24 - 004 - AHU<br />

<strong>UCC</strong>4 - 001 01 Pool AHU Pool Area Temperature 900 °C<br />

32976.9792 192 28.63 28.58 28.49<br />

It was therefore decided <strong>to</strong> empty this file of all its contents after each upload had taken<br />

place, so render<strong>in</strong>g it blank, ready for the next set of data <strong>to</strong> be written <strong>to</strong> it. This<br />

ensured that only one set of data resided <strong>in</strong> this file at any one time, m<strong>in</strong>imis<strong>in</strong>g the<br />

memory <strong>use</strong>d by it, and also ensur<strong>in</strong>g that the file po<strong>in</strong>ter would start from the same<br />

position <strong>in</strong> the file each time it was <strong>to</strong> beg<strong>in</strong> upload of data <strong>to</strong> the database. The CSV<br />

file for the Pool Area temperature, as written <strong>to</strong> by ccReport is shown <strong>in</strong> Table 10.4. As<br />

can be seen, only one l<strong>in</strong>e of actual sensor data is written <strong>to</strong> it, with the rest be<strong>in</strong>g<br />

repetitive data relat<strong>in</strong>g <strong>to</strong> which sensor is be<strong>in</strong>g dealt with.<br />

157


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

In order <strong>to</strong> ensure the smooth runn<strong>in</strong>g of the software <strong>to</strong>ol, the exact file sizes needed <strong>to</strong><br />

be known <strong>to</strong> ensure that sufficient memory was available <strong>to</strong> the <strong>to</strong>ol.<br />

10.7 QUANTIFYING DATA STORAGE CAPAC<strong>IT</strong>Y<br />

Once the data was be<strong>in</strong>g uploaded <strong>to</strong> the MySQL database successfully on an ongo<strong>in</strong>g<br />

basis, it was time <strong>to</strong> focus on the actual size of the MySQL files created by populat<strong>in</strong>g<br />

the database tables.<br />

10.7.1 The MYSQL data file<br />

MySQL s<strong>to</strong>res the procedures necessary <strong>to</strong> repopulate a blank database with the same<br />

attributes and values as set by the adm<strong>in</strong>istra<strong>to</strong>r <strong>in</strong> the orig<strong>in</strong>al database, <strong>in</strong> the “data”<br />

folder <strong>in</strong> the “MySQL” folder on the hard drive of the archiv<strong>in</strong>g PC. This folder<br />

conta<strong>in</strong>s all the databases associated with the MySQL database along with the contents<br />

of their associated tables. Each table consists of three files, which are necessary <strong>in</strong> order<br />

<strong>to</strong> s<strong>to</strong>re the data, and <strong>use</strong> it if needed <strong>to</strong> repopulate a blank table. The first is the file,<br />

which sets the attributes of the table, rema<strong>in</strong>s the same size <strong>in</strong> kB’s no matter how big<br />

the file gets due <strong>to</strong> new uploads <strong>to</strong> it. For the tables <strong>in</strong> question <strong>in</strong> this project this file<br />

was 9kB <strong>in</strong> size.<br />

The other two conta<strong>in</strong> the actual data, which resides <strong>in</strong> the table and change <strong>in</strong> size as a<br />

direct result of new data be<strong>in</strong>g <strong>in</strong>put. In the case of this project for each upload of 192<br />

data values <strong>to</strong> the table, these two files <strong>in</strong>creased <strong>in</strong> size by a <strong>to</strong>tal of 3kB mean<strong>in</strong>g that<br />

<strong>to</strong> s<strong>to</strong>re two days of data from one sensor, just 3kB of memory is required.<br />

This however must be taken <strong>in</strong> context as many sensors would be required <strong>to</strong> moni<strong>to</strong>r an<br />

entire facility, and the timeframe that they would be archived for would typically be one<br />

year before the data is backed up <strong>in</strong> an alternative way.<br />

10.7.2 Memory required <strong>to</strong> s<strong>to</strong>re one-years data for one component<br />

For this project, the swimm<strong>in</strong>g pool AHU was analysed with sensor data be<strong>in</strong>g s<strong>to</strong>red <strong>to</strong><br />

calculate the <strong>energy</strong> load on its <strong>in</strong>dividual constituents. Five sensors and their associated<br />

moni<strong>to</strong>red data were required <strong>in</strong> order <strong>to</strong> quantify the load on this AHU. Hence, for two<br />

days of archived data, 5 times the 3kB of memory is required, this be<strong>in</strong>g equal <strong>to</strong> 15kB<br />

of memory. Then for one year of archived data, 183 times this 15kB would be required<br />

this be<strong>in</strong>g equal <strong>to</strong> 2.745MB of data. F<strong>in</strong>ally <strong>to</strong> conclude the calculation, the format files<br />

158


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

for each table must be fac<strong>to</strong>red <strong>in</strong>, this be<strong>in</strong>g 9kB for each table. So the f<strong>in</strong>al memory<br />

capacity <strong>use</strong>d <strong>to</strong> s<strong>to</strong>re the sensor data required <strong>to</strong> calculate the <strong>energy</strong> load on one<br />

component of <strong>energy</strong> <strong>use</strong> <strong>in</strong> the Mardyke Arena is 2.79 MB, about half the size of one<br />

“mp3” file, which is t<strong>in</strong>y when it is considered that the average hard drive capacity of a<br />

PC is 30GB.<br />

S<strong>in</strong>ce any errors that had been identified had had solutions found, it was now time <strong>to</strong><br />

analyse the data that the software <strong>to</strong>ol was generat<strong>in</strong>g, with a view <strong>to</strong> ref<strong>in</strong><strong>in</strong>g it <strong>to</strong> the<br />

needs of the <strong>use</strong>r, as well as mak<strong>in</strong>g sure that it was <strong>in</strong> fact accurate.<br />

159


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

10.8 A CASE STUDY – THE MARDYKE ARENA<br />

10.8.1 Verification of calculation process <strong>use</strong>d <strong>in</strong> the Energyeye software suite<br />

The software environment was now <strong>in</strong> place and data could be uploaded <strong>to</strong> the MySQL<br />

database via the BEMS onsite <strong>in</strong> the Mardyke Arena us<strong>in</strong>g the PC set up on campus<br />

with the associated WN3000 software suite. It was now time <strong>to</strong> analyse the actual data<br />

that was be<strong>in</strong>g delivered onscreen hav<strong>in</strong>g been operated on <strong>to</strong> get the associated loads <strong>to</strong><br />

make sure that it made sense, and was accurate <strong>in</strong> the results it obta<strong>in</strong>ed.<br />

The data displayed onscreen was def<strong>in</strong>ed by what the EPA and DEFRA had advised<br />

regard<strong>in</strong>g the emissions trad<strong>in</strong>g scheme, as this would be one area where this data<br />

would be deemed very <strong>use</strong>ful. The calculations were done <strong>in</strong> the software suite as<br />

expla<strong>in</strong>ed previously <strong>in</strong> Section 9.4.1.2 <strong>in</strong> order <strong>to</strong> obta<strong>in</strong> the required quantities, these<br />

be<strong>in</strong>g primarily kWh’s and kgCO 2 .<br />

In order <strong>to</strong> verify the calculation procedure as set out by this software environment, it<br />

was necessary <strong>to</strong> analyse the results that it returned compared <strong>to</strong> the actual loads that the<br />

components of <strong>energy</strong> <strong>use</strong> <strong>in</strong> AHU 1 imparted. This was done by return<strong>in</strong>g <strong>to</strong> the<br />

analysis procedure as outl<strong>in</strong>ed previously <strong>in</strong> Section 9.4.1.2, where the expected results<br />

for the load on the heat exchanger (Q SPEC <strong>in</strong> Tables 10.1 and Table 10.2) unit were<br />

compared <strong>to</strong> those returned by the software package (Q <strong>in</strong> Tables 10.1 and 10.2). The<br />

calculated load (Q) did return just less than those expected (Q SPEC) but this could be<br />

attributed <strong>to</strong> the fact that efficiencies were not fac<strong>to</strong>red <strong>in</strong> by the software <strong>to</strong>ols<br />

calculation process. These results can be seen <strong>in</strong> Table 10.1 and 10.2, and lead <strong>to</strong> the<br />

conclusion that the results returned by the software environment were correct for the<br />

loads on the heat exchanger and the afterheater <strong>in</strong> AHU 1.<br />

160


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

Table 10.1: Comparison of the calculated load on the Heat Exchanger for the<br />

lower bound values of the supply temp us<strong>in</strong>g Equation 9.2 and that obta<strong>in</strong>ed from<br />

the manufacturers specifications us<strong>in</strong>g Equation 9.13<br />

cf corr Ts tp corr Q Q SPEC Tspace To<br />

1.191352 34.96 14.81966 115.5963 134.7243 29.21 3<br />

1.023314 31.97 15.58127 113.2648 127.0448 28.83 4<br />

0.9126 30 17.15616 99.32723 110.2947 28.82 7<br />

1.0531 32.5 18.12029 98.97642 106.6776 29.17 8<br />

0.931708 30.34 17.9604 87.63267 103.5057 29.6 9<br />

0.900798 29.79 18.5125 83.25229 96.88352 29.41 10<br />

1.14583 34.15 19.70876 85.17168 97.60694 30.54 11<br />

Table 10.2: Comparison of the calculated load on the Heat Exchanger for the<br />

upper bound values of the supply temp us<strong>in</strong>g Equation 9.2 and that obta<strong>in</strong>ed from<br />

the manufacturers specifications us<strong>in</strong>g Equation 9.13<br />

cf corr Ts high tp Corr Q Q SPEC Tspace To<br />

1.920564 45.49 12.81141 125.2956 135.6703 26.38 0<br />

1.919292 45.47 13.19682 119.2849 133.9452 27.07 1<br />

2.003244 46.79 13.29897 110.5039 133.1105 27.92 2<br />

1.594932 40.37 15.87591 106.3664 121.3687 28.81 5<br />

1.56822 39.95 16.47304 102.4263 118.0298 29.21 6<br />

10.8.2 Analysis of visual display of results obta<strong>in</strong>ed from the Energyeye software<br />

suite<br />

Once the actual data and the associated calculations had been checked for accuracy, the<br />

next logical step was <strong>to</strong> look at the graphical <strong>in</strong>terpretation of these results <strong>to</strong> see if they<br />

allowed the <strong>use</strong>r the ability <strong>to</strong> analyse data visually <strong>in</strong> an <strong>in</strong>stant as this was the goal of<br />

the graphs <strong>use</strong>d.<br />

161


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

Figure 10.4: Screenshot of graphs <strong>use</strong>d <strong>to</strong> display <strong>energy</strong> utilised <strong>in</strong> the Mardyke<br />

Arena<br />

It was important <strong>to</strong> <strong>in</strong>tegrate a monthly breakdown of results <strong>in</strong><strong>to</strong> the display<br />

mechanism <strong>to</strong> highlight the seasonal variations that implicitly occur <strong>in</strong> a facility such as<br />

this. This was achieved by assign<strong>in</strong>g one table row of the graph per monthly <strong>energy</strong> <strong>use</strong><br />

<strong>to</strong>tal as calculated by the Energyeye software environment. By do<strong>in</strong>g this an unjustified<br />

period of high-<strong>energy</strong> <strong>use</strong> could easily be identified.<br />

The graphs <strong>use</strong>d <strong>in</strong> this project even though crude <strong>in</strong> their make up at the present time<br />

do <strong>in</strong>deed serve <strong>to</strong> illustrate adequately the areas of <strong>in</strong>terest <strong>to</strong> a facility manager. They<br />

allow the <strong>use</strong>r <strong>to</strong> view the build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> and CO 2 emissions levels for a def<strong>in</strong>ed<br />

period allow<strong>in</strong>g them <strong>to</strong> make decisions easily based on their results.<br />

10.8.3 Format of reports generated<br />

In order <strong>to</strong> make a f<strong>in</strong>al decision on the exact format of the reports generated by the<br />

Energyeye software environment, the Environmental Protection Agency (EPA) [EPA,<br />

2003] were contacted <strong>in</strong> order <strong>to</strong> establish what criteria they would be bas<strong>in</strong>g future<br />

162


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

emissions trad<strong>in</strong>g on, and <strong>to</strong> f<strong>in</strong>d out exactly what <strong>energy</strong> <strong>use</strong> quantities it would be<br />

necessary <strong>to</strong> obta<strong>in</strong> from a build<strong>in</strong>gs <strong>energy</strong> <strong>use</strong> <strong>to</strong> establish them.<br />

On contact<strong>in</strong>g the EPA, it became evident that the emissions trad<strong>in</strong>g scheme was at a<br />

very early stage <strong>in</strong> its establishment <strong>in</strong> this country and as such the exact quantities<br />

needed could not be f<strong>in</strong>alised by the authority at this time. However they recommended<br />

contact<strong>in</strong>g DEFRA, the Department for the Environment, Food and Rural Affairs<br />

[DEFRA, 2003] <strong>in</strong> the UK, who had <strong>in</strong>itiated the scheme <strong>in</strong> the UK <strong>in</strong> 2002, a scheme<br />

that the EPA said would be followed closely by this country.<br />

On contact<strong>in</strong>g DEFRA, it was established that the overall build<strong>in</strong>g <strong>energy</strong> <strong>in</strong> kWh’s<br />

would need <strong>to</strong> be established for a twelve month period as well as the associated CO 2<br />

emissions that resulted. This meant that <strong>in</strong> order for the report generated by this<br />

software environment <strong>to</strong> be <strong>use</strong>ful <strong>to</strong> the emissions trad<strong>in</strong>g scheme <strong>in</strong> this country,<br />

which would follow the DEFRA version closely, it would need <strong>to</strong> <strong>in</strong>clude both of the<br />

aforementioned quantities.<br />

The report generation procedure as outl<strong>in</strong>ed <strong>in</strong> Section 8.4.3 was now exam<strong>in</strong>ed with a<br />

view <strong>to</strong> implement<strong>in</strong>g the required structure so as <strong>to</strong> deliver the relevant <strong>in</strong>formation <strong>to</strong><br />

the authorities <strong>in</strong> future. A calculation function was written <strong>in</strong> the classes PHP file<br />

where much of the functionality of the package resided. This function calculated the<br />

required <strong>energy</strong> <strong>use</strong> for the necessary period as well as the CO 2 emissions associated<br />

with it, when called upon by the associated PHP file. This <strong>in</strong>formation was then written<br />

<strong>to</strong> a specially created blank .xml file when the correct HTML l<strong>in</strong>ks were followed,<br />

sav<strong>in</strong>g the file <strong>to</strong> the hard drive of the <strong>use</strong>rs computer <strong>in</strong> the process. The gbXML file<br />

created as well as a snippet of the code <strong>use</strong>d is shown <strong>in</strong> Figure 10.5 and Table 10.7<br />

respectively.<br />

163


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

Figure 10.5: gbXML report generated<br />

Table 10.7: Code snippet of PHP required <strong>to</strong> output the gbXML report<br />

function calc_real_monthly_heat_load_data()<br />

{<br />

.<br />

.<br />

.$sumTotal += $iTotal;<br />

$Total_Gj=$sumTotal*0.0036;<br />

$Total_Gj_m=$Total_Gj*0.001;<br />

$Total_cost=$sumTotal*0.08;<br />

}<br />

$handle = fopen("report.xml","w");<br />

$<strong>to</strong>file = "\n";<br />

$<strong>to</strong>file .= "\n";<br />

$<strong>to</strong>file .= "\n";<br />

$<strong>to</strong>file .= "\n";<br />

$<strong>to</strong>file .= "\t\t" . $sumTotal . "\n";<br />

$<strong>to</strong>file .= "\n";<br />

.<br />

}<br />

164


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

10.8.4 gbXML Integration with third party <strong>to</strong>ols<br />

The next step on generat<strong>in</strong>g a gbXML report was <strong>to</strong> show it <strong>in</strong> <strong>use</strong> at the next phase,<br />

that be<strong>in</strong>g for example by the eng<strong>in</strong>eer on its receipt. It is hoped that beca<strong>use</strong> an XML<br />

based language was <strong>use</strong>d as the transfer language that <strong>in</strong>tegration with third party<br />

<strong>energy</strong> analysis packages will eventually result as more and more packages become<br />

XML compliant, as expla<strong>in</strong>ed <strong>in</strong> Section 5.2.3. However for now the <strong>use</strong> of the<br />

Extensible Stylesheet Language (XSL) <strong>to</strong> display the gbXML report is illustrated<br />

show<strong>in</strong>g how the eventual recipient of the gbXML report will be able <strong>to</strong> view the report<br />

<strong>in</strong> a <strong>use</strong>r friendly, functional manner.<br />

XSL [XSL, 2003] is a standard recommended by the World Wide Web Consortium,<br />

which allows developers <strong>to</strong> format XML documents for World Wide Web view<strong>in</strong>g<br />

[Kim, 2001] as expla<strong>in</strong>ed <strong>in</strong> more detail <strong>in</strong> Section 8.4. With the <strong>in</strong>clusion of an XSL<br />

stylesheet reference <strong>in</strong> the XML document <strong>to</strong> be transformed us<strong>in</strong>g the XSL file as<br />

shown <strong>in</strong> Table 10.8, the XML document is manipulated for display accord<strong>in</strong>g <strong>to</strong> the<br />

rules as set out <strong>in</strong> the XSL file.<br />

Table 10.8: XML l<strong>in</strong>k <strong>to</strong> XSL Stylesheet<br />

<br />

Once this l<strong>in</strong>k is <strong>in</strong>itialised the XML source document is transformed <strong>in</strong><strong>to</strong> XHTML, a<br />

hybrid version of HTML, which can be viewed <strong>in</strong> a web browser much like HTML.<br />

This gives XSL the ability <strong>to</strong> convert large chunks of visually unpleas<strong>in</strong>g data <strong>in</strong><strong>to</strong> a<br />

much more aesthetically pleas<strong>in</strong>g format.<br />

In the case of the gbXML report generated by the ENERGYEYE software environment<br />

relat<strong>in</strong>g <strong>to</strong> build<strong>in</strong>g specific archived data, the XSL “matches” the data <strong>in</strong> the XML file<br />

with formatt<strong>in</strong>g objects, allow<strong>in</strong>g the data <strong>to</strong> be displayed <strong>in</strong> a more visually pleas<strong>in</strong>g<br />

manner, yet not chang<strong>in</strong>g the actual content of the file. A code snippet of both the<br />

gbXML report generated and the XSL file <strong>use</strong>d <strong>to</strong> display it is shown <strong>in</strong> Tables 10.9 and<br />

10.10 respectively, and the way it will appear <strong>in</strong> the browser w<strong>in</strong>dow is shown <strong>in</strong> the<br />

screenshot <strong>in</strong> Figure 10.6.<br />

165


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

Table 10.9: Generated gbXML report<br />

<br />

<br />

<br />

<br />

<br />

32.790<br />

29.190


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

Figure 10.6: Screenshot of Display result of XSL transformation of gbXML report<br />

In order for the recipient of the gbXML report <strong>to</strong> view it <strong>in</strong> the browser w<strong>in</strong>dow us<strong>in</strong>g<br />

the associated XSL stylesheet, they simply place the gbMXL report <strong>in</strong> the same folder<br />

as the stylesheet, and then open it us<strong>in</strong>g their usual web browser, thus aga<strong>in</strong> illustrat<strong>in</strong>g<br />

the extensibility of the XML programm<strong>in</strong>g language.<br />

10.9 RESULTS AND CONCLUSIONS<br />

10.9.1 Us<strong>in</strong>g APACHE web server <strong>in</strong> place of IIS<br />

Beca<strong>use</strong> of the problems encountered with file access us<strong>in</strong>g Microsoft’s IIS, and the fact<br />

that it had some security issues, as well as its temperamental <strong>in</strong>stallation procedures, an<br />

alternative may be looked at <strong>in</strong> the web server area, that be<strong>in</strong>g the Apache Web Server<br />

[Eweek, 2003]. After three years of development, Apache 2.0 has been released with the<br />

biggest impact be<strong>in</strong>g on W<strong>in</strong>dows servers, where Apache can now perform as a<br />

production-level Web server. Unlike previous W<strong>in</strong>dows versions of it, which were built<br />

from ported Unix code, the new version is written as a native W<strong>in</strong>dows application and<br />

is recommended by the Apache Software Foundation for production <strong>use</strong>.<br />

The performance of Apache 2.0 and Microsoft Corporations Internet Information<br />

Services 5.0 when compared, both runn<strong>in</strong>g on W<strong>in</strong>dows 2000 Advanced Server, yielded<br />

167


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

a positive result for Apache with little or no performance dips associated with a switch<br />

from IIS 5.o <strong>to</strong> Apache 2.0.<br />

The biggest advantage is only seen when security is discussed. Apache's security track<br />

record is excellent, while IIS is not so secure. Microsoft has announced that 10 new<br />

security flaws have been discovered <strong>in</strong> IIS, on <strong>to</strong>p of the ones that already exist.<br />

One potential setback that would seem obvious when mov<strong>in</strong>g <strong>to</strong> Apache from IIS is the<br />

open-source server's unfriendly adm<strong>in</strong>istration <strong>in</strong>terface with all configuration and<br />

adm<strong>in</strong>istration done by edit<strong>in</strong>g “.conf” files. This however could prove <strong>to</strong> be an<br />

advantage as many experts now advise disabl<strong>in</strong>g adm<strong>in</strong>istration <strong>in</strong>terfaces, especially<br />

Web-based ones, beca<strong>use</strong> they are a potential attack po<strong>in</strong>t for hackers.<br />

As well as these improvements <strong>in</strong> security, Apache also has fewer bugs <strong>in</strong> its operation,<br />

which could mean the alleviation of the file access problems experienced <strong>in</strong> this project,<br />

which ca<strong>use</strong>d substantial problems <strong>in</strong> the implementation phase of this software <strong>to</strong>ol.<br />

With apache, as soon as the <strong>in</strong>stallation has been achieved successfully, which is now a<br />

little easier with the new release, with a bit of research, the server’s seem<strong>in</strong>gly<br />

unfriendly configuration and adm<strong>in</strong>istration could be overcome. The result would be a<br />

more secure, much more smoothly run web server, so alleviat<strong>in</strong>g the problems<br />

encountered <strong>in</strong> the duration of this project with IIS 5.0.<br />

10.9.2 Creation of an executable file <strong>to</strong> au<strong>to</strong>matically upload data <strong>to</strong> database<br />

Due <strong>to</strong> the problems encountered <strong>in</strong> this project with au<strong>to</strong>matically upload<strong>in</strong>g the<br />

MySQL database on a daily basis with data obta<strong>in</strong>ed via the ccReport <strong>to</strong>ol <strong>in</strong> the<br />

WN3000 software suite, more research will need <strong>to</strong> be done <strong>to</strong> determ<strong>in</strong>e if there is a<br />

way <strong>in</strong> PHP or some other programm<strong>in</strong>g language <strong>to</strong> create an executable file that could<br />

be scheduled <strong>to</strong> run daily. This program would when launched connect <strong>to</strong> the database,<br />

do the necessary file manipulation, then upload the data <strong>to</strong> the relevant tables <strong>in</strong> the<br />

database before au<strong>to</strong>matically f<strong>in</strong>ish<strong>in</strong>g <strong>in</strong> wait of its next execution the follow<strong>in</strong>g day.<br />

A number of languages could theoretically do just this such as ASP or C++, with C++<br />

def<strong>in</strong>itely hav<strong>in</strong>g the ability <strong>to</strong> have executable files created. ASP on the other hand<br />

would need <strong>to</strong> be researched <strong>to</strong> see whether it was possible, the only advantage <strong>in</strong> this<br />

be<strong>in</strong>g its similarity <strong>to</strong> PHP, so lessen<strong>in</strong>g research time.<br />

Another possibility would be <strong>to</strong> <strong>use</strong> a .bat system file, which would have the path <strong>to</strong> the<br />

necessary PHP file <strong>in</strong>cluded <strong>in</strong> it. This .bat file could then be launched us<strong>in</strong>g the MS<br />

168


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

scheduler <strong>to</strong>ol every two days <strong>in</strong> order <strong>to</strong> upload the 192 values logged by ccReport for<br />

this period.<br />

10.9.3 Development of a more functional XSL stylesheet <strong>to</strong> display gbXML<br />

reports <strong>in</strong> a graphical form <strong>to</strong> a third party<br />

In Section 10.8.4 an XSL stylesheet is <strong>use</strong>d <strong>to</strong> display a gbXML report as generated by<br />

the ENERGYEYE software environment <strong>in</strong> order <strong>to</strong> enable a third party <strong>to</strong> view the<br />

report on an <strong>in</strong>dependent mach<strong>in</strong>e.<br />

Even though this method is functional and does serve <strong>to</strong> enable access <strong>to</strong> the report by<br />

third parties, it is somewhat crude <strong>in</strong> its make up. The next step <strong>in</strong> the development<br />

process of this area of the package could be <strong>to</strong> <strong>in</strong>clude a graphical element <strong>to</strong> the report<br />

view<strong>in</strong>g procedure, so allow<strong>in</strong>g the generated data <strong>to</strong> be displayed <strong>in</strong> bar graphs or pie<br />

charts allow<strong>in</strong>g the third party <strong>to</strong> view and hence analyse the data that much easier.<br />

Another area that the XSL stylesheet could improve <strong>in</strong> the display of archived data<br />

would be <strong>to</strong> highlight sensor data that was above the set po<strong>in</strong>ts as set by the control<br />

strategies, allow<strong>in</strong>g the third party <strong>to</strong> once aga<strong>in</strong> identify areas where problems may be<br />

present that much faster and more efficiently.<br />

These areas will be returned <strong>to</strong> <strong>in</strong> the next chapter on future work.<br />

10.9.4 Deliverables<br />

The first objective of this project was <strong>to</strong> archive the data logged by the BEMS. This was<br />

achieved us<strong>in</strong>g the MySQL database management system. Once <strong>in</strong> this database the<br />

data was then free <strong>to</strong> be manipulated <strong>in</strong><strong>to</strong> the build<strong>in</strong>g specific gbXML data exchange<br />

language. This was aga<strong>in</strong> achieved with the result be<strong>in</strong>g that the data logged by the<br />

BEMS system was now <strong>in</strong>teroperable <strong>in</strong> a gbXML file. This file could now be<br />

exchanged with gbXML compliant analysis applications for further analysis.<br />

The GUI was also developed us<strong>in</strong>g the language of the World Wide Web, HTML. This<br />

meant that it could be uploaded <strong>to</strong> the Internet for remote access. It also meant that it<br />

was easy <strong>to</strong> <strong>use</strong> and navigate for the unskilled <strong>use</strong>r, which was another objective of this<br />

project. With each of the <strong>in</strong>itial objectives of this project met, it was now time <strong>to</strong> beg<strong>in</strong><br />

<strong>to</strong> look <strong>to</strong> its future, and any improvement <strong>to</strong> it that could be made.<br />

169


CHAPTER 10<br />

ARENA<br />

TESTING: PROTOTYPE S<strong>IT</strong>E – THE MARDYKE<br />

10.10 SUMMARY<br />

In order <strong>to</strong> ensure the smooth runn<strong>in</strong>g of the software environment as developed <strong>in</strong><br />

Chapter 9, an extensive test<strong>in</strong>g process was undertaken <strong>to</strong> ensure that any flaws <strong>in</strong> the<br />

design could be fixed, and improvements <strong>in</strong> <strong>use</strong>r <strong>in</strong>teraction achieved. It is important <strong>to</strong><br />

approach the test<strong>in</strong>g process with the attitude of execut<strong>in</strong>g a program with the <strong>in</strong>tent of<br />

f<strong>in</strong>d<strong>in</strong>g errors, s<strong>in</strong>ce test<strong>in</strong>g can only show the presence of errors <strong>in</strong> a program and never<br />

their absence.<br />

The network connection <strong>to</strong> the Mardyke Arena was determ<strong>in</strong>ed <strong>to</strong> be faulty and needed<br />

<strong>to</strong> be repaired so that the logg<strong>in</strong>g process would be un<strong>in</strong>terrupted. A number of areas<br />

where this error was orig<strong>in</strong>at<strong>in</strong>g were exam<strong>in</strong>ed. It transpired on future <strong>in</strong>spection that<br />

the network card on the PC <strong>use</strong>d as the supervisory PC on campus was <strong>in</strong> fact not fully<br />

operational. Return<strong>in</strong>g the mach<strong>in</strong>e <strong>to</strong> the manufacturer for the fault <strong>to</strong> be repaired could<br />

have solved this problem, however, the decision was taken <strong>to</strong> purchase a new, dedicated<br />

PC for the purpose of this project alone.<br />

There were also a number of problems with file access, which on <strong>in</strong>spection were due <strong>to</strong><br />

errors <strong>in</strong> the IIS configuration. This was exam<strong>in</strong>ed and solved.<br />

The core of the package was <strong>in</strong> place and data could be uploaded <strong>to</strong> the MySQL<br />

database via the BEMS onsite <strong>in</strong> the Mardyke Arena us<strong>in</strong>g the PC set up on campus and<br />

the associated WN3000 software suite. It was time <strong>to</strong> analyse the actual data that was<br />

be<strong>in</strong>g delivered onscreen hav<strong>in</strong>g been operated on <strong>to</strong> get the associated loads <strong>to</strong> make<br />

sure that it made sense, and was accurate <strong>in</strong> the results it obta<strong>in</strong>ed. The load calculated<br />

by the software <strong>to</strong>ol did return just less than those expected as calculated from equations<br />

present <strong>in</strong> the specifications for the heat exchanger but this could be attributed <strong>to</strong> the<br />

fact that efficiency’s were not fac<strong>to</strong>red <strong>in</strong> by the software environments calculation<br />

process. These results lead <strong>to</strong> the conclusion that the results returned by the software<br />

environment were correct for the loads on the heat exchanger and the afterheater <strong>in</strong><br />

AHU 1.<br />

The visual display portion of the software environment, as well as the report generation<br />

format were also exam<strong>in</strong>ed with a view <strong>to</strong> ref<strong>in</strong><strong>in</strong>g them. With each of the <strong>in</strong>itial<br />

objectives of the project met, it was now time <strong>to</strong> move on <strong>to</strong> exam<strong>in</strong><strong>in</strong>g its future.<br />

Chapter 11 will take this analysis <strong>to</strong> the next level by exam<strong>in</strong><strong>in</strong>g areas where<br />

improvements could be made <strong>to</strong> the software <strong>to</strong>ol <strong>in</strong> its future.<br />

170


CHAPTER 11<br />

FUTURE WORK<br />

FUTURE WORK<br />

If this software environment is <strong>to</strong> be a fully effective <strong>in</strong> display<strong>in</strong>g, analys<strong>in</strong>g and<br />

generically report<strong>in</strong>g real build<strong>in</strong>g data, it must be developed further than has been<br />

achieved <strong>in</strong> the timeframe of this thesis. A number of possible areas have been noted<br />

with a view <strong>to</strong> mak<strong>in</strong>g improvements <strong>to</strong> the environment, with these now be<strong>in</strong>g<br />

exam<strong>in</strong>ed <strong>in</strong> more detail.<br />

11.1 METERING OF FACIL<strong>IT</strong>IES<br />

11.1.1 Introduction - present meter<strong>in</strong>g trends<br />

A feature of <strong>energy</strong> usage is that its consumption can be accurately measured [DETR<br />

Fuel, 2002]. The electricity supply board supplies a meter, with the same company<br />

read<strong>in</strong>g it <strong>in</strong> order <strong>to</strong> charge the consumer for the <strong>energy</strong> utilised over a certa<strong>in</strong> period,<br />

usually bi-monthly. The positions of these meters are not normally a concern of the<br />

cus<strong>to</strong>mer, and are normally placed where it is most convenient and/or cheapest for the<br />

<strong>in</strong>staller. The bill is then sent <strong>to</strong> the consumer <strong>in</strong> question, and is usually not questioned.<br />

By this, it is meant that, the maximum demand load<strong>in</strong>g is not questioned and the<br />

quantity of <strong>energy</strong> <strong>use</strong>d is bl<strong>in</strong>dly paid for. Unfortunately there are a number of<br />

problems with this system.<br />

11.1.2 Sub-meter<strong>in</strong>g<br />

When analys<strong>in</strong>g a medium <strong>to</strong> large-scale <strong>in</strong>dustrial build<strong>in</strong>g, it becomes apparent that<br />

the <strong>energy</strong> meter<strong>in</strong>g <strong>in</strong> <strong>use</strong> <strong>in</strong> most cases, is not sophisticated enough <strong>to</strong> measure each<br />

constituent part of the build<strong>in</strong>gs <strong>energy</strong> usage. To achieve the best <strong>energy</strong> moni<strong>to</strong>r<strong>in</strong>g<br />

and load match<strong>in</strong>g results, each prime <strong>energy</strong> <strong>use</strong>r of a build<strong>in</strong>g must be metered<br />

separately so that their usage can be analysed <strong>in</strong>dividually, with a view <strong>to</strong> tailor<strong>in</strong>g their<br />

<strong>energy</strong> usage <strong>to</strong> match the load put on them on an <strong>in</strong>dividual basis. Energy consumption<br />

is at a m<strong>in</strong>imum when the source (electrical <strong>energy</strong>) tracks the load perfectly. When a<br />

mismatch occurs, <strong>energy</strong> losses are high [Bhatt, 2000]<br />

If a situation is imag<strong>in</strong>ed where the light<strong>in</strong>g and air-condition<strong>in</strong>g equipments’ <strong>energy</strong><br />

usage is recorded by the same meter, it would take a qualified eng<strong>in</strong>eer <strong>to</strong> look more<br />

closely at the situation <strong>in</strong> order <strong>to</strong> differentiate how much <strong>energy</strong> the air condition<strong>in</strong>g<br />

171


CHAPTER 11<br />

FUTURE WORK<br />

plant was us<strong>in</strong>g, tak<strong>in</strong>g out the <strong>energy</strong> usage of the lights, and whether this was good<br />

practice or not, if a problem arose with it. This would however be a much easier<br />

problem if the air condition<strong>in</strong>g system and the light<strong>in</strong>g were <strong>in</strong>dividually metered as the<br />

<strong>energy</strong> usage could be read directly from the meter and compared with benchmarks <strong>to</strong><br />

see if a good practice situation existed. This second <strong>in</strong>dividually metered set-up is<br />

known as sub-meter<strong>in</strong>g and is essential <strong>in</strong> all medium <strong>to</strong> large-scale <strong>in</strong>dustries if their<br />

<strong>energy</strong> usage is <strong>to</strong> be moni<strong>to</strong>red and tailored <strong>to</strong> efficiently meet their needs at least cost.<br />

11.1.3 Sub-meter<strong>in</strong>g and this package<br />

This package <strong>use</strong>s the philosophy of Whole Build<strong>in</strong>g Energy analysis as exam<strong>in</strong>ed <strong>in</strong><br />

Chapter 4 <strong>to</strong> break down the <strong>energy</strong> usage for an entire facility <strong>in</strong><strong>to</strong> its constituent parts.<br />

This is undertaken so that the usage can be first of all measured and accounted for, and<br />

secondly analysed with a view <strong>to</strong> reduc<strong>in</strong>g consumption at those areas where <strong>energy</strong> is<br />

be<strong>in</strong>g wasted.<br />

Through the <strong>use</strong> of sub-meter<strong>in</strong>g <strong>in</strong> the Mardyke Arena, the pro<strong>to</strong>type site <strong>use</strong>d <strong>in</strong> this<br />

project, the <strong>energy</strong> <strong>use</strong> could have been more closely tracked, mak<strong>in</strong>g it easier and much<br />

more accurate <strong>to</strong> compare any results obta<strong>in</strong>ed through the analysis done <strong>in</strong> this package<br />

aga<strong>in</strong>st real values obta<strong>in</strong>ed from the <strong>in</strong>dividual meters.<br />

So look<strong>in</strong>g <strong>to</strong> the future, if sub-meter<strong>in</strong>g were <strong>in</strong> place <strong>in</strong> any facility that this package<br />

were <strong>to</strong> be <strong>in</strong>tegrated with, the basel<strong>in</strong>e level of <strong>energy</strong> <strong>use</strong> obta<strong>in</strong>ed from meters could<br />

more easily be calibrated aga<strong>in</strong>st ensur<strong>in</strong>g that any figures obta<strong>in</strong>ed <strong>in</strong> future were<br />

absolutely correct and accurate. This would mean that any improvements recommended<br />

as a result of the analysis done by this package would <strong>in</strong>deed be warranted, and would<br />

also ensure the accuracy of the reports generated by it <strong>to</strong> be <strong>in</strong>tegrated <strong>in</strong><strong>to</strong> third party<br />

off the shelf <strong>energy</strong> analysis packages.<br />

11.2 TECHNOLOGY REQUIRED TO ENSURE OPTIMUM INFORMATION<br />

RETRIEVAL FROM A FACIL<strong>IT</strong>Y<br />

In analys<strong>in</strong>g a build<strong>in</strong>g and its <strong>energy</strong> <strong>use</strong>, it is essential that the correct technology,<br />

whether that is sensor or flow technology, be <strong>in</strong> place so that all the data needed <strong>to</strong><br />

accurately quantify the <strong>energy</strong> load on the entire build<strong>in</strong>g can be gathered.<br />

172


CHAPTER 11<br />

FUTURE WORK<br />

11.2.1 Position<strong>in</strong>g of sensors <strong>in</strong> a facility<br />

In us<strong>in</strong>g the whole build<strong>in</strong>g <strong>energy</strong> analysis philosophy <strong>to</strong> analyse build<strong>in</strong>g <strong>energy</strong> <strong>use</strong>,<br />

it is essential that each component of <strong>energy</strong> <strong>use</strong> be equipped with sensors effectively<br />

allow<strong>in</strong>g the necessary <strong>in</strong>formation <strong>to</strong> calculate the load on each <strong>to</strong> be logged by the<br />

BEMS. This can be more easily unders<strong>to</strong>od when the extensive procedure <strong>use</strong>d <strong>in</strong> this<br />

project <strong>to</strong> calculate the load on the components <strong>in</strong> AHU 1 <strong>in</strong> the swimm<strong>in</strong>g pool area of<br />

the Mardyke Arena is considered, as is expla<strong>in</strong>ed <strong>in</strong> Section 9.4.1.2. In this section, due<br />

<strong>to</strong> a lack of a sensor directly before the afterheater, complex equations had <strong>to</strong> be<br />

developed, us<strong>in</strong>g a correction fac<strong>to</strong>r, <strong>to</strong> establish the condition of the air before the unit<br />

and hence determ<strong>in</strong>e the load on the afterheater and the heat exchanger unit. This<br />

scenario meant that a lot more work than would have been necessary had a sensor been<br />

<strong>in</strong> place moni<strong>to</strong>r<strong>in</strong>g the pre-afterheater temperature, had <strong>to</strong> be done.<br />

In future build<strong>in</strong>g <strong>energy</strong> projects, this research would po<strong>in</strong>t very strongly <strong>to</strong>wards<br />

hav<strong>in</strong>g each component of <strong>energy</strong> <strong>use</strong> sensored separately, so that their <strong>in</strong>dividual loads<br />

could be calculated <strong>in</strong>dependently. This would allow the overall <strong>energy</strong> <strong>use</strong> <strong>to</strong> be<br />

compared aga<strong>in</strong>st the sum of the constituent <strong>energy</strong> <strong>use</strong>rs <strong>in</strong> the build<strong>in</strong>g <strong>to</strong> see if a<br />

shortfall occurs, and if so would identify the problem with the system right down <strong>to</strong> its<br />

<strong>in</strong>dividual components, so allow<strong>in</strong>g a more accurate problem solv<strong>in</strong>g loop <strong>to</strong> exist <strong>in</strong> the<br />

system.<br />

To put this <strong>in</strong><strong>to</strong> practice would require the sensor technology <strong>to</strong> be <strong>in</strong>cluded <strong>in</strong> the <strong>in</strong>itial<br />

design phase of the build<strong>in</strong>g process of a new facility, with each AHU be<strong>in</strong>g controlled<br />

by a separate controller, which is l<strong>in</strong>ked <strong>to</strong> the <strong>in</strong>dividual sensors moni<strong>to</strong>r<strong>in</strong>g each<br />

component. By do<strong>in</strong>g this <strong>in</strong> the design phase, the need <strong>to</strong> <strong>in</strong>stall sensor technology at a<br />

later date at much greater cost and with implications for the control set up <strong>in</strong> the facility<br />

caus<strong>in</strong>g further trouble and expense is avoided, so ensur<strong>in</strong>g a least cost solution <strong>to</strong><br />

supply<strong>in</strong>g the most <strong>energy</strong> efficient facility.<br />

This <strong>in</strong>dividual component moni<strong>to</strong>r<strong>in</strong>g would also allow the entire lifecycle of<br />

performance of each component <strong>to</strong> be moni<strong>to</strong>red, so illustrat<strong>in</strong>g the optimum timescale<br />

for equipment replacement and other necessary ma<strong>in</strong>tenance work.<br />

11.2.2 Integration of flow meter sensors<br />

This much like the temperature sensor technology would allow the load on each<br />

component <strong>to</strong> be moni<strong>to</strong>red more accurately, as at present, the commissioned flow rates<br />

are <strong>use</strong>d <strong>in</strong> the calculation process <strong>to</strong> obta<strong>in</strong> the loads on the constituent parts of the<br />

173


CHAPTER 11<br />

FUTURE WORK<br />

AHU system. If the flow rates were <strong>to</strong> be moni<strong>to</strong>red by sensors at different po<strong>in</strong>ts along<br />

the ducts, this coupled with the other sensors <strong>in</strong> the system would allow the exact load<br />

at any time <strong>to</strong> be calculated, based on time specific flow rate data, so tak<strong>in</strong>g out any<br />

possibility of errors due <strong>to</strong> the <strong>use</strong> of <strong>in</strong>correct averaged data.<br />

11.3 XML INTEGRATION W<strong>IT</strong>H OFF THE SHELF APPLICATIONS<br />

At present the XML output generated by this software <strong>to</strong>ol is not directly usable by<br />

packages such as DOE and ENERGYPLUS as they do not support XML. By this it is<br />

meant that the <strong>in</strong>formation is there <strong>to</strong> be uploaded by hand by the packages’ opera<strong>to</strong>r<br />

from the easily understandable gbXML document but is not au<strong>to</strong>matically up-loadable<br />

<strong>to</strong> the package itself.<br />

However, with XML be<strong>in</strong>g a data format that can be read by any <strong>IT</strong> application,<br />

allow<strong>in</strong>g controller logged data <strong>to</strong> be transferred over an Ethernet <strong>in</strong><strong>to</strong> say a spreadsheet<br />

or a bill<strong>in</strong>g package for further analytical purposes [CIBSE, 2002], it is almost certa<strong>in</strong><br />

that these eng<strong>in</strong>eer<strong>in</strong>g software packages will <strong>in</strong>tegrate XML <strong>in</strong> the not <strong>to</strong>o distant<br />

future. In fact ENERGYPLUS has already implemented support for XML <strong>in</strong> the form of<br />

IFX, which means that it will write an XML version of the IFCs <strong>to</strong> the output file. However, at<br />

present there is a means <strong>to</strong> translate XML data <strong>in</strong><strong>to</strong> a more easily understandable format <strong>to</strong> facilitate third<br />

party analysis, this be<strong>in</strong>g through the <strong>use</strong> of XSL.<br />

11.3.1 Us<strong>in</strong>g XSL for display of gbXML reports <strong>to</strong> facilitate third party analysis<br />

In Section 10.8.4, XSL was <strong>use</strong>d <strong>to</strong> display the archived data returned from the MySQL<br />

database <strong>in</strong> an easy <strong>to</strong> read, aesthetically pleas<strong>in</strong>g table. This file would reside on the PC<br />

of the third party analyst and would be l<strong>in</strong>ked <strong>to</strong> the gbXML report generated by the<br />

Energyeye package on its receipt by a call embedded <strong>in</strong> the report itself.<br />

However, even though this facility would enable the third party analyst <strong>to</strong> have access<br />

<strong>to</strong> the report <strong>in</strong> an easily understandable format, it could do so much more with a little<br />

research and development.<br />

A bar graph could be implemented <strong>in</strong> order <strong>to</strong> highlight the kWh usage per month <strong>in</strong><br />

much the same way as was achieved us<strong>in</strong>g the HTML tables <strong>in</strong> this package. This<br />

would however require some research <strong>in</strong><strong>to</strong> the XSL language but once implemented,<br />

would add extra functionality.<br />

Also, by do<strong>in</strong>g a quick comparison check on returned kWh or kgCO 2 results aga<strong>in</strong>st for<br />

example the maximum levels allowed before carbon taxation would result, the figures<br />

174


CHAPTER 11<br />

FUTURE WORK<br />

above these levels could be highlighted <strong>in</strong> an alarm colour <strong>to</strong> draw the analysts attention<br />

<strong>to</strong> the guilty time periods, so that remedial action could be set <strong>in</strong> motion.<br />

This would be just one small and limited <strong>use</strong> of the gbXML report but it does serve <strong>to</strong><br />

show the attractiveness of hav<strong>in</strong>g a generic data exchange format, which could be<br />

<strong>in</strong>tegrated with third party analysis <strong>to</strong>ols, thus free<strong>in</strong>g up the data for analysis off-site at<br />

least cost and maximum efficiency.<br />

11.4 USING GD-LIBRARY TO GRAPHICALLY INTERTPRET RETURNED<br />

RESULTS<br />

The display portion of this project was a very important aspect of it <strong>in</strong> order <strong>to</strong> allow the<br />

software environment <strong>to</strong> be as accessible as possible <strong>to</strong> as many people as possible. It<br />

was hoped that by display<strong>in</strong>g the <strong>in</strong>formation <strong>in</strong> graphical format that it would be more<br />

easily understandable <strong>to</strong> the untra<strong>in</strong>ed eye, and hence be open <strong>to</strong> a larger share of the<br />

market. It was also hoped that this graphical display would allow for the easy<br />

identification of any exist<strong>in</strong>g problems <strong>in</strong> plant operation, so lead<strong>in</strong>g <strong>to</strong> a solution be<strong>in</strong>g<br />

sought that much faster.<br />

Beca<strong>use</strong> of the limited time and fund<strong>in</strong>g available <strong>to</strong> complete this project it was not<br />

possible <strong>to</strong> fully explore what would have been a better solution <strong>to</strong> the graphical display<br />

portion of this project as expla<strong>in</strong>ed <strong>in</strong> Section 9.5.2, that be<strong>in</strong>g the GD-Library of<br />

display functions. Instead tables were <strong>use</strong>d <strong>to</strong> display bar graphs onscreen allow<strong>in</strong>g the<br />

<strong>use</strong>r <strong>to</strong> identify fluctuations <strong>in</strong> load visually <strong>in</strong> a more crude, yet still effective manner.<br />

The GD-Library however, would have facilitated the <strong>use</strong> of pie charts (Figure 11.1) as<br />

well as comparative l<strong>in</strong>e graphs (Figure 11.2) <strong>to</strong> exam<strong>in</strong>e archived data, so allow<strong>in</strong>g a<br />

more visually attractive and possibly more effective solution <strong>to</strong> be arrived at.<br />

175


CHAPTER 11<br />

FUTURE WORK<br />

Figure 11.1: Pie Chart created us<strong>in</strong>g GD Library <strong>in</strong> association with PHP [ZEND,<br />

2003]<br />

Figure 11.2: Comparative L<strong>in</strong>e Chart created us<strong>in</strong>g GD Library <strong>in</strong> association<br />

with PHP [ZEND, 2003]<br />

11.4.1 Introduction <strong>to</strong> GDlibrary<br />

The GD graphics library is an open source library, which allows programmers <strong>to</strong> easily<br />

generate PNG, JPEG, and WBMP images from many different programm<strong>in</strong>g languages<br />

[GD Lib, 2003]. It is an up-loadable library of PHP functions that allows the<br />

programmer <strong>to</strong> set parameters for the construction of a graph, either a pie chart or bar<br />

graph, and even l<strong>in</strong>e graphs, based on returned values from a database.<br />

11.4.2 GDlibrary as a future graphical <strong>to</strong>ol<br />

The <strong>use</strong> of the GD graphics library <strong>in</strong> the future of this project would enhance the<br />

display portion of it. It would allow the returned results from the MySQL database <strong>to</strong> be<br />

displayed <strong>in</strong> comparative l<strong>in</strong>e charts as <strong>in</strong> Figure 11.2, which would be very helpful <strong>in</strong><br />

the analysis of the archived sensor data <strong>to</strong> see when any set po<strong>in</strong>ts had been surpassed.<br />

176


CHAPTER 11<br />

FUTURE WORK<br />

The <strong>use</strong> of pie charts as <strong>in</strong> Figure 11.1, would allow the monthly load breakdown <strong>in</strong><br />

kWh’s as well as the kgCO 2 emitted each month <strong>to</strong> be much more closely scrut<strong>in</strong>ised at<br />

a s<strong>in</strong>gle glance as the ma<strong>in</strong> <strong>energy</strong> us<strong>in</strong>g and CO 2 emitt<strong>in</strong>g months would be<br />

immediately apparent from first glance at the pie chart.<br />

Numerous other types of graphs could also be implemented <strong>to</strong> further add <strong>to</strong> the<br />

functionality and broad scale appeal of the returned data allow<strong>in</strong>g easy access <strong>to</strong> and<br />

analysis of the archived data.<br />

11.5 WHOLE BUILDING ENERGY ANALYSIS OF THE MARDYKE ARENA<br />

The Mardyke Arena as exam<strong>in</strong>ed <strong>in</strong> Chapter 6, was a facility controlled by four AHUs<br />

as well as with a comb<strong>in</strong>ation of extract/supply fans and separate all <strong>in</strong> one Mitsubishi<br />

air condition<strong>in</strong>g units <strong>in</strong> order <strong>to</strong> ma<strong>in</strong>ta<strong>in</strong> comfort levels. The decision was taken at an<br />

early stage <strong>to</strong> focus on one AHU <strong>in</strong> order <strong>to</strong> simplify the calculation process, as well as<br />

make sure the software <strong>to</strong>ol was work<strong>in</strong>g correctly. The code <strong>use</strong>d and the scope of the<br />

project were also kept <strong>to</strong> a m<strong>in</strong>imum us<strong>in</strong>g just one AHU. This simplification was<br />

necessary due <strong>to</strong> the time and fund<strong>in</strong>g constra<strong>in</strong>ts that this project had. It would simply<br />

not have been possible <strong>to</strong> exam<strong>in</strong>e each part of the mechanical system <strong>in</strong> existence <strong>in</strong><br />

the Arena, and implement it <strong>in</strong><strong>to</strong> the software environments analysis procedure, <strong>in</strong> the<br />

time available, and with the fund<strong>in</strong>g available.<br />

However, with one AHU be<strong>in</strong>g <strong>use</strong>d as a pro<strong>to</strong>type for the packages development, and<br />

the procedure for analysis as well as the code <strong>use</strong>d <strong>to</strong> achieve this analysis be<strong>in</strong>g f<strong>in</strong>e<br />

tuned, the next step, that be<strong>in</strong>g <strong>to</strong> take on the analysis of the whole facility, would now<br />

be made a lot easier with the same steps be<strong>in</strong>g followed. This would however require<br />

substantial time, as the <strong>in</strong>dividual AHUs operation would need <strong>to</strong> be firstly unders<strong>to</strong>od,<br />

then broken down <strong>in</strong><strong>to</strong> their <strong>in</strong>dividual parts <strong>in</strong> order <strong>to</strong> identify the <strong>energy</strong> consumed by<br />

each different components. Then the relevant sensors would need <strong>to</strong> be logged by the<br />

ccReoprt <strong>to</strong>ol <strong>in</strong> the WN3000 software suite on the server <strong>in</strong> order for the data <strong>to</strong> be<br />

eventually uploaded <strong>to</strong> the MySQL database table created specifically for that<br />

component of <strong>energy</strong> <strong>use</strong>. However this process could be made more difficult if the<br />

particular area was not available <strong>to</strong> log <strong>in</strong> ccReport as was the case <strong>in</strong> the pre-afterheater<br />

temperature <strong>in</strong> AHU 1 as expla<strong>in</strong>ed <strong>in</strong> Section 9.4.1.2.<br />

Once any problems <strong>in</strong> this area had been solved, the next step <strong>in</strong> the development<br />

process would be the SQL calls and the calculations necessary <strong>in</strong> order <strong>to</strong> quantify the<br />

<strong>energy</strong> <strong>use</strong>d by that piece of apparatus. This should aga<strong>in</strong> now be much easier with the<br />

177


CHAPTER 11<br />

FUTURE WORK<br />

successful completion of the calculations <strong>to</strong> quantify the load on the pro<strong>to</strong>type AHU,<br />

with similar calculations be<strong>in</strong>g required by each component of <strong>energy</strong> <strong>use</strong> thereafter.<br />

Then once the correct results are be<strong>in</strong>g returned by the SQL queries via the PHP <strong>use</strong>d <strong>to</strong><br />

connect <strong>to</strong> the database, the GUI would need <strong>to</strong> be updated <strong>to</strong> <strong>in</strong>clude l<strong>in</strong>ks and display<br />

mechanisms for each new portion operated on. This process would aga<strong>in</strong> be time<br />

consum<strong>in</strong>g if repetitive <strong>in</strong> nature, as the code needed <strong>to</strong> create the different portions of<br />

the GUI would need <strong>to</strong> be developed then l<strong>in</strong>ked <strong>to</strong> the existed pages. The navigation<br />

would also have <strong>to</strong> be improved as the front-end portion of the software <strong>to</strong>ol expanded<br />

<strong>in</strong> order <strong>to</strong> keep the usability, which is one of the most important aspects of the software<br />

<strong>to</strong>ols’ operational goals.<br />

11.6 CREATION OF AN EXECUTABLE FILE TO AUTOMATICALLY<br />

UPLOAD DATA TO THE MySQL DATABASE<br />

At present the au<strong>to</strong>matic upload procedure <strong>use</strong>d <strong>to</strong> populate the Mysql database with the<br />

<strong>in</strong>formation logged by the ccReport <strong>to</strong>ol is flawed <strong>in</strong> the fact that it requires human<br />

<strong>in</strong>tervention on a weekly basis <strong>in</strong> order for it <strong>to</strong> function sufficiently. The MS Scheduler<br />

program launches a PHP script via an Internet Explorer browser w<strong>in</strong>dow, and the<br />

database is populated by the actions that take place <strong>in</strong> the PHP script. However s<strong>in</strong>ce<br />

PHP has no way of creat<strong>in</strong>g a standalone executable file which could be launched<br />

<strong>in</strong>dependently of the browser w<strong>in</strong>dow, an alternative programm<strong>in</strong>g language needs <strong>to</strong> be<br />

identified which could ho<strong>use</strong> the PHP script <strong>in</strong> an executable file which <strong>in</strong> turn could be<br />

launched by the MS Scheduler <strong>to</strong>ol hence requir<strong>in</strong>g no human <strong>in</strong>tervention <strong>to</strong> shut it<br />

down when its job is complete as is presently the case.<br />

The most likely option for the smooth au<strong>to</strong>mation of this upload procedure would seem<br />

<strong>to</strong> be through the creation of a .bat system file which would run the PHP script <strong>in</strong> the<br />

associated upload file. This .bat file would l<strong>in</strong>k <strong>to</strong> the PHP file by hav<strong>in</strong>g the associated<br />

file path <strong>in</strong>cluded <strong>in</strong> it.<br />

Once the .bat file was created and seen <strong>to</strong> be operational by test<strong>in</strong>g it us<strong>in</strong>g the DOS<br />

command prompt dialog box it could be au<strong>to</strong>matically launched by the MS scheduler<br />

<strong>to</strong>ol every two days. This would correspond <strong>to</strong> 192 data po<strong>in</strong>ts, which is the maximum<br />

logg<strong>in</strong>g capacity of the controllers <strong>in</strong> place <strong>in</strong> the Mardyke Arena. No human <strong>in</strong>teraction<br />

would then be required <strong>to</strong> facilitate a successful data upload. It would also run <strong>in</strong> the<br />

background so not <strong>in</strong>terrupt<strong>in</strong>g any other processes be<strong>in</strong>g carried out on the system.<br />

178


CHAPTER 11<br />

FUTURE WORK<br />

11.6.1 Implement<strong>in</strong>g this solution<br />

In order <strong>to</strong> accomplish this task, the .bat file creation and runn<strong>in</strong>g system would need <strong>to</strong><br />

be researched and unders<strong>to</strong>od. As this problem would only be a simple implementation<br />

of this system, it would not be seen as a major undertak<strong>in</strong>g and would def<strong>in</strong>itely be the<br />

most likely and efficient solution.<br />

11.7 SESSION CONTROL IMPLEMENTATION<br />

The data dealt with <strong>in</strong> this project was of a sensitive nature and so needed <strong>to</strong> be treated<br />

very carefully <strong>in</strong> order <strong>to</strong> ensure its secure nature. In look<strong>in</strong>g at this aspect of the<br />

development process, various means of secur<strong>in</strong>g any data collected and archived so that<br />

only the authorised personnel could access it were identified.<br />

Aga<strong>in</strong> the time constra<strong>in</strong>ts on this project proved the decid<strong>in</strong>g fac<strong>to</strong>r <strong>in</strong> this area, as<br />

password protection lead<strong>in</strong>g <strong>to</strong> a javascript pop up w<strong>in</strong>dow was utilised. This low level<br />

security ensured that the everyday web surfer could not access the data, but did leave it<br />

open <strong>to</strong> the more experienced hacker. With more time and resources <strong>to</strong> develop this<br />

project, session control would be the chosen option as discussed <strong>in</strong> Section 8.5.1 as this<br />

would allow the software environment <strong>to</strong> more closely track the <strong>use</strong>rs logged on and<br />

ensure that they rema<strong>in</strong> the same from secure page <strong>to</strong> secure page.<br />

Session control would require some <strong>in</strong> depth research as <strong>in</strong> PHP it is a develop<strong>in</strong>g area<br />

that has just been implemented <strong>in</strong> the last update of the language, so some bugs would<br />

have been <strong>in</strong>evitable. However with the time <strong>to</strong> fully understand the process <strong>use</strong>d<br />

alleviat<strong>in</strong>g any bugs along the way, it could be successfully implemented <strong>in</strong> this project.<br />

11.8 REMOTE UPLOAD OF DATA W<strong>IT</strong>H SSL INTEGRATION<br />

In order <strong>to</strong> take this project <strong>to</strong> the next level of operation, a remote upload procedure<br />

would need <strong>to</strong> be developed. This itself would require m<strong>in</strong>imal cod<strong>in</strong>g on the<br />

programmers part as the procedure would rema<strong>in</strong> the same from company <strong>to</strong> company if<br />

the correct technology was <strong>in</strong>stalled onsite, i.e. the WN3000 software suite, and the<br />

ccReport <strong>to</strong>ol that comes with it, but aga<strong>in</strong> the sensitive nature of the data uploaded<br />

would mean that security issues would need <strong>to</strong> be addressed <strong>in</strong> the form of the SSL<br />

security certificate as discussed <strong>in</strong> Section 8.5.2.<br />

179


CHAPTER 11<br />

FUTURE WORK<br />

11.8.1 Procedure outl<strong>in</strong>ed<br />

A number of possibilities for this process are currently <strong>use</strong>d everyday <strong>in</strong> the E-<br />

commerce bus<strong>in</strong>ess world.<br />

11.8.1.1 Upload of data onl<strong>in</strong>e<br />

The first and most widely <strong>use</strong>d method would be through the <strong>use</strong> of an upload screen<br />

which would allow the facility manager <strong>to</strong> browse through the archive on the<br />

supervisory PC <strong>in</strong> his/her facility until the file for upload is found, then hitt<strong>in</strong>g an<br />

upload tab onscreen so sett<strong>in</strong>g <strong>in</strong> motion the upload process. This method is <strong>use</strong>d <strong>in</strong> a<br />

cruder manner on guestbook’s or areas of sites that request <strong>use</strong>r feedback. The <strong>use</strong>r<br />

types their <strong>in</strong>formation or request <strong>in</strong><strong>to</strong> a dialog box and on hitt<strong>in</strong>g an upload but<strong>to</strong>n the<br />

data is transferred <strong>to</strong> the webmaster, or owner of the sites designated folder for their<br />

<strong>in</strong>spection at their convenience.<br />

This method would serve this purpose very well, but some concerns would exist with its<br />

utilisation. The fact that a lot of responsibility resides with the facility manager for the<br />

upload of the correct file could lead <strong>to</strong> <strong>use</strong>r errors occurr<strong>in</strong>g and the wrong data be<strong>in</strong>g<br />

uploaded. Some knowledge of the Internet and its <strong>use</strong> is also required for this method <strong>to</strong><br />

run smoothly and this <strong>in</strong> turn could lead <strong>to</strong> problems with the procedure if the facility<br />

manager is unfamiliar with the process. F<strong>in</strong>ally the security issue would aga<strong>in</strong> be a<br />

ca<strong>use</strong> for concern as the data be<strong>in</strong>g transferred over the <strong>in</strong>ternet means that it would be<br />

free <strong>to</strong> be attacked by hackers should they wish <strong>to</strong> do so, unless a secure transaction<br />

were <strong>to</strong> take place which could alleviate this problem.<br />

None of these problems are fatal however and this solution would be looked at further<br />

before discount<strong>in</strong>g it <strong>to</strong>tally<br />

11.8.1.2 The MySQL data file<br />

Another option <strong>in</strong> receiv<strong>in</strong>g data from remote sites would be <strong>to</strong> <strong>use</strong> the MySQL data<br />

file. In this file as expla<strong>in</strong>ed <strong>in</strong> Section 10.7.1, the entire contents of the MySQL tables<br />

is s<strong>to</strong>red and can be <strong>use</strong>d <strong>to</strong> repopulate a new remote MySQL database identical <strong>to</strong> the<br />

one that is ma<strong>in</strong>ta<strong>in</strong>ed on the supervisory PC of the facility where the <strong>in</strong>formation was<br />

gathered.<br />

This file could be emailed on a periodic basis au<strong>to</strong>matically <strong>to</strong> the staff at<br />

ENERGYEYE, and then uploaded <strong>to</strong> the adm<strong>in</strong>istration database where calculations<br />

180


CHAPTER 11<br />

FUTURE WORK<br />

would take place so lead<strong>in</strong>g <strong>to</strong> output be<strong>in</strong>g generated for the GUI where the facility<br />

manager would log <strong>in</strong><strong>to</strong> <strong>to</strong> view <strong>energy</strong> <strong>use</strong> data.<br />

This method would require no actions <strong>to</strong> be taken by the facility manager so mean<strong>in</strong>g<br />

that the chance of human error would be significantly reduced <strong>in</strong> this process. However,<br />

this scenario would require human <strong>in</strong>tervention at the other end of the system with an<br />

employee of ENERYEYE be<strong>in</strong>g required <strong>to</strong> upload the data <strong>to</strong> the relevant database,<br />

this be<strong>in</strong>g however a relatively simple operation and also one be<strong>in</strong>g done by a tra<strong>in</strong>ed<br />

<strong>in</strong>dividual <strong>use</strong>d <strong>to</strong> the process.<br />

Further development of this process would need <strong>to</strong> be undertaken <strong>in</strong>clud<strong>in</strong>g the<br />

au<strong>to</strong>mation of the email process, but it would seem <strong>to</strong> be a viable solution <strong>to</strong> this<br />

problem, and could serve <strong>to</strong> be the best practice option.<br />

11.9 DEVELOPMENT OF A MORE PROFESSIONAL GUI<br />

At the completion of this project, the GUI was functional and aesthetically pleas<strong>in</strong>g, as<br />

well as easy <strong>to</strong> navigate. It also displayed the returned data <strong>in</strong> a format that was<br />

accessible <strong>to</strong> even the most untra<strong>in</strong>ed eye that be<strong>in</strong>g <strong>in</strong> easy <strong>to</strong> understand graphs.<br />

However, it did not have a very professional look or feel <strong>to</strong> it. It was still somewhat<br />

crude <strong>in</strong> its make-up, with no brand<strong>in</strong>g or logo <strong>to</strong> def<strong>in</strong>e its market.<br />

The Macromedia Studio MX software package purchased dur<strong>in</strong>g the course of the<br />

project has the facility <strong>to</strong> change all of this. With this package, the <strong>use</strong>r <strong>in</strong>terface could<br />

be <strong>to</strong>tally revamped. The Fireworks MX portion of the Studio MX package could be<br />

<strong>use</strong>d <strong>to</strong> design a logo along with any navigation but<strong>to</strong>ns or artwork necessary <strong>to</strong> create a<br />

cus<strong>to</strong>m made brand <strong>to</strong> go along with the software <strong>to</strong>ol. This would then be easily<br />

identifiable when put <strong>in</strong><strong>to</strong> action on the Internet. This brand<strong>in</strong>g would not only serve <strong>to</strong><br />

add <strong>to</strong> the functionality and feel of the package but would also serve <strong>to</strong> identify the<br />

software environment <strong>in</strong> its <strong>in</strong>dividual market.<br />

The Dreamweaver and Flash MX development section of the Studio MX package could<br />

then be <strong>use</strong>d <strong>to</strong> <strong>in</strong>tegrate these Fireworks created icons and but<strong>to</strong>ns <strong>in</strong><strong>to</strong> the GUI. This<br />

coupled with Dreamweaver’s ability <strong>to</strong> def<strong>in</strong>e the look and layout of the GUI, and<br />

Flash’s ability <strong>to</strong> add <strong>to</strong> the dynamic nature of the site us<strong>in</strong>g animations and other<br />

dynamic elements <strong>to</strong> br<strong>in</strong>g the GUI <strong>to</strong> life, would serve <strong>to</strong> upgrade the accessibility and<br />

navigat<strong>in</strong>g elements of the GUI <strong>to</strong> <strong>in</strong>tegrate it <strong>in</strong><strong>to</strong> the bus<strong>in</strong>ess world more effectively.<br />

181


CHAPTER 11<br />

FUTURE WORK<br />

11.10 FUTURE BUSINESS PLAN<br />

In look<strong>in</strong>g <strong>to</strong> take this software environment <strong>to</strong> the next level <strong>in</strong> terms of f<strong>in</strong>d<strong>in</strong>g a<br />

genu<strong>in</strong>e place for it <strong>in</strong> the <strong>energy</strong> management market, a bus<strong>in</strong>ess model will need <strong>to</strong> be<br />

developed. This model will need <strong>to</strong> look at the market that the package will best suit as<br />

well as the way that it will generate revenue from this market.<br />

11.10.1 E-Commerce bus<strong>in</strong>ess models<br />

As the delivery <strong>to</strong>ol <strong>use</strong>d <strong>to</strong> facilitate this software <strong>to</strong>ol is the Internet, the E-Commerce<br />

bus<strong>in</strong>ess models <strong>in</strong> existence were exam<strong>in</strong>ed with a view <strong>to</strong> identify<strong>in</strong>g a suitable one <strong>to</strong><br />

<strong>use</strong>.<br />

11.10.1.1 Introduction <strong>to</strong> bus<strong>in</strong>ess models on the web<br />

Bus<strong>in</strong>ess Models are one of the most discussed yet also the most misunders<strong>to</strong>od aspects<br />

of the Internet. A Bus<strong>in</strong>ess Model is a method of do<strong>in</strong>g bus<strong>in</strong>ess that allows a company<br />

<strong>to</strong> susta<strong>in</strong> itself by creat<strong>in</strong>g revenue <strong>to</strong> meet its production costs [Rappa, 2000]. It does<br />

this by specify<strong>in</strong>g a company’s place <strong>in</strong> the value cha<strong>in</strong> so identify<strong>in</strong>g where it can<br />

make money.<br />

Some models are quite simple, whereby a company produces a good service or product<br />

and sells it <strong>to</strong> its cus<strong>to</strong>mers, with all go<strong>in</strong>g well the revenue generated by sales of the<br />

product or service exceed<strong>in</strong>g the runn<strong>in</strong>g costs of operation of the company hence<br />

mean<strong>in</strong>g that it has made a profit. It is a way of describ<strong>in</strong>g the logic of a bus<strong>in</strong>ess<br />

system for creat<strong>in</strong>g value beh<strong>in</strong>d the actual processes <strong>in</strong>volved <strong>in</strong> the production of this<br />

service [Osterwalder, 2003].<br />

On the other hand, some Bus<strong>in</strong>ess models are more complicated such as <strong>in</strong> the<br />

broadcast<strong>in</strong>g sec<strong>to</strong>r, where programmes are broadcasted for free with any revenue<br />

generated be<strong>in</strong>g a product of a complex network of advertisers and content crea<strong>to</strong>rs,<br />

with the bot<strong>to</strong>m l<strong>in</strong>e depend<strong>in</strong>g on all of these compet<strong>in</strong>g fac<strong>to</strong>rs.<br />

11.10.1.1 CATAGORIES OF BUSINESS MODELS<br />

There are n<strong>in</strong>e ma<strong>in</strong> E-commerce Bus<strong>in</strong>ess Models that company’s <strong>use</strong> when<br />

develop<strong>in</strong>g an Internet bus<strong>in</strong>ess strategy. Companies may even comb<strong>in</strong>e several<br />

different models as part of their overall strategies. The n<strong>in</strong>e Bus<strong>in</strong>ess Models are:<br />

182


CHAPTER 11<br />

FUTURE WORK<br />

1) Brokerage – Brokers are market makers who br<strong>in</strong>g buyers and sellers <strong>to</strong>gether <strong>to</strong><br />

facilitate transactions, charg<strong>in</strong>g a fee or commission for the service that they<br />

provide;<br />

2) Advertis<strong>in</strong>g – The web-advertis<strong>in</strong>g model is an extension of the traditional<br />

media broadcast model, with the web site provid<strong>in</strong>g content <strong>to</strong> attract viewers <strong>to</strong><br />

the advertis<strong>in</strong>g that they are home <strong>to</strong>;<br />

3) Infomediary – some firms act as <strong>in</strong>fomediaries assist<strong>in</strong>g buyers and/or sellers<br />

understand a given market;<br />

4) Merchant – Wholesalers and retailers of goods and services with sales be<strong>in</strong>g<br />

based on list prices or through auctions;<br />

5) Manufacturer – A model based on the power of the web <strong>to</strong> allow a manufacturer<br />

<strong>to</strong> reach buyers directly thereby compress<strong>in</strong>g the distribution channel;<br />

6) Affiliate – Instead of try<strong>in</strong>g <strong>to</strong> drive a high volume of traffic <strong>to</strong> one site, the<br />

affiliate model provides purchas<strong>in</strong>g opportunities wherever people may be<br />

surf<strong>in</strong>g. It does this by provid<strong>in</strong>g f<strong>in</strong>ancial <strong>in</strong>centives <strong>to</strong> affiliated partner sites<br />

with purchase opportunities be<strong>in</strong>g available through a click through system;<br />

7) Community – This model is based on <strong>use</strong>r loyalty, with <strong>use</strong>rs hav<strong>in</strong>g a high<br />

<strong>in</strong>vestment <strong>in</strong> both time and emotion <strong>in</strong> the site and may even be content<br />

providers;<br />

8) Subscription – Users are charged a periodic fee <strong>to</strong> subscribe <strong>to</strong> a service, with<br />

some sites provid<strong>in</strong>g free content with premium, subscription material;<br />

9) Utility – This “on-demand” model charges people for the frequency of their <strong>use</strong><br />

of the site and is a type of meter<strong>in</strong>g approach .<br />

183


CHAPTER 11<br />

FUTURE WORK<br />

11.10.1.2 Bus<strong>in</strong>ess model suited <strong>to</strong> this software environment<br />

Hav<strong>in</strong>g researched the Bus<strong>in</strong>ess Models <strong>in</strong> existence for bus<strong>in</strong>esses on the Internet, the<br />

Subscription model would be the one of most <strong>in</strong>terest <strong>in</strong> conjunction with the<br />

development of this package for <strong>use</strong> on the Web.<br />

Companies would subscribe <strong>to</strong> the service and hence be set up on site with the required<br />

software <strong>to</strong> facilitate the logg<strong>in</strong>g of their sensor data <strong>in</strong> the same way as is described <strong>in</strong><br />

this thesis. This data would then be uploaded <strong>to</strong> the remote database server on a periodic<br />

basis, with the company hav<strong>in</strong>g access <strong>to</strong> the results us<strong>in</strong>g a <strong>use</strong>rname and password<br />

<strong>in</strong>dividual <strong>to</strong> them, while be<strong>in</strong>g protected by an SSL certificate.<br />

The Subscription method seems perfect for this scenario as no limit <strong>to</strong> the amount of<br />

view<strong>in</strong>gs of the data would exist, and companies would only see the benefit of the<br />

logg<strong>in</strong>g process the longer they were signed up <strong>to</strong> the service so ensur<strong>in</strong>g cont<strong>in</strong>uous<br />

revenue is generated.<br />

11.11 SUMMARY<br />

If this software environment is <strong>to</strong> be a fully effective <strong>in</strong> display<strong>in</strong>g, analys<strong>in</strong>g and<br />

generically report<strong>in</strong>g real build<strong>in</strong>g data, it must develop further than has been achieved<br />

<strong>in</strong> the timeframe of this thesis. A number of areas where improvements could be made<br />

<strong>to</strong> this software environment have been identified, with sub meter<strong>in</strong>g of the facility and<br />

the <strong>use</strong> of flow and temperature sensors for every component of <strong>energy</strong> <strong>use</strong> be<strong>in</strong>g two of<br />

the ma<strong>in</strong> ones.<br />

Changes <strong>to</strong> the display portion of the GUI would also serve <strong>to</strong> add <strong>to</strong> its functionality<br />

along with a more secure means of transferr<strong>in</strong>g <strong>in</strong>formation. A subscription based<br />

bus<strong>in</strong>ess plan has also been identified <strong>to</strong> fully exploit the future of this software<br />

environment.<br />

With the necessary time and f<strong>in</strong>ancial back<strong>in</strong>g this software environment could moni<strong>to</strong>r<br />

and archive build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> remotely, this be<strong>in</strong>g a develop<strong>in</strong>g area of the build<strong>in</strong>g<br />

services field. Due <strong>to</strong> the EU directive on build<strong>in</strong>g <strong>energy</strong> <strong>use</strong> this area of the market<br />

will be of great importance <strong>in</strong> the com<strong>in</strong>g years, with this software environment be<strong>in</strong>g<br />

the perfect solution.<br />

184


CHAPTER 12<br />

REFERENCES<br />

12 REFERENCES<br />

Aloisio et al, 1999, An XML Architecture for High Performance Web-Based Analysis<br />

of Remote Sens<strong>in</strong>g Archives, Future Generation computer Systems 91 – 100<br />

Al-Rabghi, Hittle, 2001, Energy simulation <strong>in</strong> build<strong>in</strong>gs: overview and BLAST<br />

example, <strong>energy</strong> Conversion and management 42, 1623 – 1635<br />

Assessment Method, Cibse Members CD<br />

Badard, Richard, 2001, Us<strong>in</strong>g XML for the Exchange of Updat<strong>in</strong>g Information between<br />

Geographical Information Systems, Computers, Environment and Urban Systems 17 –<br />

31<br />

Bennett, Newborough, 2001, Audit<strong>in</strong>g Energy Use <strong>in</strong> Cities, Energy Policy 125 – 134<br />

Bhatt, 2000, Energy Audit Case Studies II – Air Condition<strong>in</strong>g (cool<strong>in</strong>g) Systems,<br />

Applied thermal Eng<strong>in</strong>eer<strong>in</strong>g 20 (2000) 297 – 307<br />

Bonaccorsi, Rossi, 2003, Why open source software can succeed, Research Policy,<br />

article <strong>in</strong> press<br />

Carbon dioxide, Environmental Science & Policy 1 (1998) 27±38<br />

CIBSE CDa, 2003, Facilities Energy Management, 1997, Members CD<br />

CIBSE CDb. 2003, Energy Efficiency <strong>in</strong> Build<strong>in</strong>gs Guide F, 1998, Members CD<br />

CIBSE, 2002, The <strong>IT</strong> Fac<strong>to</strong>r, Build<strong>in</strong>g Services Journal, June 2002<br />

CIBSE, 2002a, Build<strong>in</strong>g Control Document, Chapter 5, published by CIBSE<br />

CIBSE, 2002b, Build<strong>in</strong>g of the Future, Build<strong>in</strong>g Services Journal, June 2002<br />

185


CHAPTER 12<br />

REFERENCES<br />

CIBSE, 2002c, Market Watch, BMS, Build<strong>in</strong>g Services Journal, June 2002<br />

CIBSE, 2002d, Technological W<strong>in</strong>ds of Change, Build<strong>in</strong>g Services Journal, June 2002<br />

CIBSE, 2002e, Build<strong>in</strong>g Energy Audit<strong>in</strong>g, Chapter 18A, published by CIBSE<br />

CIBSE, 2003b, Are We Connect<strong>in</strong>g Yet?, Build<strong>in</strong>g Services Journal, July, 2003.<br />

Clarke et al, 2002, Simulation assisted Control <strong>in</strong> Build<strong>in</strong>g Energy Management<br />

Systems, Energy and Build<strong>in</strong>gs 933- 940<br />

Clarke et al, Assisted Control <strong>in</strong> Build<strong>in</strong>g Energy Management Systems, Energy and<br />

2002, Simulation Build<strong>in</strong>gs 1449, (2002) 1 – 8<br />

Crawley et al, 2001, Energyplus: creat<strong>in</strong>g a new generation of build<strong>in</strong>g <strong>energy</strong><br />

simulation program, <strong>energy</strong> and Build<strong>in</strong>g 33, 319 – 331<br />

DETR ECON 19, 2002, ECON 19, Energy Consumption Guide published by the<br />

Department of the Environment, Transport and Regions (DETR) <strong>in</strong> the UK<br />

DETR Energy, 2002, DETR <strong>energy</strong> moni<strong>to</strong>r<strong>in</strong>g and target<strong>in</strong>g guide 125<br />

DETR Fuel, 2002, Efficiency booklet 9, Economic Use of Electricity <strong>in</strong> Industry<br />

DETR Fuel 1, 2002, Efficiency booklet 1, Energy Audits for Build<strong>in</strong>gs<br />

DETR 2002, Department of the Environment, Trade and Regions, UK, Energy<br />

Consumption Guide 78<br />

DETR GPG 219, 2002, Good Practice Guide 219, Energy Efficiency <strong>in</strong> Swimm<strong>in</strong>g<br />

Pools<br />

186


CHAPTER 12<br />

REFERENCES<br />

Dhakal et al, 2003, Estimation of heat discharges by residential build<strong>in</strong>gs <strong>in</strong> Tokyo,<br />

<strong>energy</strong> conversion and management 44, 1487 – 1499<br />

DPE, 1999, Paper on Susta<strong>in</strong>able Energy<br />

DPE, 2002, Green Paper on Susta<strong>in</strong>able Energy<br />

EEBPP, 2002, General Information leaflet 65, Meter<strong>in</strong>g Energy Use <strong>in</strong> New/non<br />

Domestic Build<strong>in</strong>gs<br />

EEC, 1998, European Environment Council meet<strong>in</strong>g 16-17 June 1998 –<br />

Luxembourg<br />

EIA, 1992, EIA's Commercial Build<strong>in</strong>gs Energy Consumption and Expenditures 1992<br />

DOE/EIA-0318 (92)<br />

Elmasri and Navathe, 2000, Fundamentals of Database Systems<br />

EU Directive, 2002, Directive 2002/91/Ecof the European Parliament and of the council<br />

of 16 December 2002 on the Energy Performance of Build<strong>in</strong>gs, Article 1 parts c and d.<br />

Filipp<strong>in</strong>, 2000, Benchmark<strong>in</strong>g the Energy Efficiency and Greenho<strong>use</strong> Gases Emissions<br />

of School Build<strong>in</strong>gs <strong>in</strong> Central Argent<strong>in</strong>a, Build<strong>in</strong>gs and Environment 35 407 – 414<br />

Fuggetta, 2003, Open source software – an evaluation, the journals of systems and<br />

software – article <strong>in</strong> press<br />

Getz, Litw<strong>in</strong>, Gilbert 1999, Access 2000 Developers Handbook<br />

Halsnaes, 2001, Market potential for Kyo<strong>to</strong> Mechanisms – Estimation of Global Market<br />

Potential for Co-operative greenho<strong>use</strong> gas Emission Reduction Policies, Energy Policy<br />

30 (2002) 13 – 32<br />

187


CHAPTER 12<br />

REFERENCES<br />

Harris et al, 2000, Investment <strong>in</strong> Energy Efficiency: a Survey of Australian Firms,<br />

Energy Policy 28 (2000) 867 – 876<br />

Hassan<strong>in</strong> et al, 2001, Development of a Ma<strong>in</strong>tenance Management Model based on IAI<br />

standards, Artificial Intelligence <strong>in</strong> Eng<strong>in</strong>eer<strong>in</strong>g 15 177 – 193<br />

Henryson et al, 2000, Energy Efficiency <strong>in</strong> Build<strong>in</strong>gs through Information – Swedish<br />

Perspective, <strong>energy</strong> Policy 169 – 180<br />

Holtsmark, 2002, Emission Trad<strong>in</strong>g under the Kyo<strong>to</strong> Pro<strong>to</strong>col – Effects on Fossil Fuel<br />

Markets under Alternative Regimes, Energy Policy 30 (2002) 207 – 218<br />

Inoue et al, 2002, Au<strong>to</strong>mated graphic Image generation System for Effective<br />

Representation of <strong>in</strong>fectious disease surveillance data, Computer Methods and<br />

Programs <strong>in</strong> Biomedic<strong>in</strong>e 00 1 – 6<br />

Karola et al, 2002, BSPro COM-Server – Interoperability between software <strong>to</strong>ols us<strong>in</strong>g<br />

Industrial Foundation Classes, Energy and Build<strong>in</strong>g 34 901 – 907<br />

Kim, 2001, An XML based Modell<strong>in</strong>g Language for the Open Interchange of Decision<br />

Models, Decision Support Systems 439 – 441<br />

Kokkonen et al, 2003, Interfac<strong>in</strong>g Environmental Simulation Models and Databases<br />

us<strong>in</strong>g XML, Environmental Modell<strong>in</strong>g and Software 463 – 471<br />

Krogh, von Hippel, 2003, Special Issue on open source software development, Research<br />

Policy, article <strong>in</strong> press<br />

Kunz, 1998, An object oriented approach <strong>to</strong> multibody systems analysis, Computers and<br />

Structures 69 209 – 217<br />

KYOTO STRATEGY, 1998, Climate Change - Towards a Post - Kyo<strong>to</strong><br />

Strategy. Commission of the European Communities<br />

188


CHAPTER 12<br />

REFERENCES<br />

Lakhani, von Hippel, 2003, How open source software works: “free” <strong>use</strong>r <strong>to</strong> <strong>use</strong>r<br />

assistance, Research Policy 32 923 – 943<br />

Lev<strong>in</strong>e et al., 1996, Mitigation options for Carbon Dioxide emissions from build<strong>in</strong>gs,<br />

Energy Policy 24 937 – 949<br />

L<strong>in</strong>at, 1992, Liant Software Corporation, C++/VIEWS Version 2 Users Guide, 1992<br />

Liaskas et al, 2000, Decomposition of Industrial CO2 Emission: the Case of European<br />

Union, Energy Economics 22 (2000) 383 – 394<br />

Lowry, 2002, Modell<strong>in</strong>g User Acceptance of Build<strong>in</strong>g Management Systems,<br />

Au<strong>to</strong>mation and Construction 695 – 705<br />

Ma et al, 2001, Methodology for the Implementation of a STEP standard: a Java<br />

Pro<strong>to</strong>type, Advances <strong>in</strong> Eng<strong>in</strong>eer<strong>in</strong>g Software 32 15 – 19<br />

Marcotty, 1991, Software Implementation, Prentice Hall <strong>in</strong>ternational UK ltd, 1991<br />

Masterair, 2003b, Specifications for the Heat Exchanger Unit <strong>in</strong> the Mardyke Arena as<br />

<strong>in</strong> Appendix B<br />

Ndoye, Sorr, 2003, Influence of Domestic Hot Water Parameters on the <strong>energy</strong><br />

consumption of large build<strong>in</strong>gs <strong>in</strong> Senegal, <strong>energy</strong> Conservation and management 44,<br />

2635 – 2649<br />

Osterwalder, 2003, An onthology for develop<strong>in</strong>g E-Bus<strong>in</strong>ess models, Ecole des HEC,<br />

Switzerland.<br />

Pratt, Anderson, 2001, A shape Modell<strong>in</strong>g Applications Programm<strong>in</strong>g Interface for the<br />

STEP standard, Computer Aided Design 33 531 – 543<br />

189


CHAPTER 12<br />

REFERENCES<br />

Priambodo, Kumar, 2001, Energy Use and Carbon Dioxide Emission of Indonesian<br />

small and Medium Scale Industries, Energy Conservation and Management 42 (2001)<br />

1335 – 1348<br />

Rolfsman, 2002, CO 2 Emission Consequences of Energy Measures <strong>in</strong> Build<strong>in</strong>gs,<br />

Build<strong>in</strong>gs and Environment 37 (2002) 1421 – 1430<br />

SAMSa, 2001, Teach Yourself MYSQL<br />

SAMSb, 2001, PHP and MYSQL Web Development by Well<strong>in</strong>g and Thompson<br />

Shneiderman, B., 1992, Design<strong>in</strong>g the User-Interface: Effective Strategies for Effective<br />

Human-Computer Interaction, Second Edition, Addison-Wesley Publish<strong>in</strong>g Company.<br />

Sun, 2001, Energy Demand <strong>in</strong> the Fifteen European Union Countries by 2010 – A<br />

Forecast<strong>in</strong>g model based on the Decomposition approach, Energy 26 (2001) 549 – 560<br />

Sun, Lockly, 1997, Data exchange system for an <strong>in</strong>tegrated build<strong>in</strong>g design system,<br />

Au<strong>to</strong>mation <strong>in</strong> Construction 6, 1997, 147 – 155<br />

TM 22, 2003, Energy Assessment and Report<strong>in</strong>g Methodology – Office Assessment<br />

Method<br />

Vieira, 2000, SQL Server 2000 Programm<strong>in</strong>g<br />

Vital Signs, 2003, Whole Build<strong>in</strong>g Energy Performance, Berkeley Institute U.S.<br />

Waltz, 1999, Computerized Build<strong>in</strong>g Energy Simulation Handbook, published by the<br />

Fairmont press<br />

Wang, Zheng, 2001, Dynamic and Real-time simulation of BMS and Air-condition<strong>in</strong>g<br />

system as a “liv<strong>in</strong>g” environment for learn<strong>in</strong>g/tra<strong>in</strong><strong>in</strong>g, Au<strong>to</strong>mation and Construction 10<br />

487 – 505<br />

190


CHAPTER 12<br />

REFERENCES<br />

Web Style Guide, 2002, by Patrick J. Lynch, Sarah Hor<strong>to</strong>n<br />

Well<strong>in</strong>g and Thompson, 2001, PHP and MYSQL Web Development<br />

Wiel et al, 1998, The role of build<strong>in</strong>g <strong>energy</strong> efficiency <strong>in</strong> manag<strong>in</strong>g atmospheric<br />

carbon dioxide<br />

WN 3000, 2003, Cylon build<strong>in</strong>g management software, Mardyke Arena<br />

Yen et al, 2002, The Impact and Implementation of XML on Bus<strong>in</strong>ess <strong>to</strong> Bus<strong>in</strong>ess<br />

Commerce, Computer Standards and Interfaces 347 – 362<br />

Web References<br />

Action Energy, 2003, Energy Efficiency Documents and guidel<strong>in</strong>es for the UK<br />

http://www.action<strong>energy</strong>.org.uk/downloads/GPCS390.pdf<br />

BACnet, 2003, BACnet official website, http://www.bacnet.org/<br />

BLAST, 2002, http://www.bso.uiuc.edu/BLAST/<strong>in</strong>dex.html<br />

Cad<strong>in</strong>fo, 2003, Cad <strong>in</strong>formation and discussion,<br />

http://www.cad<strong>in</strong>fo.net/edi<strong>to</strong>rial/aecxml.htm<br />

CML, 2003, The Chemical Mark-up Language http://www.venus.co.uk/omf/cml/<br />

CYLON CONTROLS Ltd, 2003, Developers of build<strong>in</strong>g HVAC control solutions,<br />

http://www.lantronix.com/products/ds/uds10iap/<strong>in</strong>dex.html<br />

DEFRA, 2003, Department for the Environment, Food and Rural Affairs (UK),<br />

http://www.defra.gov.uk/environment/<br />

191


CHAPTER 12<br />

REFERENCES<br />

Devarticles, 2003, Articles and Tu<strong>to</strong>rials for computer programmer’s,<br />

http://www.devarticles.com<br />

DOE SIM, 2002, Arkansas Department of Economic Development,<br />

http://www.aedc.state.ar.us/<strong>energy</strong>/Commercial_Industrial/DOE_simulation.htm<br />

DOE, 2002, Energy Statistics from the US Government,<br />

http://<strong>to</strong>n<strong>to</strong>.eia.doe.gov/ftproot/consumption/0555952.pdf<br />

EABEC, 2002, East Anglian Bus<strong>in</strong>ess Environment Club, Factsheet of Benchmark<strong>in</strong>g<br />

and Energy Consumption,<br />

http://www.uea.ac.uk/env/all/eabec/factsheet_benchmark<strong>in</strong>g_<strong>energy</strong>_consumption.pdf<br />

EIA, 1994, Energy <strong>in</strong>formation Adm<strong>in</strong>istration, http://www.eia.doe.gov<br />

Energyplus, 2002, http://gundog.lbl.gov/EP/ep_ma<strong>in</strong>.html<br />

EnergyStar, 2003, http://www.<strong>energy</strong>star.gov/<br />

EPA, 2003, EPA takes on role of National Allocation Authority <strong>in</strong> Carbon Trad<strong>in</strong>g<br />

Scheme, Appendix C & http://www.epa.ie<br />

EU, 2002, ACTIV<strong>IT</strong>IES OF THE EU, http://europa.eu.<strong>in</strong>t/<br />

EU Directive, 2002, Directive 2002/91/Ecof the European Parliament and of the council<br />

of 16 December 2002 on the Energy Performance of Build<strong>in</strong>gs, Article 1 parts c and d.<br />

Eweek, 2003, Articles relat<strong>in</strong>g <strong>to</strong> E-commerce,<br />

http://www.eweek.com/article2/0,3959,3763,00.asp<br />

Fuel Efficiency booklet 9, 2003, http://www.<strong>energy</strong>-efficiency.gov.uk<br />

GbXML Schema, 2002, Official Schema for gbXML,<br />

http://www.gbxml.org/schema.htm<br />

192


CHAPTER 12<br />

REFERENCES<br />

gbXML, 2002, Official site for gXML pro<strong>to</strong>col, http://www.gbxml.org<br />

GDLib, 2003, GDLibrary Ma<strong>in</strong> Download site, http://www.boutell.com/gd<br />

Green Paper, 2002, Green Paper on Susta<strong>in</strong>ability, 2002, http://www.irlgov.ie<br />

Hanna, 2003, Hanna Instruments Ltd., Developers of sensor technology,<br />

http://www.hanna<strong>in</strong>st.com<br />

http://europa.eu.<strong>in</strong>t/scadplus/leg/en/lvb/l27042.htm<br />

Hoval, 2003, Specifications for Hoval Heat Recovery Units, Appendix A &<br />

http://www.hoval.com/english/defaults/produkte/waerme/waerme_d.html<br />

IAI, 2002, International Alliance for Interoperability, http://www.iai-na.org<br />

IFC, 2002, Industry Foundation Classes, http://eetd.lbl.gov/btp/iai/copyright_ifc2x.html<br />

IGES, 2002, http://www.nist.gov/iges/<br />

Informit, 2003, Tu<strong>to</strong>rials and Books relat<strong>in</strong>g <strong>to</strong> computer programm<strong>in</strong>g,<br />

http://www.<strong>in</strong>formit.com<br />

Internet Indica<strong>to</strong>rs, 2003, http://www.<strong>in</strong>ternet<strong>in</strong>dica<strong>to</strong>rs.com/factfigure.html<br />

IPCC, 2001, Report on Climate Change, Climate Change 2001,<br />

http://www.ipcc.ch/pub/un/syreng/spm.pdf<br />

ISO, 2003, International Standards Organisation, http://www.iso.ch<br />

LANTRONIX, 2003, Website for the UDS 10 Term<strong>in</strong>al server purchased for this<br />

project, http://www.lantronix.com/products/ds/uds10iap/<strong>in</strong>dex.html<br />

193


CHAPTER 12<br />

REFERENCES<br />

Macromedia, 2002, Macromedia Official Website,<br />

http://www.macromedia.com/software/studio/<br />

Mardyke, 2003, Mardyke Arena Official Website, http://www.mardykearena.com<br />

MARDYKEARENA, 2003, http://www.mardykearena.com<br />

Marland et al., 1994, Global, Regional, and National Fossil Fuel CO 2 Emissions,<br />

http://cdiac.ornl.gov/trends/emis/meth_reg.htm<br />

Masterair, 2003, Manufacturers of HVAC systems, http://www.masterair.ie<br />

MathML, 2003, The Mathematical Mark-up Language, http://www.w3.org/TR/WDmath<br />

Microsoft IIS, 2002, Internet Information Services,<br />

http://www.microsoft.com/W<strong>in</strong>dowsServer2003/iis/default.mspx<br />

Microsoft, 2003, http://www.microsoft.com/sql/how<strong>to</strong>buy/production.asp<br />

MP, 2002, M<strong>in</strong>nesota Plann<strong>in</strong>g Authority, Return on Investment of High Performance<br />

Build<strong>in</strong>gs, http://www.mnplan.state.mn.us/pdf/2002/Build<strong>in</strong>gsReport.pdf<br />

MYSQL MANUAL, 2003, http://www.mysql.com/doc/en/<strong>in</strong>dex.html<br />

MySQL, 2002, Relational Database Management System Download site,<br />

http://www.mysql.com<br />

Netcraft, 2003, http://www.netcraft.com/survey/<br />

Netscape SSL, Article on SSL, http://wp.netscape.com/security/techbriefs/ssl.html<br />

Network Comput<strong>in</strong>g, 2003, http://www.nwc.com/1020/1020f1.html<br />

194


CHAPTER 12<br />

REFERENCES<br />

OIKOS, 2002, Understand<strong>in</strong>g the Impacts of Chang<strong>in</strong>g Energy Source <strong>in</strong> Build<strong>in</strong>gs on<br />

Energy Utility Efficiency and the Global Environment, http://www.oikosstiftung.unisg.ch/academy2002/Paper_An.pdf<br />

OPENSOURCE, 2002, http://www.opensource.org<br />

PHP MANUAL 2, 2003, http://www.php.net/manual/en/<strong>in</strong>tro-whatcando.php<br />

PHP MANUAL 3, 2003, http://ch.php.net/manual/en/function.fgetcsv.php<br />

PHP MANUAL, 2003, Manual for PHP Developers,<br />

http://www.php.net/manual/en/<strong><strong>in</strong>troduction</strong>.php<br />

PHP, 2002, http://www.php.net/<br />

PHP, 2003, http://www.php.net<br />

PHPBUILDER, 2002, Forum for PHP Developers, http://www.phpbuilder.com<br />

Rappa, 2000, Manag<strong>in</strong>g the digital enterprise – Bus<strong>in</strong>ess models on the Web, 2000,<br />

http://ecommerce.ncsu.edu/bus<strong>in</strong>ess_models.html<br />

RISO, 2002, Environmental Damages ca<strong>use</strong>d by Energy Production,<br />

http://www.risoe.dk/sys/esy/emiss_e/extern_1.htm<br />

SSL, 2003, Secure Sockets Layer, http://wp.netscape.com/security/techbriefs/ssl.html<br />

STEP, 2002, http://www.step<strong>to</strong>ols.com/library/standard/<br />

Step<strong>to</strong>ols Library, 2003.<br />

http://www.step<strong>to</strong>ols.com/library/standard/<strong><strong>in</strong>troduction</strong>_<strong>to</strong>_step.html<br />

STEPTOOLS, 2002, STEP <strong>in</strong>formation and accompany<strong>in</strong>g software,<br />

http://wwwistep<strong>to</strong>ols.com<br />

195


CHAPTER 12<br />

REFERENCES<br />

TFI, 2002, TECHNOLOGY FORESIGHT IRELAND,<br />

http://www.forfas.ie/icsti/statements/tforesight/<strong>energy</strong>/key.htm<br />

UN<strong>IT</strong>RON, 2003, http://www.cyloncontrols.com/news/Press%20Releases/BSNews092000.htm<br />

W3SCHOOLS, 2002, http://www.w3schools.com/dtd/dtd_<strong>in</strong>tro.asp<br />

W3SCHOOLS, 2003b, http://www.w3schools.com/xsl/xsl_languages.asp<br />

Web Server, 2003, http://www.openloop.com/<strong>in</strong>ternet_tra<strong>in</strong><strong>in</strong>g/WebServer<br />

XML, 2002, The Extensible Markup language official site, http://www.xml.com<br />

XSL, 2003, The Extensible Stylesheet language – A Web Tu<strong>to</strong>rial,<br />

http://www.w3schools.com/xsl/xsl_<strong>in</strong>tro.asp<br />

ZEND, 2003, Dynamic Image Generation with PHP,<br />

http://www.zend.com/zend/tut/dynamic.php<br />

196


CHAPTER 13<br />

APPENDICES<br />

13 APPENDICES<br />

A - HOVAL HEAT EXCHANGER CATALOGUE<br />

197


CHAPTER 13<br />

APPENDICES<br />

198


CHAPTER 13<br />

APPENDICES<br />

199


CHAPTER 13<br />

APPENDICES<br />

200


CHAPTER 13<br />

APPENDICES<br />

B – EU DIRECTIVE ON THE ENERGY PERFORMANCE OF BUILDINGS<br />

201


CHAPTER 13<br />

APPENDICES<br />

202


CHAPTER 13<br />

APPENDICES<br />

203


CHAPTER 13<br />

APPENDICES<br />

204


CHAPTER 13<br />

APPENDICES<br />

205


CHAPTER 13<br />

APPENDICES<br />

206


CHAPTER 13<br />

APPENDICES<br />

207


CHAPTER 13<br />

APPENDICES<br />

C – EPA MISSION STATEMENT REGARDING EMISSIONS TRADING<br />

SCHEME<br />

EPA takes on role of National Allocation Authority<br />

<strong>in</strong> Carbon Trad<strong>in</strong>g Scheme<br />

4 th July 2003<br />

The Direc<strong>to</strong>r General of the Environmental Protection Agency, Dr Mary Kelly, <strong>to</strong>day<br />

welcomed the announcement by Mart<strong>in</strong> Cullen, TD, M<strong>in</strong>ister for the Environment,<br />

Heritage and Local Government, that the Government has given the EPA responsibility<br />

for implement<strong>in</strong>g the Emissions Trad<strong>in</strong>g Directive <strong>in</strong> Ireland. The Directive establishes<br />

an allowance-trad<strong>in</strong>g scheme for emissions <strong>to</strong> promote reductions of greenho<strong>use</strong> gases,<br />

<strong>in</strong> particular carbon dioxide.<br />

Dr Kelly said that the EPA was aware that there would be potentially significant<br />

economic consequences for companies affected by the Directive. “Allocation of<br />

emission allowances <strong>to</strong> those companies that are <strong>in</strong>volved will be a difficult job,” said<br />

Dr Kelly, “and will present complex and difficult challenges for the Agency”.<br />

The EPA will immediately set up a National Allocation Unit for Emissions Trad<strong>in</strong>g as<br />

required by the Directive. Its first task will be <strong>to</strong> produce a National Allocation Plan<br />

and a National Allocation Advisory Group will be established by Government <strong>to</strong> assist<br />

<strong>in</strong> this task. The EPA will work with the Advisory Group <strong>to</strong> deliver an equitable plan<br />

for distribut<strong>in</strong>g the allowances. The timetable fixed by the Directive is tight with the<br />

allocation plan <strong>to</strong> be submitted <strong>to</strong> the European Commission by March 31 st , 2004.<br />

“It is highly unlikely that companies will receive the amount of allowances they will<br />

need <strong>to</strong> cover current levels of emissions,” said Dr Kelly, “as Ireland has already<br />

exceeded its emissions limits agreed under the Kyo<strong>to</strong> Pro<strong>to</strong>col. Therefore companies<br />

will have <strong>to</strong> buy emissions on the <strong>in</strong>ternational market <strong>to</strong> cover the deficit or reduce<br />

208


CHAPTER 13<br />

APPENDICES<br />

their emissions <strong>to</strong> the allowed amounts. Allocation of allowances <strong>in</strong> this climate will<br />

not be easy.”<br />

The EPA will <strong>in</strong>stigate a greenho<strong>use</strong> gas emissions permit scheme once the allocation<br />

plan is f<strong>in</strong>alised. A pilot phase will run from 1 st January 2005 for three years.<br />

Opera<strong>to</strong>rs of emissions covered by the Directive must hold a permit <strong>to</strong> emit greenho<strong>use</strong><br />

gases. The permit will require <strong>in</strong>stallations <strong>to</strong> be capable of moni<strong>to</strong>r<strong>in</strong>g their emissions<br />

and <strong>to</strong> submit a yearly report <strong>to</strong> the EPA. Each <strong>in</strong>stallation will surrender their<br />

emissions allowance at year end for each <strong>to</strong>nne of CO2 emitted. Although this is a pilot<br />

phase, real f<strong>in</strong>ancial penalties will attach <strong>to</strong> companies who do not hold enough permits<br />

through allocation or trade. The EPA will set up a public registry <strong>to</strong> track the transfer of<br />

allowances.<br />

Industries that will be required <strong>to</strong> participate <strong>in</strong> the scheme <strong>in</strong>clude combustion, cement,<br />

lime, glass and ceramics plants, oil ref<strong>in</strong>eries and paper mills, many of which already<br />

hold IPC licences from the EPA.<br />

209


CHAPTER 13<br />

APPENDICES<br />

D – CYLON Ltd. UN<strong>IT</strong>RON CONTROL SYSTEM MANUAL<br />

210

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!