• No results found

Trnsys Cours

N/A
N/A
Protected

Academic year: 2021

Share "Trnsys Cours"

Copied!
32
0
0

Loading.... (view fulltext now)

Full text

(1)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

TRNSYS

TR

ansient

SY

stem

S

imulations

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS

Why Simulate ?

History of TRNSYS

TRNSYS Concept

Simulation Input

Input File Keywords

Simulation Output

(2)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Why Use Simulations ?

Orders of magnitude

faster

than

experiments

Orders of magnitude

less expensive

than

experiments

Non-linear dependence on weather

Variation on short and long time scales

Division Evaluation et Valorisation Logicielles

Where is TRNSYS useful ?

Component OUTPUT is a function of time

Mathematical solution involves

time-dependent differential equations

(ex. thermal storage devices)

One or more of the component outputs is to

(3)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

History of TRNSYS

Public/government support to SEL

¾

First public version was 6.0 in March 1975

¾

Originally a PhD thesis by Sanford Klein

Originally developed for solar processes

¾

Current developments focus on building loads

and HVAC systems

TRNSYS ideas used in other programs:

¾

DOE2, HVACSim+, TRACE,CA-SIS

Division Evaluation et Valorisation Logicielles

Cross-Section of Users

Approx. 200 Universities worldwide

National Renewable Energy Lab

Florida Solar Energy Center

National Institute of Standards and Technology (NIST)

Sandia National Labs

National Aeronautic and Space Administration (NASA)

Sacramento Municipal Utility District

Johnson Controls

Bechtel Corporation

Trane Company

BMW

Electricitie de France

PSA (Peugeot-Citroen)

(4)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Why has TRNSYS survived ?

General Purpose (from PV cells to cows)

Flexible (modular)

General Component Formulation

Open Source Code

Documentation

Model Exchange between users

Continuous full-time

SUPPORT

Division Evaluation et Valorisation Logicielles

Cooperative TRNSYS Activities

SEL :

TRNSHELL, TRNSED

TRNSYS Source Code

CSTB : IISiBat

Graphical Front-end

TRANSSOLAR :

PREBID

Type 56 Development

Distributors

- Belgium - Germany - France - Japan - Spain - Sweden - United States

(5)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Modular Approach

Provides tremendous flexibility

Well Suited for systems with

time-dependent conditions

Requires some expertise

Division Evaluation et Valorisation Logicielles

What is TRNSYS ?

Algebraic and differential equation solver

Library of common thermal energy systems

Method for adding user-written modules

Designed especially for transient

simulations

Routines for input of weather and

(6)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

TRNSYS Concepts

Modular technique:

¾

Large problem --> several smaller problems

General Formulation

Entire problem reduced to :

¾

formulating mathematical models

¾

describing interconnection process

Division Evaluation et Valorisation Logicielles

System Definition

Set of Components

¾

Each component represents a physical structure

Interconnected in order to accomplish a

specified task

Example : Solar System

¾

Collector

¾

Tank

¾

Heat Exchanger

¾

Pump

(7)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

System Definition (Cont.)

System consists of Components

Therefore:

¾Simulate system performance by simulating

the performance of the individual

components.

Division Evaluation et Valorisation Logicielles

Black Box Approach

Requires two unique types of information

¾

Parameters : time-independent quantities

¾

Inputs : time-dependent quantities

(8)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Black Box (Graphic)

Black Box

(Subroutine:

FORTRAN, C, C++, EES, ...

)

Division Evaluation et Valorisation Logicielles

Information Flow

Arrows into and out of components

analogous to pipes and wires in a real

system

¾

Mass flow and temperature -> “pipe”

information flow

¾

Pump control signal -> information flow

through a “wire”

(9)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

System Diagram

So

la

r C

ol

le

ct

or

, T

i

&m

&m

, T

o

Aux. Heater

&Q

aux

&m

, T

set

Division Evaluation et Valorisation Logicielles

Information Flow

Collector

T

i

S T

a

T

o

&m

&m

A

F

R

U

L

C

p

Aux. Heater

T

o

&m

T

set

C

p

&Q

aux

&m

(10)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Information Flow (Cont.)

Time

Dependent

Conditions

Time

T

a

T

i

S

&Q

aux

Quantity

Integrator

Time

aux

Q

&Q

aux

Printer

Time

aux

Q

of

Print

Division Evaluation et Valorisation Logicielles

