Metal Building Manufacturers Association (MBMA) Energy...

97
Presented to: Metal Building Manufacturers Association (MBMA) Energy Workshop Atlanta, GA November 1, 2017 By: Joshua New, Ph.D., CEM ® Founder and CEO, Tunation, LLC [email protected] Joshua New, CEO Aaron Garrett, COO Mark Adams, CTO

Transcript of Metal Building Manufacturers Association (MBMA) Energy...

  • Presented to:

    Metal Building Manufacturers Association (MBMA)

    Energy Workshop

    Atlanta, GA

    November 1, 2017

    By:

    Joshua New, Ph.D., CEM®

    Founder and CEO, Tunation, LLC

    [email protected]

    Joshua New,

    CEOAaron Garrett,

    COO

    Mark Adams,

    CTO

    mailto:[email protected]

  • MBMA Energy Workshop 2017

    For people interested in using RSC in a business or as part of their quotation system

    Follow instructions on “How to get started” at http://rsc.ornl.gov/web-service.shtml

    Time required (~8 minutes): ○ 1c) install python – 3 minutes

    ○ 1e) add ;C:\Python27 to end of “Path” – 1 minute

    ○ 2a) download/install ez_setup.py – 1 minute

    ○ 2b-2g) install pip and suds – 2 minutes

    ○ 3a) Download client, run batch – 1 minute

    Advanced #1 - setup

  • Joshua New, Ph.D., C.E.M. Career

    2009+ Oak Ridge National Laboratory, R&D staff

    ○ ETSD, Building Technology Research & Integration Center (BTRIC),

    Building Envelope & Urban Systems Research Group (BEUSR),

    Urban Dynamics Institute (UDI)

    2012+ The University of Tennessee, Joint Faculty

    Education The University of Tennessee, (2004-2009), Knoxville, TN

    Ph.D. Computer Science.

    Jacksonville State University, AL (1997-2001, 2001-2004)

    M.S. Systems&Software Design, B.S. Computer Science,

    Mathematics and Physics minor.

    Professional Involvement

    Lead 1 of 3 core teams for EnergyPlus and OpenStudio

    IEEE, Senior Member

    ASHRAE, defines international building codes

    ○ TC1.5, Computer Applications, Voting member and officer

    ○ TC4.7, Energy Calculations, Voting member and officer

    ○ TC4.2, Climatic Information, Voting member and officer

    ○ SSPC169, Weather Data for Building Design Standards

    (24% of page count of building code), Voting member

  • ASHRAE Design Conditions

  • ASHRAE Climate Zones

    Based on

    weather

    stations, most

    w/ 18+ yrs of

    quality data

    (1961-1990)

    Updated every 4 years (2021)

    Climate Zone 0 (extremely hot):10,800 < CDD 50°FInt’l Energy Conservation Code (IECC)

    adopts for 2018 codeORNL and NASA roughly projecting CZ0 in US 2070

  • MBMA Energy Workshop 2017

    Weather station and population

  • MBMA Energy Workshop 2017

    OVERVIEW

    Motivation

    DOE’s Roof Savings Calculator (RSC)

    RSC testing and publications

    RSC latest additions

  • MBMA Energy Workshop 2017

    OVERVIEW

    Motivation

    DOE’s Roof Savings Calculator (RSC)

    RSC testing and publications

    RSC latest additions

  • MBMA Energy Workshop 2017

    40 Years: Energy and Quality of Life

  • Energy Flows in U.S. (2013)

  • Commercial Site Energy

    MBMA Energy Workshop 2017

  • MBMA Energy Workshop 2017

    Figure 3. Commercial energy

    loads attributed to envelope

    and windowsSource: Building Energy Data Book, U.S. DOE,

    Prepared by D&R International, Ltd., September

    2008.

    Figure 2. Residential

    energy loads attributed to

    envelope and windowsSource: Building Energy Data Book, U.S.

    DOE, Prepared by D&R International, Ltd.,

    September 2008.

    -

    1.00

    2.00

    3.00

    4.00

    5.00

    6.00

    7.00

    8.00

    9.00

    Ro

    of

    Walls

    Fo

    und

    atio

    n

    Infi

    ltra

    tio

    n

    Win

    do

    ws

    (co

    nd

    uctio

    n)

    Win

    do

    ws

    (so

    lar g

    ain

    )

    Inte

    rnal

    Gain

    s

    To

    tal

    Qu

    ad

    s

    Cooling Heating

    -

    1.00

    2.00

    3.00

    4.00

    5.00

    Ro

    of

    Walls

    (2)

    Fo

    und

    atio

    n

    Infi

    ltra

    tio

    n

    Ventila

    tio

    n

    Win

    do

    ws

    (co

    nd

    uctio

    n)

    Win

    do

    ws

    (so

    lar g

    ain

    )

    Inte

    rnal

    Gain

    s

    To

    tal

    Qu

    ad

    s

    Cooling Heating

    Energy by Envelope (out of 97.6 quads)

  • MBMA Energy Workshop 2017

    OVERVIEW

    Motivation

    DOE’s Roof Savings Calculator (RSC)

    RSC testing and publications

    RSC latest additions

  • MBMA Energy Workshop 2017

    Website (web-based calculator) Input: details of base-case versus cool-roof (or

    support roof/attic technology)

    Output: energy and cost savings

    Web Service Used by companies to automate creation of input files

    and processing of output files (without having to select options)

    Most common use: include RSC results in quotation-generation system for return-on-investment (ROI) of different products or services your company offers

    What is RSC?

  • INDUSTRY

    COLLABORATIVE

    R&D

    Marc LaFrance

    DOE BT

    R. Levinson,

    H. Gilbert,

    H. Akbari

    Chris Scruton

    CEC

    A. Desjarlais,

    W. Miller,

    J. New

    WBT

    Joe Huang,

    Ender Erdem

    Roof Savings Calculator (RSC)

    Web-based building energy model tool

  • MBMA Energy Workshop 2017

    Replaces:

    EPA Roof Comparison Calc

    DOE Cool Roof Calculator

    Minimal questions (

  • AtticSim - ASTM C 1340 Standard For Estimating Heat Gain or Loss

    Through Ceilings Under Attics

    RSC = AtticSim + DOE-2.1E

    MBMA Energy Workshop 2017

  • AtticSim

    DOE-2

    Roof Savings Calculator Screenshots

  • RSC non-roof inputs – postcode envy

  • RSC non-roof inputs

  • RSC roof inputs

  • RSC roof inputs

  • RSC roof inputs

  • RSC roof inputs

  • RSC roof inputs – what’s wrong?

  • RSC roof inputs – what’s wrong?

  • RSC roof inputs

  • RSC roof inputs

  • Personal Story

  • RSC outputs

  • RSC outputs

  • RoofCalc.com impact

    Average: 64

    visitors/day

    100,000+ visitors, 200+ feedback

    MBMA Energy Workshop 2017

  • Leveraging resources to facilitate deployment of building energy efficiency technologies

    Software Development Public Website/service Industry & Building Owners

    Roof Savings Calculator (RSC) web

    site/service developed and validated

    [estimates energy and cost savings

    from roof and attic technologies]

    CentiMark, the largest nation-wide

    roofing contractor (installs 2500

    roofs/mo), is integrating RSC into

    their proposal generating system

    (20+ companies now interested)

    AtticSim

    DOE-2

    Engine (AtticSim/DOE-2) debugged

    using HPC Science assets enabling

    visual analytics on 3x(10)6 simulations

    Science-enabled business solutions

    MBMA Energy Workshop 2017

  • MBMA Energy Workshop 2017

    OVERVIEW

    Motivation

    DOE’s Roof Savings Calculator (RSC)

    RSC testing and publications

    RSC latest additions

  • Description

    Reflect

    ance

    Emis

    sivity SRI

    Houston

    $ saved …13

    BUR No Coating 10 90 6 42

    Mineral Mod Bit 25 88 25 103

    Single Ply 32 90 35 230

    Mineral Mod Bit 33 92 35 197

    Metal 35 82 35 60

    Aluminum Coating 43 58 35 279

    Mineral Mod Bit 45 79 55 291

    Coating over BUR 49 83 55 433

    Metal 49 83 55 208

    …14

    Cost savings for offices – local utility prices,

    14 cities, 22 roof types

    Heating-dominated

    Northern climates

    Cooling-dominated

    Southern climates

    Mellot, Joseph W., New, Joshua R., and Sanyal, Jibonananda. (2013). "Preliminary Analysis of Energy Consumption for

    Cool Roofing Measures." In RCI Interface Technical Journal, volume 31, issue 9, pp. 25-36, October, 2013.

    Nationwide studies

    MBMA Energy Workshop 2017

  • Nationwide studies

    MBMA Energy Workshop 2017

  • Large DataVisualization

    Knowledge

    38

  • Example finding

    Selection of heating outliers

    All have box building type and

    in Miami, FL

    Climate Zone

    Building Type

    Jan Dec

    Energ

    y to

    heat th

    e b

    uild

    ing

    Jul

  • New, Joshua R. (2016). Invited Speaker. “How to use DOE’s Roof Savings Calculator." International Reflective Insulation Manufacturers

    (I-RIM) Conference, Hollywood, FL, June 1, 2016. [web]

    1. New, Joshua R., Miller, William A., Huang, Yu (Joe), and Levinson, Ronnen. (2016). "Comparison of Software Models for Energy Savings

    from Cool Roofs" [Special issue]. Journal of Energy and Buildings on Countermeasures to Urban Heat Island, volume 114, issue 0, pp. 130-

    135, February 2016. [ENB] [PDF]

    2. Huang, Yu (Joe), New, Joshua R., Miller, William A., and Levinson, Ronnen (2015). "A Web-Based Simulation Tool on The Performance of

    Different Roofing Systems." In Proceedings of the Building Simulation 2015 Conference, Hyderabad, India, December 7-9, 2015. [IBPSA]

    [PDF] [PPT]

    3. New, Joshua R., Miller, William A., Huang, Yu (Joe), and Levinson, Ronnen. (2014). "Comparison of Software Models for Energy Savings

    from Cool Roofs." In Proceedings of the 3rd International Conference on Countermeasures to Urban Heat Island (IC2UHI), Venice, Italy,

    October 13-15, 2014. [PDF] [PPT]

    4. New, Joshua R., Levinson, Ronnen, Huang, Yu (Joe), Sanyal, Jibonananda, Miller, William A., Childs, Kenneth W., and Kriner, Scott

    (2013). "In-Depth Analysis of Simulation Engine Codes for Comparison with DOE's Roof Savings Calculator and Measured Data." ORNL

    internal report ORNL/TM-2014/218, June 27, 2014, 69 pages. [ORNL] [PDF]

    5. Mellot, Joe, New, Joshua R., and Sanyal, Jibonananda. (2014). "Cool Roofing: Analysis of Energy Consumption for Cool Roofing." In

    Western Roofing - Insulation and Siding, issue January/February, volume 37, number 1, pp. 50-56, February, 2014. [PDF]

    6. New, Joshua R., Huang, Yu (Joe), Levinson, Ronnen, Sanyal, Jibonananda, Miller, William A., and Childs, Kenneth W. (2013). "Analysis of

    DOE's Roof Savings Calculator with Comparison to other Simulation Engines." ORNL internal report ORNL/TM-2013/501, November 1,

    2013, 63 pages. [ORNL] [PDF]

    New, Joshua R. (2013). Invited Speaker. "Science Behind ORNL's Building Technology Research Integration Center (BTRIC)." Roof

    Coating Manufacturer's Association, Oak Ridge, TN, October 8, 2013. [PPT]

    7. Mellot, Joseph W., New, Joshua R., and Sanyal, Jibonananda. (2013). "Preliminary Analysis of Energy Consumption for Cool Roofing

    Measures." In RCI Interface Technical Journal, volume 31, issue 9, pp. 25-36, October, 2013. [RCI] [PDF]

    8. Mellot, Joseph W., Sanyal, Jibonananda, and New, Joshua R. (2013). "Preliminary Analysis of Energy Consumption for Cool Roofing

    Measures." Presented at the International Reflective Roofing Symposium, the American Coating Association's (ACA) conference, and

    in Proceedings of the ACA's Coating Regulations and Analytical Methods Conference, Pittsburgh, PA, May 14-15, 2013. [PDF] [PPT]

    9. New, Joshua R., Miller, William (Bill), Desjarlais, A., Huang, Yu Joe, and Erdem, E. (2011). "Development of a Roof Savings Calculator."

    In Proceedings of the RCI 26th International Convention and Trade Show, Reno, NV, April 2011. [PDF] [PPT]

    Publications

    http://web.eecs.utk.edu/~newhttp://dx.doi.org/10.1016/j.enbuild.2015.06.020http://web.eecs.utk.edu/~new/publications/2015_EandB_RSC_Software_Comparison.pdfhttp://www.ibpsa.org/proceedings/BS2015/p2846.pdfhttp://web.eecs.utk.edu/~new/publications/2015_BS_RSC.pdfhttp://web.eecs.utk.edu/~new/presentations/2015_BS_RSC.pdfhttp://web.eecs.utk.edu/~new/publications/2014_IC2UHI.pdfhttp://web.eecs.utk.edu/~new/presentations/2014_IC2UHI.pdfhttp://info.ornl.gov/sites/publications/Files/Pub50015.pdfhttp://web.eecs.utk.edu/~new/publications/2014_RSC_InDepthAnalysis.pdfhttp://web.eecs.utk.edu/~new/publications/2014_WesternRoofing.pdfhttp://info.ornl.gov/sites/publications/Files/Pub46387.pdfhttp://web.eecs.utk.edu/~new/publications/2013_RSC_ComparisonWithPreviousSimulations.pdfhttp://web.eecs.utk.edu/~new/presentations/2013_RCMA_RSC.pdfhttp://www.rci-online.org/interface-articles-2013.htmlhttp://web.eecs.utk.edu/~new/publications/2013_CoolRoofMeasures.pdfhttp://web.eecs.utk.edu/~new/publications/2013_ACA.pdfhttp://web.eecs.utk.edu/~new/presentations/2013_ACA.pptxhttp://web.eecs.utk.edu/~new/publications/2011_RCI.pdfhttp://web.eecs.utk.edu/~new/presentations/2011_RCI.ppt

  • Duct heat transfer – radiation!

  • MBMA Energy Workshop 2017

    OVERVIEW

    Motivation

    DOE’s Roof Savings Calculator (RSC)

    RSC testing and publications

    RSC latest additions

  • Validation Project Approval

    DOE moved solely to EnergyPlus,

    OpenStudio, and SOEP

    Fraunhofer working on AtticSim for

    EnergyPlus

    Validation project to fix known issues

    Thanks to the efforts of Andre

    Desjarlais

    Thanks for financial support from 15

    organizations

    Each organization has a member on

    the project steering committee

    1 American Iron and Steel Institute

    2

    Asphalt Roofing Manufacturers

    Association

    3

    Chemical Fabrics and Film

    Association

    4 Cool Roof Rating Council

    5 Copper Development Association

    6 EPDM Manufacturers Association

    7

    Metal Building Manufacturers

    Association

    8 Metal Construction Association

    9 National Coil Coaters Association

    10

    Polyisiocyanurate Insulation

    Manufacturers Association

    11

    Roof Coating Manufacturers

    Association

    12 Spray Polyurethane Foam Alliance

    13 SPRI

    14 Tile Roofing Institute

    15 RCI, Inc.

  • RSC – New Features

    ASV gap sizes (11/1/16)

    Dynamic roof properties – when a new roof type is

    selected, the default reflectance and emittance are

    dynamically changed to the average 3-year aged

    values for that roof type (from referenced studies);

    the user can still change these for their specific roof

  • RSC – New Features

    Copper roof (11/1/16) – a roof type of

    “Copper” is now available in both the

    residential and commercial calculator

    Mouse-over tooltip for roof type shows

    the aging of copper from 1-30 years

  • RSC – New Features

    Peak Demand

    Reduction Calculation

    (12/1/16)

  • RSC – Analysis

    All non-configurable model inputs (e.g. envelope materials, internal heat sources) were assigned closely to the buildings used in Akbari & Konopacki for comparison

    Python analysis file evolved over 43 iterations for conducting parametric analysis of multiple RSC revisions and generating statistics & charts for analysis of RSC simulations

    Iterations of ~139 Excel workbooks were generated to aid in the analysis of energy performance and trends as revisions to RSC were made

  • RSC – Engine modifications

    Modification to DOE-2+AtticSim executable

    Dynamic duct-sizing

    DOE-2 duct model replaces AtticSim’s duct model AtticSim’s duct model (inspec-R-8, 4% leaky; uninspec-R-5.5, 14% leaky) was changed out for DOE-2’s duct model (inspec-deltaT 4-degrees, 4%; uninspec-deltaT 6-degrees, 14% leaky)

    Modifications to all prototype buildings Commercial buildings’ “existing” vintage was changed from PSZ (constant volume system) to PVAVS in order to eliminate inordinate heating penalties; this taints equipment efficiencies compared to earlier versions of RSC

    Sizing runs were added to the base case and used in the comparison case so that the same-sized HVAC is used in determining energy savings

    30+ updated tooltips – text, hyperlinks, images, publications

    Issues under investigation: Energy savings (or penalties) and indoor air temperatures still being investigated

    Simulated heating penalties and indoor air temperatures higher than expected, especially in warm climates

  • Presented to:

    Metal Building Manufacturers Association (MBMA)

    Energy Workshop

    Atlanta, GA

    November 1, 2017

    By:

    Joshua New, Ph.D., CEM®

    Founder and CEO, Tunation, LLC

    [email protected]

    Joshua New,

    CEOAaron Garrett,

    COO

    Mark Adams,

    CTO

    mailto:[email protected]

  • EXTRA SLIDES – USING RSC

  • Exercise #1 – got internet?

    Building Details

    HVAC efficiency and utility prices

    Roof and Attic Information(base vs. comp)

    Reports energy and cost savings

  • Residential

    RSC Residential Building

  • Office “Big Box” Retail Warehouse

    Torcellini et al. 2008, “DOE Commercial Building Benchmark Models”,

    NREL/CP-550-43291, National Renewable Energy Laboratory, Golden CO.

    RSC Commercial Buildings

  • AtticSim

    DOE-2

    Roof Savings Calculator Screenshots

  • “Pop” Quiz

    What happens when you click on the bar for “Building,” “Heating/Cooling,” or “Roof 1/Roof 2”?

    What is this effect called?

  • Exercise #2 – field sobriety test

    Visit roofcalc.com Bonus: try it on your smartphone!

    Select residential Select “1. Closest location” (ordered by state, then city)

    Daytona Beach Jacksonville Key West Miami Tallahassee Tampa West Palm Beach

    Click calculate if you must (server can only run 4 at a time)

    Reports energy and cost savings

    - 248 miles, 3h32m

    - 333 miles, 4h38m

    - 180 miles, 3h35m

    - 20 miles, 27m

    - 467 miles, 6h28m

    - 265 miles, 3h39m

    - 53 miles, 52m

  • Exercise #3 – hidden agenda

    Change the window-to-wall ratio Default commercial – 40%

    Default residential – 14.5%

  • RSC non-roof inputs – postcode envy

  • RSC non-roof inputs

  • AtticSim

    DOE-2

  • RSC roof inputs

  • RSC roof inputs

  • Smart surfaces

    Switch at

    84˚F

    Switch at

    65˚F

  • RSC roof inputs

  • RSC roof inputs

  • RSC roof inputs – what’s wrong?

  • RSC roof inputs – what’s wrong?

  • RSC roof inputs

  • RSC roof inputs

  • Personal Story

  • Exercise #4 – home free

    Run a simulation for your own building

  • RSC outputs

  • Expert Quiz

    RSC supports roof/attic comparison, but not building or HVAC comparisons. You’re good at math, you decide to run simulations separately and compile the following table:

    The trend of increase R-value means less energy savings seems right. Is this a good gas/electric comparison?

    Gas Heat Electric Heat

    City

    Stat

    e

    R-

    value

    Cooling

    Benefit

    Heating

    Penalty

    Net

    Impact

    Cooling

    Benefit

    Heating

    Penalty

    Net

    Impact

    Rochester NY R-20 $103 ($431) ($327) $360 ($310) $51

    Rochester NY R-25 $91 ($380) ($289) $315 ($275) $40

    Rochester NY R-30 $80 ($341) ($261) $279 ($244) $35

  • RSC outputs

  • Expert Quiz – use the files

    No! (Your math isn’t that good.)

    HVAC Type (doe2.out:5993-6007) Natural gas furnace is PVAVS

    Electric heat pump is HP

    DOE 2 reference manual – the trail deepens http://doe2.com/download/DOE-21E/DOE-2ReferenceManualVersion2.1A.pdf

  • Expert Quiz – use more files

    More detail of HP (pp. 323-326) and PVAVS (pp. 348-351) equipment curves hard-coded in DOE-2; WB/WT vs. WB/ODB Translation: wet bulb water temp different from outdoor temp would

    yield proportionally large difference in energy consumption

  • Expert Quiz – the plot thickens

    Autosizing RSC autosizes the HVAC based upon the building characteristics;

    energy consumption varies for different tonnage units, even for the same system type, due to cycling time and other performance factors.

    Unmet hours RSC’s autosizing is fairly aggressive and can lead to hundreds of

    unmet hours (any fraction of the hour outside of the 2-degree deadband) Setpoint: 72°F. Which has the greatest number of unmet hours?

    50°F degrees all winter

    69°F degrees all winter

    69.9°F for 1 minute of each hour all winter

  • RSC wizard – not yet releasedInput Parameter GUI

  • Database caching – not yet released

    Database

    UserRSC

    Web ServerRSC Engine

    Inputs

    Savings

    Simulate

    Savings

    Exists?Re

    su

    lts

    Results

    4 seconds

    2 minutes

    ORNL Server

  • Quote

    “We speak piously of … making small

    studies that will add another brick to the

    temple of science. Most such bricks just

    lie around the brickyard.”–J.R. Platt, Science 1964, 146:347-53

  • RSC web service (for businesses)

    …download example building and batch script from rsc.ornl.gov/web-service.shtml

    Try for free, license, install, change 1 line of code

  • Who completed download and installation of

    the RSC web service?

    Advanced #2 – setup checkup

  • ORNL Server

    RSC Web Service Diagram

    Database

    UserRSC

    Web ServerRSC Engine

    Inputs

    Savings

    Simulate

    Savings

    Exists?Resu

    lts

    Results

    4 seconds

    2 minutes

    Scripted System Service

    Simulate

    Savings

    Saving

    s

  • SoapResults = simulate(SoapModel) Accepts a model and returns the RSC results

    ZipString = test(SoapModel) Forces the model to be evaluated by the engine (rather than checking

    the database) and returns a zip (as a base64-encoded string) of the DOE2/AtticSim output files

    ScenarioID = upload(SoapModel, SoapResults) Uploads the model and results to the database, bypassing the engine

    (SoapModel, SoapResults) = download(ScenarioID, VersionNumber) Downloads a model/result pair for the scenario ID and version number

    RSC Web Service

  • Soap Model buildingLocation

    buildingType

    buildingArea

    buildingFloors

    buildingWwr

    buildingVintage

    heatingType

    heatingEfficiency

    coolingEfficiency

    atticVent

    atticInsulation

    atticRadiantBarrier

    ductLocation

    ductInspection

    roofType

    roofReflectance

    roofEmittance

    roofPitch

    Soap Result source

    executionTime

    scenarioId

    versionNumber

    heatingGas01

    heatingGas02…

    heatingGas12

    heatingElectricity01

    heatingElectricity02…

    heatingElectricity12

    coolingElectricity01

    coolingElectricity02…

    coolingElectricity12

    fanElectricity01

    fanElectricity02…

    fanElectricity12

    RSC Web Service XML

  • $client = new SoapClient("URL/TO/WEB/SERVICE/rsc.wsdl");

    $m = new Model();

    $m->load_from_xml(simplexml_load_file("../examplemodel.xml"));

    $sr = $client->simulate(model_to_soap($m));

    print_r($sr);

    $m = new Model();

    $m->load_from_xml(simplexml_load_file("../examplemodel.xml"));

    print_r(model_to_soap($m));

    $contents = $client->test(model_to_soap($m));

    $file = fopen("phptest.zip", "w");

    fwrite($file, base64_decode($contents));

    fclose($file);

    $m = new Model();

    $m->load_from_xml(simplexml_load_file("../examplemodel.xml"));

    $r = new Results();

    $r->load_from_xml(simplexml_load_file("../exampleresults.xml"));

    $sid = $client->upload(model_to_soap($m), results_to_soap($r));

    echo($sid);

    $modres = $client->download(83356208, "0.9");

    echo(soap_to_model($modres["soapmodel"])->to_string());

    echo(soap_to_results($modres["soapresults"])->to_string());

    RSC Web Service Example (Php)

  • client = suds.client.Client('URL/TO/WEB/SERVICE/rsc.wsdl')

    print(client)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.service.simulate(sm)

    print(sr)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    print(sm)

    contents = client.service.test(sm)

    with open('pytest.zip', 'wb') as outfile:

    outfile.write(base64.b64decode(contents))

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.factory.create('schema:soapresults')

    load_soap_results_from_xml('../exampleresults.xml', sr)

    sid = client.service.upload(sm, sr)

    print(sid)

    modres = client.service.download(83356208, '0.9')

    print(modres['soapmodel'])

    print(modres['soapresults'])

    RSC Web Service Example (Python)

  • client = suds.client.Client('URL/TO/WEB/SERVICE/rsc.wsdl')

    print(client)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.service.simulate(sm)

    print(sr)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    print(sm)

    contents = client.service.test(sm)

    with open('pytest.zip', 'wb') as outfile:

    outfile.write(base64.b64decode(contents))

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.factory.create('schema:soapresults')

    load_soap_results_from_xml('../exampleresults.xml', sr)

    sid = client.service.upload(sm, sr)

    print(sid)

    modres = client.service.download(83356208, '0.9')

    print(modres['soapmodel'])

    print(modres['soapresults'])

    RSC Web Service Example (Python)

  • client = suds.client.Client('URL/TO/WEB/SERVICE/rsc.wsdl')

    print(client)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.service.simulate(sm)

    print(sr)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    print(sm)

    contents = client.service.test(sm)

    with open('pytest.zip', 'wb') as outfile:

    outfile.write(base64.b64decode(contents))

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.factory.create('schema:soapresults')

    load_soap_results_from_xml('../exampleresults.xml', sr)

    sid = client.service.upload(sm, sr)

    print(sid)

    modres = client.service.download(83356208, '0.9')

    print(modres['soapmodel'])

    print(modres['soapresults'])

    RSC Web Service Example (Python)

    With great power

    there must also come

    great responsibility.

    Why is this

    dangerous?

  • client = suds.client.Client('URL/TO/WEB/SERVICE/rsc.wsdl')

    print(client)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.service.simulate(sm)

    print(sr)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    print(sm)

    contents = client.service.test(sm)

    with open('pytest.zip', 'wb') as outfile:

    outfile.write(base64.b64decode(contents))

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.factory.create('schema:soapresults')

    load_soap_results_from_xml('../exampleresults.xml', sr)

    sid = client.service.upload(sm, sr)

    print(sid)

    modres = client.service.download(83356208, '0.9')

    print(modres['soapmodel'])

    print(modres['soapresults'])

    RSC Web Service Example (Python)

  • client = suds.client.Client('URL/TO/WEB/SERVICE/rsc.wsdl')

    print(client)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.service.simulate(sm)

    print(sr)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    print(sm)

    contents = client.service.test(sm)

    with open('pytest.zip', 'wb') as outfile:

    outfile.write(base64.b64decode(contents))

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.factory.create('schema:soapresults')

    load_soap_results_from_xml('../exampleresults.xml', sr)

    sid = client.service.upload(sm, sr)

    print(sid)

    modres = client.service.download(83356208, '0.9')

    print(modres['soapmodel'])

    print(modres['soapresults'])

    RSC Web Service Example (Python)

  • RSC Web Service Example (Python)

  • client = suds.client.Client('URL/TO/WEB/SERVICE/rsc.wsdl')

    print(client)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.service.simulate(sm)

    print(sr)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    print(sm)

    contents = client.service.test(sm)

    with open('pytest.zip', 'wb') as outfile:

    outfile.write(base64.b64decode(contents))

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.factory.create('schema:soapresults')

    load_soap_results_from_xml('../exampleresults.xml', sr)

    sid = client.service.upload(sm, sr)

    print(sid)

    modres = client.service.download(83356208, '0.9')

    print(modres['soapmodel'])

    print(modres['soapresults'])

    RSC Web Service Example (Python)

  • client = suds.client.Client('URL/TO/WEB/SERVICE/rsc.wsdl')

    print(client)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.service.simulate(sm)

    print(sr)

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    print(sm)

    contents = client.service.test(sm)

    with open('pytest.zip', 'wb') as outfile:

    outfile.write(base64.b64decode(contents))

    sm = client.factory.create('schema:soapmodel')

    load_soap_model_from_xml('../examplemodel.xml', sm)

    sr = client.factory.create('schema:soapresults')

    load_soap_results_from_xml('../exampleresults.xml', sr)

    sid = client.service.upload(sm, sr)

    print(sid)

    modres = client.service.download(83356208, '0.9')

    print(modres['soapmodel'])

    print(modres['soapresults'])

    RSC Web Service Example (Python)

  • How do you create a custom building?

    Edit example_client\examplemodel.xml

    Advanced #4 – edit building

  • But these are only some of the options, what are all the

    variables and options for those variables? http://evenstar.ornl.gov/RSC/service/rsc.xsd

    Advanced #4 – edit building…

  • Edit examplemodel.xml to define your

    building

    Run rscdemo.bat to simulate it

    Parse exampleresults.xml for simple results

    Parse pytest.zip\[input.inp,readout.dat,

    doe2.out] for more complex results

    Advanced #5 – home free