Information Flow Diagram

Integrator

Printer

Auxiliary Heater

T

i

S

T

a

T

o aux

Q&

aux

Q

aux

Q

of

Print

Time Dependent

(11)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Input-Output Scheme

TRNSYS list of components and interconnections

Type Number

¾

identifies the function of the equipment

¾

each component given a unique Type number

Unit Number

¾

Ex: How to distinguish if more than one collector??

¾

arbitrarily assigned value for each instance of a

component (normally some pattern is used)

¾

unique for each simulation (only one Unit 10)

Division Evaluation et Valorisation Logicielles

Information Flow Diagram

UNIT 4 TYPE 24

Integrator

UNIT 5 TYPE 25

Printer

Unit 3 TYPE 6

Auxiliary Heater

T

i

S

T

a

T

o aux

Q&

aux

Q

aux

Q

of

Print

UNIT 1 TYPE 9

Time Dependent

Conditions

UNIT 2 TYPE 1

Solar Collector

(12)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Acyclic vs. Recyclic

Information Flow

UNIT Z TYPE Z

UNIT X TYPE X

UNIT Y TYPE Y

Division Evaluation et Valorisation Logicielles

Available TRNSYS Components

Three General Types of Components

¾

Utility Components

ex: data reader, printer, plotter

¾

Equipment Components

ex: chiller, solar collector, pump, fan

¾

Physical Phenomena Components

(13)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Standard Components (1)

Utility Components

¾ Data Reader

¾ Weather Data Generator

¾ Radiation Processor

¾ Time-dependent functions

¾ Load Profile Sequencer

¾ Algebraic Operations ¾ Quantity Integrator ¾ Periodic Integrator ¾ Economics ¾ Psychrometrics ¾ Refrigerant Properties ¾ Convergence Promoter

¾ Unit Conversion Routine

Thermal Storage

¾ Stratified Liquid Storage Tank

¾ Rockbed

¾ Algebraic Tank

HVAC Equipment

¾ ON/OFF Auxiliary Heater

¾ Absorption Air conditioner

¾ Dual-Source Heat Pump

¾ Conditioning Equipment

¾ Cooling Coil

¾ Cooling Tower

¾ Vapor Compression Chiller

¾ Desiccant Systems

Division Evaluation et Valorisation Logicielles

Standard Components (2)

Building Loads and Structures

¾ Energy/(Degree Day) House

¾ Detailed Single-zone

¾ Detailed Multi-zone

¾ Roof and Attic

¾ Overhangs and Wingwalls

¾ Window

¾ Thermal Storage Wall

¾ Attached Sunspace

Heat Exchangers

¾ Heat Exchanger

¾ Waste Heat Recovery

Hydronics

¾ Pump

¾ Fan

¾ Mixing Valve/Tee

¾ Pressure Relief Valve

¾ Pipe/Duct

Controllers

¾ Differential Controller

¾ 3 Stage Room Thermostat

(14)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Standard Components (3)

Electric Components

¾ PV/Thermal Collector ¾ Storage Battery ¾ Regulator/Inverter ¾ Combined PV subsystem

Output Components

¾ Printer ¾ Plotter ¾ Histogram Plotter ¾ Simulation Summarizer ¾ On-Line Printer

Solar Collectors

¾ Thermal Efficiency Map

¾ Detailed Performance Map

¾ Theoretical CPC

¾ Incidence Angle Modifiers

¾ Theoretical Flat-Plate

¾ Air Collector-Storage Subsystem

¾ Domestic Water Heating Subsystem

¾ Collector Array Shading

Division Evaluation et Valorisation Logicielles

Non-Standard Components

TRNLIB - Online Library of User Written

components

¾

ASHRAE Toolkits

¾

HVACSIM+ Models

¾

SEL Student written components

¾

Any user can contribute components here

Commercial Non-Standard Libraries

¾

TESS (Thermal Energy Systems; USA)

(15)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Transsolar Non-Standard

Components

z

Building Components

¾ Multizone Building Model with transparent Insulation

¾ Interzonal Airflow

z

Thermal Storage Components

¾ Floor Panel Heating / Hypocaust Thermal Storage

¾ Seasonal Ground Heat Storage (Multiport Pit Storage Model)

¾ Multi-port Tank Storage Model

¾ ICEPIT Pit Storage Model for Heat and Cold Storage

¾ Indoor and Outdoor Pool Model

Division Evaluation et Valorisation Logicielles

Transsolar Non-Standard

Components

z

Solar and HVAC Components

¾ Detailed Solar Collector Model w/ Capacity and Quadratic Loss Coef.

¾ UNICOL unglazed Collector

¾ Window Collector Model

z

HVAC Components

¾ Gas fired Aux. Heater with Flue Condensation

¾ Static and Dynamic Radiator Models

¾ Electric and Gas Driven Compression Heat Pump

z

Controller Components

¾ PID-Controller

(16)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

TESS Non-Standard

Components (1)

z

HVAC Components

¾

2-Speed Fan

¾

5-Stage Room Thermostat

¾

Residential Cooling Coil

¾

Simple Single-Zone Building

¾

10-Port Flow Mixer

¾

10-Port Flow Diverter Heat Exchanger with Hot-Side Bypass

¾

Modified TYPE 3 Fan

¾

Modified TYPE 6 Auxiliary Heater (Simple Furnace)

z

Ground Coupled Heat Pump Components

¾

Buried Horizontal Pipe

¾

Ground Temperature Model

¾

U-Tube Vertical Ground HX

¾

Tube-in-Tube Vertical Ground HX

¾

Water Source Heat Pump

Division Evaluation et Valorisation Logicielles

TESS Non-Standard

Components (2)

Utility Components

¾

ASHRAE Infiltration Model

¾

Ground Temperature Model

¾

Sky Temperature Model

¾

Equipment Fouling

¾

ASHRAE Occupancy Loads

¾

Night Setback/setup model

¾

Heating and Cooling Season Model

¾

Average Day Creator for 2 Inputs

(17)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Simulation Input

Weather files

¾ TMY, TMY2, non-standard

Load files

¾ drives the use of energy

Complete TRNSYS Input file (.dck)

¾ tells TRNSYS what to do

¾ components and connections

For multizone building simulation:

Building information files (describe the building)

¾ output of PREBID

Division Evaluation et Valorisation Logicielles

Weather Files

TMY (Typical Meteorological Year)

¾

hourly weather for 230 locations in US & Canada

TMY2

¾

Recently released (1996) update to TMY

¾

Better data

¾

Available free from NREL website

(18)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Weather Data (2)

TRNSYS TMY

¾

modified TMY files

¾

unnecessary values removed for size

¾

4 US cities included in standard package

¾

230 US/Canadian Cities available for download at SEL

website

Non-Standard

¾

any data file can be read in

¾

formatted or free formatted file reading (Type9)

Division Evaluation et Valorisation Logicielles

TRNSYS Input File Example

SIMULATION 0.0 72.0 1.0

UNIT 16 TYPE 16 SOLAR RADIATION PROCESSOR PARAMETERS 9

3 1 1 152 43.1 4871 0. 2 -1 INPUTS 6

1,1 1,19 1,20 0,0 0,0 0,0 0. 0. 0. 0.2 40 0. UNIT 4 TYPE 1 FLAT-PLATE COLLECTOR PARAMETERS 14

1 1 6.5 4.19 1 50 0.7 15 0.0 -1 4.19 1 0.1 0.0 INPUTS 10

3,1 3,2 3,2 1,2 16,6 16,4 16,5 0,0 16,9 16,10 20 200 200 15.6 0.0 0.0 0.0 0.2 0.0 40.

(19)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Input File Keywords

SIMULATION t

o

t

f

∆t

t

o

- is the hour of the year at which the simulation is to begin.

t

f

- is the hour of the year at which the simulation is to end.

∆t - is the timestep to be used (hours; fractions are possible:

ex. 0.5 = half an hour).

Every simulation must have this command

Fixed Timestep: Cannot be varied during simulation

Division Evaluation et Valorisation Logicielles

Input File Keywords

END

The END statement must be the last line of a

TRNSYS input file.

(20)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Input File Keywords

UNIT n TYPE m Comment

where

n - is the UNIT number of the component.

m - is the TYPE number of the component.

Allowable TYPE numbers are integers between 1 and 300.

Examples:

UNIT 6 TYPE 15 EXAMPLE COMPONENT

UNIT 26 TYPE 26 PLOTTER

UNIT 1 TYPE 4 TANK

Division Evaluation et Valorisation Logicielles

Input File Keywords

PARAMETERS n

where

n

is the number of PARAMETERS to follow on the

next line(s).

Normally, this value is the number

of

parameters

required by the component

Example:

The TYPE 3 pump model requires 4 PARAMETERS:

UNIT 1 TYPE 3 PUMP

PARAMETERS 4

(21)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Input File Keywords

INPUTS n

where

¾ n - is the number of INPUTS to follow on the next line(s).

u

1

,o

1

u

2

,o

2

. . . u

i

,o

i

. . . u

n

,o

n

where

¾ ui - is the number of the UNIT to which the ith INPUT is connected.

¾ oi - is the OUTPUT (i.e., the 1st, 2nd, etc.) of UNIT number ui

V

1

, V

2

, . . . , V

i

, . . . , V

n

where

¾ Vi- is the initial value of the ith INPUT variable.

Division Evaluation et Valorisation Logicielles

Input File Keywords

Complete example of one component in the input file

UNIT 1 TYPE 4 TANK

PARAMETERS 6

2 .42 4.19 1000 1.44 -1.69

INPUTS 5

2,1 2,2 3,1 3,2 0,0

*

60. 0.0 21. 0.0 60.

*

(22)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Input File Keywords

* Comment

The '*' must appear first on the line

The entire line is printed without modification.

Example:

*THIS IS AN EXAMPLE OF A COMMENT LINE

*THIS IS ANOTHER ONE

*ETC.

Division Evaluation et Valorisation Logicielles

Input File Keywords

EQUATIONS n

NAME1 = ... equation 1 ...

NAME2 = ... equation 2 …

...

NAMEn = ... equation n …

• Equations define variables that can be used as component inputs or equations

• Variables can be defined as:

¾ algebraic functions of constants

¾ previously defined variables

¾ outputs from other TRNSYS components

(23)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Input File Keywords

SOLVER k

where k is 0 or 1.

0 - Successive Substitution

1 - Powell’s Method

Optional: If a SOLVER card is not present in the TRNSYS input

file, SOLVER 0 is assumed.

Powell Method not normally necessary

Division Evaluation et Valorisation Logicielles

Input File Keywords

ASSIGN filename lu

where

filename -

is the full name of the desired file; filename must be

less than or equal to 40 characters in length

lu -

is the logical unit number to which filename is to be

assigned

The logical unit can then be used as a parameter in other components

• ASSIGN \ TRNWIN\ TEST\ TEST.LST 6

• ASSIGN \ TRNWIN\ TEST\ TEST.OUT 10

(24)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Input File Keywords

TOLERANCES ε

D

ε

A or

TOLERANCES -ζ

D

A

εD is a relative (andζDis an absolute) error tolerance controlling the integration error

εA is a relative (andζAis an absolute) error tolerance controlling the

convergence of input and output variables

• Important to adjust εA if there are convergence problems with the simulation

• Optional keyword: Default value of 0.01 is used

Division Evaluation et Valorisation Logicielles

Input File Keywords

LIMITS m n p

m

is the maximum number of iterations which can be performed

during a time-step before a WARNING message is printed out.

n

is the maximum number of WARNING messages which may be

printed before the simulation terminates in ERROR.

p

is an optional limit to turn on tracing.

Important to increase the LIMITS command if convergence problems

(25)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Simulation Output

Standard Printer (Type 25)

¾

creates ASCII text files

¾

able to specify printing interval (every timestep,

once a day, etc.)

Online Printer (Type 65)

¾

plots input values to the screen during a

simulation

Division Evaluation et Valorisation Logicielles

(26)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Go back on time

Division Evaluation et Valorisation Logicielles

Several Onlines

Online

tabs

(27)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

TRNSYS Solvers

Successive Substitution (Solver 0 )

¾

Algorithm:

1. For each unit, outputs are calculated for the given

inputs; outputs are passed as inputs to other units

2. As long as the system doesn’t converge, step 1 is

repeated

¾

Many iterations can be necessary

¾

The original and still most common solution method

¾

Best method for standard problems

¾

Systems which may cause problems:

Little or no capacitance (energy storage)

Rapidly changing systems with many discrete states

1

2

Division Evaluation et Valorisation Logicielles

TRNSYS Solvers (2)

Powell’s Method (Solver 1)

¾

Generates a matrix using input-output connections

¾

Solves the input-output matrix of simultaneous

“equations”

¾

Has the ability to backsolve problems

¾

Requires more component calls each time step

¾

Difficulty with certain components with internal

storage (pipe, Type 56)

¾

Excellent for simulations with no capacitance (PV

systems) or discrete control states

(28)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

TRNSYS Tools

IISiBat

¾

graphical front-end for TRNSYS

PREBID

¾

graphical tool for entering building information

TRNSED / TRNSHELL

¾

tool to share simulations with non-users

¾

environment for building TRNSYS-based applications

SimCad

¾

CAD tool for building Simulation (add-on product)

Division Evaluation et Valorisation Logicielles

PREBID

Blueprints

PREBID

User Interface

TRNSYS

multizone building Type 56 .BUI .BLD Building description .TRN Transfer coefficients Building description .DCK Simulation project IISiBat

(29)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

Extension: SimCad

Blueprints

PREBID

User Interface

TRNSYS

multizone building Type 56 .BUI .BLD Building description .TRN Transfer coefficients Building description .DCK Simulation project IISiBat SimCad

Division Evaluation et Valorisation Logicielles

TRNSED (1)

Utility program for sharing TRNSYS

simulations with non-TRNSYS users

Hides unimportant TRNSYS details

Able to display user-selected values

(parameters, constant inputs, etc.)

Ideal for new users

(30)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

TRNSED (2)

Pop-up menus

Range checking for input values

Provides complete system description

User-friendly format

Dual Unit systems allow display of any

units

(31)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

File types

TRNSYS

¾ Input

• *.dck Input file, no TRNSED (from IISiBat 3)

• *.trd Input file with TRNSED commands (from IISiBat 3)

• *.tpf TRNSYS project file (for IISiBat 3)

• *.tmy, *.tm2, *.dat, … Weather data

• *.bui User-readable Building description file

(for PREBID)

• *.trn,*.bld Internal Building description files (from PREBID)

• w4-lib.dat Window Library

• *.lib Library files (layers, walls for PREBID

• *.for FORTRAN Sourcecode

• *.tmf TRNSYS model file (for IISiBat 3)

¾ Output

• *.lst Listing (Result) file

• *.plt, *.out, *.xls, … (Any extension chosen by the user)

Division Evaluation et Valorisation Logicielles

File types (2)

COMIS

¾ Input

• *.cif Input File (from IISiBat 2)

• *.set Set-file for expert options

• *.cmf Meteo schedule data (any extension allowed)

• *.csm Multi schedule data

• *.csf Other schedule data

• *.daf, *.tmf Internal, temporary time management files

¾ Output

• *.cof Standard output

• *.cso Spreadsheet output files

• *.cho Histogram output files

(32)

Division Evaluation et Valorisation Logicielles

Introduction to TRNSYS N. Blair / W. Keilholz

File types (3)

SimCad

¾ Input

• *.dxf AutoCad drawings

• *.ifc Industry Foundation Class file

¾ Output

• *.bui Building description file for PREBID

Division Evaluation et Valorisation Logicielles

Data Flow

Program

creates File

*.tpf *.trd *.dck *.bui

TRNSYS

IISiBat 3

TRNSED

PREBID

*.trn *.bld *.lst *.out *.plt

*.inf

COMIS

*.cif *.cof *.cso

IISiBat 2

Building

Air Flow Calculation

*.rdb

References

Related documents

This latter calibration assumes an unemployment rate of 5 percent, a conditional prob- ability of being unemployed one year of 0.164 and a lower replacement rate of 0.683, total

The reaction of Zr/B multilayers with a 50 nm modulation period has been studied using scanning AC nanocalorimetry at a heating rate of approximately 10 3 K/s. We describe a

McDonald, Kelsey, "The post title IX portrayal of female athletes in the

The performance and economics of replanting of cardamom (Elettaria cardamomum) was studied at Chettalli (Kodagu District, Karnataka, India).. An average yield of 749

On the other hand, we will denote the unconstrained model given by (4) as Model 2, a speci- …cation that is suitable for trended variables that may be a¤ected by structural breaks

2. Sew the long edges of 2 strips together. Press the seam to 1 side. Repeat to add the remaining strips. Place the pieced fabrics right-side up on a cutting mat. Position Template

When discussing support for digital publishing needs on campus, whether for use of Scalar or more generally, interviewees cited a variety of partners including the campus

Leading chimpanzee/human genome researchers, Goodman, Wildman, and colleagues of Wayne State University, have compiled evidence for including chimpanzees ( Pan ) as a