04 MathematicalReference
04 MathematicalReference
Volume 4
Mathematical Reference
Revision history
2004-09 For TRNSYS 16.00.0000 2010-11 For TRNSYS 17.00.0019
2005-02 For TRNSYS 16.00.0037 2012-03 For TRNSYS 17.01.0000
2006-03 For TRNSYS 16.01.0000 2014-05 For TRNSYS 17.02.0000
2007-03 For TRNSYS 16.01.0003 2017-04 For TRNSYS 18.00.0000
2009-11 For TRNSYS 17.00.0006 2017-10 For TRNSYS 18.00.0015
2010-04 For TRNSYS 17.00.0013 2018-05 For TRNSYS 18.00.0018
2010-08 For TRNSYS 17.00.0018 2018-10 For TRNSYS 18.01.0000
Notice
This report was prepared as an account of work partially sponsored by the United States Government.
Neither the United States or the United States Department of Energy, nor any of their employees, nor any
of their contractors, subcontractors, or employees, including but not limited to the University of Wisconsin
Solar Energy Laboratory, makes any warranty, expressed or implied, or assumes any liability or
responsibility for the accuracy, completeness or usefulness of any information, apparatus, product or
process disclosed, or represents that its use would not infringe privately owned rights.
© 2018 by the Solar Energy Laboratory, University of Wisconsin-Madison and Thermal Energy
System Specialists, LLC
The software described in this document is furnished under a license agreement. This manual and the
software may be used or copied only under the terms of the license agreement. Except as permitted by any
such license, no part of this manual may be copied or reproduced in any form or by any means without prior
written consent from the Solar Energy Laboratory, University of Wisconsin-Madison or Thermal Energy
System Specialists, LLC
4–2
TRNSYS 18 – Mathematical Reference
TRNSYS Contributors
Additional contributors who developed components that have been included in the Standard Library are
listed in their respective section.
Contributors to the building model (Type 56) and its interface (TRNBuild) are listed in Volume 5.
4–3
TRNSYS 18 – Mathematical Reference
TABLE OF CONTENTS
4. M ATHEMATICAL REFERENCE 4–8
4.1. Controllers 4–9
4.1.1. Type 2: Differential Controller 4–10
4.1.2. Type 22: Iterative Feedback Controller 4–13
4.1.3. Type 23: PID Controller 4–17
4.1.4. Type 40: Microprocessor Controller 4–23
4.1.5. Type 82: Simple Thermostat 4–29
4.1.6. Type 85: Simple Humidistat 4–31
4.1.7. Type 104: Simple Dehumidistat 4–33
4.1.8. Type 106: Aquastat (Heating Applications) 4–35
4.1.9. Type 108: Five Stage Room Thermostat 4–37
4.1.10. Type 113: Aquastat (Cooling Applications) 4–41
4.1.11. Type 115: Tempering Valve (Prevents Overheating) 4–43
4.1.12. Type 116: Tempering Valve (Prevents Undercooling) 4–45
4.1.13. Type 150: Delayed Inputs 4–47
4.1.14. Type 165: Differential Controller 4–49
4.2. Electrical 4–52
4.2.1. Type 47: Simple Lead Acid Battery 4–53
4.2.2. Type 48: PV Charge Controller/Inverter 4–60
4.2.3. Type 90: Wind Turbine 4–67
4.2.4. Type 102: Internal Combustion Engine / Generator Set Controller 4–84
4.2.5. Type 103: Simple Photovoltaic 4–87
4.2.6. Type 105: MiniGrid Controller 4–96
4.2.7. Type 120: Internal Combustion Engine / Generator 4–100
4.2.8. Type 175: Power Conditioning 4–105
4.2.9. Type 185: Advanced Lead Acid Battery with Gassing Effects 4–109
4.2.10. Type 188: AC Busbar (MiniGrid Energy Balance) 4–116
4.2.11. Type 190: Advanced Photovoltaic 4–119
4.3. HVAC 4–133
4.3.1. Type 42: Generic Conditioning Equipment 4–134
4.3.2. Type 43: Generic PLR Curve 4–138
4.3.3. Type 52: Detailed Cooling Coil 4–141
4.3.4. Type 107: Singe-Effect Hot-Water Fired Absorption Chiller 4–149
4.3.5. Type 117: Air Heater 4–157
4.3.6. Type 118: Air Cooled Chiller 4–160
4.3.7. Type 119: Air-to-Air Heat Pump 4–165
4.3.8. Type 122: Boiler 4–176
4.3.9. Type 123: Chilled Water Coil (Wet or Dry) 4–180
4.3.10. Type 124: Chilled Water Coil (Partially Wet) 4–187
4–4
TRNSYS 18 – Mathematical Reference
4.3.11. Type 126: Basic Cooling Tower (Single Speed, Control Signal) 4–192
4.3.12. Type 128: Cooling Tower (Two Speed, External Control) 4–195
4.3.13. Type 129: Cooling Tower (Two Speed, Internal Controls) 4–198
4.3.14. Type 136: Direct Expansion Coil 4–201
4.3.15. Type 137: Fan Coil 4–207
4.3.16. Type 138: Fluid Heater 4–215
4.3.17. Type 139: Furnace 4–217
4.3.18. Type 140: Hot Water Coil (constant UA) 4–220
4.3.19. Type 141: Hot Water Coil (varying UA) 4–223
4.3.20. Type 142: Water Cooled Chiller 4–227
4.3.21. Type 143: Water-to-Air Heat Pump 4–232
4.3.22. Type 144: Packaged Terminal Air Condition/Split System Air Conditioner 4–240
4.3.23. Type 151: Variable Air Volume (VAV) Air Handler 4–245
4.3.24. Type 152: Variable Air Volume (VAV) Air Handler with Parallel Fan Powered (PFP) Boxes4–257
4.3.25. Type 161: Cooling Tower (Single Speed, Internal Control) 4–269
4.3.26. Type 162: Detailed Cooling Tower (Variable speed, Internal or External Control) 4–272
4.4. Hydrogen 4–281
4.4.1. Type 100: Electrolyzer Controls 4–282
4.4.2. Type 160: Alkaline Electrolyzer 4–285
4.4.3. Type 164: Compressed Gas Storage 4–294
4.4.4. Type 167: Gas Compressor 4–297
4.4.5. Type 170: Proton Exchange Membrane (PEM) Fuel Cell 4–300
4.4.6. Type 173: Alkaline Fuel Cell 4–312
4.5. Hydronics 4–316
4.5.1. Type 5: Heat Exchanger 4–317
4.5.2. Type 11: Tee Piece, Flow Diverter, Flow Mixer, Tempering Valve 4–322
4.5.3. Type 31: Pipe 4–329
4.5.4. Type 91: Effectiveness Heat Exchanger 4–333
4.5.5. Type 110: Variable Speed Pump 4–337
4.5.6. Type 114: Constant Speed Pump 4–341
4.5.7. Type 145: Air Duct 4–345
4.5.8. Type 146: Single-Speed Fan 4–349
4.5.9. Type 147: Variable-Speed Fan 4–352
4.5.10. Type 148: Air Flow Diverter/Mixer 4–356
4.6. Loads and Structures 4–359
4.6.1. Type 19: Detailed Single Zone (Transfer Function) 4–360
4.6.2. Type 34: Overhang and Wingwall Shading 4–372
4.6.3. Type 36: Glazed Trombe (Thermal Storage) Wall 4–379
4.6.4. Type 49: Slab on Grade 4–389
4.6.5. Type 56: Detailed Multizone Building (Transfer Function) 4–401
4.6.6. Type 75: Sherman Grimsrud Simple Infiltration 4–402
4–5
TRNSYS 18 – Mathematical Reference
4–6
TRNSYS 18 – Mathematical Reference
4–7
TRNSYS 18 – Mathematical Reference
4. MATHEMATICAL REFERENCE
This manual provides a detailed reference on each component model (Type) in TRNSYS. The information
includes the mathematical basis of the model, as well as other elements that the user should take into
consideration when using the model (e.g. data file format, etc.).
This guide is organized in 14 component categories that match the upper level directories in the Simulation
Studio proformas. Those categories are:
Controllers
Electrical
Heat Exchangers
HVAC
Hydrogen Systems
Hydronics
Loads and Structures
Obsolete
Output
Physical Phenomena
Solar Thermal Collectors
Thermal Storage
Utility
Weather Data Reading and Processing
Within the categories, components are organized according to the models implemented in each component.
This is different from the Simulation Studio structure, where components are first organized according to
the function they perform, then according to the operation modes. An example is the mathematical model
known as Type 1 (Solar Collector), which is the first component in the "Solar Thermal collectors" category
in this manual. Type 1 is the underlying model for 5 different proformas listed in the "Solar Thermal
Collectors\Quadratic Efficiency" category in the Simulation Studio. It is very frequent for one Type listed in
this manual to be associated with several proformas which correspond to different modes of operation for
the component.
Users looking for information on which components are included in those categories or which component
to use have two sources of information:
Each section starts with a short introduction that briefly explains the features of all components in that
category
Volume 03 of the documentation (Standard Component Library Overview) also has a list of available
components (based on the Studio's organization)
4–8
TRNSYS 18 – Mathematical Reference
4.1. Controllers
Controller Basics
Number of Oscillations permitted and controller stickiness:
When the difference between the setpoint and the monitored temperature nears the dead band in the
normal mode of operation, the control signal may sometimes oscillate between ON and OFF for successive
iterations at a given time step. This happens because the setpoint and the monitored temperature change
slightly at each iteration, alternately satisfying and not satisfying the conditions for switching the controller.
The value of parameter 1 in this model is the number of oscillations of the control signal that are permitted
in the time step before the component “sticks” the output signal at one value so that the calculations at this
time step may be solved. It is recommended that the value of this first parameter be set to an odd number
to avoid biasing short-term results.
Dead band:
Controllers do not typically make the on/off decisions directly at the setpoint. Instead they make them for
a specified difference above and below the setpoint. For instance, a controller will turn heating on when
the temperature gets below the setpoint temperature minus half the dead band temperature difference and
turn of heating once the temperature has risen to the setpoint plus half the dead band temperature. This
prevents the equipment from cycling on and off quickly.
4–9
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of control oscillations allowed in one timestep
before the controller is "stuck" so that the calculations can be
solved. This parameter should be set to an odd number so that
short-term results are not biased. NOTE: Setting the number of
oscillations to 0 to use solver 1 (Powell's method).
2 High Limit Cut-Out [C] The controller will set the controller to the OFF position,
regardless of the dead bands, if the temperature being
monitored exceeds the high limit cut-out. The controller will
remain OFF until the monitored temperature falls below the high
limit cut-out temperature.
INPUTS
1 Upper Input [delta C] The temperature difference that will be compared to the dead
Temperature bands is this input (𝑇𝐻 ) minus input 2 (𝑇𝐿 ).
2 Lower Input [delta C] The temperature difference that will be compared to the dead
Temperature bands is input 1 (𝑇𝐻 ) minus this input (𝑇𝐿 ).
4 Input Control Function [-] The input control function is used to promote controller stability
by the use of hysteresis. The control decision will be based on
the dead band conditions and this input controller state. In most
applications, the output control signal from this component is
hooked up to this input.
5 Upper Dead Band [delta C] The dead band used when the controller is in the ON state.
6 Lower Dead Band [delta C] The dead band used when the controller is in the OFF state.
OUTPUTS
1 Output Control [-] The output control function may be ON (=1) or OFF (=0).
Function
4–10
TRNSYS 18 – Mathematical Reference
Control [-] States whether the Successive Substitution or Powell’s Method mode is
used.
4.1.1.5. Nomenclature
∆𝑇𝐻 [C] upper dead band temperature difference
∆𝑇𝐿 [C] lower dead band temperature difference
4–11
TRNSYS 18 – Mathematical Reference
However, the control function is set to zero, regardless of the upper and lower dead band conditions, if
𝑇𝑖𝑛 > 𝑇𝑚𝑎𝑥 . This situation is often encountered in domestic hot water systems where the pump is not
allowed to run if the tank temperature is above some prescribed limit.
The controller function is shown graphically as follows.
=1
i
1
o
=0
i
0
(TH - T L )
L H
Figure 4.1.1–1: Controller Function
4–12
TRNSYS 18 – Mathematical Reference
2 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found.
Set to an odd number to allow the controller to bounce between
two control states for successive timesteps. (See Control Basics
for a more complete discussion of controller oscillations.)
INPUTS
1 Setpoint [-] ySet is the setpoint for the controlled variable. The controller will
calculate the control signal that zeroes (or minimizes) the
tracking error (e = y-ySet).
2 Controlled Variable [-] y is the controlled variable that will track the setpoint (ySet).
3 On/Off Signal [-] The control signal is always zero if the On/Off Signal = 0.
4 Minimum Control [-] Minimum value of the control signal. The controller will minimize
Signal the tracking error for uMin <= u <= uMax. uMin and uMax can be
variable but you should always ensure that some values of u are
acceptable. In other words, do not set uMin > uMax to switch the
controller Off. You can use the On/Off input for that purpose.
uMin and uMax are used in the numerical algorithm and using
realistic values rather than arbitrarily large numbers will improve
the controller stability and speed.
5 Maximum Control [-] Maximum value of the control signal. The controller will minimize
Signal the tracking error for uMin <= u <= uMax. uMin and uMax can be
variable but you should always ensure that some values of u are
acceptable. In other words, do not set uMin > uMax to switch the
controller Off. You can use the On/Off input for that purpose.
uMin and uMax are used in the numerical algorithm and using
realistic values rather than arbitrarily large numbers will improve
the controller stability and speed.
6 Threshold for Non- [-] This is the minimum control signal (absolute value) for which a
Zero Output non-zero output will be set. It is different from uMin. Control
values lower than uThreshold in absolute value will be zeroed.
This can be used for example to model a pump that has a
minimum operating flowrate: in that case uThreshold should be
set to the minimum flowrate and uMin should be set to 0.
Another example is a control signal where uMin = -100, uMax =
100 and uThreshold = 10. This means that values between -100
4–13
TRNSYS 18 – Mathematical Reference
7 Tolerance on Tracking [-] The controller will stick to its current value (i.e. not attempt to
Error further reduce the tracking error) if the tracking error is within this
tolerance. Positive numbers are interpreted as a relative
tolerance on y, negative numbers are interpreted as an absolute
tolerance. 0 is acceptable.
OUTPUTS
3 Controller Status [-] Controller status. 0 means the controller is OFF. The following
values are added to status to indicate the controller status: 1 if
the controller is ON, 2 if the control signal is set to 0 because of
the threshold value, 4 if it is constrained by the minimum value,
8 if it is constrained by the maximum value, 16 if it is stuck to its
previous value, 32 if the tracking error is within the tolerance,
and 64 if the slope of the (control signal, tracking error) curve is
too steep and steps are cut in order to promote numerical
convergence. All flags are summed so that the status for "ON, at
the maximum value and within tolerance" is 1+8+32=41.
4 Unsaturated Control [-] Unsaturated control signal: calculated value before taking the
Signal minimum and maximum boundaries into account. This output is
mostly used for debugging purposes, the control signal (u) that
should be connected to the controlled system is output 1.
4–14
TRNSYS 18 – Mathematical Reference
Simulation tolerances: often, small variations in a control signal have a very small effect on a controlled
system, but users are expecting the controlled variable to follow the setpoint accurately. It is
recommended to use stricter tolerances than the usual default values in simulations that make use of
Type 22. Reducing tolerances usually minimizes the impact of component order.
TRNSYS solver: when using Solver 0 (successive substitution) with numerical relaxation, the
convergence promotion algorithm may interact with the oscillations caused by Type 22. It is
recommended to use Solver 0 without numerical relaxation (i.e. with a minimum and maximum
relaxation factors equal to 1) with Type 22.
Equation Solver: EQSolver 1 and above have been designed to speed up simulations by removing
unnecessary calls to equations. If equations are used in an information loop that includes an iterative
controller, those equations should always be called as soon as their Inputs have changed (as normal
components are). This is the solving mode used by EQSolver 0 (the default), and Type 22 should be
used with that equation solver
The factors discussed here above are the most likely causes of "unresponsive" iterative controllers.
4.1.2.4. Nomenclature
ySet [any] Setpoint for the controlled variable
y [any] Controlled variable that tracks the setpoint
u [any] Control signal (controller's output)
umin [any] Minimum value of the control signal
umax [any] Maximum value of the control signal
uthreshold [any] Threshold value for non-zero output (see text)
tol [any] Tolerance on tracking error
e [any] Tracking error
4–15
TRNSYS 18 – Mathematical Reference
e 1
2
umin umax
5
6
u3 u6 u5 u4 u2 u1 u
4–16
TRNSYS 18 – Mathematical Reference
2 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found.
Set to an odd number to allow the controller to bounce between
two control states for successive timesteps. (See Control Basics
for a more complete discussion of controller oscillations.)
INPUTS
1 Setpoint [-] ySet is the setpoint for the controlled variable. The controller will
calculate the control signal that zeroes (or minimizes) the
tracking error (e = ySet-y).
2 Controlled Variable [-] y is the controlled variable that will track the setpoint (ySet).
4 Minimum Control [-] The controller saturates the calculated control signal to have
Signal uMin <= u <= uMax.
5 Maximum Control [-] The controller saturates the calculated control signal to have
Signal uMin <= u <= uMax.
6 Threshold for Non- [-] This is the minimum control signal (absolute value) for which a
Zero Output non-zero output will be set. It is different from uMin. Control
values lower than uThreshold in absolute value will be zeroed.
For example, this can be used to model a pump that has a
minimum operating flowrate: in that case uThreshold should be
set to the minimum flowrate and uMin should be set to 0.
Another example is a control signal where uMin = -100, uMax =
100 and uThreshold = 10. This means that values between -100
and 100 are acceptable but values lower than 10 in absolute
value will be set to zero.
4–17
TRNSYS 18 – Mathematical Reference
7 Gain Constant [-] This is the gain of the PID controller (acts on the 3 parts of the
signal: proportional, integral and derivative).
8 Integral Time [h] This is Ti, the integral (or reset) time of the controller. You can
set Ti to 0 to disable integral control.
9 Derivative Time [h] This is Td, the derivative time of the controller. You can set Td to
0 to disable the derivative control.
10 Tracking Time for Anti- [h] The tracking (anti-windup) time constant is used to de-saturate
Windup the integrator in case the control signal is saturated by the
minimum, maximum or threshold values. 0 means no anti-
windup (not recommended) and -1 means "use default value" (Tt
= Ti). It is generally recommended to set Tt to 0.1 .. 1 Ti.
11 Fraction of ySet for [-] b is the fraction of ySet used in the proportional effect: vp = Kc *
Proportional Effect (b*ySet-y). This parameter should be set between 0 and 1. Using
values less than 1 allows for smoother transitions in case of fast
setpoint changes but it will lead to a more sluggish response to
such a setpoint change.
12 Fraction of ySet for [-] g is the fraction of ySet used in the derivative effect, which is
Derivative Effect proportional to the derivative of (g*ySet-y). This parameter
should be set to a value between 0 and 1. Using values less
than 1 allows for smoother transitions in case of fast setpoint
changes but it will lead to a more sluggish response to such a
setpoint change. Often in servo control g is 1 while in process
control g is 0.
13 High-Frequency Limit [-] N is the high-frequency limit of the derivative gain. The derivative
of Derivative effect is basically multiplied by (Td/(Td+N delta_t)). N should be
a positive number. N is usually set in the range [3 ; 20]. The
default value is N=10.
OUTPUTS
3 Unsaturated Control [-] Calculated value before taking the minimum, maximum and
Signal threshold values into account. This output is mostly used for
debugging purposes, the control signal (u) that should be
connected to the controlled system is output 1.
4 Proportional Action [-] This is the part of the control signal that is proportional to the
tracking error (before saturation).
5 Integral Action [-] This is the part of the control signal that is proportional to the
integral of the tracking error (before saturation). Note that anti-
windup has not been applied to this value.
6 Derivative Action [-] This is the part of the control signal that is proportional to the
derivative of the tracking error (before saturation).
7 Controller Status [-] 0 means the controller is OFF. The following values are added to
status to indicate the controller status: 1 if the controller is ON, 2
if the control signal is set to 0 because of the threshold value, 4 if
4–18
TRNSYS 18 – Mathematical Reference
TIMESTEPS AND OTHER SETTINGS THAT MAY AFFECT TYPE 23'S PERFORMANCE
Type 23's performance depends on the simulation timestep. It is generally recommended to keep the
sampling time smaller than 10% of the dominant time constant of the process. Real-world controllers
typically use very short timesteps, which is not always practical in simulation studies. For that reason, it is
not always possible to transfer the optimal parameters of a PID to a real application. Using Type 23 in Mode
1 (iterative) can improve the performance for relatively long timesteps.
USING TYPE 23 IN HEATING ONLY, COOLING ONLY AND COMBINED HEATING AND COOLING
APPLICATIONS
4–19
TRNSYS 18 – Mathematical Reference
Unlike many of TRNSYS’s controller components, Type 23 may be used in heating, cooling, and combined
heating and cooling applications. Depending on the nature of the controlled variable (energy addition rate,
mass flow rate, fraction), it may be appropriate to set up the controller with a negative proportional gain for
cooling-only or combined heating and cooling applications. The examples here below illustrate a few typical
uses of Type 23 for heating and cooling. The reader is also invited to refer to the corresponding standard
examples (in Examples\Feedback Control).
Heating and/or cooling power (where heating power is positive, cooling power is negative)
When Type 23 is used to control the heating or cooling power that is provided to a room, a storage tank or
any other device, the control signal must have the same sign as the tracking error (difference between the
setpoint and the controlled variable): if the controlled temperature is below the setpoint, a positive power
must be applied and if the temperature is above the setpoint a negative power must be applied. In such
cases, users should select a positive gain constant for the PID controller and set the minimum and
maximum values to -(maximum cooling power) and +(maximum heating power) respectively.
Cooling power only (cooling power is positive)
If cooling only is required, the components or equations using the output of Type 23 might require positive
values for cooling power. In that case the power should increase when the tracking error (difference
between the setpoint and the controlled variable) decreases, i.e. more cooling should be provided when
the temperature rises above the setpoint. Users should then use a negative gain constant and set the
minimum and maximum control values to 0 and +(maximum heating power) respectively.
Heating flow rate
In this application, it is presupposed that a hot source is available and that heating is accomplished by
increasing the flow rate from this hot source. The control signal must increase when the tracking error
(setpoint – controlled temperature) increases, i.e. more heating should be provided when the temperature
is below the setpoint. Users should then use a positive gain constant and set the minimum and maximum
control values to 0 and (maximum flow rate) respectively.
Cooling flow rate
For this cooling application, it is presupposed that a cold source is available and that cooling is
accomplished by increasing the flow rate from this cold source. The control signal must increase when the
tracking error (setpoint – controlled temperature) decreases, i.e. more cooling should be provided when the
temperature is above the setpoint. Users should then use a negative gain constant and set the minimum
and maximum control values to 0 and (maximum flow rate) respectively.
4.1.3.4. Nomenclature
ySet [any] Setpoint for the controlled variable
y [any] Controlled variable (tracks the setpoint)
u [any] Control variable (controller's output)
v [any] Unsaturated control variable (before applying constraints)
umin [any] Minimum value of the control variable
umax [any] Maximum value of the control variable
uthreshold [any] Threshold value for non-zero output (see text)
e [any] Tracking error
K [any] Controller gain
Ti [h] Integral time (also called reset time)
Td [h] Derivative time
4–20
TRNSYS 18 – Mathematical Reference
SETPOINT WEIGHTING
It is sometimes advisable to replace the tracking error (e) with a more general expression in both the P-
Term and the D-term:
1 𝑡 𝑑𝑒𝑑 (𝑡)
𝑣(𝑡) = 𝐾 [𝑒𝑝 (𝑡) + ∫ 𝑒(𝜏)𝑑𝜏 + 𝑇𝑑 ] Eq. 4.1.3-2
𝑇𝑖 𝑜 𝑑𝑡
where
𝑒𝑝 = 𝑏𝑦𝑠𝑒𝑡 − 𝑦 (0 ≤ 𝑏 ≤ 1) Eq. 4.1.3-3
Using b<1 reduces overshoot during fast setpoint changes and, in a similar way, using c<1 will avoid large
transients in the control variable due to sudden changes in the setpoint. In servo control (where the
controller is supposed to respond quickly to changes in setpoint) b and c are usually close or equal to 1. In
regulatory control (where one is more interested in responding to input variations to bring the system back
to a steady state), b and c are usually small (close or equal to 0).
4–21
TRNSYS 18 – Mathematical Reference
INTEGRATOR WINDUP
Control variables are usually limited by an upper and a lower bound that represent physical actuator limits.
When the control variable reaches one of those limits, the feedback loop is broken because the actuator
will remain at its limit independently of the system's output. A controller with integrating action will continue
to integrate the error. In such a situation, the integral term may become very large (it "winds-up"). It is then
necessary that the tracking error has an opposite sign for a very long time before the controller returns to a
"normal" status.
Integrator wind-up can be prevented by back-calculating the integral value that would give a control variable
exactly at the saturation limit. It is also advantageous to reset the integrator towards that back-calculated
value not instantaneously but with a time constant (T t):
𝑣(𝑡) = 𝑃 + 𝐼 + 𝐷
𝑢(𝑡) = 𝑠𝑎𝑡𝑢𝑟𝑎𝑡𝑒(𝑣(𝑡))
1 𝑡
𝐼 = 𝐼 − ∫ (𝑢(𝜏) − 𝑣(𝜏)) 𝑑𝜏 Eq. 4.1.3-6
𝑇𝑡 0
Where the saturate() function applies minimum and maximum values and other constraints. It is generally
recommended to have Tt [0.1 Ti ; Ti].
DISCRETIZATION
The Proportional term is straightforward:
𝑃(𝑡𝑘 ) = 𝐾𝑒𝑝 (𝑡𝑘 ) = 𝐾(𝑏𝑦𝑠𝑒𝑡 (𝑡𝑘 ) − 𝑦(𝑡𝑘 )) Eq. 4.1.3-7
The Integral term is calculated using the backward difference approximation, which is consistent with the
TRNSYS definition of variables (any variable reported at time t is the average between
tk-1 and tk):
𝐾ℎ
𝐼(𝑡𝑘 ) = 𝐼(𝑡𝑘−1 ) + 𝑒(𝑡𝑘 ) Eq. 4.1.3-8
𝑇𝑖
The Derivative term is approximated by a backwards difference:
𝑇𝑑 𝐾𝑇𝑑 𝑁
𝐷(𝑡𝑘 ) = 𝐷(𝑡𝑘−1 ) + (𝑒 (𝑡 ) − 𝑒𝑑 (𝑡𝑘−1 )) Eq. 4.1.3-9
𝑇𝑑 + 𝑁ℎ 𝑇𝑑 + 𝑁ℎ 𝑑 𝑘
Finally, anti-windup desaturation is applied after calculating the saturated control variable by correcting the
integral term as follows:
ℎ
𝐼(𝑡𝑘 ) = 𝐼(𝑡𝑘 ) − (𝑢(𝑡𝑘 ) − 𝑣(𝑡𝑘 )) Eq. 4.1.3-10
𝑇𝑡
4.1.3.6. References
Aström, K.J. and Wittenmark, B. – Computer controlled Systems, 2nd Edition. Prentice Hall, Englewood
Cliffs, NJ – 1990. ISBN 0-13-168600-3
Aström, K.J. and Hägglund, T. – PID Controllers: Theory, Design and Tuning, 2nd Edition. International
Society for Measurement and Control – 1994. ISBN 1-55617-516-7
4–22
TRNSYS 18 – Mathematical Reference
PARAMETERS
The parameters used to describe the functions of the four internal parts of the controller are listed
separately. Since this component may use more than 200 parameters, care must be used in constructing
and documenting the parameter list used.
The first set of parameters, designated section A, relate to the number of comparators to be used and their
on and off dead bands. This section may contain from three to eleven parameters. This number is
represented in the following section by NPARS(A).
The second section of the parameter list, section B, contains parameters which relate to the determination
of the controller mode. This section will contain parameters NC*2+2 through NMODES*NC+2NC+2. The
number of parameters contained in this section is NPARS(B). All parameters in this section with the
exception of the first, NMODES, must be either 0, 1 or -1.
The third section of the parameter list, designated Section C, relates to the specific output values set by a
particular mode. This section contains NPARS(C) parameters.
4–23
TRNSYS 18 – Mathematical Reference
The final section of the parameter list contains parameters which relate to overall controller operation.
These include the values of NSTICK, HOLD, and MODE PRINT. Note that there must be NMODES HOLD
parameters specified, one for each mode.
INPUTS
OUTPUTS
4–24
TRNSYS 18 – Mathematical Reference
T TTOP
COL Auxilar y
TB OTTOM ( III)
T ROOM
C o m p a r a to r T ON = 1 0 C o m p a r a to r T ON = 2 C o m p a r a to r T ON = 1
1 T OF F = 1 2 T OF F = 0 3 T OF F = 2
4–25
TRNSYS 18 – Mathematical Reference
The right half of the table indicates how the controller will respond when the system is in each particular
mode determined by the comparator outputs.
1 0 (0 or 1)1 0 0 0 0
2 0 0 1 0 0 1
3 0 1 1 0 1 0
4 1 (0 or 1) 0 1 0 0
5 1 0 1 1 0 1
6 1 1 1 1 1 0
For example: In mode 2, γ1 = 0 and γ2 = 0, this means the collector cannot contribute any more heat to the
tank, and the tank cannot deliver any useful heat to the zone’s setpoint. However, γ3 = 1, which means the
setpoint is higher than the zone temperature. Since the solar side of the system is useless, the zone will
need auxiliary heat, therefore when looking across to the right half of the table on the same row, only output
(III) is turned on. So the controller will keep the collector and load pump off, but will turn on the auxiliary
pump.
Another example: In mode 4, γ1, = 1. This means the collector can supply energy to the tank so the Type
40 output (I) is turned on. But since γ3 = 0, this means the setpoint temperature has been reached and the
tank and auxiliary heater should remain off. Therefore no matter if the tank can supply energy to the room
or not (it doesn’t matter), outputs (II) and (III) are both turned off. Since it doesn’t matter if the tank can
supply energy or not, γ2 can be (0 or 1). This is simply a shortcut instead of using two separate modes to
create the same Type 40 output. More is explained on this in the next “note”.
As you can see, there is never a time all Type 40 output (II) and (III) are on. This is because the system
always relies on solar energy when it can, so the auxiliary heater should never be supplying energy at the
same time the tank is.
Note: With 3 comparators, there can be a maximum of be 8 modes (8 different binary combinations).
However, in our example there are only 6 modes. This is because there are two instances in which γ2 can
be (0 or 1) and the Type 40 output is the same (meaning the system behaves the same way). Another way
of saying this, is that, (0 or 1) means that comparator output does not matter.
This is essentially a time saver and allows for less parameter entries and also allows for less mode changes
in the simulation. If incorporating this shortcut by using a (0 or 1) as shown in this table, a value of -1 is
used in TRNSYS for the comparator output PARAMETER.
A final group of parameters is used to set NSTK = 3. HOLD-k = 0 (for k = 1 through 6) and MODE PRINT
= 4 (diagnostic printing turned on after four iterations for a given time step).
The following lines would be used in the Type 40 component description.
PARAMETERS 53
3 10 1 2 0 1 2
6 0 -1 0 0 0 1 0 1 1 0 -1 0 1 0 1 1 1 1
3 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0
1
(0 or 1) indicates that the value does not matter.
4–26
TRNSYS 18 – Mathematical Reference
4.1.4.4. Nomenclature
NCOMPS Number of comparators (1 < NCOMPS 5)
Ci Output of comparator i
The output of this part of the component is a binary word NCOMPS bits long in which each bit corresponds
to a comparator state, 1 for on and 0 for off, with the least significant bit (LSB) corresponding to the first
comparator.
The second part of the controller is the mode array. This array consists of NCOMPS rows by NMODE
columns. Each element of the array may assume a value of 0, 1 or -1. The current operating mode is
determined by comparing the entries in each column with the word output by the comparator section. The
comparison is done on a bit-by-bit basis, with no comparison made if the mode array entry is -1.
The mode array output is a single decimal number indicating the column in the array which matches the
comparator output word. If no match is found, the output mode is set to -1. This is called the default mode
and results in all controller outputs being set to 0. At the end of the simulation a message is printed which
indicates the number of times the default mode occurred in the run.
The third part of the controller is the output array. This array consists of NOUTS rows by NMODES
columns. The number output by the mode array is used to point to a specific column of the output array.
The values contained in this column are transferred to the outputs of the controller, with the first value set
as the first output, the second value set as the second output, etc.
4–27
TRNSYS 18 – Mathematical Reference
The fourth part of this component is the control unit. This unit handles errors detected in other parts of the
component as well as implementing the NSTCK, HOLD, and MODE PRINT options described below.
4.1.4.6. References
1. L.P. Piessens, "A Microprocessor Control Component for TRNSYS", M.S. Thesis,
University of Wisconsin-Madison, 1980.
4–28
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found. Set
to an odd number to allow the controller to bounce between two
control states for successive timesteps. (See Control Basics for a
more complete discussion of controller oscillations.)
2 Temperature Dead [delta C] The dead band temperature difference of the controller. In this
Band model, hysteresis effects can be modeled by use of this
parameter. The setpoint temperature will be centered in the dead
band. If hysteresis is not desired for this controller, simply set this
parameter to 0.0. (See Control Basics for a more complete
discussion of controller hysteresis and dead bands.)
INPUTS
1 Monitoring [C] The temperature being monitored by the controller. Typically this
Temperature input will be connected to a zone temperature where the
thermostat is located, but it could be any temperature being
sensed to control a heating and cooling system.
2 Heating Setpoint [C] The temperature below which heating is commanded. If a dead
band is specified, the heating signal will turn on when the
monitored temperature has dropped below this setpoint minus half
the dead band and turn off when the monitored temperature has
risen above this setpoint plus half the dead band.
3 Cooling Setpoint [C] The temperature above which cooling is commanded. If a dead
band is specified, the cooling signal will turn on when the
monitored temperature has risen above this setpoint plus half the
dead band and turn off when the monitored temperature has
dropped below this setpoint minus half the dead band.
OUTPUTS
1 Control Signal for [-] The control signal for heating. If heating is required then the
Heating control signal will be 1. If no heating is required then the control
signal will be 0.
2 Control Signal for [-] The control signal for cooling. If cooling is required then the
Cooling control signal will be 1. If no cooling is required then the control
signal will be 0.
4–29
TRNSYS 18 – Mathematical Reference
4–30
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found.
Set to an odd number to allow the controller to bounce between
two control states for successive timesteps. (See Control Basics
for a more complete discussion of controller oscillations.)
2 Relative Humidity [delta RH] The dead band relative humidity difference of the controller. In
Dead Band this model, hysteresis effects can be modeled by use of this
parameter. The setpoint relative humidity will be centered in the
dead band. If hysteresis is not desired for this controller, simply
set this parameter to 0.0. (See Control Basics for a more
complete discussion of controller hysteresis and dead bands.)
INPUTS
1 Monitoring Relative [RH] The relative humidity that is monitored by the controller. Typically
Humidity this input will be connected to a zone relative humidity where the
humidistat is located, but it could be any relative humidity being
sensed to control a humidification system.
2 Humidity Setpoint [RH] The relative humidity below which humidification is commanded.
If a dead band is specified, the humidification signal will turn on
when the monitored relative humidity has dropped below this
setpoint minus half the dead band and turn off when the
monitored relative humidity has risen above this setpoint plus
half the dead band.
OUTPUTS
1 Control Signal for [-] The control signal for humidification. If humidification is required
Humidification then the control signal will be 1. If no humidification is required
then the control signal will be 0.
4–31
TRNSYS 18 – Mathematical Reference
4–32
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found.
Set to an odd number to allow the controller to bounce between
two control states for successive timesteps. (See Control Basics
for a more complete discussion of controller oscillations.)
2 Relative Humidity [delta RH] The dead band relative humidity difference of the controller. In
Dead Band this model, hysteresis effects can be modeled by use of this
parameter. The setpoint relative humidity will be centered in the
dead band. If hysteresis is not desired for this controller, simply
set this parameter to 0.0. (See Control Basics for a more
complete discussion of controller hysteresis and dead bands.)
INPUTS
1 Monitoring Relative [RH] The relative humidity that is monitored by the controller. Typically
Humidity this input will be connected to a zone relative humidity where the
humidistat is located, but it could be any relative humidity being
sensed to control a humidification system.
OUTPUTS
1 Control Signal for [-] The control signal for dehumidification. If dehumidification is
Dehumidification required then the control signal will be 1. If no dehumidification
is required then the control signal will be 0.
4–33
TRNSYS 18 – Mathematical Reference
4–34
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found. Set
to an odd number to allow the controller to bounce between two
control states for successive timesteps. (See Control Basics for a
more complete discussion of controller oscillations.)
2 Temperature Dead [delta C] The dead band temperature difference of the controller. In this
Band model, hysteresis effects can be modeled by use of this
parameter. The setpoint relative humidity will be centered in the
dead band. If hysteresis is not desired for this controller, simply
set this parameter to 0.0. (See Control Basics for a more
complete discussion of controller hysteresis and dead bands.)
INPUTS
1 Monitoring [C] The temperature being monitored by the controller. Typically this
Temperature input will be connected to a tank nodal temperature where the
thermostat is located, but it could be any temperature being
sensed to control a heating system.
2 Heating Setpoint [C] The temperature below which heating is commanded. If a dead
band is specified, the heating signal will turn on when the
monitored temperature has dropped below this setpoint minus half
the dead band and turn off when the monitored temperature has
risen above this setpoint plus half the dead band.
OUTPUTS
1 Control Signal for [-] The control signal for heating. If heating is required then the
Heating control signal will be 1. If no heating is required then the control
signal will be 0.
4–35
TRNSYS 18 – Mathematical Reference
4–36
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found. Set
to an odd number to allow the controller to bounce between two
control states for successive timesteps. (See Control Basics for a
more complete discussion of controller oscillations.)
2 1st Stage Heating in [-] This controller will disable the first-stage heating system when the
2nd Stage? 2nd stage heating system comes on (set this parameter to 0), or
continue to operate the 1st stage heating system while the 2nd
stage heating system is operating (set this parameter to 1).
3 2nd Stage Heating in [-] This controller will disable the 2nd stage heating system when the
3rd Stage? third stage heating system comes on (set this parameter to 0) or
continue to operate the 2nd stage heating system while the third
stage heating system is operating (set this parameter to 1).
4 1st Stage Heating in 3rd [-] This controller will disable the first stage heating system when in
Stage? third stage heating system comes on (set this parameter to 0), or
continue to operate the 1st stage heating system when the third
stage heating system comes on (set this parameter to 1).
5 1st Stage Cooling in 2nd [-] This controller will turn off the first stage cooling system when the
Stage? second stage cooling system comes on (set this parameter to 0)
or will continue to operate the first stage cooling system when the
second stage cooling system comes on (set this parameter to 1).
6 Temperature Dead [delta C] The dead band temperature difference of the controller. In this
Band model, hysteresis effects can be modeled by use of this
parameter. The setpoint temperature will be centered in the dead
band. If hysteresis is not desired for this controller, simply set this
parameter to 0.0. (See Control Basics for a more complete
discussion of controller hysteresis and dead bands.)
INPUTS
1 Monitoring [C] The temperature of the room being monitored by the controller.
Temperature
2 1st Stage Heating [C] The room temperature below which first stage heating is
Setpoint commanded.
3 2nd Stage heating [C] The room temperature below which second stage heating is
Setpoint commanded.
4–37
TRNSYS 18 – Mathematical Reference
4 3rd Stage Heating [C] The room temperature below which third stage heating is
Setpoint commanded.
5 1st Stage Cooling [C] The room temperature above which 1st stage cooling is
Setpoint commanded.
6 2nd Stage Cooling [C] The room temperature above which 2nd stage cooling is
Setpoint commanded.
OUTPUTS
1 Control Signal for 1st [-] The control signal for 1st stage heating (1: 1st stage heating is
Stage Heating required; 0: 1st stage heating is not required).
2 Control Signal for 2nd [-] The control signal for 2nd stage heating (1: 2nd stage heating is
Stage Heating required; 0: 2nd stage heating is not required).
3 Control Signal for 3rd [-] The control signal for 3rd stage heating (1: 3rd stage heating is
Stage Heating required; 0: 3rd stage heating is not required).
4 Control Signal for 1st [-] The control signal for 1st stage cooling (1: 1st stage cooling is
Stage Cooling required; 0: 1st stage cooling is not required).
5 Control Signal for 2nd [-] The control signal for 2nd stage cooling (1: 2nd stage cooling is
Stage Cooling required; 0: 2nd stage cooling is not required).
6 Conditioning Signal [-] If any of the heating or cooling signals are non-zero, this output
will be set to 1. This output can be used to control a pump or fan.
7 1st Stage Conditioning [-] If either the first stage heating or first stage cooling control signal
Signal is non-zero, this output will be set to 1. This output can be used
as the input control signal for the first stage of a two-speed pump
or fan.
8 2nd Stage Conditioning [-] If either the second stage heating or the second stage cooling
Signal control signal is non-zero, this output will be set to 1. This output
can be used to control the second stage of a two-speed fan or
pump.
4–38
TRNSYS 18 – Mathematical Reference
4–39
TRNSYS 18 – Mathematical Reference
4–40
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found.
Set to an odd number to allow the controller to bounce between
two control states for successive timesteps. (See Control Basics
for a more complete discussion of controller oscillations.)
2 Temperature Dead [delta C] The dead band temperature difference of the controller. In this
Band model, hysteresis effects can be modeled by use of this
parameter. The setpoint temperature will be centered in the
dead band. If hysteresis is not desired for this controller, simply
set this parameter to 0.0. (See Control Basics for a more
complete discussion of controller hysteresis and dead bands.)
INPUTS
1 Monitoring [C] The temperature being monitored by the controller. Typically this
Temperature input will be connected to a tank nodal temperature where the
thermostat is located, but it could be any temperature being
sensed to control a cooling system.
2 Cooling Setpoint [C] The temperature above which cooling is commanded. If a dead
band is specified, the cooling signal will turn on when the
monitored temperature has risen above this setpoint plus half the
dead band and turn off when the monitored temperature has
dropped below this setpoint minus half the dead band.
OUTPUTS
1 Control Signal for [-] The control signal for cooling. If cooling is required then the
Cooling control signal will be 1. If no cooling is required then the control
signal will be 0.
4–41
TRNSYS 18 – Mathematical Reference
4–42
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found. Set
to an odd number to allow the controller to bounce between two
control states for successive timesteps. (See Control Basics for a
more complete discussion of controller oscillations.)
INPUTS
1 Setpoint Temperature [C] The desired temperature of the mixed fluid stream (setpoint).
2 Source Temperature [C] The temperature of the fluid leaving the heat source.
3 Tempering Fluid [C] The temperature of the fluid that will be used to temper the source
Temperature fluid in order to keep it below the setpoint. Supply/return loop
system: The temperature of the fluid returning to the heat source.
A fraction of this fluid will pass through the heat source and mix
with the remaining fluid that bypasses the heat source.
OUTPUTS
1 Fraction to Heat [-] The fraction of the return fluid that should be sent to the heat
Source source before mixing in the tempering valve.
2 Fraction to Bypass [-] The fraction of the return fluid that should bypass the heat source
Heat Source before mixing in the tempering valve.
4–43
TRNSYS 18 – Mathematical Reference
order not to cause scalding, may be delivered at a temperature not to exceed 50C. Often the way this
temperature reduction is accomplished is to divert some of the liquid returning to the water heater around
the heating element and then to mix it back in downstream of the heater.
Type 115 takes the tempered fluid setpoint temperature (the temperature that is desired), the source
temperature (the temperature of the untempered hot fluid), and the return temperature (the temperature of
fluid that is used to temper and that replaces fluid drawn out of the source) and determines the fraction of
flow from each stream that is needed to provide the setpoint temperature.
The fraction of fluid that goes to the source is given by:
𝑇𝑟𝑒𝑡𝑢𝑟𝑛 − 𝑇𝑠𝑒𝑡
𝛾𝑠𝑜𝑢𝑟𝑐𝑒 = Eq. 4.1.11-1
𝑇𝑟𝑒𝑡𝑢𝑟𝑛 − 𝑇𝑠𝑜𝑢𝑟𝑐𝑒
4–44
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found.
Set to an odd number to allow the controller to bounce between
two control states for successive timesteps. (See Control Basics
for a more complete discussion of controller oscillations.)
INPUTS
1 Setpoint Temperature [C] The desired temperature of the mixed fluid stream (setpoint).
2 Source Temperature [C] The temperature of the fluid leaving the cooling source.
3 Tempering Fluid [C] The temperature of the fluid that will be used to temper the
Temperature source fluid in order to keep it below the setpoint. Supply/return
loop system: The temperature of the fluid returning to the cooling
source. A fraction of this fluid will pass through the cooling
source and mix with the remaining fluid that bypasses the
cooling source.
OUTPUTS
1 Fraction to Cooling [-] The fraction of the return fluid that should be sent to the cooling
Source source before mixing in the tempering valve.
2 Fraction to Bypass [-] The fraction of the return fluid that should bypass the cooling
Cooling Source source before mixing in the tempering valve.
4–45
TRNSYS 18 – Mathematical Reference
4–46
TRNSYS 18 – Mathematical Reference
1 Number of Inputs [-] The number of inputs that will be connected to the controller to
be delayed.
2-N Number of Timesteps [-] The number of timesteps that this controller should hold the
to Hold Value input values before releasing them as output values.
3-N Initial Function Value [-] The initial values of the function for the output. The output will
be set to this initial value until the required number of hold
timesteps has elapsed.
INPUTS
1-N Input Value [-] The input value that will be held in storage until the correct
timestep for output is reached.
OUTPUTS
1-N Output Value [-] The output value at the current timestep. This output is the input
value from a user-defined number of previous timesteps ago.
4–47
TRNSYS 18 – Mathematical Reference
logic that causes there to be a few seconds delay before the furnace is activated. As a second example,
there is a time delay between energy being added to a real room and a thermostat sensing the temperature
increase; air convection, relative location of the thermostat and heat source and other factors act to create
the time delay. Since these effects are beyond the input complexity level of most models, whether they are
rooms and thermostats or other system components, the end result in simulation is a less stable system
than in reality. The addition of a sticky controller (delayed input device) can build back these non-idealities
and significantly increase the stability of a control strategy.
As parameters, Type 150 takes the time delay and initial value for as many inputs as are desired. By default
the component is able to store up to 50 inputs, each for as much as 25 time steps. These defaults may be
changed by modifying and recompiling the Fortran source code. The initial value of each input is maintained
until the appropriate timestep for output is reached. At that point, the input value is released. The figure
below graphically shows the input and output for a component that is set up to store a single input value for
5 timesteps.
4–48
TRNSYS 18 – Mathematical Reference
1 Number of Oscillations [-] The number of control oscillations allowed in one timestep
before the controller is "stuck" so that the calculations can be
solved. This parameter should be set to an odd number so that
short-term results are not biased.
2 High Limit Cut-Out [C] The controller will set the controller to the OFF position,
regardless of the dead bands, if the temperature being
monitored exceeds the high limit cut-out. The controller will
remain OFF until the monitored temperature falls below the high
limit cut-out temperature.
INPUTS
1 Upper Input [delta C] The temperature difference that will be compared to the dead
Temperature bands is this input (𝑇𝐻 ) minus input 2 (𝑇𝐿 ).
2 Lower Input [delta C] The temperature difference that will be compared to the dead
Temperature bands is input 1 (𝑇𝐻 ) minus this input (𝑇𝐿 ).
4 Upper Dead Band [delta C] The dead band used when the controller is in the ON state.
5 Lower Dead Band [delta C] The dead band used when the controller is in the OFF state.
OUTPUTS
1 Output Control [-] The output control function may be ON (=1) or OFF (=0).
Function
4–49
TRNSYS 18 – Mathematical Reference
4.1.14.5. Nomenclature
∆𝑇𝐻 [C] upper dead band temperature difference
∆𝑇𝐿 [C] lower dead band temperature difference
𝑇𝐻 [C] upper Input temperature
𝑇𝑖𝑛 [C] temperature for high limit monitoring
𝑇𝐿 [C] lower Input temperature
𝑇𝑚𝑎𝑥 [C] maximum Input temperature
𝛾𝑖 [0..1] input control function
𝛾0 [0..1] output control function
4–50
TRNSYS 18 – Mathematical Reference
However, the control function is set to zero, regardless of the upper and lower dead band conditions, if
𝑇𝑖𝑛 > 𝑇𝑚𝑎𝑥 . This situation is often encountered in domestic hot water systems where the pump is not
allowed to run if the tank temperature is above some prescribed limit.
The controller function is shown graphically as follows.
=1
i
1
o
=0
i
0
(TH - T L )
L H
Figure 4.1.14–1: Controller Function
4–51
TRNSYS 18 – Mathematical Reference
4.2. Electrical
This category contains components that generate or store electricity and their accessories: solar
photovoltaic (PV) systems. Wind Energy Conversion Systems (WECS, or wind turbines), Internal
combustion engines (diesel, natural gas, or hydrogen powered), power conversion systems, and batteries.
Type 90 models a Wind Energy Conversion System (WECS). Power versus wind speed data are read in a
file. The impact of air density changes and wind speed increase with height are modeled.
Type103 model PV arrays using the "4-parameter" model. It is best suited to modeling crystalline PV cells
and contains some algorithms that aid in modeling PV arrays that are directly coupled to a load without the
benefit of an inverter/charge controller. Type190 offers a somewhat more flexible PV array that uses the
“5-parameter” model and does better moding amorphous and thin film PVs. Type 48 simulates a power
regulator and inverter that can be used in conjunction with a PV array and a battery.
Type 47 provides a lead-acid battery model. Its different operation modes use different modeling
assumptions, including Hyman and Shepherd equations. Type 185 provides an alternative and also models
gassing effects. Type 185 also reads the battery parameters from a data file, while Type 47 reads them in
the TRNSYS Input file.
Type 120 models Diesel Engine Generator Set(s). Several identical units can be simulated. Type 102
(Diesel Engine Dispatch Controller) can be used adapt the number of DEGS operating and their power to
meet a given electrical load.
Type 175 simulates a power conversion device (AC/DC, DC/DC, etc.)
Type 188 provides a component to interface Renewable Energy Systems with an electric grid.
4–52
TRNSYS 18 – Mathematical Reference
2 Cell energy capacity [Wh] The rated energy capacity of each cell. The battery capacity is
obtained by multiplying the cell capacity by the number of cells
in series and by the number of cells in parallel.
3 Cells in parallel [-] The number of cells connected in parallel in the battery.
4 Cells in series [-] The number of cells in series in the battery. A lead-acid battery
cell has a rated voltage of 2V. A 12V battery includes 6 cells in
series, and a 24V battery includes 12 cells in series.
5 Charging efficiency [0..1] The charging efficiency is typically higher when the battery is at
a low state of charge (<=85%) but can drop below 50% for when
the battery is at a high state of charge (SOC higher than 90%).
This model, however assumes that the charging efficiency is
independent of battery state of charge.
If Mode (parameter 1) = 2, 3, 4, or 5
6 Maximum current per [A] The maximum allowable battery cell charging current. This
cell charging current is typically set to charge the battery in 5 hours ("C5"), i.e.
3.3A if the cell capacity is 16.7 Ah. Specifying too high a value
may lead to erroneous results. Use "C1" (i.e. 16.7 A for a 16.7
Ah cell) at most.
7 Maximum current per [A] The maximum allowable battery cell discharging current. This
cell discharging current is typically set to discharge the battery in 5 hours ("C5"),
i.e. 3.3A if the cell capacity is 16.7 Ah. Specifying too high a
value may lead to erroneous results. Use "C1" (i.e. 16.7 A for a
16.7 Ah cell) at most.
8 Maximum charge [V] The maximum voltage allowed for each cell while charging. Do
voltage per cell not use values greater than 2.8V.
9 Discharge cutoff [V] The discharge cutoff voltage is the cell voltage below which
voltage battery discharge will be automatically shut off. Setting this
parameter to a positive value will disallow battery discharge if
4–53
TRNSYS 18 – Mathematical Reference
If Mode (parameter 1) = 3 or 5
10 Tolerance for iterative [A] Ic (charge) and Id (discharge) are calculated through an iterative
calculations process. This parameter gives the absolute tolerance on
convergence check. The equation calculating V from P also
requires iterations and the same value is used for the tolerance.
INPUTS
If Mode (parameter 1) = 1, 2, or 3
1 Power to or from [kJ/hr] The power used to charge the battery has a positive sign while
battery the power drawn from the battery by the load is negative.
If Mode (parameter 1) = 4 or 5
1 Current to or from [A] The current used to charge the battery has a positive sign while
battery the current being drawn from the battery by the load is negative.
DERIVATIVES
1 State of charge [Wh] The initial state of charge of one cell of the battery. This value
should use the same units as parameter 2 [Wh]. The value is
given for one cell. The initial SOC of the battery is obtained by
multiplying this value by the number of cells.
OUTPUTS
1 State of charge [Wh] The State Of Charge is expressed in the same units as the rated
cell capacity (Wh). This value is given for one cell (all cells are
assumed to be identical).
2 Fractional state of [-] This is the ratio between the State Of Charge and the rated
charge energy capacity.
4 Power lost during [kJ/hr] Power loss. This is equal to (1-Efficiency)*Power when charging
charge and 0 at all other times.
If Mode (parameter 1) = 1
5 Excess/Deficit power [kJ/hr] A positive value of this output indicates that power had to be
dumped by the battery in order to keep it at 100% SOC. A
negative value of this output indicates that auxiliary power was
needed in order to keep the battery at 0% SOC. In order for the
simulation to continue running without generating an error, the
4–54
TRNSYS 18 – Mathematical Reference
If Mode (parameter 1) = 2, 3, 4, or 5
5 Total current [A] Total current to (>0) or from the battery (<0). It is equal to the
cell current multiplied by the number of cells in parallel.
6 Total voltage [V] Total voltage of the battery (Cell voltage * Nb of cells in series).
7 Max. Power for charge [kJ/hr] Maximum power for battery charge (i.e. power corresponding to
maximum charge current).
8 Max. Power for [kJ/hr] Maximum power for battery discharge (i.e. power corresponding
discharge to maximum discharge current) - Negative value.
9 Discharge cutoff [V] Discharge cutoff voltage (computed if parameter 9 < 0).
voltage (DCV)
13 Excess/Deficit power [kJ/hr] A positive value of this output indicates that power had to be
dumped by the battery in order to keep it at 100% SOC. A
negative value of this output indicates that auxiliary power was
needed in order to keep the battery at 0% SOC. In order for the
simulation to continue running without generating an error, the
Type assumes that a power sink/source is available to dump or
provide the required excess.
Capacity [Ah] The product of the cell capacity, the number of cells in parallel and the
number of cells in series
4–55
TRNSYS 18 – Mathematical Reference
4.2.1.4. Nomenclature
Q State of Charge (Mode 1 - watt-hrs, Modes 2, 3, 4, 5 - amp hrs)
Qm Rated capacity of cell
Qc,Qd Capacity parameters on charge; discharge
F Fractional state of charge = Q/Qm (l.0 = full charge)
H (1-F)
eff Charging efficiency
I Current
Imax, Imin Maximum I (rate of charge), minimum I (rate of discharge)
P Power
Pmax, Pmin Maximum P, minimum P
V Voltage
Vc Cutoff voltage on charge
Ic, Pc Charging current, power corresponding to Vc
Ic,tol, Vtol Parameters used in iterative calculations
Vd Cutoff voltage on discharge
ed, rd Parameters used in calculating Vd
Vzp Additional voltage term in Hyman model
Izp, Kzp Parameters used in calculating Vzp
Voc Open circuit voltage at full charge
Open circuit voltages at full charge, extrapolated from V vs I curves on
eqc, eqd
charge; discharge
gc, gd Small-valued coefficients of H in voltage-current-state of charge formulas
rqc rqd Internal resistances at full charge when charging; discharging
Cell-type parameters which determine the shapes of the I-V-Q
mc, md
characteristics
4–56
TRNSYS 18 – Mathematical Reference
𝑚𝑑 𝐻
𝑉 = 𝑒𝑞𝑑 − 𝑔𝑑 𝐻 + 𝐼𝑟𝑞𝑑 (1 + ) Eq. 4.2.1-1
𝑄𝑑
−𝐻
𝑄𝑚
and on charge (I > 0) :
𝑚𝑐 𝐻
𝑉 = 𝑒𝑞𝑐 − 𝑔𝑐 𝐻 + 𝐼𝑟𝑞𝑐 (1 + ) Eq. 4.2.1-2
𝑄𝑐
−𝐻
𝑄𝑚
These equations are contained in Type47 modes 2 and 4. The regulator/inverter component that works
with this battery model must never set I = 0. Rather, when conditions on V c, Vd, Fc, or Fd are such that
charge or discharge should not be permitted, the regulator should assign the current some small positive
or negative value depending on what condition (i.e. charging; discharging) would be desired if permitted.
This fixes the system voltage on either the proper charge or discharge curve, rather than at some
intermediate floating open circuit value. Note that Type48 includes this feature and that replacement of
Type48 by another model or by equations should be done with care to include the same.
Zimmerman and Peterson [3] describe a model which takes into account behavior at very low currents.
Hyman recommends adding their expression to the Shepherd formula, thus providing a more realistic model
at very low currents. On discharge, the formula is:
𝑚𝑐 𝐻
𝑉 = 𝑉𝑜𝑐 − 𝑉𝑧𝑝 − 𝑔𝑐 𝐻 + 𝐼𝑟𝑞𝑐 (1 + ) Eq. 4.2.1-3
𝑄𝑐
−𝐻
𝑄𝑚
𝑚𝑐 𝐻
𝑉 = 𝑉𝑜𝑐 + 𝑉𝑧𝑝 − 𝑔𝑐 𝐻 + 𝐼𝑟𝑞𝑐 (1 + ) Eq. 4.2.1-4
𝑄𝑐
−𝐻
𝑄𝑚
where:
1 |𝐼|
𝑉𝑧𝑝 = 𝑙𝑛 ( + 1) Eq. 4.2.1-5
𝑘𝑧𝑝 𝐼𝑧𝑝
and:
1
𝑉𝑜𝑐 = (𝑒𝑞𝑑 + 𝑒𝑞𝑐 ) Eq. 4.2.1-6
2
One may recognize Eq. 4.2.1-5 and the V-I relationship for a semiconductor diode. These equations have
been incorporated into Type47 modes 3 and 5.
Figure 4.2.1–1 and Figure 4.2.1–2 show the characteristics of both the Shepherd and the Shepherd-
modified models for a 250 amp-hr. cell that are simulated by this component. Figure 4.2.1–2 also displays
the I=50 and I= -50 (± Qm/5) curves used in [4].
To prolong battery life, the battery should not be charged to too high a voltage nor discharged to too low a
voltage. The maximum charge voltage limit parameter, VC, is set below the value at which appreciable
gassing of the battery electrolyte commences. If the VCONTR parameter is negative the voltage limit on
discharge, VD is calculated from:
𝑉𝑑 = 𝑒𝑑 − |𝐼|𝑟𝑑 Eq. 4.2.1-7
This last equation and the values of ed and rd used are from Hyman [2], who derived them from data of
Vinal [5]. If the VCONTR parameter is >0, then VD is set to the constant value of VCONTR.
4–57
TRNSYS 18 – Mathematical Reference
PC and PVd are battery powers that correspond to Vc and Vd respectively. They are used in the
regulator/inverter module so that constant voltage charging and discharging can be initiated to ensure V
does not exceed Vc or V does not fall below Vd.
Modes 2, 3, 4 and 5 limit the current (per cell) to between Imax and Imin, which are Input as parameters. They
also calculate the power corresponding to these two values of the current, for possible use in the
regulator/inverter component.
3.6
3.4
3.2
3.0
2.8
F=1.0
2.6
V, VOLTS
2.4 F=0.5
2.2 F=0.0
F=1.0
2.0
1.8
F=0.5
1.6
1.4 F=0.0
1.2
SHEP HERD MODEL
1.0
SHEP HERD MODI FI ED ( HYMAN) MO DEL
0.8
- 70 - 60 - 50 - 40 - 30 - 20 - 10 0 10 20 30 40 50 60 70
I, AM PS
Figure 4.2.1–1: Voltage vs Current for a 250 Amp-Hr Cell
The calculations in every mode are performed on a single cell, but the power (in Modes 1, 2 and 3) or
current (in Modes 4 and 5) Input to the component are for the entire battery. Therefore, P is divided by
(cp)(cs) or I by cp before being used in the Mode calculation. P is divided by 3.6 in the program to convert
from kJ/hr to watts. Upon output, all values of voltage (V, Vc, and Vd) are multiplied by cs, powers (P, Pmax,
Pmin, and Pc) by (cp)(cs)(3.6), and the current by cp.
Finally, each mode specifies how the state of charge changes during charge and discharge. In Mode 1, A
is in terms of energy (watt-hrs), and:
𝑚𝑐 𝐻
𝑉 = 𝑒𝑞𝑐 − 𝑔𝑐 𝐻 + 𝐼𝑟𝑞𝑐 (1 + ) Eq. 4.2.1-8
𝑄𝑐
−𝐻
𝑄𝑚
In the other modes, Q is the charge (amp-hrs) in the battery, so that:
𝑑𝑄 𝐼 𝑖𝑓 𝐼 < 0
= ⟨ Eq. 4.2.1-9
𝑑𝑡 𝐼 ∗ 𝑒𝑓𝑓 𝑖𝑓 𝐼 > 0
The eff factor is the charging efficiency.
4–58
TRNSYS 18 – Mathematical Reference
3.0
SHEP HERD MOD EL
2.8
SHEP HERD MOD IFIED (HYMA N) M ODEL
2.6 GE M ODEL
2.4
I = 50
V, VOLTS
2.2
I= 5
I = 50
2.0
I = -5
1.8 I = -50
1.6
1.4
I = -50
1.2
-1.0 -0.8 -0.6 -0.4 -0.2 0.0
F = -Q/Qm
Figure 4.2.1–2: Voltage vs. State of Charge for a 250 Amp-Hr Cell
4.2.1.6. References
1. Shepherd, C.M., "Design of Primary and Secondary Cells II: An Equation Describing Battery
Discharge;" Journal of Electrochemical Society, 112, 657 (1965).
2. Hyman, E.A., "Phenomenological Cell Modelling: A Tool for Planning and Analyzing Battery
Testing at the BEST Facility," Report RD77-1, Public Service Electric and Gas Company &
PSE&G Research Corporation, Newark, (1977).
3. Zimmerman, H.G. and Peterson, R.G., "An Electrochemical Cell Equivalent Circuit for Storage
Battery/Power System Calculations by Digital Computer," Vol. 1 (1970), Intersociety Energy
Conversion Engineering Conference, Paper 709071, 1970.
4. "Conceptual Design and Systems Analysis of Photovoltaic Systems," Report No. ALO-3686-14,
General Electric Co., Space Division, Philadelphia, (1977).
5. Vinal, George W., Storage Batteries, Fourth Edition, 1955, John Wiley & Sons, Inc.
6. Hyman, E.A., Public Service Electric and Gas Company, Newark, NJ, Private Communication
4–59
TRNSYS 18 – Mathematical Reference
If Mode (parameter 1) = 0
If Mode (parameter 1) = 1, 2, or 3
2 Regulator efficiency [-] Regulator efficiency (e.g. use this for non-perfect max-power
tracker efficiency).
4 High limit on fractional [-] High limit on fractional state of charge (FSOC). If FSOC is
state of charge (FSOC) higher than this value, charging is not allowed.
5 Low limit on FSOC [-] Low limit on fractional state of charge (FSOC). If FSOC is lower
than this value, discharging is not allowed.
6 Charge to discharge [-] FB: Charge to discharge limit on fractional state of charge
limit on FSOC (FSOC). If FSOC < FB and the battery has been charging, then
the battery must be on "total charge." On "total charge," first
priority is given to recharging the battery with any array output,
rather than sending the output to the load until FSOC > FB.
If Mode (parameter 1) = 2 or 3
4–60
TRNSYS 18 – Mathematical Reference
9 Current for grid [A] Battery charge current when grid power is used for charging.
charging of battery
10 Upper limit on FSOC [-] High limit on fractional state of charge (FSOC). If FSOC is
for grid charging higher than this value, charging with the grid is not allowed.
INPUTS
1 Input power or current [kJ/hr] or [A] Power (in the case of Modes 0, 1 or 2) or current (in the case of
Mode 3) from source device (e.g. solar PV array).
If Mode (parameter 1) = 1 or 2
3 Battery fractional state [-] Battery fractional State of Charge (FSOC). 0 means the battery
of charge is fully discharged. 1 means the battery is fully charged.
If Mode (parameter 1) = 2
5 Max battery input [kJ/hr] Maximum power for battery charge (i.e. power corresponding to
maximum charge current). If this component is used in
conjunction with the Type47 battery model, this input can be set
by one of Type47’s outputs.
6 Max battery output [kJ/hr] Maximum power for battery discharge (i.e. power corresponding
to maximum discharge current). This should be a negative
value. If this component is used in conjunction with the Type47
battery model, this input can be set by one of Type47’s outputs.
7 Lower limit on battery [V] Lower limit on battery voltage during discharge. If this
voltage component is used in conjunction with the Type47 battery
model, this input can be set by one of Type47’s outputs.
8 Allowable discharge [kJ/hr] When the battery gets to its low voltage limit, discharging power
rate when at low will be limited to this quantity. If this component is used with the
voltage limit Type47 battery model, this input can be set by one of Type47s
outputs.
9 High limit on battery [V] Higher limit on battery voltage during charge. If this component
voltage is used with the Type47 battery model, this input can be set by
one of Type47s outputs.
10 Allowable charge rate [kJ/hr] When the battery gets to its high voltage limit, charging power
when at high voltage will be limited to this quantity. If this component is used with the
limit Type47 battery model, this input can be set by one of Type47s
outputs.
11 Start time for grid [hr] Time of the day at which battery charging with the grid can start
battery charging (this assumes TIME=0 in the simulation is midnight). Set this
parameter equal to the next to allow the grid to charge the
battery at any time.
12 Stop time for grid [hr] Time of the day at which battery charging with the grid should
battery charging stop (this assumes TIME=0 in the simulation is midnight). Set
4–61
TRNSYS 18 – Mathematical Reference
OUTPUTS
If Mode (parameter 1) = 0
3 Excess power [kJ/hr] Power to or from utility (>0 if purchased, <0 if sell-back).
4 Power loss [kJ/hr] The power lost by the regulator/inverter due to its inefficiency.
If Mode (parameter 1) = 1, 2, or 3
4 Dumped generated [kJ/hr] PV Array power "dumped" or not collected due to full battery.
power
If Mode (parameter 1) = 1 or 2
6 Power loss [kJ/hr] The power lost by the regulator/inverter due to its inefficiency.
If Mode (parameter 1) = 3
9 Dumped generated [A] PV Array Current "dumped" or not collected due to full battery.
current
11 Power loss [kJ/hr] Power lost by the regulator/inverter due to its inefficiency.
If Mode (parameter 1) = 0
4–62
TRNSYS 18 – Mathematical Reference
If Mode (parameter 1) = 1
Maximum Inverter [kW] The peak power that can be delivered by the inverter
Output
If Mode (parameter 1) = 2 or 3
Maximum Inverter [kW] The peak power that can be delivered by the inverter
Output
TEXT FIELDS
If Mode (parameter 1) = 0
If Mode (parameter 1) = 1
Control Mode n/a System with SOC Monitoring of Battery and MPPT
If Mode (parameter 1) = 2 or 3
Control Mode n/a Mode 2: System with SOC and SOV Monitoring of Battery and MPPT or
Mode 3: Direct Connect System
If Mode (parameter 1) = 0
If Mode (parameter 1) = 1
4–63
TRNSYS 18 – Mathematical Reference
If Mode (parameter 1) = 2 or 3
4.2.2.4. Nomenclature
PA Power from solar cell array
PD Power demanded by load
(+) Power sent to load from array and battery (-) Power sent to battery from
PL utility
PL,MAX Output capacity of inverter (or if negative, Input current limit)
4–64
TRNSYS 18 – Mathematical Reference
4–65
TRNSYS 18 – Mathematical Reference
Mode 2 monitors the battery's voltage level and charge/discharge rate as well as its state of charge. The
additional limits are the Inputs VD, VC, PB, PB,MAX, and PB,MIN.
In mode 2, inverter output power is limited to a maximum of PL,MAX if PL,MAX > 0. If PL,MAX < 0, the current
Input to the inverter is limited to a maximum of - PL,MAX.
Whenever the "F Tests" call for the mode 2 battery to discharge, the subroutine checks if V < V D. If this is
so, then a taper discharge is called for until F = FD. During taper discharge, power is limited so as to never
exceed PVd. If V remains above FD, then discharge can proceed, as it would in mode 1.
When state of charge considerations imply charging, a test is performed against V C. If V < VC, charging
can proceed. With V > VC, the battery is put on "slow charge." This means that PB = PC, where PC is the
power that can be Input to the battery to keep V at VC. (With the iterative procedure that is performed among
the battery, regulator/inverter, and other components, V is effectively limited to exactly V C.) Thus, the
"finishing" charging of the battery is done at constant voltage.
After all "F Tests" and "V Tests," mode 2 checks the charge or discharge rate of the battery. These steps
limit PB to less than PB,MAX (on charge) and to greater than PB,MIN (on discharge). These correspond to the
current limits IMAX and IMIN in the Type47 battery model. Pairing Type48 with other battery models will require
the use of equations (or battery model inputs and outputs) that limit the charging and discharging current
to both the battery model and to this component. When PA is large enough so that PB would otherwise
exceed PB,MAX, this procedure carries out "constant current" charging of the battery (until V C is reached,
when "constant voltage" charging takes over).
Modes 0, 1 and 2 all operate with a maximum power mode of the various photovoltaic collector models.
They simply accept PA as an Input and parcel it out among PB, PR and PL. Mode 3 involves distributing
current instead of power ("P" means "I" in this case), and the solar array voltage is clamped to that of the
battery. It takes an initial PA and sets PB and the other currents accordingly. The voltage is calculated by
the battery model. In the case of pairing this component with Type47, the voltage is computed from the
battery current in modes 3 or 4 of Type47. Once the battery voltage V is known, it is fed into the photovoltaic
array model. The PV model then calculates a new PA for the regulator. This sequence is repeated until, in
effect, Kirchoff's Law for currents is satisfied, with the battery and array voltages equal to each other. Note
that it may be necessary to choose a PV model that contains algorithms for solving the direct connect
system configuration (such as Type103).
Mode 3 performs the same tests as the lower modes on F, V and PB (now the battery current). It converts
the Inputs PL,MAX, PC, PD, PB,MAX and PB,MIN to currents by dividing by V and the kJ/hr to watt conversion
factor 3.6. Mode 3 outputs PA, PB, PL . eff2, PR and PU as powers and currents, instead of just powers.
Modes 2 and 3 have the additional capability of charging the battery directly from the utility. Intended to
simulate off-peak charging, this feature permits charging at a current IBCH, up to an F limit of FBCH, when the
time of day is between T1 and T2.
4–66
TRNSYS 18 – Mathematical Reference
1 Site elevation [m] The height of the site above sea level.
2 Data collection height [m] The height above site ground level at which the wind data was
collected.
4 Turbine power loss [% (base The percentage of turbine output power that is lost due to
100)] ineffiencies and transmission.
6 Logical unit of file [-] The integer identifier (logical unit number) associated with the
containing power curve data file containing additional WECS parameters.
data
INPUTS
1 Control signal [-] The control signal for the wind turbine. CTRL = 0: WECS is OFF,
CTRL = 1: WECS is ON and providing power.
2 Wind speed [m/s] The uncorrected wind speed measured at the site at the data
collection height specified as one of the parameters to this
model. Note that "uncorrected" in this case means that the wind
speed being provided to this component should NOT include
any correction for site wind shear. If the wind speed has already
been corrected for site shear effects then the site shear
exponent should be set to 0.
4 Site shear exponent [-] Site wind shear exponent is a dimensionless measure of the
wind speed at a particular height above the ground as compared
to the free stream wind speed that was measured at a data
collection site. The shear exponent is the value “a” in the
formula: v / vo = (h / ho)^a Some typical values are: -0.06 =
inverted profile, 0.00 = neutral profile, 0.06 = open water, 0.10 =
short grasses, 0.14 = 1/7-profile-common, 0.18 = low vegetation,
0.22 = forests, 0.26 = obstructed flows, 0.30 = rare
OUTPUTS
4–67
TRNSYS 18 – Mathematical Reference
Rotor diameter [m] Rotor diameter as reported in the WECS data file.
Rated power [kW] WECS rated power as reported in the data file
Rated windspeed [m/s] Windspeed at which the rated power is produced (as reported in the
data file)
TEXT FIELDS
4.2.3.4. Nomenclature
U0 Velocity in the free stream
P0 Pressure in the free stream
A1 Area of the c.v. far upstream of the rotor.
UR Velocity through the rotor
PR+ Pressure just upstream of the rotor
PR- Pressure just downstream of the rotor
UW Velocity far downstream in the rotor wake
AW Area far downstream in the rotor wake
Q Mass flux out the sides of the c.v.
4–68
TRNSYS 18 – Mathematical Reference
Figure 4.2.3–1: Streamtube Control Volume with Actuator Disk Wind Turbine Model
MOMENTUM THEORY
4–69
TRNSYS 18 – Mathematical Reference
If it is assumed that the density of the air does not change, then mass continuity through the streamtube
requires:
𝐴1 𝑈0 = 𝐴𝑅 𝑈𝑅 = 𝐴𝑤 𝑈𝑤 Eq. 4.2.3-1
Since U0 > UR > UW then it follows that and the streamtube expands. The mass balance for the c.v. is:
𝐴1 𝑈0 − 𝐴𝑤 𝑈𝑤 − (𝐴1 − 𝐴𝑤 )𝑈0 − 𝑄 = 0 Eq. 4.2.3-2
Rearranging Eq. 4.2.3-2 and solving for Q yields an expression for the mass flow rate out of the control
volume:
𝑄 = 𝐴𝑤 (𝑈0 − 𝑈𝑤 ) Eq. 4.2.3-3
Mass flow rate can be expressed as AU. Conservation of momentum in the horizontal direction results in:
𝜌𝐴1 𝑈0 2 − 𝜌𝐴𝑤 𝑈𝑤 2 − 𝜌(𝐴1 − 𝐴2 )𝑈0 2 − 𝜌𝑈0 𝑄 − 𝐷 = 0 Eq. 4.2.3-4
BERNOUILLI'S EQUATION
Figure 4.2.3–2 shows wind speed, plus static, dynamic and total pressure across the rotor.
Bernoulli's equation is next used to describe the pressure difference across the rotor. Upstream of the
rotor:
1 1
𝑝0 + 𝜌𝑈0 2 = 𝑝𝑅 + + 𝜌𝑈𝑅 2 Eq. 4.2.3-8
2 2
and downstream of the rotor:
1 1
𝑝0 + 𝜌𝑈𝑤 2 = 𝑝𝑅 − + 𝜌𝑈𝑅 2 Eq. 4.2.3-9
2 2
The pressure difference across the rotor is then equivalent to the difference between Eq. 4.2.3-8 and Eq.
4.2.3-9, or:
1
𝑝𝑅 + − 𝑝𝑅 − = 𝜌(𝑈0 2 − 𝑈𝑤 2 ) Eq. 4.2.3-10
2
The thrust force, D can be expressed as the pressure difference applied to the rotor area (hence, actuator
disk). The expression in this case is:
𝐷 = 𝐴𝑅 (𝑝𝑅 + − 𝑝𝑅 − ) Eq. 4.2.3-11
It is then possible to combine Eq. 4.2.3-10 and Eq. 4.2.3-11 to create an expression for the thrust:
1
𝐷= 𝜌𝐴 (𝑈 2 − 𝑈𝑤 2 ) Eq. 4.2.3-12
2 𝑅 0
4–70
TRNSYS 18 – Mathematical Reference
Figure 4.2.3–2: Wind speed, P, plus static, dynamic and total pressure across the rotor
4–71
TRNSYS 18 – Mathematical Reference
𝑈0 + 𝑈𝑤
𝑈𝑅 = Eq. 4.2.3-16
2
which means that the wind speed at the rotor is the average of the upstream and downstream wind speeds.
The term a is defined as the axial induction factor (or the retardation factor) and is a measure of the influence
of the rotor on the wind, such that:
𝑈𝑅 = 𝑈0 (1 − 𝑎) Eq. 4.2.3-17
Eq. 4.2.3-16 and Eq. 4.2.3-17 can then be combined to yield an expression for the downstream wind speed
in terms of the free stream wind speed, or:
𝑈𝑤 = 𝑈0 (1 − 2𝑎) Eq. 4.2.3-18
The power output of a wind turbine can then be written as the product of the thrust times velocity:
𝑃 = 𝐷𝑈𝑅 Eq. 4.2.3-19
Eq. 4.2.3-12 can be substituted into Eq. 4.2.3-19 to create an expression for the power output
1
𝑃 = ( 𝜌𝐴𝑅 (𝑈0 2 − 𝑈𝑤 2 )) 𝑈𝑅 Eq. 4.2.3-20
2
Eq. 4.2.3-17 can be used to replace UR, and Eq. 4.2.3-18 can be used to replace Uw in Eq. 4.2.3-20,
resulting in:
2
𝑃 = 𝜌𝐴𝑅 𝑈0 (1 − 𝑎) (𝑈0 2 − (𝑈0 (1 − 2𝑎)) ) Eq. 4.2.3-21
The maximum power coefficient, CPmax, is found by finding dP/da = 0 and solving for a, where the solutions
are a = 1 and a = 1/3. The solution for a = 1 results in the minimum value of C P, 0, while a = 1/3 results in
the maximum value of CP, where:
1 1 2 16
𝐶𝑃𝑚𝑎𝑥 = 4 (1 − ) = = 59.3% Eq. 4.2.3-25
3 3 27
The value of 59.3% as a maximum power coefficient was first derived by Betz in 1919, and has since been
called Betz's limit.
The value of the coefficient is that, when multiplied by the area of the rotor and power in the wind, it
describes the power output of the wind turbine, or:
𝑃 = 𝐶𝑃 𝜌𝐴𝑅 𝑈0 3 Eq. 4.2.3-26
Figure 4.2.3–3 shows Cp as a function of the axial induction factor. The value of C P for a wind turbine is
determined by its tip-speed-ratio (the ratio of blade tip speed in the plane of the rotor to the free stream
wind speed U0). For variable pitch or variable speed wind turbines, tip-speed-ratio is selected by the turbine
for maximum CP up to the rated power output, then for operation at wind speeds above the rated wind
speed, CP falls in order to maintain constant rated power.
4–72
TRNSYS 18 – Mathematical Reference
Figure 4.2.3–4: Typical CP vs. wind speed curves for stall regulated and power regulated WECS
The CP values applicable for most wind turbine applications are those associated with axial induction factors
between 0 and 0.5; values less than 0 are associated with propeller operation, and values above 1.0 are
associated with propeller brakes. For wind turbines, values between 0.5 and 1.0 are not encountered in
practice because in this region, stall-regulated turbines have lower tip-speed-ratios and pitch-regulated
wind turbines feather to lower, rather than higher thrust coefficients. Pitching to the lower thrust coefficient
achieves lower structural loads than pitching to the higher thrust coefficient.
THRUST COEFFICIENT
4–73
TRNSYS 18 – Mathematical Reference
The thrust coefficient, CT, for a wind turbine is defined as the ratio of the wind turbine drag force divided by
the force of the wind over an equivalent swept area. Determination of C T is required for turbine wake and
array calculations. The term "thrust" is commonly used instead of "drag" because turbine design shares a
significant amount of its nomenclature and theoretical development with propeller theory. Most
manufacturers do not explicitly publish thrust coefficient data. However, it is possible to derive the thrust
coefficient at a given wind speed if the CP or turbine power output is known, based on momentum theory.
Wilson and Lissaman (1974) developed a method for relating C T to the axial induction factor. Recall from
Eq. 4.2.3-19 that P = DUR. Substituting for P using Eq. 4.2.3-17, and canceling like terms results in the
expression:
1
𝐷= 𝜌𝐴 𝑈 2 (4𝑎(1 − 𝑎)) Eq. 4.2.3-27
2 𝑅 0
The thrust coefficient is the turbine thrust divided by the wind force applied to the rotor swept area, or:
𝐷
𝐶𝑇 = Eq. 4.2.3-28
1
𝜌𝐴 𝑈 2
2 𝑅 0
Eliminating D between the last two equations results in an expression for C T as a function of a:
𝐶𝑃 = 4𝑎(𝑎 − 1) Eq. 4.2.3-29
Recalling from Eq. 4.2.3-24 that CP can also be expressed as a function of the axial induction factor, then
it is possible to relate the thrust coefficient to the power coefficient through the axial induction factor.
Figure 4.2.3–5 shows CT and CP as a function of the axial induction factor in the a = 0 to 0.5 region. Figure
4.2.3–6 shows the curve of CT as a function of CP, for CP between 0 and 0.593 and CT between 0 and 1.0.
The region CT = 0 to 1.0 is appropriate for practical wind turbines because CP cannot exceed Betz's limit
and because commercial turbines, with low rotor solidities, do not commonly exhibit thrust coefficients
greater than 1.0.
4–74
TRNSYS 18 – Mathematical Reference
AIR DENSITY
The energy extracted by a wind turbine results from the change in momentum of the air moving through the
rotor. The mass flow rate of air is a function of its density; therefore, the change in momentum is a function
of the density of the air passing through the rotor. As described by the ideal gas law, the density of air is a
function of its temperature and pressure. Air density is also dependent on humidity ratio, although Rohatgi
and Nelson (1994) have shown that this influence is negligible for wind energy applications. In the
atmosphere, the air density at a particular altitude is a function of the temperature and pressure of the air
at the time and at that location. Both air pressure and temperature fall as a function of altitude. Hydrostatic
pressure is commonly described as:
𝑑𝑝
= −𝜌𝑔 Eq. 4.2.3-30
𝑑𝑧
so the pressure difference from one altitude to the next is:
2
∆𝑝 = − ∫ 𝜌𝑔𝑑𝑧 Eq. 4.2.3-31
1
Introducing the ideal gas law p = RT, substituting for in Eq. 4.2.3-30, separating the variables, and
integrating between two points yields:
2
𝑑𝑝 𝑝2 𝑔 2 𝑑𝑧
∫ = ln ( ) = − ∫ Eq. 4.2.3-32
1 𝑃 𝑝1 𝑅 1 𝑇
Assuming constant temperature, integrating Eq. 4.2.3-32 over z yields an expression for the pressure
difference from point 1 to point 2 in elevation:
−𝑔(𝑧2 −𝑧1 )
( ) Eq. 4.2.3-33
𝑝2 = 𝑝1 𝑒 𝑅𝑇
4–75
TRNSYS 18 – Mathematical Reference
For elevations where wind energy applications apply, temperature decreases linearly with altitude. The
temperature "lapse rate" (White, 1994) is:
𝑇(𝑧) ≈ 𝑇0 − 𝐵𝑧 Eq. 4.2.3-34
4–76
TRNSYS 18 – Mathematical Reference
Figure 4.2.3–8: Percent of standard air density over the course of a year (typical weather conditions)
Wind turbine power output also varies slightly due to variations in air density because the Reynolds number,
upon which airfoil performance depends, also depends on air density. However, the influence on power
output at the variations in density occurring in the atmosphere is small, so that Reynolds effects are not
usually considered in power output modeling.
Different types of turbines respond differently to air density changes depending on the method of power
regulation employed. The output of fixed pitch wind turbines (stall-regulated and Darrieus vertical axis wind
turbines) varies linearly with air density ratio. In this case, the vector addition of free-stream and rotor wind
velocities results in an apparent airfoil angle of attack which moves into the "stalled" region of the airfoil lift-
drag curve. Fixed pitch is problematic for commercial operators of wind turbines because the pitch of the
turbine, as installed, is fixed and therefore based on a mean assumption for site air density. Since air density
varies constantly, the turbine is rarely operating at an optimum. Fortunately, the range of "near-optimum"
is broad. However, it is common practice to set conservative pitch angles on stall-regulated turbines to
avoid overloading the turbine generator at times of high air density and high wind (typically, winter
conditions).
Turbines with variable speed rotors and pitch-controlled blades are of a "power-regulation" class. For these
turbines, output is linearly proportional to air density up to the maximum power rating of the turbine.
Maximum power is achievable, albeit at a higher wind speed in low density conditions. The wind speed at
which the rotor cuts-in and can reach its rated output occurs at a wind power density equivalent to the wind
power density at standard conditions. Wind power density (W/m 2) is a cubic function of wind speed,
therefore
1
𝜌0 3
𝑈𝑟𝑎𝑡𝑒𝑑,𝜌 = 𝑈𝑟𝑎𝑡𝑒𝑑 ( ) Eq. 4.2.3-37
𝜌
Figure 4.2.3–9 shows power curve variations for a power-regulated turbine as a function of air density. Note
that the turbine reaches a fixed maximum, but that the point at which it reaches the maximum depends on
air density.
4–77
TRNSYS 18 – Mathematical Reference
Figure 4.2.3–9: Output of a Power Regulated Wind Turbine as a Function of Air Density
4–78
TRNSYS 18 – Mathematical Reference
between heights. Combined with the capability to disaggregate time series data into directional
components, then it is possible to map the shear exponent by time and direction.
In time series modeling of wind turbine performance, vertical wind shear data is important in two cases. In
the first case, the wind turbine power curve may have been collected at a height which was not the turbine
hub height. For example, wind data may have been collected at ten meters for a wind turbine which was
operating at a 25 meter height above the ground. Though not a common situation, power curve data have
been published with this height mismatch, since it can misleadingly represent a more powerful turbine.
In the second case, it is more common that site wind data has been collected at a different height from the
turbine hub height. In this case, a hierarchy of approaches is appropriate. The most rigorous approach is
to utilize a time series of vertical wind shear values calculated from two wind speed data sets, each from a
different height above ground bracketing the height of the wind turbine. The equation for determining the
alpha value from heights 1 and 2 is obtained by solving the power law equation for :
ln(𝑈2 ) − ln(𝑈1 )
∝= Eq. 4.2.3-40
ln(𝑧2 ) − ln(𝑧1 )
A less rigorous approach is to calculate wind speeds based on wind data where both heights were below
the turbine hub height: in this case the very same model is employed, but for extrapolation, rather than
interpolation. The least rigorous approach is to apply an alpha estimate which does not vary with time.
Unfortunately, this is often the case with typical availability of historic wind data, where annual average
alpha exponents for sites are often provided with average wind speed data and wind roses.
The sensitivity of hub height wind speed on the value of the vertical wind shear exponent is very strong.
Figure 4.2.3–10 was prepared to present an "envelope" of possible variations in wind speed estimates,
based on vertical wind shear assumptions, where the value of 1/7 was used as a baseline. The figure shows
that an error of 10% in wind power output can occur with a five point error in shear exponent. Considering
the fact that wind power is a cubic function of wind speed, the importance of vertical wind shear data is
critical.
4–79
TRNSYS 18 – Mathematical Reference
Figure 4.2.3–10: Example variation in wind turbine power output as a function of Shear exponent.
(lines represent various typical data height and turbine height values across a probable range)
TURBULENCE
Turbulence has a variety of impacts in wind energy applications. As discussed earlier in this chapter,
turbulence is major factor in contributing to the fatigue of turbine components. Turbulence is also important
from an energy perspective. It contributes to errors in the preparation of power curves. Higher turbulence
causes power fluctuations, since pitch controlled blades may not be able to adjust their blade pitch
sufficiently quickly to follow the rapidly varying wind speeds, which can result in potentially unstable power
output events. For stall-regulated wind turbines, turbulence has a similar effect, due to a hysteresis
phenomenon, termed dynamic stall. Data from wind tunnel tests have confirmed the existence of dynamic
stall; if the angle of attack of an airfoil is changed rapidly, stall is delayed. The same effect occurs as angle
of attack is returned from the stall condition; stall is maintained for a brief amount of time before settling
back.
When a turbine airfoil encounters turbulence, the effect is a change in apparent angle of attack. This effect
has been one of the areas NREL (The National Renewable Energy Laboratory, USA) has attempted to
mitigate in its development of airfoils designed specifically for wind turbines.
The U component is downwind, the V component is vertical, and the W component is the crosswind
component of the wind velocity vector. Turbulence is described as the variation in wind velocity, where the
associated turbulence intensities are defined as U', V' and W'. The only component which is actually
measured in most wind energy site assessments is U', based on the variation in the wind speed
measurements from a cup anemometer or propeller anemometer mounted on the front of a wind vane. U'
is important from an energy perspective because of its role in airfoil aerodynamics, such as dynamic stall.
4–80
TRNSYS 18 – Mathematical Reference
W' is important because it influences the horizontal component of the rotor wake structure, and V' influences
vertical wind shear and the vertical component of the rotor wake structure.
The time base for turbulence data is usually over an hour, with measurements stored at 1 Hz. A turbulence
intensity of 10% is equivalent to a standard deviation of 1m/s in an hour with a mean value of 10 m/s.
Connell (1986, 1988) has investigated turbulence in the atmosphere, as it relates to wind power
applications. His research revealed that turbine blades pass through a combination of turbulence
components as a rotation is completed. This mixing effect was simulated by computer re-sampling of
turbulence data from a ring of anemometers, using a rotational approach. Veers (1994) has made important
contributions in the characterization of the turbulent flow field, especially as it applies to fatigue damage, to
the extent of creating algorithms based on Connell's findings for synthesizing turbulent flow fields with
properties similar to observed data.
WAKES
When installed in multiple-unit arrays, wind turbines have the potential to interact with each other when a
downwind turbine is in the wake of an upwind wind turbine. The wake of the upwind turbine can be
visualized as a plume of reduced flow having a generally Gaussian shape and boundary-layer
characteristics in the radial crosswind direction. The extent of the wake interaction is dependent on the
general wind direction (placement), turbulence intensity in the radial crosswind direction (mixing), and
distance between turbines (strength), the number of upwind turbines (superposition), and whether wind
speeds are reduced below the turbines rated speed (sensitivity). Figure 4.2.3–11 shows a typical wake
interaction situation for a hypothetical wind array.
In general, the impact of wake effects on a wind turbine array is a reduction in power output for certain wind
speeds and directions. Knowledge of the wind speed by direction distribution at a site results in a
determination of an efficiency factor associated with the layout of the wind array. Thus, it is possible to
perform scenario analyses of possible array layouts in order to minimize wake effects. In real life projects,
the easiest approach is to increase the distances between turbines. This can increase the cost of a project,
however. The costs per land area are then introduced in the analysis to seek an optimum.
4–81
TRNSYS 18 – Mathematical Reference
second (and most important to the operator) is the reduced in-flow turbulence (and resulting increase in
service-life) experienced by the operating wind turbines.
OTHER FACTORS
A variety of other factors influence wind turbine power output. These can be divided into two categories:
aerodynamic and operational. Aerodynamic impacts are those influences on the aerodynamic performance
of the rotor airfoils. The most important aerodynamic impacts are the sources of increased surface
roughness of the blades, and the prime cause is dead insects built up on the leading edges of the blades.
Also recognized are ultra-violet light degradation of the surfaces of the blades, and air pollution. Installations
near highways have reported that turbine blades had been soiled by aerosols from the exhaust of diesel
engines powering trucks on the highway.
Operational influences are either external- or control-system sources of sub-optimal operation. External
causes include power outages or inadvertent shut-down. Control-system causes include sub-optimal cut-
in of the rotor due to anemometer or software error. A common cause of sub-optimal operation of horizontal
axis turbines is yaw-error: the misalignment of the rotor to the wind which can happen when variation in
wind direction occurs faster than the response rate of the yaw drive. Operational factors are commonly
lumped into a percent-loss factor or efficiency factor.
EXAMPLE
WECS_Typ Bonus 2MW (60) ! Wind Turbine type
WECS_REF www.bonus.dk ! Data source
Len_Unit m ! Length unit, must be m (do NOT edit)
Spd_Unit m/s ! Speed unit, must be m/s (do NOT edit)
4–82
TRNSYS 18 – Mathematical Reference
24 2000
25 2000 ! Last data pair - Free format.
4.2.3.8. References
1. Connel J. 1985. A primer on turbulence at the wind turbine rotor. In proceedings of Wind Power
1985, pp. 57-66. Washington DC. American Wind Energy Association.
2. Connel J. 1988. The wind lumps that bump a rotor. In proceedings of Wind Power 1988, pp. 452-
461. Washington DC. American Wind Energy Association.
3. Koepll G.W. 1982. Putnam's power from the wind: Second Edition. Van Nostrand Reinhold
Company, New-York.
4. Rohatgi J. and Vaughn N. 1974. Wind characteristics: an analysis for the generation of wind power.
Alternative Energy Institute. West Texas A&M university.
5. Spera, D.A. 1986. Overview of the new ASME performance test code for wind turbines.
Proceedings of Joint ASME/IEEE power generation conference, 1986. ASME, New-York
6. Veers P.S. et al. 1994. User's manual for FAROW: Fatigue and reliability of wind turbine
components, Version 1.1. Sandia National Laboratories, Albuquerque, NM, USA.
7. White F. 1994. Fluid Mechanics, Third Edition. Mc Graw Hill, New-York, USA.
8. Wilson R.E. and Lissaman P.B.S. 1994. Applied aerodynamics of wind power machines. National
Science Foundation, Washington DC, USA.
4–83
TRNSYS 18 – Mathematical Reference
4 Minimum turndown [-] Lower power set point, usually about 40-50% of rated power
(X=P/Prated).
5 Maximum power [-] Upper power set point, usually 80-90% of rated power
(X=P/Prated)
INPUTS
OUTPUTS
1 Single DEG power [W] Power set point for a single DEGS
4–84
TRNSYS 18 – Mathematical Reference
Total Load on all DEGs [kWh] The product of Output 1 and Output 2
(delivered)
4.2.4.4. Nomenclature
PLoad [W] Power required by the load
PDEGS,max [W] Rated Power generated by one DEGS (all DEGS are identical)
PDEGS,set [W] Power setpoint for each DEGS
XLow [-] Minimum power ratio (PDEGS / PDEGS,max) for one DEGS
XUp [-] Maximum power ratio (PDEGS / PDEGS,max) for one DEGS
NDEGS [-] Number of operating DEGS
NDEGS,min [-] Minimum number of DEGS operating at any time
NDEGS,max [-] Maximum number of DEGS operating at any time
Pup,i [W] "call up" power level for DEGS i (see text)
Pdown,i [W] "call down" power level for DEGS i (see text)
The dispatch controller simply loops through the DEGS and compare the power required by the load to Pup,i
and Pdown,i.
4–85
TRNSYS 18 – Mathematical Reference
If DEGS i was OFF and PLoad > Pup,i then switch DEGS i ON
If DEGS i was ON and PLoad < Pdown,i then switch DEGS i OFF
Note that the rules here above are overruled to have the number of operating DEGS between N DEGS,min and
NDEGS,max:
𝑁𝐷𝐸𝐺𝑆,𝑚𝑖𝑛 ≤ 𝑁𝐷𝐸𝐺𝑆 ≤ 𝑁𝐷𝐸𝐺𝑆,𝑚𝑎𝑥 Eq. 4.2.4-3
4–86
TRNSYS 18 – Mathematical Reference
1 MPPT mode [-] When set to 1, this parameter causes the PV to operate at its
maximum power point rather than at a load voltage specified
among the components inputs. When this parameter is set to 0,
the PV array will operate at the load voltage input.
2 Module short-circuit [A] The module's short circuit current reported on the
current at reference manufacturer's spec sheet. Reference conditions are typically
conditions 1000 W/m2 (incident solar radiation) and 25C (module
temperature)
3 Module open-circuit [V] The module's open circuit voltage reported on the
voltage at reference manufacturer's spec sheet. Reference conditions are typically
conditions 1000 W/m2 (incident solar radiation) and 25C (module
temperature)
4 Reference cell [C] The cell temperature at which the manufacturer reports open
temperature circuit voltage and short circuit current. This value is typically
25C
5 Reference insolation [W/m2] The solar radiation level at which the manufacturer reports open
circuit voltage and short circuit current. This value is typically
1000 W/m2.
4–87
TRNSYS 18 – Mathematical Reference
6 Module voltage at max [V] The module's maximum power point voltage reported on the
power point and manufacturer's spec sheet. Reference conditions are typically
reference conditions 1000 W/m2 (incident solar radiation) and 25C (module
temperature).
7 Module current at max [A] The module's maximum power point current reported on the
power point and manufacturer's spec sheet. Reference conditions are typically
reference conditions 1000 W/m2 (incident solar radiation) and 25C (module
temperature).
8 Temperature [A/K] This parameter describes the way in which temperature affects
coefficient of Isc (ref. the module's short circuit current at reference conditions. Short
cond) circuit current typically increases with increasing ambient
temperature. The parameter is expressed in units of A/K.
Manufacturers express this value either in units of A/K or in %/K
(percent of the short circuit current.
9 Temperature [V/K] This parameter describes the way in which temperature affects
coefficient of Voc (ref. the module's open circuit voltage at reference conditions. Open
cond.) circuit voltage typically decreases with increasing ambient
temperature. The parameter is expressed in units of V/K.
Manufacturers express this value either in units of V/K or in %/K
(percent of the open circuit voltage).
10 Number of cells wired [-] The number of individual cells wired together in series within a
in series module. For monocrystalline silicon panels, each cell generates
approximately 0.5V so an 18V panel would typically have 36
cells wired in series.
11 Module temperature at [C] The module's cell temperature at nominal operating cell
NOCT temperature (NOCT) conditions. Typically obtained from the
manufacturer's specification sheet.
13 Number of modules in [-] The number of modules wired in series within the PV array.
series Series wiring increases the array's total voltage.
14 Number of modules in [-] The number of modules wired in parallel within the PV array.
parallel Parallel wiring increases the array's total current.
INPUTS
2 Beam radiation [kJ/hr.m2}: The amount of beam solar radiation incident on the array.
3 Sky diffuse radiation [kJ/hr.m2] The amount of sky diffuse solar incident on the array.
4 Ground reflected [kJ/hr.m2] The amount of ground reflected diffuse radiation incident on the
diffuse radiation surface of the array.
6 Incidence angle of [degrees] The angle between the normal to the array plane and the line
beam radiation between the sun and the surface of the array.
4–88
TRNSYS 18 – Mathematical Reference
7 Load voltage [V] The voltage of the electrical load imposed on the PV array. This
voltage will determine the PV array’s operating point on its I-V
curve.
8 Flag for convergence [-] Because a PV's I-V curve is so flat near the short circuit current
promotion and so vertical near the open circuit voltage, it can be very
difficult to solve when the load voltage depends on the PV
performance and the PV performance depends on the load
voltage. This Type contains an internal solver to assist in the
solution. Setting this input flag to "1" activates that algorithm.
The algorithm is unnecessary if the PV is assumed to be
attached to a maximum power point tracker.
OUTPUTS
4 Array power [kJ/h] The power generated by the array expressed in kJ/h
5 Fraction of maximum [-] The array power divided by the power that would have been
power delivered under present conditions had the array been operating
at its maximum power point.
6 Open circuit voltage [V] The open circuit voltage of the array (i.e. not of the module) at
present operating conditions (i.e. at the present solar radiation
and ambient temperature instead of at NOCT or reference
conditions)
7 Short circuit current [A] The short circuit current of the array (i.e. not of the module) at
present operating conditions (i.e. at the present solar radiation
and ambient temperature instead of at NOCT or reference
conditions)
8 Array fill factor [-] The fill factor is a measure of how the maximum power point
relates to the "theoretical" maximum power point. The result is
the delivered power divided by the product of the open circuit
voltage and short circuit current. Expressed mathematically, the
fill factor is: ff=(Vmp*Imp)/(Voc*Isc). Note that if the PV is not
operating in its maximum power point tracking mode then the fill
factor output is still defined as the maximum power divided by
the theoretical maximum power and the fraction of maximum
power output should be taken into account.
9 Array temperature [C] The cell temperature at which the array is currently operating.
10 Array efficiency [-] The array efficiency is defined as the power produced by the
array divided by the amount of solar radiation incident on the
array.
4–89
TRNSYS 18 – Mathematical Reference
Reference condition [kW] An approximation of the power that the array will deliver when operating
peak power (appx) with a maximum power point tracker at reference conditions.
Reference condition [V] An approximation of the voltage at which the array will operate when
peak voltage (appx) connected to a maximum power point tracker at reference conditions.
TEXT FIELDS
Control mode [n/a] “maximum power point tracking” or “direct connection to load”
depending on the value of parameter 1.
4.2.5.4. Nomenclature
Slope of PV array [degrees]
Empirical PV curve-fitting parameter
g Semiconductor bandgap [eV]
c Module conversion efficiency
Isc Temperature coefficient of short-circuit current [A/K]
Voc Temperature coefficient of open-circuit voltage [V/K]
Angle of incidence for solar radiation [degrees]
Module transmittance-absorptance product
normal Module transmittance-absorptance product at normal incidence
FLAG Flag for PV convergence promotion algorithm
GT Total radiation incident on PV array
GT,beam Beam component of incident radiation
GT,diff Diffuse component of incident radiation
GT,gnd Ground-reflected component of incident radiation
GT,NOCT Incident radiation at NOCT conditions
GT,ref Incident radiation at reference conditions
I Current
4–90
TRNSYS 18 – Mathematical Reference
IL Module photocurrent
IL,ref Module photocurrent at reference conditions
Io Diode reverse saturation current
Io,ref Diode reverse saturation current at reference conditions
Isc Short-circuit current
Isc,ref Short-circuit current at reference conditions
Imp Current at maximum power point along IV curve
Imp,ref Current at maximum power point along IV curve, reference conditions
IAM Dimensionless incidence angle modifier
k Boltzmann constant [J/K]
NP Number of modules in parallel in array
NS Number of modules in series in array
Ns Number of individual cells in module
P PV output power
Pmax PV output power at maximum power point along IV curve
q Electron charge constant
Rs Module series resistance []
Rsh Module shunt resistance []
Tc Module temperature [K]
Tc,NOCT Module temperature at NOCT conditions [K]
Tc,ref Module temperature at reference conditions [K]
UL Array thermal loss coefficient
V Voltage
Vmp Voltage at maximum power point along IV curve
Vmp,ref Voltage at maximum power point along IV curve, reference conditions
Voc Open-circuit voltage
Voc,ref Open-circuit voltage at reference conditions [V]
4–91
TRNSYS 18 – Mathematical Reference
IL Rs
V
ID
𝑞 𝑉𝑚𝑝,𝑟𝑒𝑓 + 𝐼𝑚𝑝,𝑟𝑒𝑓 𝑅𝑠
𝐼𝑚𝑝,𝑟𝑒𝑓 = 𝐼𝐿,𝑟𝑒𝑓 − 𝐼𝑜,𝑟𝑒𝑓 [𝑒𝑥𝑝 ( (𝑉𝑚𝑝,𝑟𝑒𝑓 + 𝐼𝑚𝑝,𝑟𝑒𝑓 𝑅𝑠 )) − 1] − Eq. 4.2.5-7
𝛾𝑘𝑇𝑐,𝑟𝑒𝑓 𝑅𝑠ℎ
4–92
TRNSYS 18 – Mathematical Reference
In each case the “-1” term is may be dropped to simplify the algebra. This approximation has little influence
on the right side of the equations since because the magnitude of Io is very small, generally on the order of
10-6 A. Rearrangement then yields the following three expressions which isolate IL,ref, Io,ref, :
𝐼𝐿,𝑟𝑒𝑓 ≈ 𝐼𝑠𝑐,𝑟𝑒𝑓 Eq. 4.2.5-8
Type103 uses an iterative search routine in these four equations to calculate the equivalent circuit
characteristics. The first step is to set upper and lower bounds for the series resistance parameter Rs:
physical constraints require the Rs value to lie between 0 and the value such that = Ns. The initial guess
for Rs is midway between these bounds. and Io,ref are found from Eq. 4.2.5-9 and Eq. 4.2.5-10, while Eq.
4.2.5-8 gives a trivial solution for IL,ref. Type103 then employs Eq. 4.2.5-11 to compare the analytical and
catalog values for voc. When all other variables are held constant, the analytical value for voc increases
monotonically with series resistance [Townsend, 1989]. A monotonicly increasing function is one that only
increases and never decreases. If the analytical voltage coefficient is less than the catalog value, the lower
bound for Rs is reset to the present guess value. Likewise, the upper bound is set to the present value if
the calculated voc is too large. After resetting the upper or lower bound for Rs, a new guess value is found
by averaging the bounds. This procedure repeats until Rs and converge. Note that for IL,ref, Io,ref, , and Rs
are assumed to be constant and are calculated only on the first call in the simulation.
4–93
TRNSYS 18 – Mathematical Reference
unit conversions so that the conversion efficiency is dimensionless and varies between 0 and 1). Tc,NOCT is
set as parameter 11 while is computed from the incidence angle correlation described below.
where
𝜏𝛼
𝐼𝐴𝑀 ≡ Eq. 4.2.5-15
𝜏𝛼𝑛𝑜𝑟𝑚𝑎𝑙
Here, is the angle of incidence in degrees, with = 0 indicating normal incidence. Figure 4.2.5–2 plots
IAM as a function of .
1.1
1
Incidence Angle Modifier
0.9
0.8
0.7
0.6
0.5
0 10 20 30 40 50 60 70 80 90
Angle of Incidence [Degrees]
is the slope of the PV array in degrees. The total insolation on the array is found by summing the individual
radiation components and multiplying them by their appropriate incidence angle modifiers:
𝐺𝑇,𝑒𝑓𝑓 = 𝜏𝛼𝑛𝑜𝑟𝑚𝑎𝑙 (𝐺𝑇,𝑏𝑒𝑎𝑚 𝐼𝐴𝑀𝑏𝑒𝑎𝑚 + 𝐺𝑇,𝑑𝑖𝑓𝑓 𝐼𝐴𝑀𝑑𝑖𝑓𝑓 + 𝐺𝑇,𝑔𝑛𝑑 𝐼𝐴𝑀𝑔𝑛𝑑 ) Eq. 4.2.5-18
MULTI-MODULE ARRAYS
4–94
TRNSYS 18 – Mathematical Reference
The electrical calculations discussed PV model deal only with a single module. Type103 may be used to
simulate arrays with any number of modules. TRNSYS parameters 13 and 14 define the number of modules
in series (NS) and modules in parallel (NP) for the entire array. The total number of modules in the array is
the product of NS and NP. When simulating a single module only, both NS and NP are set to 1. The single-
module values for all currents and voltages discussed here above are multiplied by NP or NS to find values
for the entire array. This approach neglects module mismatch losses.
4.2.5.6. References
1. Duffie, John A. and William A. Beckman. Solar Engineering of Thermal Processes. Second Edition.
New York: John Wiley & Sons, Inc., 1991.
2. Duffie, John A. and William A. Beckman. Solar Engineering of Thermal Processes. Third Edition.
New York: John Wiley & Sons, Inc., 2006.
3. Eckstein, Jürgen Helmut. Detailed Modeling of Photovoltaic Components. M. S. Thesis – Solar
Energy Laboratory, University of Wisconsin, Madison: 1990.
4. Fry, Bryan. Simulation of Grid-Tied Building Integrated Photovoltaic Systems. M. S. Thesis – Solar
Energy Laboratory, University of Wisconsin, Madison: 1999.
5. King, David L., Jay A. Kratochvil, and William E. Boyson. “Measuring the Solar Spectral and Angle-
of-Incidence Effects on Photovoltaic Modules and Irradiance Sensors.” Proceedings of the 1994
IEEE Photovoltaics Specialists Conference. Sept 30-Oct 3, 1997. pp. 1113-1116.
6. Townsend, Timothy U. A Method for Estimating the Long-Term Performance of Direct-Coupled
Photovoltaic Systems. M. S. Thesis – Solar Energy Laboratory, University of Wisconsin, Madison:
1989.
4–95
TRNSYS 18 – Mathematical Reference
8 Upper limit on H2 [%] The H2 tank SOC limit at which the electrolyzer will be switched
storage (electrolyzer) to idle mode.
9 Lower limit on H2 [%] Lower SOC limit (H2-storage), i.e., ELY switched ON after
storage (electrolyzer) having been idling
10 Upper limit on H2 [%] Upper SOC limit (H2-storage), i.e., FC switched ON after having
storage (fuel cell) been idling
11 Lower limit on H2 [%] Lower SOC limit (H2-storage), i.e., FC switched OFF (idle)
storage (fuel cell)
INPUTS
OUTPUTS
4–96
TRNSYS 18 – Mathematical Reference
2 Fuel cell power [W] Power that is required from fuel cell
3 Total power from [W] Total power that is required from DEGS
DEGS
4 Power from one DEG [W] Power that is required from one single diesel engine generator
5 Number of DEGS [-] Total number of identical DEGS that are required in to operate in
parallel.
8 Fuel cell control signal [-] Fuel Cell control state (0=OFF, 1=ON)
4–97
TRNSYS 18 – Mathematical Reference
4.2.6.4. Nomenclature
PWECS [W] Power generated by the WECS
PDEGS,max [W] Rated Power generated by one DEGS
PDEGS,set [W] Power setpoint for each DEGS
NDEGS [-] Number of DEGS operating at fixed power
NDEGS,min [-] Minimum number of DEGS operating at any time
NDEGS,max [-] Maximum number of DEGS operating at any time
PFC,min [W] Minimum (idling) Power of the Fuel Cell
PFC,max [W] Rated Power of the Fuel Cell
PFC,set [W] Power setpoint for the Fuel Cell
PEly,min [W] Minimum (idling) Power of the Electrolyzer
PEly,max [W] Rated Power of the Electrolyzer
PEly,set [W] Power setpoint for the Electrolyzer
PLoad [W] Power to the load
Pdump [W] Dumped Power
Pbusbar [W] Power balance on the mini-grid bus bar
SOC [-] State Of Charge of the energy storage
ELlow [-] State Of Charge for which the Electrolyzer is switched ON
ELup [-] State Of Charge for which the Electrolyzer is switched OFF
FClow [-] State Of Charge for which the Fuel Cell is switched OFF
FCup [-] State Of Charge for which the Fuel Cell is switched ON
4–98
TRNSYS 18 – Mathematical Reference
If PEly,max was reached: Pdump = PWECS + NDEGS,min PDEGS,max + PFC,min - PLoad – PEly,set
4–99
TRNSYS 18 – Mathematical Reference
2 DEGS fuel type [-] 1 = Diesel, 2 = LPG, 3 = Propane, 4 = Methane, 5 = Natural gas,
6 = Hydrogen
3 Maximum DEGS [kW] Maximum allowable power. Usually 20% above rated power.
power
4 Minimum DEGS power [kW] Minimum allowable power. For a single DEGS placed in parallel
with many DEGSs, this value is usually about 40% of rated
power
5 DEGS index [-] A value corresponding to the index number of the specific DEGS
being used (see data file for details)
6 Logical unit for data file [-] Logical Unit identifier for external file
INPUTS
1 DEGS on/off switch [-] ON/OFF-switch for the DEGS (1 = ON, 0 = OFF)
2 Power set point [W] Power set point for one single DEGS (signal from DEGS
controller)
OUTPUTS
4–100
TRNSYS 18 – Mathematical Reference
4 Fuel efficiency [kWh/L] The power produced per unit volume of fuel consumed.
7 Unmet load [W] If the DEGS was unable to meet its set point power due to
capacity limitations then this output will be set to the amount of
power that the DEGS was unable to provide.
Maximum turnup Ratio [0..1] Parmaeter 4 divided by the DEGs rated power
“A” Coefficient Value [L/h] The value of the “A” coefficient that relates normalized power to fuel
consumption as specified in the external file.
“B” Doefficient Value [L/h] The value of the “B” coefficient that relates normalized power to fuel
consumption as specified in the external file.
TEXT FIELDS
Fuel Type n/a The type of fuel consumed by the DEGs based on the value of
Parameter 2
4–101
TRNSYS 18 – Mathematical Reference
4.2.7.4. Nomenclature
PDEGS [W] DEGS Rated Electrical Power
PDEGS,rated [W] DEGS Rated Electrical Power
NDEGS [-] Number of identical DEGS units
X [-] Normalized power
V [m³/s] Fuel volumetric flowrate
4–102
TRNSYS 18 – Mathematical Reference
45 3.5
25 2
20
1.5
15
Fuel Efficiency
Fuel Consumption
1
10
Power/Rated Power
Figure 4.2.7–1: Typical fuel efficiency and fuel consumption curves for DEGS
ELECTRIC MODEL
The normalized power is defined as:
𝑃𝐷𝐸𝐺𝑆
𝑋= Eq. 4.2.7-1
𝑃𝐷𝐸𝐺𝑆,𝑟𝑎𝑡𝑒𝑑
The electrical efficiency is:
𝑃𝐷𝐸𝐺𝑆
𝜂𝑒𝑙 = Eq. 4.2.7-2
̇
𝜌𝑑𝑖𝑒𝑠𝑒𝑙 𝑉𝑑𝑖𝑒𝑠𝑒𝑙 𝐿𝐻𝑉𝑑𝑖𝑒𝑠𝑒𝑙
The total power output is:
𝑃𝑡𝑜𝑡𝑎𝑙 = 𝑁𝐷𝐸𝐺𝑆 𝑃𝐷𝐸𝐺𝑆 Eq. 4.2.7-3
FUEL CONSUMPTION
The fuel consumption is given as a curve fit:
̇
𝑉𝑑𝑖𝑒𝑠𝑒𝑙 = 𝑎 + 𝑏𝑋 Eq. 4.2.7-4
THERMAL MODEL
Total Thermal losses (wasted energy):
100 − 𝜂𝑒𝑙
𝑄𝑤𝑎𝑠𝑡𝑒 = 𝑁𝐷𝐸𝐺𝑆 𝑃𝐷𝐸𝐺𝑆 Eq. 4.2.7-7
𝜂𝑒𝑙
4–103
TRNSYS 18 – Mathematical Reference
EXAMPLE
3
1,Generic Model Reference Curve (40 kW) (DEGS2.EES)
40.0 2.0780 9.2521
2,Volvo Penta D 100 B Gen Set (72 kW) (Neumann, 1987)
72.0 4.2419 16.4926
3,MAN Diesel-Motor D 0224 ME (32 kW) (Pryor, 2001)
32.0 1.2945 7.4180
4.2.7.6. References
1. Lloyd C. R. (1999) Assessment of diesel use in remote area power supply. Internal report prepared
for the Australian Greenhouse Office, Energy Strategies, Canberra.
2. Adler U., Bauer H., Bazlen W., Dinkler F. and Herwerth M. (Eds) (1986) Automotive Handbook.
2nd edn, Robert Bosch GmbH, Stuttgart.
3. McCarthy R. D. (1982) Mathematical models for the prediction of liquefied-natural-gas densities.
Thermophysical Properties Division, National Bureau of Standards, USA.
4–104
TRNSYS 18 – Mathematical Reference
1 Mode [-] In mode 1 available input power is known and specified as input
3. In mode 2 required output power is known and specified as
input 3.
3 Idling constant [-] The ratio between constant power loss (P0) and nominal power
(Pn).
5 Ohmic constant [V2] Product of internal resistance (Ri) and nominal power (Pn)
INPUTS
If Mode (parameter 1) = 1
3 Input power [W] Power available at the input terminals of the power converter.
If Mode (parameter 1) = 2
3 Required power [W] Power required at the output terminals of the power converter.
OUTPUTS
4–105
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
Converter type n/a In mode 1: “known input power” in mode 2 “known output power”
4–106
TRNSYS 18 – Mathematical Reference
4.2.8.4. Nomenclature
Pin [W] Power entering the conditioner
Pout [W] Power leaving the conditioner
Ploss [W] Power losses of the conditioner
P0 [W] Idling power
Pn [W] Nominal (rated) power
Us [V] Setpoint voltage
Uout [V] Output voltage
Ri [] Internal resistance
Ripn [V²] Internal resistance constant = Ri Pn
[-] Electric efficiency
Iout [A] Output current
4–107
TRNSYS 18 – Mathematical Reference
𝑃𝑜𝑢𝑡
𝜂= Eq 4.2.8-3
𝑃𝑖𝑛
Current ouput:
𝑃𝑜𝑢𝑡
𝐼𝑜𝑢𝑡 = Eq 4.2.8-4
𝑈𝑜𝑢𝑡
4.2.8.6. References
1. Laukamp H. (1988) Inverter for photovoltaic systems (in German). User-written TRNSYS source
code., FraunhoferInstitute für Solare Energiesysteme, Freiburg im Breisgau, Germany.
2. Ulleberg Ø. (1998) Stand-Alone Power Systems for the Future: Optimal Design, Operation &
Control of Solar-Hydrogen Energy Systems. PhD thesis, Norwegian University of Science and
Technology, Trondheim.
3. Snyman D. B. and Enslin J. H. R. (1993) An experimental evaluation of MPPT converter topologies
for PV installations. Renewable Energy 3 (8), 841-848.
4–108
TRNSYS 18 – Mathematical Reference
4 Logical Unit for data [-] Logical unit for external battery parameter file
file
3 Gassing current [-] The value of g0 in the algorithm that calculates the gassing
constant g0 current. Refer to the Mathematical Reference manual for the
equation.
4 Gassing current [V] The value of g1 in the algorithm that calculates the gassing
constant g1 current. Refer to the Mathematical Reference manual for the
equation.
5 Gassing current [K] The value of g2 in the algorithm that calculates the gassing
constant g2 current. Refer to the Mathematical Reference manual for the
equation.
6 Equilibrium cell voltage [V] The equilibrium cell voltage when the battery's state of charge is
at SOC=0 zero.
7 Equilibrium cell voltage [-] The rate at which the equilibrium cell voltage changes as the
gradient state of charge increases. Units are V/dec (volts per 10%
increase in SOC.)
8 Parameter for [-}: The value Uch in the overvoltage during charging algorithm.
overvoltage during Refer to the Mathematical Reference manual for the equation.
charging
4–109
TRNSYS 18 – Mathematical Reference
9 Parameter for [-] The value Udch in the overvoltage discharging algorithm. Refer
overvoltage during to the Mathematical Reference manual for the equation.
discharging
10 Discharge overvoltage [-] The value bdchg in the overvoltage discharging algorithm. Refer
constant bdch to the Mathematical Reference manual for the equation.
11 Discharge overvoltage [-] The value cdchg in the overvoltage discharging algorithm. Refer
constant cdch to the Mathematical Reference manual for the equation.
12 Parameter g100 for [-] The value g100 in the overvoltage at full state of charge. Refer
overvoltage at to the Mathematical Reference manual for the equation.
SOC=100
13 Parameter k100 for [-] The value k100 in the overvoltage at full state of charge
overvoltage at algorithm. Refer to the Mathematical Reference manual for the
SOC=100 equation.
INPUTS
1 Charging / discharging [A] Total current in/out of battery. Charging = positive (+) current;
current Discharging = negative (-) current
2 Battery temperature [C] Battery temperature. All cells in a battery are assumed to hold
the same temperature.
3 Initial state of charge [%] The battery’s state of charge (0-100%) at the start of the
simulation.
OUTPUTS
8 Charging current [A] The battery charging current set equal to positive values of the
input charging current. This output is set to zero if the input
charging current is negative.
9 Charging power [W] The battery charging power is set equal to positive values of the
input charging current times the battery terminal voltage. This
output is set to zero if the input charging current is negative.
4–110
TRNSYS 18 – Mathematical Reference
10 Discharging current [A] The battery charging current set equal to negative values of the
input charging current. This output is set to zero if the input
charging current is positive.
11 Discharging power [W] The battery discharging power is set equal to negative values of
the input charging current multiplied by the battery terminal
voltage. This output is set to zero if the input charging current is
positive.
12 Dumped current [A ]
4–111
TRNSYS 18 – Mathematical Reference
270
Discharging Charging
260
Ubat [V]
250
240
230
220
SOC = 0 - 100 %
210
-80 -60 -40 -20 0 20 40 60 80
Ibat [A]
Figure 4.2.9–1: Typical current-voltage curves for a lead-acid battery
CHEMICAL REACTIONS
At discharge (the direction of the chemical reactions described below are for discharge, unless stated
otherwise), the total reaction for the lead-acid battery is:
Pb + PbO2 + 2 H2SO4 2 PbSO4 + 2 H2O Eq. 4.2.9-1
In reality, this discharge reaction (Eq. 4.2.9-1) is the sum of the reactions occurring at the negative and
positive electrodes. The basic charge transfer reactions and the complete reactions taking place at the
electrodes during discharging of a lead battery with sulfuric acid (H2SO4) as electrolyte.
Anode: Pb + HSO4- PbSO4 + 2 e- + H+ Eq. 4.2.9-2
During discharging, lead ions (Pb2+) are dissolved at the negative electrode, and a corresponding number
of electrons (2e-) are removed from the electrode as negative charge. Due to the limited solubility of Pb 2+
ions in sulfuric acid (H2SO4), the dissolved ions form lead sulfates (PbSO4) on the electrode. This occurs
immediately after the dissolution process.
The discharging process at the positive electrode proceeds in a similar manner. That is, Pb 2+ ions are
formed by Pb4+ ions by adding a negative charge (2e-). These lead ions are dissolved immediately to form
lead sulfate (PbSO4). In addition, water (H2O) is formed at the positive electrode during discharging,
because oxygen ions (O2-) are released from the lead dioxide (PbO 2) and they combine with the protons
(H+) of the sulfuric acid.
VOLTAGE MODEL
In a battery that consists of several cells in series the individual cell U cell voltage is simply the terminal
voltage Ubat = ncells Ucell, where ncells is the number of cells in series. The cell voltage Ucell is found by adding
the equilibrium voltage Uequ and the polarization voltage Upol.
𝑈𝑐𝑒𝑙𝑙 = 𝑈𝑒𝑞 + 𝑈𝑝𝑜𝑙 Eq. 4.2.9-4
4–112
TRNSYS 18 – Mathematical Reference
The equilibrium voltage is defined as the resting voltage (across the terminals) after no current has passed
in/out of the battery for a substantial period of time (several hours). This voltage can be assumed to be a
linear function of the state of charge SOC of the battery:
𝑈𝑒𝑞 = 𝑈𝑒𝑞,0 + 𝑈𝑒𝑞,1 𝑆𝑂𝐶 Eq. 4.2.9-5
The polarization, or overvoltage, depends heavily on whether the battery is being charged or discharged.
These effects can be estimated by non-linear expressions using empirically derived battery parameters.
The polarization during charging (ch) can be expressed as:
−𝐼𝑞,𝑛
𝑈𝑝𝑜𝑙,𝑐ℎ = 𝑈𝑐ℎ 𝑎𝑐ℎ (1 − 𝑒𝑥𝑝 ( ) + 𝑐𝑐ℎ 𝐼𝑞,𝑛 ) Eq. 4.2.9-6
𝑏𝑐ℎ
where Uch is a constant, ach, bch, and cch are coefficients that are dependent on SOC, and Iq,n is described
in Eqn.7. (Note that Eq. 4.2.9-2 and Eq. 4.2.9-3 are both functions of the normalized main reaction current
Iq,n and the SOC). Saupe [1] found a set of empirical expressions for a ch, bch, and cch based on battery
experiments performed on a solar battery.
The polarization, or overvoltage, during discharging (dch), which is dependent on the main current Iq,norm
and the state of charge SOC, can be calculated from:
𝑈𝑝𝑜𝑙,𝑑𝑐ℎ = 𝑈𝑑𝑐ℎ 𝑓𝑑𝑐ℎ 𝑔𝑑𝑐ℎ Eq. 4.2.9-7
Where Udch is a constant, while fdch and gdch are dimensionless coefficients dependent on Iq,n and SOC,
respectively:
−𝐼𝑞,𝑛
𝑓𝑑𝑐ℎ = 1 − 𝑒𝑥𝑝 ( ) + 𝑐𝑑𝑐ℎ 𝐼𝑞,𝑛 Eq. 4.2.9-8
𝑏𝑑𝑐ℎ
𝑆𝑂𝐶−100
𝑔𝑑𝑐ℎ = 1 + (𝑔100 − 1)𝑒𝑥𝑝 ( ) Eq. 4.2.9-9
𝑘100
CURRENT MODEL
The main reaction current Iq is simply the difference between the current at the battery terminal Ibat and the
gassing current Igas. The battery current is an Input and the gassing current can be found by the following
expression proposed by Schöner [3]:
𝑈𝑐𝑒𝑙𝑙 𝑔2
𝐼𝑔𝑎𝑠 = 𝐼10 𝑔0 𝑒𝑥𝑝 ( − ) Eq. 4.2.9-10
𝑔1 𝑇𝑏𝑎𝑡
The main reaction current is then normalized with respect to the 10-hour discharge current of the battery
I10, where I10 = Qbat,nom/10h and Qbat,nom is the nominal battery capacity in Ah. Since the charging current is
positive and the discharge current is negative, the absolute value of the normalized current is used in the
calculations:
𝑄𝑏𝑎𝑡,𝑛𝑜𝑚
𝐼10 = Eq. 4.2.9-11
10
𝐼𝑞
𝐼𝑞,𝑛 =| | Eq. 4.2.9-12
𝐼10
𝐼𝑞 = 𝐼𝑏𝑎𝑡 − 𝐼𝑔𝑎𝑠 Eq. 4.2.9-13
𝐵𝑎𝑡𝑙𝑜𝑎𝑑
𝐼𝑏𝑎𝑡 = Eq. 4.2.9-14
𝑈𝑏𝑎𝑡
Power dissipated as a result of gassing:
𝑃𝑔𝑎𝑠 = 𝐼𝑔𝑎𝑠 𝑈𝑏𝑎𝑡 Eq. 4.2.9-15
4–113
TRNSYS 18 – Mathematical Reference
BATTERY CAPACITY
The battery capacity Qbat for a given time step, can simply be found from the main current I q and the battery
capacity from the previous time step (Qbat,ini). Alternatively, Qbat,ini can be derived from the state of charge
for the previous time step SOCini and the nominal battery capacity Q bat,nom (given in Ah). That is,
Previous capacity:
𝑄𝑏𝑎𝑡,𝑖𝑛𝑖 = 𝑄𝑏𝑎𝑡,𝑛𝑜𝑚 𝑆𝑂𝐶𝑖𝑛𝑖 Eq. 4.2.9-17
Current capacity
𝑄𝑏𝑎𝑡 = 𝑄𝑏𝑎𝑡,𝑖𝑛𝑖 + 𝐼𝑞 Δ𝑡 Eq. 4.2.9-18
The parameters that must be provided are described here below (see text for an explanation of the
parameters):
4–114
TRNSYS 18 – Mathematical Reference
4.2.9.5. References
1. Saupe G. (1993) Photovoltaic Power Supply System with Lead-Acid Battery Storage: Analysis of
the Main Problems, System Improvements, Development of a Simulation Model for a Battery (in
German). PhD thesis, University of Stuttgart, Germany.
2. Ulleberg Ø. (1998) Stand-Alone Power Systems for the Future: Optimal Design, Operation &
Control of Solar-Hydrogen Energy Systems. PhD thesis, Norwegian University of Science and
Technology, Trondheim.
3. Schöner H. P. (1988) Evaluation of the Electrical Behavior of Lead-Batteries during Discharging
and Charging (in German). Ph.D. thesis, Technical University of Aachen, Germany.
4–115
TRNSYS 18 – Mathematical Reference
INPUTS
1 WECS power [W] Power from wind energy conversion system (WECS)
3 Fuel cell power [W}: Power from fuel cell (FC) system
5 Other power [W] Power from other sources (e.g., diesel gensets)
8 Auxiliary power [W] Power to auxiliary equipment (e.g. pumps, compressors, etc.).
Note that the auxiliary power is a load on the busbar not a
source of power that feeds into the busbar.
OUTPUTS
1 Grid power [W] Excess power available on the mini-grid (negative value is deficit
power)
4–116
TRNSYS 18 – Mathematical Reference
4.2.10.4. Nomenclature
PWECS [W] Power from the Wind Energy Conversion System (wind turbine)
PPV [W] Power from the Photovoltaic (PV) system
PFC [W] Power from the Fuel cell
PRE [W] Power from additional (unspecified) Renewable Energy sources
Pother [W] Power from other sources (e.g. Diesel Generator Sets, etc.)
Pely [W] Power to the electrolyzer (Hydrogen generation)
Pload [W] Power to the (local) load
Paux [W] Power to (local) auxiliary systems (compressors, pumps, etc.)
Pgrid [W] Power to the electric grid
Ugrid [V] Grid voltage
4–117
TRNSYS 18 – Mathematical Reference
4–118
TRNSYS 18 – Mathematical Reference
1 Inverter mode [-] When set to 1, only the performance of the photovoltaic array
will be considered. When set to 2 the photovoltaic array and an
inverter will be considered.
2 MPPT mode [-] When set to 1, this parameter causes the PV to operate at its
maximum power point rather than at a load voltage specified
among the components inputs. When this parameter is set to 0,
the PV array will operate at the load voltage input.
3 Module short-circuit [A] The module's short circuit current reported on the
current at reference manufacturer's spec sheet. Reference conditions are typically
conditions 1000 W/m2 (incident solar radiation) and 25C (module
temperature)
4 Module open-circuit [V] The module's open circuit voltage reported on the
voltage at reference manufacturer's spec sheet. Reference conditions are typically
conditions 1000 W/m2 (incident solar radiation) and 25C (module
temperature)
5 Reference cell [K] The cell temperature at which the manufacturer reports open
temperature circuit voltage and short circuit current.
4–119
TRNSYS 18 – Mathematical Reference
6 Reference insolation [W/m2] The solar radiation level at which the manufacturer reports open
circuit voltage and short circuit current. This value is typically
1000 W/m2.
7 Module voltage at max [V] The module's maximum power point voltage reported on the
power point and manufacturer's spec sheet. Reference conditions are typically
reference conditions 1000 W/m2 (incident solar radiation) and 25C (module
temperature).
8 Module current at max [A] The module's maximum power point current reported on the
power point and manufacturer's spec sheet. Reference conditions are typically
reference conditions 1000 W/m2 (incident solar radiation) and 25C (module
temperature).
9 Temperature [A/K] This parameter describes the way in which temperature affects
coefficient of Isc (ref. the module's short circuit current at reference conditions. Short
cond) circuit current typically increases with increasing ambient
temperature. The parameter is expressed in units of A/K.
Manufacturers express this value either in units of A/K or in %/K
(percent of the short circuit current.
10 Temperature [V/K] This parameter describes the way in which temperature affects
coefficient of Voc (ref. the module's open circuit voltage at reference conditions. Open
cond.) circuit voltage typically decreases with increasing ambient
temperature. The parameter is expressed in units of V/K.
Manufacturers express this value either in units of V/K or in %/K
(percent of the open circuit voltage).
11 Number of cells wired [-] The number of individual cells wired together in series within a
in series module. For monocrystalline silicon panels, each cell generates
approximately 0.5V so an 18V panel would typically have 36
cells wired in series.
12 Number of modules in [-] The number of modules wired in series within the PV array.
series Series wiring increases the array's total voltage.
13 Number of modules in [-] The number of modules wired in parallel within the PV array.
parallel Parallel wiring increases the array's total current.
14 Module temperature at [K] The module's cell temperature at nominal operating cell
NOCT temperature (NOCT) conditions. Typically obtained from the
manufacturer's specification sheet.
15 Ambient temperature [K] The ambient temperature at NOCT conditions (expressed in K).
at NOCT This value is almost always 293K.
16 Insolation at NOCT [W/m2] The solar radiation at NOCT conditions (expressed in W/m2).
This value is almost always 800W/m2.
18 Tau-alpha product at [-] The product of the module cover's transmittance and the
normal incidence substrate's absorptance for solar radiation normal to the plane of
the module.
19 Semiconductor [eV] For silicon panels, the material bandgap is 1.12 eV. For gallium
bandgap arsenide, it is 1.35 eV. From Wikipedia: In graphs of the
electronic band structure of solids, the band gap generally refers
to the energy difference (in electron volts) between the top of the
4–120
TRNSYS 18 – Mathematical Reference
20 Value of parameter "a" [-] This Type is based on an equivalent circuit model that requires
at reference conditions five parameters. This parameter is typically generated using the
PV_refParams.exe app located in
the ..\%Trnsys18%\Tools\ directory. Refer to the Mathematical
Reference manual for a more complete definition of this
parameter.
21 Value of parameter [A] This Type is based on an equivalent circuit model that requires
"I_L" at reference five parameters. This parameter is typically generated using the
conditions PV_refParams.exe app located in
the ..\%Trnsys18%\Tools\ directory. Refer to the Mathematical
Reference manual for a more complete definition of this
parameter.
22 Value of parameter [A] This Type is based on an equivalent circuit model that requires
"I_0" at reference five parameters. This parameter is typically generated using the
conditions PV_refParams.exe app located in
the ..\%Trnsys18%\Tools\ directory. Refer to the Mathematical
Reference manual for a more complete definition of this
parameter.
23 Module series [] This Type is based on an equivalent circuit model that requires
resistance at reference five parameters. This parameter is typically generated using the
conditions PV_refParams.exe app located in
the ..\%Trnsys18%\Tools\ directory. Refer to the Mathematical
Reference manual for a more complete definition of this
parameter.
24 Shunt resistance at [] This Type is based on an equivalent circuit model that requires
reference conditions five parameters. This parameter is typically generated using the
PV_refParams.exe app located in
the ..\%Trnsys18%\Tools\ directory. Refer to the Mathematical
Reference manual for a more complete definition of this
parameter.
25 Extinction coefficient- [-] The extinction coefficient is a measure of how much solar
thickness product of spectrum radiation is absorbed as it passes through a
cover transparent material. It has the units of 1/m. Typical values are
between 4 and 32 [1/m]. This value is then multiplied by the
thickness of the material in order to obtain the extinction
coefficient-thickness product of the cover. The resulting value is
dimensionless.
26 Maximum inverter [W] The input power beyond which the inverter will be capacity
power limited.
27 Maximum inverter [V] The maximum input voltage to the inverter. If the array voltage
voltage goes over this point, it will be internally limited and the inverter
efficiency will be determined for the maximum allowable input
voltage.
4–121
TRNSYS 18 – Mathematical Reference
28 Minimum inverter [V] The minimum input voltage to the inverter. If the array max
voltage power voltage is below this minimum, the inverter will operate at
reduced efficiency as long as the array's open circuit voltage is
above the minimum. If the open circuit voltage and the maximum
power point voltage are both below this minimum, the inverter
will not produce any power.
29 Night tare [W] The inverter consumes power at this rate during the night (when
there is no solar incident on the array).
30 Logical unit number of [-] The inverter data file is two dimensional. It provides values of
inverter performance inverter efficiency (0..1) for combinations of input power and
data file input voltage.
INPUTS
1 Total radiation [kJ/hr.m2] The amount of radiation (beam + sky diffuse + ground reflected
diffuse radiation incident on the surface of the array
3 Load voltage [V] The voltage of the electrical load imposed on the PV array. This
voltage will determine the PV array’s operating point on its I-V
curve.
5 Beam radiation [kJ/hr.m2] The amount of beam solar radiation incident on the array.
6 Sky diffuse radiation [kJ/hr.m2] The amount of sky diffuse solar incident on the array.
7 Ground reflected [kJ/hr.m2] The amount of ground reflected diffuse radiation incident on the
diffuse radiation surface of the array.
8 Incidence angle of [degrees] The angle between the normal to the array plane and the line
beam radiation between the sun and the surface of the array.
9 Solar zenith angle [degrees] The angle between the line formed by beam solar radiation and
the vertical.
10 Wind speed [m/s] The speed of the wind in the vicinity of the PV array.
4 Beam radiation [kJ/hr.m2] The amount of beam solar radiation incident on the array.
5 Sky diffuse radiation [kJ/hr.m2] The amount of sky diffuse solar incident on the array.
6 Ground reflected [kJ/hr.m2] The amount of ground reflected diffuse radiation incident on the
diffuse radiation surface of the array.
4–122
TRNSYS 18 – Mathematical Reference
7 Incidence angle of [degrees] The angle between the normal to the array plane and the line
beam radiation between the sun and the surface of the array.
8 Solar zenith angle [degrees] The angle between the line formed by beam solar radiation and
the vertical.
9 Wind speed [m/s] The speed of the wind in the vicinity of the PV array.
OUTPUTS
4 Array power [kJ/h] The power generated by the array. Expressed in kJ/h
5 Open circuit voltage [V] The open circuit voltage of the array (i.e. not of the module) at
present operating conditions (i.e. at the present solar radiation
and ambient temperature instead of at NOCT or reference
conditions)
6 Short circuit current [A] The short circuit current of the array (i.e. not of the module) at
present operating conditions (i.e. at the present solar radiation
and ambient temperature instead of at NOCT or reference
conditions)
7 Array fill factor [-] The fill factor is a measure of how the maximum power point
relates to the "theoretical" maximum power point. The result is
the delivered power divided by the product of the open circuit
voltage and short circuit current. Expressed mathematically, the
fill factor is: ff=(Vmp*Imp)/(Voc*Isc). Note that if the PV is not
operating in its maximum power point tracking mode then the fill
factor output is still defined as the maximum power divided by
the theoretical maximum power and the fraction of maximum
power output should be taken into account.
8 Array temperature [C] The cell temperature at which the array is currently operating.
9 Array efficiency [-] The array efficiency is defined as the power produced by the
array divided by the amount of solar radiation incident on the
array.
1 Operating voltage [V] The voltage produced by the array at the operating point
(defined either by the user-supplied load voltage or by the MPPT
depending on the value of the MPPT mode parameter) (includes
inverter effects)
2 Operating current [A] The current produced by the array at the operating point
(defined either by the user-supplied load voltage or by the MPPT
depending on the value of the MPPT mode parameter) (includes
inverter effects)
4–123
TRNSYS 18 – Mathematical Reference
3 Operating power [W] The power produced by the array at the operating point (defined
either by the user-supplied load voltage or by the MPPT
depending on the value of the MPPT mode parameter) (includes
inverter effects)
4 Operating power [kJ/h] The power produced by the array at the operating point (defined
either by the user-supplied load voltage or by the MPPT
depending on the value of the MPPT mode parameter) (includes
inverter effects)
5 Open circuit voltage [V] The open circuit voltage of the array (i.e. not of the module) at
present operating conditions (i.e. at the present solar radiation
and ambient temperature instead of at NOCT or reference
conditions)
6 Short circuit current [A] The short circuit current of the array (i.e. not of the module) at
present operating conditions (i.e. at the present solar radiation
and ambient temperature instead of at NOCT or reference
conditions)
7 Array fill factor [-] The fill factor is a measure of how the maximum power point
relates to the "theoretical" maximum power point. The result is
the delivered power divided by the product of the open circuit
voltage and short circuit current. Expressed mathematically, the
fill factor is: ff=(Vmp*Imp)/(Voc*Isc). Note that if the PV is not
operating in its maximum power point tracking mode then the fill
factor output is still defined as the maximum power divided by
the theoretical maximum power and the fraction of maximum
power output should be taken into account.
8 Array temperature [C] The cell temperature at which the array is currently operating.
9 Array efficiency [-] The array efficiency is defined as the power produced by the
array divided by the amount of solar radiation incident on the
array.
10 Array voltage [V] The voltage produced by the array at the operating point
(defined either by the user-supplied load voltage or by the MPPT
depending on the value of the MPPT mode parameter) (does
NOT include inverter effects)
11 Array current [A] The current produced by the array at the operating point
(defined either by the user-supplied load voltage or by the MPPT
depending on the value of the MPPT mode parameter) (does
NOT include inverter effects)
12 Array power [W] The power produced by the array at the operating point (defined
either by the user-supplied load voltage or by the MPPT
depending on the value of the MPPT mode parameter) (does
NOT include inverter effects)
13 Array power [kJ/h] The power produced by the array at the operating point (defined
either by the user-supplied load voltage or by the MPPT
depending on the value of the MPPT mode parameter) (does
NOT include inverter effects)
14 Inverter efficiency [-] The inverter output power divided by its input power.
4–124
TRNSYS 18 – Mathematical Reference
Reference condition [kW] An approximation of the power that the array will deliver when operating
peak power (appx) with a maximum power point tracker at reference conditions.
Reference condition [V] An approximation of the voltage at which the array will operate when
peak voltage (appx) connected to a maximum power point tracker at reference conditions.
TEXT FIELDS
Control mode [n/a] “maximum power point tracking” or “direct connection to load”
depending on the value of parameter 2.
4–125
TRNSYS 18 – Mathematical Reference
An app is available for generating the parameter values for this model. Please
launch ..\%TRNSYS18%\Tools\ PV_REF_PARAMS.exe to run the app. If the app is found to have
expired a new version may be downloaded from: http://www.fchart.com/ees/distributables.php
4.2.11.4. Nomenclature
[degrees] Slope of PV array
g [eV] Semiconductor bandgap
c [0..1] Module conversion efficiency
Isc [A/K] Temperature coefficient of short-circuit current
Voc [V/K] Temperature coefficient of open-circuit voltage
[degrees] Angle of incidence for solar radiation
[-] Module transmittance-absorptance product
n [-] Module transmittance-absorptance product at normal incidence
a Parameter in the model defined in equation Eq. 4.2.11-2
GT [kJ/h.m2] Total radiation incident on PV array
GT,beam [kJ/h.m2] Beam component of incident radiation
GT,diff [kJ/h.m2] Diffuse component of incident radiation
GT,gnd [kJ/h.m2] Ground-reflected component of incident radiation
GT,NOCT [kJ/h.m2] Incident radiation at NOCT conditions
GT,ref [kJ/h.m2] Incident radiation at reference conditions
I [A] Current
IL [A] Module photocurrent
IL,ref [A] Module photocurrent at reference conditions
Io [A] Diode reverse saturation current
Io,ref [A] Diode reverse saturation current at reference conditions
Isc [A] Short-circuit current
Isc,ref [A] Short-circuit current at reference conditions
Imp [A] Current at maximum power point along IV curve
Imp,ref [A] Current at maximum power point along IV curve, reference conditions
IAM [0..1] Dimensionless incidence angle modifier
k [J/K] Boltzmann constant
KL [-] Product of extinction coefficient and thickness for cover
nI Diode ideality factor
NP [-] Number of modules in parallel in array
NS [-] Number of modules in series in array
Ns [-] Number of individual cells in series within a module
P [kJ/h] PV output power
Pmax [kJ/h] PV output power at maximum power point along IV curve
q Electron charge constant
Rs [] Module series resistance
Rsh [] Module shunt resistance
Tc [K] Module temperature
Tc,NOCT [K] Module temperature at NOCT conditions
Tc,ref [K] Module temperature at reference conditions
UL [kJ/h.m2.K] Array thermal loss coefficient
V [V] Voltage
Vmp [V] Voltage at maximum power point along IV curve
4–126
TRNSYS 18 – Mathematical Reference
Vmp,ref [V] Voltage at maximum power point along IV curve, reference conditions
Voc [V] Open-circuit voltage
Voc,ref [V] Open-circuit voltage at reference conditions
4–127
TRNSYS 18 – Mathematical Reference
−𝐼𝑜 𝑉𝑚𝑝+𝐼𝑎𝑚𝑝𝑅𝑠 1
𝑑𝐼 𝑒 −
𝑎 𝑅𝑠ℎ
| = Eq. 4.2.11-7
𝑑𝑉 𝑚𝑝 𝐼 𝑅 𝑉𝑚𝑝+𝐼𝑎𝑚𝑝𝑅𝑠 𝑅𝑠
1+ 𝑜 𝑠𝑒 +
𝑎 𝑅𝑠ℎ
The temperature coefficient of open circuit voltage is given by:
𝜕𝑉 𝑉𝑜𝑐,𝑟𝑒𝑓 − 𝑉𝑜𝑐,𝑇𝑐
𝑉𝑜𝑐 = | ≈ Eq. 4.2.11-8
𝜕𝑇 𝐼=0 𝑇𝑟𝑒𝑓 − 𝑇𝑐
To evaluate Voc numerically, it is necessary to know Voc ,Tc , the open circuit voltage at some cell
temperature near the reference temperature. The cell temperature used for this purpose is not critical since
values of Tc ranging from 1 to 10 K above or below Tref provide essentially the same result. Voc ,Tc can be
found from Eq. 4.2.11-4 if the temperature dependencies for parameters Io, IL, and a, are known. The shunt
resistance, Rsh was assumed to be independent of temperature. Therefore, in order to apply Eq. 4.2.11-7,
it is necessary to obtain expressions for the temperature dependence of the three parameters a, Io and, IL.
The dependence of all of the parameters in the model on the operating conditions is considered next.
4–128
TRNSYS 18 – Mathematical Reference
where k is Boltzmann's constant and Eg is the material band gap. Eg exhibits a small temperature
dependence (Van Zeghbroeck, 2004) which, for silicon, can be represented as indicated in Eq. 4.2.11-11
where Eg ,Tref =1.121 eV for silicon cells.
𝐸𝑔
= 1 − 0.0002677(𝑇 − 𝑇𝑟𝑒𝑓 ) Eq. 4.2.11-11
𝐸𝑔,𝑇𝑟𝑒𝑓
The light current, (IL), is assumed to be a linear function of incident solar radiation. The light current (IL) is
observed to depend on the absorbed solar irradiance (S), the cell temperature (Tc), the short circuit current
temperature coefficient (Isc), and the air mass modifier (M). The light current IL for any operating conditions
is related to the light current at reference conditions by:
𝑆 𝑀
𝐼𝐿 = (𝐼 + 𝛼𝐼𝑠𝑐 (𝑇𝑐 − 𝑇𝑐,𝑟𝑒𝑓 )) Eq. 4.2.11-12
𝑆𝑟𝑒𝑓 𝑀𝑟𝑒𝑓 𝐿,𝑟𝑒𝑓
where Sref, Mref, IL,ref, Tc,ref are the parameters at reference conditions, while S, M, IL, and Tc are the values
for specified operating conditions. When using Eq. 4.2.11-12 to find the reference parameters, S = Sref and
M = Mref. The air mass modifier is assumed to be a function of the local zenith angle and is discussed
below. Rs is assumed constant at its reference value, Rs,ref.
The shunt resistance (Rsh) controls the slope of the I-V curve at the short circuit condition; large shunt
resistances result in a horizontal slope. Desoto et al [1] empirically propose Eq. 4.2.11-13 to describe the
observed effect of solar radiation on the shunt resistance.
𝑅𝑠ℎ 𝑆𝑟𝑒𝑓
= Eq. 4.2.11-13
𝑅𝑠ℎ,𝑟𝑒𝑓 𝑆
where θ is the incidence angle and n is an effective index of refraction of the cell cover. A good
approximation of the transmittance of the cover system considering both reflective losses at the interface
and absorption within the glazing is:
−
𝐾𝐿 1 sin2 (𝜃𝑟 − 𝜃) tan2 (𝜃𝑟 − 𝜃)
𝜏(𝜃) = 𝑒 cos 𝜃𝑟 [1 − ( 2 + )] Eq. 4.2.11-15
2 sin (𝜃𝑟 + 𝜃) tan2 (𝜃𝑟 + 𝜃)
where K is the glazing extinction coefficient and L is the glazing thickness. The product of K and L is a
parameter for the model. To obtain the incidence angle modifier (Kτα), Eq. 4.2.11-15 needs be evaluated
for incidence angles of 0° and θ. The ratio of these two transmittances yields the incidence angle modifier:
𝜏(𝜃)
𝐾𝜏𝛼 (𝜃) = Eq. 4.2.11-16
𝜏(0)
Separate incidence angle modifiers are needed for beam, diffuse, and ground-reflected radiation.
4–129
TRNSYS 18 – Mathematical Reference
where
1
𝐴𝑀 = Eq. 4.2.11-18
cos 𝜃𝑧 + 0.5057(96.080 − 𝜃𝑧 )−1.634
a0=0.918093 a1=0.086257 a2=-0.024459 a3=0.002816 a4=-0.000126 Eq. 4.2.11-19
MULTI-ARRAY MODULES
The electrical calculations discussed for five-parameter PV model deal only with a single module. Type 190
may be used to simulate arrays with any number of modules. TRNSYS parameters define the number of
modules in series (NS) and modules in parallel (NP) for the entire array. The total number of modules in
the array is the product of NS and NP. When simulating a single module only, both NS and NP are set to
1. Note that the voltage supplied to Type 190 by means of an input (when not operating in MPPT mode) is
the voltage for the entire array and not just for a single module. Module mismatch losses are not considered
in this model.
4–130
TRNSYS 18 – Mathematical Reference
The effect of the inverter on the performance of the system can be characterized by an additional efficiency
that reduces the power provided by the PV array. A data file is used for providing the efficienty of the
inverter as function of array power and voltage. The data file follows the specifications of the subroutine
InterpolateData. The following is an example of a data file with efficiency values for 7 values of array power
(in Watts) and 3 values of voltage.
The inverter has to be operated between a minimum and maximum input voltage. Type190 checks for a
number of special cases.
Case 1: The ideal case in the one in which the inverter input voltage (normally the array’s voltage at the
maximum power point given the current environmental conditions) is greater than the inverter minimum
voltage and less than the inverter maximum voltage (case 1 in Figure 4.2.11–2 below). In this case, the
operating point is the maximum power point.
Case 2: If the input voltage is below the inverter minimum voltage but the array open circuit voltage is still
above the inverter minimum voltage then the system will run at the inverter minimum voltage, the power
out of the inverter will be limited to that same voltage and inverter efficiency will be determined accordingly.
The operating point is again indicated by a red point.
Case 3: If both the input voltage and the array open circuit voltage are below the inverter minimum voltage
then the system cannot operate and will generate zero power. This is usually an indication that the array
and inverter sizes do not match each other well.
Case 4: If the present input voltage is above the inverter maximum voltage, the system will operate at the
inverter maximum voltage.
4–131
TRNSYS 18 – Mathematical Reference
Case 1 Case 2
Case 3 Case 4
4.2.11.6. References
1. DeSoto, W., Klein, S.A. and Beckman, W.A., “Improvement and Validation of a Model for PV Array
Performance,” accepted for publication in Solar Energy Journal, (in press 2005)
2. Duffie, John A. and William A. Beckman. Solar Engineering of Thermal Processes. New York: John
Wiley & Sons, Inc., 1991.
3. King, D.L., Kratochvil, J.A., Boyson, W.E., Bower, W.I., 1998. Field Experience with a New
Performance Characterization Procedure for Photovoltaic Arrays presented at the 2nd World
Conference and Exhibition on Photovoltaic Solar energy Conversion, Vienna, Austria, July 6-10.
4–132
TRNSYS 18 – Mathematical Reference
4.3. HVAC
4–133
TRNSYS 18 – Mathematical Reference
1 Logical unit [-] The logical unit number of the file containing performance data.
Every external file that TRNSYS reads to or writes from must be
assigned a unique integer (logical unit number) in the TRNSYS
input file. Simulation Studio assigns this number automatically
4 Number of values of [-] The number of values of the first independent variable for which
the 1st independent peformance data is supplied in the external performance file.
variable NOTE: These values should be entered in the 3rd line of the
data file.
The next parameter is only needed if the data file contains values for more than one independent variable. In other
words if the performance of the equipment depends on two or more variables.
5 Number of values of [-] The number of values of the second independent variable for
the 2nd independent which peformance data is supplied in the external performance
variable file. NOTE: These values should be entered in the 2nd line of
the data file.
The next parameter is only needed if the data file contains values for more than two independent variables. In
other words if the performance of the equipment depends on three variables.
6 Number of values of [-] The number of values of the third independent variable for which
the 3rd independent peformance data is supplied in the external performance file.
variable NOTE: These values should be entered in the 1st line of the
data file.
INPUTS
1 Control function [0/1] The control function for the equipment operation. The outputs
from this component are simply the interpolated values from the
data file multiplied by this control function.
4–134
TRNSYS 18 – Mathematical Reference
2 First independent [any] The value of the first independent variable on which the
variable value equipment performance depends. This is the independent
variable whose values are located in the 3rd line of the external
data file.
3 Second independent [any] The value of the second independent variable on which the
variable value equipment performance depends. This is the independent
variable whose values are located in the 2nd line of the external
data file.
4 Third independent [any] The value of the third independent variable on which the
variable value equipment performance depends. This is the independent
variable whose values are located in the 1st line of the external
data file.
OUTPUTS
1 Independent variable [any] The value of the specified dependent equipment performance
value variable.
One integrated value will be reported for each dependent variable in the data file.
Dependent variable [-] The integrated value of each dependent variable over the course of the
value simulation
One min/max value will be reported for each dependent variable in the data file.
Dependent variable [0..1] The minimum and maximum value of each dependent variable over the
value course of the simulation
One min/max value will be reported for each independent variable in the data file.
Independent variable [V] The minimum and maximum value of each independent variable over
value the course of the simulation
4–135
TRNSYS 18 – Mathematical Reference
4–136
TRNSYS 18 – Mathematical Reference
The steady-state capacity and COP of an absorption heat pump may be characterized in terms of the
energy input rate to the generator, the evaporator fluid inlet temperature, and the condenser fluid inlet
temperature. In this case, there are three independent and two dependent variables. Consider the generator
energy as the primary independent variable and the evaporator and condenser inlet temperatures as the
secondary and tertiary independent variables, respectively. It is necessary to provide N X3 X NX2 sets of
capacity and COP data versus generator input energy. The first NX3 numbers in the data file are increasing
values of condenser inlet temperature. These are followed by N X2 values of increasing evaporator
temperature and NX1 values of increasing generator input energy. Values of capacity and COP for each
value of generator input at the lowest evaporator and condenser temperatures are next.
A set of these performance numbers is required for each evaporator temperature, still at the lowest
condenser temperature. This sequence of data entry is repeated for each value of condenser temperature.
The first input is the control signal and the current energy input to the generator, evaporator inlet
temperature, and condenser inlet temperature are the second, third, and fourth inputs to this component.
The first two outputs are the products of the control function and the capacity and COP. The data file format
in this case might look like the following (again, the values are NOT realistic)
500 1000 ! [kg/h] values of air flow rate
25 50 75 ! [%] values of ambient relative humidity
10 15 20 30 ! [C] values of ambient temperature
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 25% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 25% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 25% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 25% RH and 30C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 50% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 50% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 50% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 50% RH and 30C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 75% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 75% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 75% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 75% RH and 30C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 25% RH and 10C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 25% RH and 15C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 25% RH and 20C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 25% RH and 30C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 50% RH and 10C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 50% RH and 15C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 50% RH and 20C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 50% RH and 30C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 75% RH and 10C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 75% RH and 15C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 75% RH and 20C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 75% RH and 30C
4–137
TRNSYS 18 – Mathematical Reference
1 Logical Unit [-] The logical unit through which the part load performance data will
be read. Every external file that TRNSYS reads to or writes from
must be assigned a unique logical unit number in the TRNSYS
input file. (Simulation Studio will automatically assign this number.)
2 Number of Data Points [-] The number of part load performance data points contained in the
external data file.
1 Slope of PLR Function [-] The slope (rise over run) of the linear part load factor versus 1/duty
cycle relationship. The Y-intercept of the line is assumed to be 1.0
INPUTS
1 Energy to Meet the [kJ/h] The rate that energy must be supplied to meet the load.
Load
2 Full Load Capacity [kJ/h] The full load capacity of the heating or cooling equipment at the
current operating conditions.
3 Full Load Efficiency [-] The full load efficiency or COP of the heating or cooling equipment
at the current operating conditions.
OUTPUTS
1 Energy Removal Rate [kJ/h] The rate at which energy is removed or delivered by the heating or
cooling equipment.
2 Purchased Energy rate [kJ/h] The rate at which energy is purchased to operate the heating or
cooling equipment.
3 Part Load Factor [-] The part load factor for the heating or cooling equipment. The part
load factor is defined as the ratio of the part load to full load
efficiencies.
4–138
TRNSYS 18 – Mathematical Reference
4 Operating Efficiency [-] The average operating efficiency (or COP) of the heating or cooling
equipment.
Load curve format n/a Either “linear with load” or “from external file”
4.3.2.4. Nomenclature
Duty Cycle ratio of part-load to full-load capacities
PLF part-load factor; ratio of part-load to full-load efficiencies
Q eq actual capacity; minimum of Q load and Q max
Q load energy rate required to meet the load (part-load capacity)
Q max full-load capacity
Q pur purchased energy required to operate equipment
ηmax full-load efficiency
ηop part-load efficiency
The part-load factor, PLF, is conveniently represented as a unique function of the reciprocal of the duty
cycle as illustrated in the Figure. The duty cycle is defined as the ratio of the load (or part-load capacity) to
the full-load capacity.
𝑄𝑙𝑜𝑎𝑑
𝐷𝑢𝑡𝑦 𝐶𝑦𝑐𝑙𝑒 = Eq. 4.3.2-2
𝑄𝑚𝑎𝑥
4–139
TRNSYS 18 – Mathematical Reference
PLF
0
1 1
Duty Cyc le
4–140
TRNSYS 18 – Mathematical Reference
1 Calculation Mode [-] The detailed cooling coil component may operate in one of two
modes. In mode 1, the coil is assumed to be either completely wet
or completely dry. This mode tends to underpredict the total heat
transfer. In mode 2, the percentage of dry coil is determined using a
detailed approach.
2 Number of Rows [-] The number of heat exchanger rows (passes). Four or more rows
are recommended.
3 Number of Tubes [-] The number of parallel tubes in each row of tubes.
4 Duct Height [m] The height of the duct parallel to the tubes (used as the tube
length).
5 Duct Width [m] The width of the cooling coil duct (perpendicular to tubes).
6 Outside Tube [m] The outside diameter of the tubes containing the water stream.
Diameter
7 Inside Tube Diameter [m] The inside diameter of one of the identical tubes carrying the chilled
water.
11 Number of Fins [-] The number of fins on one tube and one pass.
13 Fin Mode [-] This parameter indicates if rectangular (=1) or annular (=2) fins are
to be used.
4–141
TRNSYS 18 – Mathematical Reference
14 Center to Center [m] The center to center distance between rows of tubes (perpendicular
Distance to air flow).
15 Tube Spacing [m] The distance between center lines of tube rows (parallel to air flow).
14 Diameter at Fin Tip [m] The diameter of the fin at the tip.
15 Tube Spacing [m] The distance between center lines of tube rows (parallel to air flow).
INPUTS
1 Inlet Dry-Blub [C] The dry bulb temperature of the air entering the cooling coil.
Temperature
2 Air Inlet Humidity Ratio [-] The humidity ratio of the air entering the cooling coil.
3 Flow Rate of Air [kg/h] The flow rate of air entering the cooling coil.
4 Inlet Water [C] The temperature of the chilled water entering the cooling coil.
Temperature
5 Flow Rate of Water [kg/h] The flow rate of chilled water entering the cooling coil.
OUTPUTS
1 Outlet Air Temperature [C] The dry bulb temperature of the air exiting the cooling coil.
2 Outlet Air Humidity [-] The absolute humidity ratio (kg's of H2O / kg of dry air) of the air
Ratio exiting the cooling coil.
3 Air Flow Rate [kg/h] The flow rate of air exiting the cooling coil.
4 Outlet Water [C] The temperature of the chilled water exiting the cooling coil.
Temperature
5 Water Flow Rate [kg/h] The flow rate of chilled water exiting the cooling coil.
6 Total Cooling Rate [kJ/h] The rate at which energy is transferred from the air stream in the
cooling coil.
7 Sensible Cooling Rate [kJ/h] The rate at which sensible energy is removed from the air stream in
the cooling coil.
8 Latent Cooling Rate [kJ/h] The rate at which latent energy is removed from the moist air flow
stream in the cooling coil.
9 Dry Coil Fraction [-] The fraction of the coil surface area that is dry. (0.0 = Completely
wet, 1.0 = Completely dry, -1.0 = If simple analysis calculation
mode is used (either wet or dry)).
4–142
TRNSYS 18 – Mathematical Reference
Fin Ratio [-] Ratio of fin area to outside coil surface area
Flow Cross Sectional
[m2] The area of air flow
Area
Tube Heat Transfer
[kJ/h m2 K] The heat transfer area of the tubes based on the inside area
Area
TEXT FIELDS
4.3.3.4. Nomenclature
Cpm constant pressure specific heat of moist air
Cpw constant pressure specific heat of liquid water
Cs average slope of saturation air enthalpy versus temperature
C* ratio of air to water capacitance rate for dry analysis ( m aCpm/ m wCpw)
ha enthalpy of moist air per mass of dry air
hs enthalpy of saturated air per mass of dry air
ma mass flow rate of dry air
mw mass flow rate of water
m* ratio of air to water effective capacitance rate for wet analysis ( m aCs/ m
wCpw)
Ntu overall number of transfer units
Q overall heat transfer rate
Ta air temperature
Tdp air dewpoint temperature
Ts surface temperature
Tw water temperature
UA overall heat conductance
a air humidity ratio
4–143
TRNSYS 18 – Mathematical Reference
N =6
r ows
Nt ube s = 4
Air Flow
N =7
f ins
a
Air
Flow
L
c w
Wat er
Flow
Figure 4.3.3.4–1: Schematic And Cross-Sectional Views Of A Cooling Coil.
Dry Coil Effectiveness
If the coil surface temperature at the air outlet is greater than the dewpoint of the incoming air, then the coil
is completely dry throughout and standard heat exchanger effectiveness relationships apply.
4–144
TRNSYS 18 – Mathematical Reference
In terms of the air-side heat transfer effectiveness, the dry coil heat transfer is
𝑄𝑑𝑟𝑦 = 𝜀𝑑𝑟𝑦 𝑚𝑎 𝐶𝑝𝑚 (𝑇𝑎,𝑖 − 𝑇𝑤,𝑖 ) Eq. 4.3.3-1
where
1 − 𝑒𝑥𝑝 (−𝑁𝑇𝑈𝑑𝑟𝑦 (1 − 𝐶 ∗ ))
𝜀𝑑𝑟𝑦 = Eq. 4.3.3-2
1 − 𝐶 ∗ 𝑒𝑥𝑝 (−𝑁𝑇𝑈𝑑𝑟𝑦 (1 − 𝐶 ∗ ))
𝑚𝑎 𝐶𝑝𝑚
𝐶∗ = Eq. 4.3.3-3
𝑚𝑤 𝐶𝑝𝑤
𝑈𝐴𝑑𝑟𝑦
𝑁𝑇𝑈𝑑𝑟𝑦 = Eq. 4.3.3-4
𝑚𝑎 𝐶𝑝𝑚
The overall heat transfer conductance for dry heat exchangers is computed in terms of the heat transfer
coefficients and fin efficiency as outlined in Threlkeld (2). For air flow over finned coil surfaces, correlations
developed by Elmahdy (4) are utilized for determining the air-side heat transfer coefficient. The water-side
heat transfer coefficient is determined using standard turbulent flow relations.
The exit air humidity ratio is equal to the inlet value, while the exit air and water temperatures are determined
from energy balances on the flow streams as
𝑇𝑎,𝑜 = 𝑇𝑎,𝑖 − 𝜀𝑑𝑟𝑦 (𝑇𝑎,𝑖 − 𝑇𝑤,𝑖 ) Eq. 4.3.3-5
The coil surface temperature at the air outlet is determined by equating the rate equation for heat transfer
between the water and air streams with that between the water and the outside surface.
𝑈𝐴𝑑𝑟𝑦
𝑇𝑠,𝑜 = 𝑇𝑤,𝑖 + 𝐶 ∗ ( ) (𝑇𝑎,𝑜 − 𝑇𝑤,𝑖 ) Eq. 4.3.3-7
𝑈𝐴𝐼
If the surface temperature evaluated with the above equation is less than the inlet air dewpoint, then at
least a portion of the coil is wet and the analysis in the following section must be applied.
Wet Coil Effectiveness
If the coil surface temperature at the air inlet is less than the dewpoint of the incoming air, then the coil is
completely wet and dehumidification occurs throughout the coil.
For a completely wet coil, the heat transfer is
𝑄𝑤𝑒𝑡 = 𝜀𝑤𝑒𝑡 𝑚𝑎 (ℎ𝑎,𝑖 − ℎ𝑠,𝑤,𝑖 ) Eq. 4.3.3-8
where
1 − 𝑒𝑥𝑝(−𝑁𝑇𝑈𝑤𝑒𝑡 (1 − 𝑚∗ ))
𝜀𝑤𝑒𝑡 = Eq. 4.3.3-9
1 − 𝑚∗ 𝑒𝑥𝑝(−𝑁𝑇𝑈𝑤𝑒𝑡 (1 − 𝑚∗ ))
𝑚𝑎 𝐶𝑠
𝑚∗ = Eq. 4.3.3-10
𝑚𝑤,𝑖 𝐶𝑝𝑤
𝑈𝐴𝑤𝑒𝑡
𝑁𝑇𝑈𝑤𝑒𝑡 = Eq. 4.3.3-11
𝑚𝑎
UA's are normally given in terms of a temperature difference, but in this case UAwet is the heat conductance
in terms of an enthalpy difference. Threlkeld (2) gives the relation for the overall wet surface enthalpy
conductance for finned surfaces that is utilized in this model.
The saturation specific heat, Cs, is defined as the average slope of the saturation enthalpy curve with
respect to temperature. It is determined with the water inlet and outlet conditions and psychometric data
as:
4–145
TRNSYS 18 – Mathematical Reference
ℎ𝑠,𝑤,𝑜 − ℎ𝑠,𝑤,𝑖
𝐶𝑠 = Eq. 4.3.3-12
𝑇𝑤,𝑜 − 𝑇𝑤,𝑖
Analogous to the dry analysis, the exit air enthalpy and water temperature are
ℎ𝑎,𝑜 = ℎ𝑎,𝑖 + 𝜀𝑤𝑒𝑡 (ℎ𝑎,𝑖 − ℎ𝑠,𝑤,𝑖 ) Eq. 4.3.3-13
𝑚𝑎
𝑇𝑤,𝑜 = 𝑇𝑤,𝑖 − (ℎ − ℎ𝑎,𝑜 ) Eq. 4.3.3-14
𝑚𝑤 𝐶𝑝𝑤 𝑎,𝑖
The average saturation specific heat, Cs, depends on the outlet water temperature and therefore an iterative
method is required to find the outlet water temperature.
The exit air temperature is determined as described in the ASHRAE Equipment Guide (5).
−𝑈𝐴𝑜
𝑇𝑎,𝑜 = 𝑇𝑠,𝑒 + (𝑇𝑎,𝑖 − 𝑇𝑠,𝑒 )𝑒𝑥𝑝 ( ) Eq. 4.3.3-15
𝑚𝑎 𝐶𝑝𝑚
where, the effective surface temperature is determined from its corresponding saturation enthalpy:
ℎ𝑎,𝑜 − ℎ𝑎,𝑖
ℎ𝑠,𝑠,𝑒 = ℎ𝑎,𝑖 +
−𝑈𝐴𝑜 Eq. 4.3.3-16
1 − 𝑒𝑥𝑝 ( )
𝑚𝑎 𝐶𝑝𝑚
From the rate equations, the surface temperature at the air inlet is computed as
𝑚𝑎 𝑈𝐴𝑤𝑒𝑡
𝑇𝑠,𝑖 = 𝑇𝑤,𝑜 + ( ) (ℎ𝑎,𝑖 − ℎ𝑠,𝑤,𝑜 ) Eq. 4.3.3-17
𝑚𝑤 𝐶𝑝𝑤 𝑈𝐴𝑖
If the surface temperature evaluated with the above equation is greater than the inlet air dewpoint, then a
portion of the coil beginning at the air inlet is dry, while the remainder is wet.
Combined Wet and Dry Analysis
Depending upon the entering conditions and flow rates, only part of the coil may be wet. A detailed analysis
involves determining the point in the coil at which the surface temperature equals the dewpoint of the
entering air. A simpler approach is to assume that the coil is either completely wet or dry. The user specifies
whether the simple or detailed analysis is to be used. The simpler approach requires less computational
effort and should be used if its accuracy is acceptable.
Simple Analysis
The simple approach assumes that the coil is either completely wet of dry. Either assumed condition will
tend to underpredict the actual heat transfer. With the completely dry assumption, the latent heat transfer
is neglected and the predicted heat transfer is low. With the assumption of a completely wet coil, the model
predicts that the air is humidified during the portion of the coil in which the dewpoint of the air is less than
the surface temperature. The latent heat transfer to the air associated with this "artificial" mass transfer
reduces the overall calculated cooling capacity as compared with the actual situation. Since both the
completely dry and wet analyses under predict the heat transfer, a simple approach is to utilize the results
of the analysis that gives the largest heat transfer. The error associated with this method is generally less
than 5 percent.
The steps for determining the heat transfer and outlet conditions using the simple analysis are summarized
as follows:
Determine the coil heat transfer assuming that the coil is completely dry.
If the surface temperature at the air outlet determined with the dry analysis is less than the dewpoint of the
entering air, then assume that the coil is completely wet and determine the heat transfer.
If the surface temperature at the air inlet determined with the wet analysis is greater the entering dewpoint
temperature, then a portion of the coil is dry. The results of steps 1 or 2 that yield the largest heat transfer
are utilized.
4–146
TRNSYS 18 – Mathematical Reference
Detailed Analysis
Water will begin to condense on the surface of a cooling coil at the point where the surface temperature
equals the dewpoint of the entering air. In order to calculate the heat transfer through the cooling coil, the
relative areas associated with the wet and dry portions of the coil must be determined. Braun (1) presents
the following method for calculating the heat transfer in a partially wet coil. The fraction of the coil surface
area that is dry is
The effectiveness for the wet and dry portions of the coil are
Since the fraction of the coil that is dry is dependent on the exit water temperature, an iterative method is
required to find the exit water temperature.
The outlet air state from the coil is determined from
𝑇𝑎,𝑜 = 𝑇𝑠,𝑒 + (𝑇𝑎,𝑥 − 𝑇𝑠,𝑒 )𝑒𝑥𝑝(−(1 − 𝑓𝑑𝑟𝑦 )𝑁𝑇𝑈𝑜 ) Eq. 4.3.3-24
where Ts,e is the effective surface temperature in the wet coil section and is determined from the saturation
condition associated with
ℎ𝑎,𝑜 − ℎ𝑎,𝑥
ℎ𝑠,𝑠,𝑒 = ℎ𝑎,𝑥 + Eq. 4.3.3-25
1 − 𝑒𝑥𝑝(−(1 − 𝑓𝑑𝑟𝑦 )𝑁𝑇𝑈𝑜 )
The air temperature and enthalpy at the point where condensation occurs are
𝑇𝑎,𝑥 = 𝑇𝑎,𝑖 − 𝜀𝑑𝑟𝑦 (𝑇𝑎,𝑖 − 𝑇𝑤,𝑥 ) Eq. 4.3.3-26
Coil Performance
Three heat transfer rates are calculated from energy balances on the water and air streams. The total
energy transferred across the coil is
𝑄𝑐𝑜𝑖𝑙 = 𝑚𝑤 𝐶𝑝𝑤 (𝑇𝑤,𝑜 − 𝑇𝑤,𝑖 ) Eq. 4.3.3-28
The heat transfer attributed to condensing the moisture in the air is calculated as
4–147
TRNSYS 18 – Mathematical Reference
where hfg is the heat of vaporization for water and assumed constant at the value for standard conditions
(2452 kJ/kg). The heat transfer attributed to sensible heat transfer is simply
𝑄𝑠𝑒𝑛𝑠 = 𝑄𝑐𝑜𝑖𝑙 − 𝑄𝑙𝑎𝑡 Eq. 4.3.3-30
4.3.3.6. References
1. Braun, J.E., "Methodologies for the Design and Control of Chilled Water Systems," Ph. D. Thesis,
University of Wisconsin - Madison, 1988.
2. Threlkeld J.L., Thermal Environmental Engineering, Prentice-Hall,New York, Second Edition, 1970.
3. Chapman, A.J., Heat Transfer, Macmillan Publishing Company, New York, N.Y., Fourth Edition, 1984.
4. Elmahdy, A.H. and Biggs, R.C., "Finned Tube Heat Exchanger: Correlation of Dry Surface Heat Transfer
Data," ASHRAE Transactions, Vol. 85, Part 2, pp. 262-273, 1979.
5. ASHRAE Equipment Guide, American Society of Heating, Refrigerating, and Air Conditioning Engineers,
Atlanta, 1983.
4–148
TRNSYS 18 – Mathematical Reference
1 Rated Capacity [kJ/h] The capacity of the machine at its rated condition (typically 30C (85
F) inlet cooling water temperature and 7C (44 F) chilled water
setpoint temperature). The data files associated with this model
should be consistent with the rating conditions.
2 Rated COP [-] The COP of the chiller at its rated conditions (typically 30 C (85 F)
inlet cooling water temperature and 7C (44 F) chilled water setpoint
temperature). The data files associated with this model should be
consistent with the rating conditions.
3 Logical Unit for Data [-] The logical unit for the user-supplied data file containing the fraction
File of nominal capacity and fraction of design energy input data as a
function of the inlet hot water temperature, the inlet cooling water
temperature, the chilled water setpoint temperature, and the fraction
of design load. (Simulation Studio will automatically assign this
parameter.)
4 Number of HW [-] The number of hot water inlet temperatures for which catalog data is
Temperatures in Data supplied in the data file.
File
5 Number of CW Steps [-] The number of cooling water temperature steps contained in the
in Data File required catalog data file.
6 Number of CHW [-] The number of chilled water setpoints for which catalog data is
Setpoints in Data File provided in the required data file.
7 Number of Load [-] The number of fractions of design load for which catalog data is
Fractions in Data File provided in the required data file.
8 HW Fluid Specific Heat [kJ/kg K] The specific heat of the fluid (typically hot water) which will be used
by the absorption chiller as the energy source for chiller operation.
9 CHW Fluid Specific [kJ/kg K] The specific heat of the chilled water stream flowing through the
Heat chiller.
10 CW Fluid Specific Heat [kJ/kg K] The specific heat of the cooling water flow stream.
11 Auxiliary Electrical [kJ/h] The auxiliary electrical power required by the absorption chiller while
Power its operating (solution pumps, refrigerant pumps, etc).
INPUTS
4–149
TRNSYS 18 – Mathematical Reference
1 Chilled Water Inlet [C] The temperature of the chilled water stream entering the chiller.
Temperature
2 Chiller Water Flow [kg/h] The mass flow rate at which chilled water enters the chiller.
Rate
3 Cooling Water Inlet [C] The temperature at which the cooling water flow stream enters the
Temperature chiller.
4 Cooling Water Flow [kg/h] The mass flow rate at which the cooling fluid (typically water) enters
Rate the chiller.
5 Hot Water Inlet [C] The temperature of the inlet stream (typically hot water) which will
Temperature be used as the energy source for chiller operation.
6 Hot Water Flow Rate [kg/h] The flow rate of fluid (typically hot water) used as the energy source
for chiller operation.
7 CHW Setpoint [C] The setpoint temperature for the chilled water stream. If the chiller
has the capacity to meet the current load, the chiller will modulate
to meet the load and chilled water stream will leave at this
temperature.
8 Chiller Control Signal [-] The control signal for the operation of the chiller (CTRL < 0.5:
chiller is OFF, CTRL >= 0.5: chiller is ON).
OUTPUTS
1 Chilled Water [C] The temperature of the chilled water stream exiting the chiller.
Temperature
2 Chilled Water Flow [kg/h] The flow rate of the chilled water stream exiting the chiller.
Rate
3 Cooling Water [C] The temperature of the cooling flow stream exiting the chiller.
Temperature
4 Cooling Water Flow [kg/h] The mass flow rate at which the cooling stream exits the chiller.
Rate
5 Hot Water Outlet [C] The temperature of the hot water stream exiting the absorption
Temperature chiller.
6 Hot Water Flow Rate [kg/h] The flow rate of fluid (typically hot water) exiting the chiller and used
by the chiller for an energy source for chiller operation.
7 Chilled Water Energy [kJ/h] The rate at which energy was removed from the chilled water flow
stream during the timestep.
8 Cooling Water Energy [kJ/h] The rate at which energy is rejected to the cooling water flow
stream by the chiller.
9 Hot Water Energy [kJ/h] The rate at which energy was removed from the hot water flow in
order to operate the absorption chiller.
10 Electrical Energy [kJ/h] The rate at which electrical energy was required in order to operate
Required the absorption chiller (solution pumps, refrigerant pumps, etc).
4–150
TRNSYS 18 – Mathematical Reference
11 Fraction of Nominal [-] The fraction of nominal capacity available to the chiller at the
Capacity current timestep. The fraction of nominal capacity is interpolated
from the required data file for this component as a function of the
entering cooling water temperature, the chilled water set-point
temperature, the hot water inlet temperature, and the fraction of
design load.
12 Fraction of Design [-] The fraction of design energy input required by the chiller at the
Energy Input current timestep. The fraction of the energy input as compared to
design conditions is interpolated from the required data file for this
component as a function of the entering cooling water temperature,
the fraction of design load to be met by the chiller at the current
timestep, the entering hot water temperature, and the chilled water
setpoint temperature.
4–151
TRNSYS 18 – Mathematical Reference
4.3.4.4. Nomenclature
Capacity [kJ/hr] The amount of cooling that can be provided by the device.
Fraction of the device’s full load capacity during operation under
fFullLoadCapacity [0..1]
current conditions.
Fraction of the device’s nominal capacity during operation under
fNominalCapacity [0..1]
current conditions.
Capacityrated [kJ/hr] Rated cooling capacity of the device
Amount of energy that must be removed from the chilled water
Q remove [kJ/hr]
stream in order to reach the setpoint temperature
Tchw,set [ºC] “Chilled water” stream setpoint.
Fraction of design capacity at which the machine is currently
fdesign [0..1]
operating.
COPrated [-] Machine’s rated Coefficient of Performance.
fDesignEnergyInput [0..1] Fraction of design energy input currently required by the machine.
Thw,out [ºC] Temperature of fluid exiting the “hot water” stream
Thw,in [ºC] Temperature of fluid entering the “hot water” stream
Q [kJ/hr] Energy removed from the “hot water” stream
hw
hw
m [kg/hr] Mass flow rate of the “hot water” stream fluid
Cphw [kJ/kg.K] Specific heat of the “hot water” stream fluid.
Tchw,out [ºC] Temperature of fluid exiting the “chilled water” stream
Tchw,in [ºC] Temperature of fluid entering the “chilled water” stream
Q [kJ/hr] Energy removed from the “chilled water” stream
chw
chw
m [kg/hr] Mass flow rate of the “chilled water” stream fluid
Cpchw [kJ/kg.K] Specific heat of the “chilled water” stream fluid.
Tcw,out [ºC] Temperature of fluid exiting the “cooling water” stream
Tcw,out [ºC] Temperature of fluid entering the “cooling water” stream
Q [kJ/hr] Energy added to the “cooling water” stream
cw
cw
m [kg/hr] Mass flow rate of the “cooling water” stream fluid
Cpcw [kJ/kg.K] Specific heat of the “cooling water” stream fluid.
Q [kJ/hr] Energy draw of parasitics (solutions pumps, controls, etc.)
aux
4–152
TRNSYS 18 – Mathematical Reference
4–153
TRNSYS 18 – Mathematical Reference
capacity) the user can adjust the size of the machine being modeled to whatever is appropriate to the
system being simulated.
Type107 requires a single data file, which is to be specified in the standard TRNSYS data format.
The file contains values of normalized fraction of full load capacity and fraction of design energy input for
various values of fraction of design load (-) chilled water setpoint temperature (ºC) entering cooling water
temperature (ºC) and entering hot water temperature (ºC).
Upon determining that the absorption chiller is ON based on the value of the control signal, Type107 first
determines the fraction of design load at which it must operate first by calculating the amount of energy that
must be removed from the chilled water stream in order to bring it from its entering temperature to the
setpoint temperature:
𝑄̇𝑟𝑒𝑚𝑜𝑣𝑒 = 𝑚̇𝑐ℎ𝑤 𝐶𝑝𝑐ℎ𝑤 (𝑇𝑐ℎ𝑤,𝑖𝑛 − 𝑇𝑐ℎ𝑤,𝑠𝑒𝑡 ) Eq. 4.3.4-1
The required energy removal is then divided by the machine’s capacity (parameter 1) to determine the
fraction of design load at which the machine is required to operate.
𝑄̇𝑟𝑒𝑚𝑜𝑣𝑒𝑑
𝑓𝐷𝑒𝑠𝑖𝑔𝑛𝐿𝑜𝑎𝑑 = Eq. 4.3.4-2
𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦𝑅𝑎𝑡𝑒𝑑
Type107 then calls the TRNSYS Interpolate Data subroutine with the user specified hot water inlet
temperature, cooling water inlet temperature, chilled water setpoint temperature, and fraction of design
load. Interpolate Data reads the user specified data file and returns values of the fraction of the machine’s
rated capacity that is available given the hot water entering temperature. This reduced capacity is called
the nominal capacity as opposed to the rated capacity. The capacity of the machine at any given time,
therefore is given by
𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦 = 𝑓𝐹𝑢𝑙𝑙𝐿𝑜𝑎𝑑𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦 𝑓𝑁𝑜𝑚𝑖𝑛𝑎𝑙𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦 𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦𝑅𝑎𝑡𝑒𝑑 Eq. 4.3.4-3
Interpolate Data also returns the machine’s fraction of design energy input for the current conditions. When
operating at rated capacity, the design energy input must be provided to the chiller in order for it to operate.
When the chiller is running at part load, only a fraction of the design energy input is required. With this value
returned by Interpolate Data, the energy delivered to the chiller by the hot water stream can be calculated
using
𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦𝑅𝑎𝑡𝑒𝑑
𝑄̇ℎ𝑤 = 𝑓𝐷𝑒𝑠𝑖𝑔𝑛𝐸𝑛𝑒𝑟𝑔𝑦𝐼𝑛𝑝𝑢𝑡 Eq. 4.3.4-4
𝐶𝑂𝑃𝑅𝑎𝑡𝑒𝑑
The hot water stream outlet temperature is then
𝑄̇ℎ𝑤
𝑇ℎ𝑤,𝑜𝑢𝑡 = 𝑇ℎ𝑤,𝑖𝑛 − Eq. 4.3.4-5
𝑚̇ℎ𝑤 𝐶𝑝ℎ𝑤
The chilled water outlet temperature, which should be the setpoint temperature but may be greater if the
machine is capacity limited, is then calculated as:
𝑀𝐼𝑁(𝑄̇𝑟𝑒𝑚𝑜𝑣𝑒 , 𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦)
𝑇𝑐ℎ𝑤,𝑜𝑢𝑡 = 𝑇𝑐ℎ𝑤,𝑖𝑛 − Eq. 4.3.4-6
𝑚̇𝑐ℎ𝑤 𝐶𝑝𝑐ℎ𝑤
In order for energy to balance in the device, the energy rejection to the cooling water stream is given by
𝑄̇𝑐𝑤 = 𝑄̇𝑐ℎ𝑤 + 𝑄̇ℎ𝑤 + 𝑄̇𝑎𝑢𝑥 Eq. 4.3.4-7
The term Qaux accounts for the energy consumed by the various parasitics in the system such as solution
pumps, fluid stream pumps, controls. The auxiliary energy requirement of the device is specified among
the model’s parameters. Type107 assumes that the entire auxiliary energy requirement is used whenever
the device is in operation, regardless of whether or not it is operating at full capacity.
Lastly, the temperature of the exiting cooling water stream can be calculated using
4–154
TRNSYS 18 – Mathematical Reference
𝑄̇𝑐𝑤
𝑇𝑐𝑤,𝑜𝑢𝑡 = 𝑇𝑐𝑤,𝑖𝑛 + Eq. 4.3.4-8
𝑚̇𝑐𝑤 𝐶𝑝𝑐𝑤
The device COP is defined as shown in
𝑄̇𝑐ℎ𝑤
𝐶𝑂𝑃 = Eq. 4.3.4-9
𝑄̇𝑎𝑢𝑥 + 𝑄̇ℎ𝑤
Where {i,j,k,l} means that the fraction of rated capacity and the fraction of design energy input are given for:
ith value of the Fraction of design load
jth value of the Chilled water setpoint
kth value of the Entering chilled water temperature
lth value of the Inlet hot water temperature
The principle of the data file is that the first 4 lines give the values of the 4 independent variables that will
be used in the performance map. Then the 2 dependent variables are given for all combinations of the
independent variables. The values of the last independent variables are first cycled through, then the 3 rd
independent variable, etc.
EXAMPLE
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 !Fraction of Design Load
5.56 6.11 6.67 7.22 7.78 8.89 10.0 !Chilled Water Setpoint (C)
26.7 29.4 32.2 !Entering Cooling Water Temperature (C)
108.9 111.7 113.9 115.0 116.1 !Inlet Hot Water Temperature (C)
0.9878 0.0000 !Capacity and Design Energy Input Fract. at 0.0 5.56 26.7 108.9
1.0367 0.0000 !Capacity and Design Energy Input Fract. at 0.0 5.56 26.7 111.7
... etc. (see the example file in "Examples\Data Files" for more details)
4–155
TRNSYS 18 – Mathematical Reference
1.0469 0.9800 !Capacity and Design Energy Input Fract. at 1.0 10.0 32.2 116.1
4–156
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] This parameter indicates whether the inlet absolute humidity ratio
(mode = 1) or the percent relative humidity input (mode = 0) will be
used to calculate the inlet moist air state to this device.
2 Maximum Heating [kJ/h] The maximum amount of energy that can be added to the air
Rate stream.
3 Heater Efficiency [-] The efficiency of the device adding heat to the air stream. Typical
values are 1.0 for electric heaters and 0.8 for gas heaters.
INPUTS
1 Inlet Air Temperature [C] The dry-bulb temperature of the air entering the auxiliary heater.
2 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the auxiliary heater
device.
3 Inlet Air Percent [%] The percent relative humidity of the air entering the auxiliary heater
Relative Humidity device.
4 Air Flow Rate [kg/h] The flow rate of dry air entering the auxiliary heater.
5 Inlet Air Pressure [atm] The absolute pressure of the air entering the device.
6 Control Function [0/1] The control function for the heater (0 = off, 1 = on).
7 Air-side Pressure Drop [atm] The pressure drop of the air across the heater.
8 Setpoint Temperature [C] The maximum outlet temperature of the air exiting the device.
OUTPUTS
1 Outlet Air Temperature [C] The temperature (dry-bulb) of the air exiting the device.
2 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the device.
Ratio
3 Outlet Air Percent [%] The percent relative humidity of the air exiting the device.
Relative Humidity
4 Outlet Air Flow Rate [kg/h] The flow rate of dry air exiting the device.
5 Outlet Air Pressure [atm] The absolute pressure of the air exiting the device.
4–157
TRNSYS 18 – Mathematical Reference
6 Required Heating [kJ/h] The rate at which energy must be supplied to the device in order to
heat the air to its outlet temperature; including conversion
inefficiencies.
7 Fluid Energy [kJ/h] The rate at which energy is added to the air stream as it passes
through the device.
4.3.5.4. Nomenclature
𝑒𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑐𝑦 Efficiency of the heater
ℎ𝑖𝑛 Enthalpy of the air entering the heater
ℎ𝑜𝑢𝑡 Enthalpy of the air exiting the heater
ℎ𝑜𝑢𝑡,𝑚𝑎𝑥 The maximum possible enthalpy of air exiting the heater
𝑚̇ Mass flow rate of air through the heater
𝑄𝑓𝑙𝑢𝑖𝑑 The energy transferred to the air
𝑄𝑖𝑛𝑝𝑢𝑡 The energy required to be input to the heater
𝑄𝑚𝑎𝑥 The maximum heating rate of the device
4–158
TRNSYS 18 – Mathematical Reference
𝑄𝑓𝑙𝑢𝑖𝑑
𝑄𝑖𝑛𝑝𝑢𝑡 = Eq. 4.3.5-3
𝑒𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑐𝑦
4–159
TRNSYS 18 – Mathematical Reference
1 Logical Unit for [-] The logical unit assigned to the data file containing the capacity and
Performance Data COP ratios as a function of ambient and chilled water setpoint
temperatures. (Simulation Studio automatically assigns a number
for this parameter.)
2 Logical Unit for PLR [-] The logical unit assigned to the data file which contains the fraction
Data File of full-load power data as a function of the chiller part load ratio.
(Simulation Studio automatically assigns a number for this
parameter.)
3 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing through the chiller. Typically
the fluid being cooled by the chiller will be water, but by changing
the specific heat of the fluid to that of any other fluid, the model can
simulate the cooling of a different fluid.
4 Number of Ambient [-] The number of ambient temperatures for which capacity and COP
Temperatures ratios are provided in the performance data file.
5 Number of CHW [-] The number of chilled water setpoint temperature data points for
Setpoints which the capacity and COP ratios are provided in the performance
data file.
6 Number of Part Load [-] The number of part-load ratio data points for which fraction of full-
Ratios load power data is supplied in the part load performance data file
INPUTS
1 Chilled Water Inlet [C] The temperature of the fluid (chilled water) stream entering the
Temperature chiller.
2 Chilled Water Flowrate [kg/h] The mass flowrate at which fluid (chilled water) enters the chiller.
3 Setpoint Temperature [C] The setpoint temperature for the chilled water stream. If the chiller
has the capacity to meet the current load, the chiller will modulate
to meet the load and the chilled water stream will leave at this
temperature.
4 Ambient Temperature [C] The dry bulb temperature of the ambient air (or the temperature of
the air used as the heat sink for the heat rejection from this chiller).
4–160
TRNSYS 18 – Mathematical Reference
5 Chiller Control Signal [-] The control signal for the operation of the chiller. If the control
signal is greater than 0.5 then the chiller is on, otherwise the chiller
is off. Typically this input will be connected to a controller
component that determines when the chiller should operate.
OUTPUTS
1 Outlet Fluid [C] The temperature of the chilled fluid stream exiting the chiller.
Temperature
2 Fluid Flow Rate [kg/h] The flow rate of the chilled fluid stream exiting the chiller.
3 Chiller Power [kJ/h] The power required to operate the chiller given the current inlet
conditions.
4 Chiller Capacity [kJ/h] The capacity of the chiller given the current ambient temperature
and chilled water setpoint temperature.
6 Chiller Load [kJ/h] The load that the chiller must attempt to meet at the current
timestep. This load is simply the chilled fluid mass flow rate
multiplied by the fluid specific heat multiplied by the temperature
difference between the chilled fluid inlet temperature and chilled
fluid setpoint. The machine may or may not be able to meet this
load, depending upon its current capacity.
7 Chiller Load Met [kJ/h] The load that the chiller was able to meet at the current timestep. If
the chiller was unable to meet the entire required load, the
temperature of the exiting flow stream will be higher than the chilled
water setpoint temperature.
8 Chiller Part Load Ratio [-] The chiller part load ratio at the current conditions. The part load
ratio is defined as the load met by the chiller divided by the capacity
of the chiller at the given conditions.
9 Fraction of Full-Load [-] The fraction of full-load power for the chiller. The fraction of full-load
Power power is a ratio of the chiller power at the current part-load
conditions to the chiller power at the current conditions if the chiller
was operating at full-load.
10 Heat of Rejection [kJ/h] The rate at which heat is rejected to the cooling air stream by the
chiller.
Rated Capacity [kJ/h] The capacity of the chiller at 6.67 C leaving water temperature and 35 C
ambient temperature. This is calculated from the data file.
Rated COP [-] The COP of the chiller at 6.67 C leaving water temperature and 35 C
ambient temperature. This is calculated from the data file.
4–161
TRNSYS 18 – Mathematical Reference
4.3.6.4. Nomenclature
COPnom Chiller nominal Coefficient of Performance at current conditions.
Q load
Current load on the chiller.
PLR Chiller Part Load Ratio (the ratio of the current load to the rated load).
4–162
TRNSYS 18 – Mathematical Reference
4–163
TRNSYS 18 – Mathematical Reference
The order which these values are entered is very important and the comments in the data file demonstrate
the pattern that should be followed. (Please note that only a portion of the file is included here.)
The second data file includes the chiller’s fraction of full load power for different part load ratios. A sample
data file (AirCooledChiller_PLR.dat) is included in the Examples directory. The information contained in
that file is shown here.
0.0 0.25 0.50 0.75 1.00 ! Part Load Ratio
0.0000 ! Fraction of Full Load Power at PLR=0.00
0.0902 ! Fraction of Full Load Power at PLR=0.25
0.3241 ! Fraction of Full Load Power at PLR=0.50
0.6262 ! Fraction of Full Load Power at PLR=0.75
1.0000 ! Fraction of Full Load Power at PLR=1.00
The performance of the chiller you are modeling will likely have difference performance and new data files
that match your chiller performance will need to be created.
4–164
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] This parameter indicates whether the absolute humidity ratio inputs
to this model will be used for the moist air calculations (mode 1) or
whether the percent relative humidity inputs will be used (mode 2).
2 Logical Unit - Cooling [-] The logical unit which will be assigned to the data file which
Data contains the heat pump cooling performance data. Logical units
must be unique integers greater than 10 in any TRNSYS input file.
3 Logical Unit - Heating [-] The logical unit which will be assigned to the data file which
Data contains the heat pump heating performance data. Logical units
must be unique integers greater than 10 in any TRNSYS input file.
4 Number of Outdoor [-] The number of outdoor ambient dry-bulb temperatures for which
Dry-Bulb data is provided in the cooling performance data file.
Temperatures –
Cooling
5 Number of Indoor Dry- [-] The number of return air (indoor air) dry-bulb temperatures for
Bulb Temperatures – which cooling performance data is provided in the associated data
Cooling file.
6 Number of Indoor Wet- [-] The number of return air (indoor air) wet bulb temperatures for
Bulb Temperatures – which cooling data is provided in the associated performance data
Cooling file.
7 Number of Outdoor [-] The number of ambient air dry bulb temperatures for which heating
Dry-Bulb performance data is supplied in the associated data file.
Temperatures –
Heating
8 Number of Indoor Dry- [-] The number of return air (indoor air) dry-bulb temperatures for
Bulb Temperatures – which heating performance data is supplied in the associated data
Heating file.
9 Number of Air Flow [-] The number of air flow rate steps for which heating and cooling
Steps performance data is supplied in the associated data file.
10 Total Air Flow Rate [l/s] The volumetric flow rate across the indoor coil of the heat pump
that will be supplied when the unit is operating. This flow rate
should be the sum of the return air and outside air flow rates.
11 Indoor Fan Power [kJ/h] The rated power consumption of the heat pump blower.
12 Outdoor Fan Power [kJ/h] The rated power consumption of the outdoor unit fan.
4–165
TRNSYS 18 – Mathematical Reference
13 Minimum % Relative [%] The percent relative humidity of the entering air below which there
Humidity for Latent is no latent cooling impact.
Heat Transfer
14 Auxiliary Heat Mode [0/1/2] This parameter indicates the type of auxiliary heater used: 0 = no
auxiliary heat, 1= two-stage electric heating elements, 2 = gas
heater used.
15 Capacity - Stage 1 [kJ/h] The capacity of the first-stage supplemental electrical heating
Heater device.
16 Capacity - Stage 2 [kJ/h] The capacity of the second-stage supplemental electrical heating
Heater device.
15 Capacity of Auxiliary [kJ/h] The capacity of the supplemental gas heating device.
16 Efficiency of Auxiliary [-] The thermal conversion efficiency of the auxiliary heating device
Heater (typically electric=1.0 and gas = 0.8 to 0.9)
INPUTS
1 Return Air [C] The dry-bulb temperature of the air returning to the heat pump from
Temperature the zone. This is typically the room air temperature. This air will
be mixed with a user-controlled amount of outside air before
entering the heat pump.
2 Return Air Humidity [-] The absolute humidity ratio of the air returning to the heat pump
Ratio from the zone. This air is typically at room air conditions. This
return air will be mixed with a user-specified amount of outside air
before entering the heat pump.
3 Return Air Relative [%] The percent relative humidity of the air returning to the heat pump
Humidity from the zone. This air is typically at room air conditions. This
return air will be mixed with a user-specified amount of outside air
before entering the heat pump.
4 Return Air Flow Rate [kg/h] This input is not used by the model and is only included for
connection purposes if the air source heat pump is part of a air-
stream loop. This model sets the air flow rate.
5 Inlet Pressure [atm] The pressure of the air entering the heat pump. This pressure is
typically the zone air pressure and the model assumes both the
return air and outside air are at this pressure.
6 Fan Pressure Rise [atm] The net pressure rise (although it could be a net pressure drop) of
the air across the heat pump due to the operation of the fan and
the pressure drops of the coils and ducting.
7 Outside Air [C] The temperature of the outside air that is mixed with the return air
Temperature before being ducted to the heat pump.
8 Outside Air Humidity [-] The absolute humidity ratio of the air returning to the heat pump
Ratio from the zone. This air is typically at room air conditions. This
4–166
TRNSYS 18 – Mathematical Reference
9 Outside Air Relative [%] The percent relative humidity of the outside air that is mixed with
Humidity the return air before being ducted to the heat pump.
10 Ambient (Sink) [C] The temperature of the air entering the outdoor coil of the heat
Temperature pump. This value is typically the ambient temperature.
11 Cooling Control Signal [-] The control signal for cooling operation: ctrl < 0.5: cooling mode is
off, ctrl >= 0.5: cooling mode is on (and therefore heating is off,
auxiliary heaters are off, and the fan is on).
12 Heating Control Signal [-] The control signal for heating operation: ctrl < 0.5: heating mode is
off, ctrl >= 0.5: heating mode is on (and therefore cooling is off and
the fan is on).
13 Fan Control Signal [-] The control signal for operation of the indoor fan when the heat
pump is not operating in heating or cooling mode: ctrl < 0.5: fan is
off if heat pump compressor is off, ctrl >= 0.5: fan is on regardless
of compressor operation.
14 Outside Air Damper [-] The control for the operation of the outside air damper: 0 = no
Position outside air is mixed in with the return air, 1= only outside air is sent
to the heat pump, between 0 and 1 indicates that a blend of
outside and return air will be sent to the heat pump.
15 Stage 1 Supplemental [-] The control signal for the first supplemental auxiliary heater (>0.5 =
Control Signal on).
16 Stage 2 Supplemental [-] The control signal for the second supplemental auxiliary heater
Control Signal (>0.5 = on).
15 Stage 1 Supplemental [-] The control signal for the first supplemental auxiliary heater (>0.5 =
Control Signal on).
OUTPUTS
1 Outlet Air Temperature [C] The dry-bulb temperature of the air exiting the indoor coil of the
heat pump.
2 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the indoor coil of the
Ratio heat pump.
3 Outlet Air Relative [%] The percent relative humidity of the air exiting the indoor coil of the
Humidity heat pump.
4 Outlet Air Flow Rate [kg/h] The flow rate of dry air exiting the indoor coil of the heat pump.
5 Outlet Air Pressure [atm] The absolute air pressure of the air exiting the indoor coil of the
heat pump.
4–167
TRNSYS 18 – Mathematical Reference
6 Total Cooling Rate [kJ/h] The rate at which energy (both sensible and latent) is removed
from the conditioned air stream in cooling mode.
7 Sensible Cooling Rate [kJ/h] The rate at which sensible heat is removed from the conditioned air
stream in cooling mode.
8 Latent Cooling Rate [kJ/h] The rate at which latent energy is removed from the conditioned air
stream in cooling mode.
9 Total Heating Rate [kJ/h] The rate at which heat is added to the conditioned air stream by the
heat pump and auxiliary heating devices.
10 Heat Rejection Rate [kJ/h] The rate at which heat is rejected to the sink (from the outdoor coil)
during cooling operation.
11 Heat Absorption Rate [kJ/h] The rate at which heat is absorbed from the sink (from the outdoor
coil) during heating operation.
12 Auxiliary Heating Rate [kJ/h] The rate at which auxiliary energy is added to the conditioned air
stream.
13 Heat Pump Power [kJ/h] The total energy input (compressor + indoor fan + outdoor fan)
required to operate the heat pump but not including any auxiliary
energy requirements.
15 EER [-] The energy efficiency rating of the heat pump during the timestep.
16 Indoor Fan Power [kJ/h] The rate at which the heat pump indoor fan is consuming energy.
17 Outdoor Fan Power [kJ/h] The rate at which the heat pump outdoor fan is consuming energy.
18 Compressor Power [kJ/h] The rate at which the heat pump compressor is consuming energy.
19 Total Energy Input [kJ/h] The total energy input to the heat pump (compressor + indoor fan +
outdoor fan + auxiliary heaters).
20 Condensate [C] The temperature of any condensate being drained from the system.
Temperature Condensate can be created from the mixing of the outside and
return air streams and also by cooling of the air below its dewpoint
temperature.
21 Condensate Flow Rate [kg/h] The flow rate of condensate being drained from the system.
Condensate can be created from the mixing of the outside and
return air streams and also by cooling of the air below its dewpoint
temperature.
Rated Total Cooling [kJ/h] The total cooling capacity of the heat pump at 25.56 C entering dry bulb
Capacity temperature, 19.44 C entering wet bulb temperature, and 35 C outdoor
dry bulb temperature. This is calculated from the data file.
4–168
TRNSYS 18 – Mathematical Reference
Rated Sensible [kJ/h] The sensible cooling capacity of the heat pump at 25.56 C entering dry
Cooling Capacity bulb temperature, 19.44 C entering wet bulb temperature, and 35 C
outdoor dry bulb temperature. This is calculated from the data file.
Rated Heating [kJ/h] The total heating capacity of the heat pump at 21.11 C entering dry bulb
Capacity temperature and -8.33 C outdoor dry bulb temperature. This is
calculated from the data file.
TEXT FIELDS
Auxiliary Type [-] The type of auxiliary specified for the heat pump (None, Electric, or Gas)
from Parameter 14.
4.3.7.4. Nomenclature
hair ,FanIn Enthalpy of mixed air entering the indoor fan.
damper Control setting of the damper that determines the fraction of primary and
secondary air streams that are mixed together before entering the indoor fan.
hair , primary Enthalpy of the primary (recirculation) air stream
4–169
TRNSYS 18 – Mathematical Reference
Q absorption
Amount of energy absorbed from the outdoor air stream by the heat pump
(heating mode)
Q aux Auxiliary energy added to the exiting indoor air stream
aux1 Control setting on the first stage electric heating element (Auxiliary Mode 1)
Paux1
Capacity of the first stage electric heating element (Auxiliary Mode 1)
aux 2 Control setting on the second stage electric heating element (Auxiliary Mode 1)
Paux2 Capacity of the second stage electric heating element (Auxiliary Mode 1)
aux Control setting of the gas auxiliary heating element (Auxiliary Mode 2)
4–170
TRNSYS 18 – Mathematical Reference
m cond,cooling Mass flow rate of condensate resulting from cooling the indoor air stream
4–171
TRNSYS 18 – Mathematical Reference
routine will reset the humidity ratio to its saturated condition and print a warning in the TRNSYS list file.
Having fully defined the two individual entering air states, Type 119 next mixes the two streams according
to:
ℎ𝑎𝑖𝑟,𝐹𝑎𝑛𝐼𝑛 = 𝛾𝑑𝑎𝑚𝑝𝑒𝑟 ℎ𝑎𝑖𝑟,𝑝𝑟𝑖𝑚𝑎𝑟𝑦 + (1 − 𝛾𝑑𝑎𝑚𝑝𝑒𝑟 )ℎ𝑎𝑖𝑟,𝑠𝑒𝑐𝑜𝑛𝑑𝑎𝑟𝑦 Eq. 4.3.7-1
The flow rate of the mixed air stream is initially set to the rated value of the indoor air fan (a parameter to
the model). Mixing occurs at the user specified pressure of the primary (indoor) air stream as opposed to
the pressure of the secondary (outdoor) air stream. This assumes that the dampers modulate to balance
the pressures of the two inlet streams and that the user has provided a damper position that results in the
correct flow rates and that the ambient pressure modulates to the inlet pressure. The psychrometrics routine
is called once more to determine all properties of the mixed air. Often the procedure of converging on a
mixed air state is iterative. Type 119 calls the psychrometrics routine with pressure, enthalpy and humidity
ratio. In return it obtains temperature and modified values of humidity ratio and enthalpy. If the new humidity
ratio is lower than the humidity ratio going into the call, the air is determined to have been saturated (the
psychrometrics routine sets humidity ratio back to the saturation line value if called with saturated
conditions). The steam properties routine is then called with the new air temperature to determine the
enthalpy of the condensate (condensate is assumed to be at the mixed air temperature) and the enthalpy
of the mixed air is calculated.
𝑚̇𝑐𝑜𝑛𝑑
ℎ𝑎𝑖𝑟,𝐹𝑎𝑛𝐼𝑛 = 𝛾𝑑𝑎𝑚𝑝𝑒𝑟 ℎ𝑎𝑖𝑟,𝑝𝑟𝑖𝑚𝑎𝑟𝑦 + (1 − 𝛾𝑑𝑎𝑚𝑝𝑒𝑟 )ℎ𝑎𝑖𝑟,𝑠𝑒𝑐𝑜𝑛𝑑𝑎𝑟𝑦 − ℎ𝑐𝑜𝑛𝑑 Eq. 4.3.7-3
𝑚̇𝑎𝑖𝑟
If the enthalpy resulting from this calculation is within a tolerance of the mixed air enthalpy returned from
the psychrometrics routine, the mixed air state is said to be converged. If the enthalpy difference between
the calculated value and the psychrometrics routine is not within the tolerance, the air enthalpy is updated
to the new value and the procedure begins again. The mixed air state is also deemed to have converged if
the procedure has iterated more than 50 times. Both the tolerance on enthalpy and the number of allowable
iterations can be modified in the Fortran source.
With the mixed air state fully determined, Type 119 proceeds to determine whether the heat pump is in
heating mode, cooling mode, or whether only the indoor fan is currently in operation. Both cooling
performance and heating performance are determined based on catalog data files.
4–172
TRNSYS 18 – Mathematical Reference
𝑄̇𝑡𝑜𝑡,𝑐𝑜𝑜𝑙
ℎ𝑎𝑖𝑟,𝐸𝑣𝑎𝑝𝑂𝑢𝑡 = ℎ𝑎𝑖𝑟,𝐸𝑣𝑎𝑝𝐼𝑛 − Eq. 4.3.7-4
𝑚̇𝑎𝑖𝑟
The psychrometrics routine is called to determine the remaining properties. The pressure rise across the
indoor fan is applied to the air at this point in the calculations. Again, the enthalpy of the exiting air may be
modified by the psychrometrics routine. The total cooling heat transfer is recalculated based on the enthalpy
difference between entering and exiting evaporator air conditions. The sensible cooling is calculated based
on the temperature difference as defined in:
𝑄̇𝑠𝑒𝑛𝑠.𝑐𝑜𝑜𝑙 = 𝑚̇𝑎𝑖𝑟 𝐶𝑝𝑎𝑖𝑟 (𝑇𝐸𝑣𝑎𝑝,𝐼𝑛 − 𝑇𝐸𝑣𝑎𝑝,𝑂𝑢𝑡 ) Eq. 4.3.7-5
The latent cooling is computed as the difference between the total and the sensible cooling values. At this
point the rated power of the indoor and outdoor fans supplied as parameters are removed from the total
power returned from the data file so as to arrive at the power of the compressor, which enters into the
calculation of the rejection energy as defined in:
𝑄̇𝑟𝑒𝑗𝑒𝑐𝑡𝑖𝑜𝑛 = 𝑄̇𝑡𝑜𝑡,𝑐𝑜𝑜𝑙 + 𝑃𝑐𝑜𝑚𝑝
̇ Eq. 4.3.7-6
𝑄̇𝑡𝑜𝑡,ℎ𝑒𝑎𝑡
𝐶𝑂𝑃 = Eq. 4.3.7-10
̇
𝑃𝑐𝑜𝑚𝑝 ̇
+ 𝑃𝑓𝑎𝑛,𝑂𝑢𝑡𝑑𝑜𝑜𝑟 ̇
+ 𝑃𝑓𝑎𝑛,𝐼𝑛𝑑𝑜𝑜𝑟
4–173
TRNSYS 18 – Mathematical Reference
only mixing with the secondary air stream, indoor fan inefficiencies and associated pressure rise affect the
state of the air returned to the space.
Auxiliary Heat
Type 119 is equipped with the ability to add auxiliary energy to the post condenser (in heating mode) or
post evaporator (in cooling mode) indoor air stream by one of three methods: no auxiliary heat available,
two element staged electric auxiliary heat available, or gas fired auxiliary heat available. In both cases, the
amount of auxiliary energy added is determined by the value of the auxiliary heat control signals (inputs to
the model) and by the capacity of the heaters in question. Note that because the control signals are all
separate, auxiliary heat may be added to the exiting indoor air stream both in cooling and in heating mode.
This feature allows the heat pump to be operated in a dehumidification mode that passes air across a
cooling coil and then reheats it before returning it to the conditioned space.
In auxiliary mode 0, no auxiliary heat is available and the air exits the device at the conditions at which it
left the condenser in heating mode or the evaporator in cooling mode.
Auxiliary mode 1 models a two stage electric heat auxiliary. The amount of auxiliary energy added to the
exiting indoor air stream is given by:
𝑄̇𝑎𝑢𝑥 = 𝛾𝑎𝑢𝑥1 𝑃𝑎𝑢𝑥1
̇ ̇
+ 𝛾𝑎𝑢𝑥2 𝑃𝑎𝑢𝑥2 Eq. 4.3.7-11
Outlet air state is computed through the standard call to the psychrometrics routine and COP is calculated
based on:
𝑄̇𝑡𝑜𝑡,ℎ𝑒𝑎𝑡
𝐶𝑂𝑃 = Eq. 4.3.7-12
̇
𝑃𝑐𝑜𝑚𝑝 ̇
+ 𝑃𝑓𝑎𝑛,𝑂𝑢𝑡𝑑𝑜𝑜𝑟 ̇
+ 𝑃𝑓𝑎𝑛,𝐼𝑛𝑑𝑜𝑜𝑟 + 𝑄̇𝑎𝑢𝑥
In auxiliary mode 2 (gas fired auxiliary), the amount of auxiliary energy added to the exiting indoor air stream
is based on the burner capacity, control signal and efficiency as shown in:
𝑄̇𝑎𝑢𝑥 = 𝜂𝑎𝑢𝑥 𝛾𝑎𝑢𝑥 𝑃𝑎𝑢𝑥
̇ Eq. 4.3.7-13
The corresponding COP is calculated in the same manner as it was for auxiliary mode 1. If any condensate
resulted from either mixing the primary and secondary air streams or through cooling, the total flow rate of
condensate is determined. The temperature of the out flowing condensate is set as shown in:
𝑇𝑐𝑜𝑛𝑑,𝑚𝑖𝑥𝑖𝑛𝑔 𝑚̇𝑐𝑜𝑛𝑑,𝑚𝑖𝑥𝑖𝑛𝑔 + 𝑇𝑐𝑜𝑛𝑑,𝑐𝑜𝑜𝑙𝑖𝑛𝑔 𝑚̇𝑐𝑜𝑛𝑑,𝑐𝑜𝑜𝑙𝑖𝑛𝑔
𝑇𝑐𝑜𝑛𝑑 = Eq. 4.3.7-14
𝑚̇𝑐𝑜𝑛𝑑
Data Files
Two data files define the performance of the air-source heat pump. The first file details the cooling
performance of the heat pump and contains total capacity, sensible capacity and power at varies values of
air flow rate, return air wet-bulb temperature, return air dry-bulb temperature and outdoor air dry-bulb
temperature. The power consumed should include the power associated with the indoor fan, the power
associated with the outdoor fan and the power associated with the compressor. The second file details the
heating performance of the heat pump and includes the capacity and power of the heat pump at varies
values of air flow rate, return air dry-bulb temperature and outdoor air dry-bulb temperature. Again the
power should include the power associated with the indoor fan, the power associated with the outdoor fan
and the power associated with the compressor. For both these files, the air flow rate is the flow rate across
the indoor coil of the heat pump.
Sample data files (ASHP_Cooling.dat and ASHP_Heating,dat) are included in the Examples directory and
portions of those files are shown here.
262.5 300 312.6 !Air Flow Rate (l/s)
15 17.22 19.44 21.67 !Return air wet bulb (C)
22.22 23.33 24.44 25.56 26.67 !Return air dry bulb (C)
29.44 32.22 35 37.78 40.56 46.11 !Outdoor air dry bulb (C)
13685 11301 5405 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],22.22 [C], and 29.44 [C]
13622 11301 5566 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],22.22 [C], and 32.22 [C]
4–174
TRNSYS 18 – Mathematical Reference
13531 11199 5759 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],22.22 [C], and 35 [C]
13257 11096 5952 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],22.22 [C], and 37.78 [C]
12981 10994 6177 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],22.22 [C], and 40.56 [C]
12523 10823 6595 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],22.22 [C], and 46.11 [C]
13685 12325 5405 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],23.33 [C], and 29.44 [C]
13622 12223 5566 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],23.33 [C], and 32.22 [C]
13531 12223 5759 !Total capacity (kJ/h), sensible capacity (kJ/h), and power (kJ/h) at 262.5 (l/s), 15 [C],23.33 [C], and 35 [C]
.
.
.
The performance of the heat pump you are modeling will likely have difference performance and new data
files that match your chiller performance will need to be created. The order which these values are entered
is very important and the comments in the data file demonstrate the pattern that should be followed. (Please
note that only a portion of the file is included here.)
4–175
TRNSYS 18 – Mathematical Reference
1 Rated Capacity [kJ/h] The rated capacity of the boiler. The available capacity is simply
this parameter multiplied by the input control signal. The capacity
for this parameter refers to the energy input to the fluid and not the
gross capacity of the device.
2 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing through the device. The fluid in
the boiler is typically water, but different fluids heating by a boiler
can be modeled by adjusting this parameter.
3 Minimum Turn-Down [-] The minimum operating part-load ratio for the modulating boiler. If
Ratio the calculated part load ratio for the boiler (load/capacity) is less
than this parameter, the boiler will operate at the minimum turn-
down ratio and the outlet temperature will exit the boiler greater
than the desired setpoint.
INPUTS
1 Inlet Fluid [C] The temperature of the fluid entering the device.
Temperature
2 Inlet Fluid Flow Rate [kg/h] The flow rate of the fluid entering the device.
3 Input Control Signal [-] The input control signal for the boiler: 0 = the boiler is off; 0 to 1 =
the boiler is on, but running at a reduced available capacity; 1 = the
boiler is on and running at maximum available capacity.
4 Setpoint Temperature [C] The desired temperature of the fluid exiting the device.
5 Boiler Efficiency [-] The overall efficiency of the boiler. The fuel input energy will be
calculated by dividing the energy delivered to the fluid by this boiler
efficiency.
6 Combustion Efficiency [-] The combustion efficiency for the boiler. The combustion efficiency
is defined as (input energy - stack energy) /input energy and
accounts for the losses from the boiler.
OUTPUTS
4–176
TRNSYS 18 – Mathematical Reference
1 Outlet Fluid [C] The temperature of the fluid exiting the device.
Temperature
2 Outlet Fluid Flow Rate [kg/h] The flow rate of fluid exiting the device.
3 Fluid Energy [kJ/h] The rate at which heat is transferred to the fluid.
4 Losses to [kJ/h] The rate at which energy is lost from the boiler shell to the
Surroundings environment.
5 Exhaust Energy [kJ/h] The rate at which energy is exhausted from the boiler stack. This
term is calculated by first determining the required fuel input and
then using the combustion efficiency to calculate the stack losses.
6 Required Boiler [kJ/h] The rate at which fuel is being consumed by the boiler to heat the
Energy Input fluid. This term is calculated by dividing the energy provided to the
fluid by the boiler efficiency.
7 Part Load Ratio [-] The ratio of delivered fluid energy to available energy input
(capacity).
4–177
TRNSYS 18 – Mathematical Reference
4.3.8.4. Nomenclature
Cp fluid Specific heat of the liquid stream
Q need
Energy required to heat the liquid from its entering condition to the setpoint
temperature.
Q max The device capacity. The maximum rate at which energy can be delivered to
the liquid.
Q fluid The energy delivered to the liquid stream.
Q loss The rate at which energy is lost from the device due to combustion process
inefficiency.
Q exhaust
The rate at which energy is exhausted from the boiler through the combustion
stack or chimney.
m fluid The mass flow rate of liquid flowing through the boiler.
No Flow Condition
If the flow of liquid through the Type 122 boiler is zero, the model sets the output temperature equal to the
input temperature and sets the output flow rate to zero. It further sets the energy transferred to the fluid, the
energy lost during the combustion process, the energy exhausted through the boiler stack, the amount of
fuel consumed and the device part load ratio all equal to zero. The no flow condition supersedes the device
control signal meaning that if the input flow rate to the boiler is zero, the model ignores the value of the
control signal. Consequently, the boiler may be ON (control signal set to 1) and yet not be meeting the
requested setpoint temperature.
4–178
TRNSYS 18 – Mathematical Reference
Boiler ON Condition
If there is flow of liquid through the boiler and the boiler control signal is set to 1 (ON), the model first
calculates the energy required to elevate the temperature of the liquid from its inlet value to the setpoint
value using:
𝑄̇𝑛𝑒𝑒𝑑 = 𝑚̇𝑓𝑙𝑢𝑖𝑑 𝐶𝑝𝑓𝑙𝑢𝑖𝑑 (𝑇𝑠𝑒𝑡 − 𝑇𝑖𝑛 ) Eq. 4.3.8-1
The required energy input is limited by the device capacity (specified as a parameter) and 0. Thus the
device will not calculate a negative value of Qneed if the inlet temperature exceeds the setpoint temperature
and the boiler control signal is ON. If Q need does not exceed device capacity, the energy transferred to the
liquid stream (Qfluid) is set equal to Q need; the device is assumed to be internally controlled in such a way
that it delivers only the required amount of energy to the liquid stream. The outlet temperature is set equal
to the setpoint temperature and the part load ratio (PLR) is set according to:
𝑄̇𝑛𝑒𝑒𝑑
𝑃𝐿𝑅 = Eq. 4.3.8-2
𝑄̇𝑚𝑎𝑥
If the boiler is capacity limited because the required energy exceeds device capacity, the energy transferred
to the fluid (Qfluid) is set to the device capacity (Qmax), the PLR is set to 1 and the outlet fluid temperature is
set according to:
𝑄̇𝑚𝑎𝑥
𝑇𝑜𝑢𝑡 = 𝑇𝑖𝑛 + Eq. 4.3.8-3
𝑚̇𝑓𝑙𝑢𝑖𝑑 𝐶𝑝𝑓𝑙𝑢𝑖𝑑
Once the energy transferred to the fluid is calculated, the amount of fuel consumed by the boiler is
calculated by:
𝑄̇𝑓𝑙𝑢𝑖𝑑
𝑄̇𝑓𝑢𝑒𝑙 = Eq. 4.3.8-4
𝜂𝑏𝑜𝑖𝑙𝑒𝑟
The energy exhausted from the device is given by:
𝑄̇𝑒𝑥ℎ𝑎𝑢𝑠𝑡 = 𝑄̇𝑓𝑢𝑒𝑙 (1 − 𝜂𝑐𝑜𝑚𝑏𝑢𝑠𝑡𝑖𝑜𝑛 ) Eq. 4.3.8-5
And the energy lost during the combustion process is given by:
𝑄̇𝑙𝑜𝑠𝑠 = 𝑄̇𝑓𝑢𝑒𝑙 − 𝑄̇𝑒𝑥ℎ𝑎𝑢𝑠𝑡 Eq. 4.3.8-6
4–179
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] The humidity mode determines whether the absolute humidity (=1)
or relative humidity (=2) ratio of the air stream is an input.
2 Design Inlet Fluid [C] The temperature of the fluid inlet to the cooling coil at the
Temperature conditions used to determine the design coil capacities.
3 Design Inlet Fluid Flow [kg/h] The flow rate of the fluid inlet to the cooling coil at the conditions
Rate used to determine the design coil capacities.
4 Design Inlet Air [C] The temperature of the air inlet to the cooling coil at the conditions
Temperature used to determine the design coil capacities.
5 Design Inlet Air [-] The absolute humidity ratio of the air inlet to the cooling coil at the
Humidity Ratio conditions used to determine the design coil capacities.
6 Design Inlet Air Flow [kg/h] The flow rate of the air inlet to the cooling coil at the conditions
Rate used to determine the design coil capacities.
7 Design Total Cooling [kJ/h] The total cooling capacity of the cooling coil at the inlet air and fluid
Capacity properties above.
8 Design Sensible [kJ/h] The sensible cooling capacity of the cooling coil at the inlet air and
Cooling fluid properties above.
9 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing through the cooling coil.
10 Heat Exchanger [-] The parameter denotes the configuration of the cooling coil
Configuration (Counterflow = 1; Parallelflow = 2; Crossflow - both unmixed = 3;
Crossflow - both mixed = 4; Crossflow - minimum capacity unmixed
= 5; Crossflow - maximum capacity unmixed = 6)
INPUTS
1 Inlet Fluid Temperature [C] The temperature of the fluid entering the cooling coil.
2 Inlet Fluid Flow Rate [kg/h] The flow rate of the fluid entering the cooling coil.
3 Inlet Air Temperature [C] The temperature of the air entering the cooling coil.
4 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the cooling coil.
5 Inlet Air Relative [%] The percent relative humidity of the air entering the cooling coil.
Humidity
4–180
TRNSYS 18 – Mathematical Reference
6 Inlet Air Flow Rate [kg/h] The flow rate of the air entering the cooling coil.
7 Inlet Air Pressure [atm] The pressure (in atmospheres) of the air entering the cooling coil.
OUTPUTS
1 Outlet Fluid [C] The temperature of the fluid exiting the cooling coil.
Temperature
2 Outlet Fluid Flow Rate [kg/h] The flow rate of the fluid exiting the cooling coil.
3 Outlet Air Temperature [C] The temperature of the air exiting the cooling coil.
4 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the cooling coil.
Ratio
5 Outlet Air Relative [%] The percent relative humidity of the air exiting the cooling coil.
Humidity
6 Outlet Air Flow Rate [kg/h] The flow rate of the air exiting the cooling coil.
7 Outlet Air Pressure [atm] The pressure (in atmospheres) of the air exiting the cooling coil.
8 Total Cooling [kJ/h] The total amount of cooling of the air stream.
10 Fraction Wet [-] The fraction of the coil that is considered 'wet' in the calculations (0
= completely dry; 1= completely wet).
TEXT FIELDS
4–181
TRNSYS 18 – Mathematical Reference
Where
𝑈𝐴
𝑈𝐴ℎ = Eq. 4.3.9-2
𝐶𝑝
With UA = conventional heat transfer coefficient and Cp = specific heat across the enthalpy difference.
When using fictitious enthalpies, a corresponding fictitious specific heat must be defined. UAh can be
calculated from a combination of series or parallel enthalpy resistances, similar to temperature resistances.
Then enthalpy capacitance rates relate heat transfer to the enthalpy change of a fluid between inlet and
outlet. On the air side, the enthalpy capacity rate is air mass flow rate. While on the liquid side, the enthalpy
capacitance rate is based on the enthalpy of saturated air at the liquid temperature.
From the coil design parameters, the dewpoint and saturated liquid enthalpy at the rating point are
calculated. The leaving air enthalpies are calculated from the design capacities.
𝑄𝑡𝑜𝑡𝑎𝑙
ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 = ℎ𝑎𝑖𝑟,𝑖𝑛 − Eq. 4.3.9-3
𝑚̇𝑎𝑖𝑟
𝑄𝑡𝑜𝑡𝑎𝑙 − 𝑄𝑠𝑒𝑛𝑠𝑖𝑏𝑙𝑒
ℎ𝑎𝑖𝑟,𝑠𝑎𝑡𝑢𝑟𝑎𝑡𝑒𝑑 = ℎ𝑎𝑖𝑟,𝑖𝑛 − [ ] Eq. 4.3.9-4
𝑚̇𝑎𝑖𝑟
The outlet air humidity ratio is calculated from the inlet air temperature and the saturated air humidity ratio.
The outlet air temperature is then calculated from the outlet air humidity ratio and the outlet air enthalpy.
The Cp at saturated conditions can be estimated from the dew point temperature at the entering air
conditions, the saturated enthalpy at the dew point, the entering water temperature and the saturated air
enthalpy at the entering water temperature.
ℎ𝑠𝑎𝑡,𝑑𝑝 − ℎ𝑠𝑎𝑡,𝑙𝑖𝑞
𝐶𝑝𝑠𝑎𝑡 = Eq. 4.3.9-5
𝑇𝑑𝑝 − 𝑇𝑙𝑖𝑞,𝑖𝑛
The capacitance of the two streams are then estimated
4–182
TRNSYS 18 – Mathematical Reference
The next step is to determine the air-side overall heat transfer coefficient (UA) assuming that the coil surface
temperature is at the apparatus dewpoint temperature. First we must iterate to determine the apparatus
dewpoint equal to the temperature calculated by extending the line between the entering and leaving
conditions to the saturation curve.
The “slope” of temperature versus humidity ratio between entering and leaving states is calculated:
𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑇𝑎𝑖𝑟,𝑜𝑢𝑡
𝑠𝑙𝑜𝑝𝑒 = Eq. 4.3.9-9
𝑤𝑎𝑖𝑟,𝑖𝑛 − 𝑤𝑎𝑖𝑟,𝑜𝑢𝑡
We then iterate to find an apparatus dewpoint such that
𝑇𝑎𝑑𝑝 = 𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑠𝑙𝑜𝑝𝑒(𝑤𝑎𝑖𝑟,𝑖𝑛 − 𝑤𝑎𝑑𝑝 ) Eq. 4.3.9-10
With the apparatus dewpoint calculated, the bypass factor for the coil can be determined.
ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 − ℎ𝑎𝑝𝑑
𝐵𝑦𝑝𝑎𝑠𝑠𝐹𝑎𝑐𝑡𝑜𝑟 = Eq. 4.3.9-11
ℎ𝑎𝑖𝑟,𝑖𝑛 − ℎ𝑎𝑝𝑑
The air-side overall heat transfer coefficient is then calculated. If the enthalpy at the apparatus dewpoint is
less than or equal to the enthalpy of saturated air at the entering liquid temperature then the air-side overall
heat transfer coefficient is
𝑈𝐴𝑒𝑥𝑡 = 𝑈𝐴 ∙ 𝐶𝑝𝑎𝑖𝑟 Eq. 4.3.9-12
Otherwise it is
𝑈𝐴𝑒𝑥𝑡 = − ln(𝐵𝑦𝑝𝑎𝑠𝑠𝐹𝑎𝑐𝑡𝑜𝑟) 𝑚̇𝑎𝑖𝑟 (𝐶𝑝𝑎𝑖𝑟 + 𝑤𝑎𝑖𝑟,𝑖𝑛 𝐶𝑝𝑣𝑎𝑝 ) Eq. 4.3.9-13
Then the liquid-side overall heat transfer coefficient is calculated from the enthalpy-based overall coefficient
and the air-side coefficient.
𝐶𝑝𝑠𝑎𝑡
𝑈𝐴𝑖𝑛𝑡 =
1 𝐶𝑝 Eq. 4.3.9-14
− 𝑎𝑖𝑟
𝑈𝐴 𝑈𝐴𝑒𝑥𝑡
These calculated heat transfer coefficients are only calculated once per simulation.
On an iterative call to the cooling coil component, the model first checks if either the air flow rate or the
liquid flow rate is 0. If so, then the outlet conditions are set to the inlet conditions and the model exits. If
there is flow in both streams the model then determines if the coil is dry or wet.
If the dewpoint of the entering air is less than or equal to the entering liquid temperature then the coil is not
condensing and the dry coil calculations are performed. First the capacitances of the air and liquid streams
are calculated.
𝐶𝑎𝑖𝑟 = 𝑚̇𝑎𝑖𝑟 (𝐶𝑝𝑎𝑖𝑟 + 𝑤𝑎𝑖𝑟,𝑖𝑛 𝐶𝑝𝑣𝑎𝑝 ) Eq. 4.3.9-15
The outlet conditions are then determined based on the inlet conditions, the heat exchanger configuration
and the UA values calculated earlier from the design conditions. Since there is no condensation, the outlet
humidity ratio equals the entering humidity ratio. With the outlet conditions known the heat transfer rate can
be determined.
𝑄𝑡𝑜𝑡𝑎𝑙 = 𝐶𝑎𝑖𝑟 (𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑇𝑎𝑖𝑟,𝑜𝑢𝑡 ) Eq. 4.3.9-17
If there is condensation during the cooling process (entering liquid temperature < dewpoint temperature)
then the wet coil performance is calculated.
4–183
TRNSYS 18 – Mathematical Reference
The Cp at saturated conditions can be estimated from the dew point temperature at the entering air
conditions, the saturated enthalpy at the dew point, the entering water temperature and the saturated air
enthalpy at the entering water temperature.
ℎ𝑠𝑎𝑡,𝑑𝑝 − ℎ𝑠𝑎𝑡.𝑙𝑖𝑞
𝐶𝑝𝑠𝑎𝑡 = Eq. 4.3.9-18
𝑇𝑑𝑝 − 𝑇𝑙𝑖𝑞,𝑖𝑛
The enthalpy UA and stream capacitances are determined.
1
𝑈𝐴ℎ =
𝐶𝑝𝑠𝑎𝑡 𝐶𝑝𝑎𝑖𝑟 Eq. 4.3.9-19
−
𝑈𝐴𝑖𝑛𝑡 𝑈𝐴𝑒𝑥𝑡
𝐶𝑎𝑖𝑟 = 𝑚̇𝑎𝑖𝑟 Eq. 4.3.9-20
𝐶𝑝𝑙𝑖𝑞
𝐶𝑙𝑖𝑞 = 𝑚̇𝑙𝑖𝑞 Eq. 4.3.9-21
𝐶𝑝𝑠𝑎𝑡
The leaving enthalpies are calculated based on the inlet conditions, the heat exchanger configuration and
the enthalpy UA value.
The entering and leaving external surface conditions are calculated from the air and water conditions and
the ratio of the resistances.
1
𝑈𝐴𝑖𝑛𝑡
𝑅𝑒𝑠𝑖𝑠𝑡𝑅𝑎𝑡𝑖𝑜 = Eq. 4.3.9-22
1 𝐶𝑝 1
+ 𝑎𝑖𝑟 ∙
𝑈𝐴𝑒𝑥𝑡 𝐶𝑝𝑠𝑎𝑡 𝑈𝐴𝑒𝑥𝑡
ℎ𝑠𝑎𝑡𝑠𝑢𝑟𝑓,𝑖𝑛 = ℎ𝑠𝑎𝑡𝑙𝑖𝑞,𝑜𝑢𝑡 + 𝑅𝑒𝑠𝑖𝑠𝑡𝑅𝑎𝑡𝑖𝑜(ℎ𝑎𝑖𝑟,𝑖𝑛 − ℎ𝑠𝑎𝑡𝑙𝑖𝑞,𝑜𝑢𝑡 ) Eq. 4.3.9-23
The saturation temperature of the inlet air is determined from the inlet surface saturation enthalpy and the
outlet air conditions are calculated from the enthalpies and surface conditions.
𝑄𝑡𝑜𝑡𝑎𝑙 = 𝑚̇𝑎𝑖𝑟 (ℎ𝑎𝑖𝑟,𝑖𝑛 − ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 ) Eq. 4.3.9-25
𝑄𝑡𝑜𝑡𝑎𝑙
𝑇𝑙𝑖𝑞,𝑜𝑢𝑡 = 𝑇𝑙𝑖𝑞,𝑖𝑛 + Eq. 4.3.9-26
𝑚̇𝑙𝑖𝑞 𝐶𝑝𝑙𝑖𝑞
The temperature effectiveness is calculated assuming that the temperature of the condensate is constant
and the specific heat of the moist air is constant.
𝐶𝑎𝑖𝑟 = 𝑚𝑎𝑖𝑟 (𝐶𝑝𝑎𝑖𝑟 + 𝑤𝑎𝑖𝑟,𝑖𝑛 𝐶𝑝𝑣𝑎𝑝 ) Eq. 4.3.9-27
𝑈𝐴𝑒𝑥𝑡
𝑁𝑇𝑈 = Eq. 4.3.9-28
𝐶𝑎𝑖𝑟
𝜀 = 1 − 𝑒 −𝑁𝑇𝑈 Eq. 4.3.9-29
Using the effectiveness relationship, the surface enthalpy and temperature at the end of the wet part of the
coil are determined.
ℎ𝑎𝑖𝑟,𝑖𝑛 − ℎ𝑎𝑖𝑟,𝑜𝑢𝑡
ℎ𝑠𝑎𝑡,𝑐𝑜𝑛𝑑 = ℎ𝑎𝑖𝑟,𝑖𝑛 − [ ] Eq. 4.3.9-30
𝜀
The condensate temperature is then calculated as the saturation temperature at the above saturation
enthalpy.
If the condensate temperature is less than the entering air dewpoint, then the leaving air temperature is
calculated using the effectiveness and the humidity ratio is determined from the leaving air temperature and
enthalpy.
𝑇𝑎𝑖𝑟,𝑜𝑢𝑡 = 𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝜀(𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑇𝑐𝑜𝑛𝑑 ) Eq. 4.3.9-31
Otherwise the leaving air humidity ratio is the inlet air humidity ratio and the outlet air temperature is
determined from the leaving air humidity ratio and the leaving air enthalpy.
4–184
TRNSYS 18 – Mathematical Reference
If the inlet air dewpoint temperature is less than the inlet air surface temperature then the coil is only partially
wet. In this case both the wet coil and the dry coil performance are calculated and the coil performance is
approximated with the higher of the totally wet and the totally dry coil total heat transfer.
𝑒 (−𝑁𝑇𝑈∙𝐶𝑟𝑎𝑡𝑖𝑜 ∙𝑒) −1
[ ] Eq. 4.3.9-41
𝑒∙𝐶
𝜀 = 1−𝑒
If the configuration is cross flow, with both streams mixed:
1
𝜀= Eq. 4.3.9-42
1 𝐶𝑟𝑎𝑡𝑖𝑜 1
[ + − ]
1 − 𝑒 −𝑁𝑇𝑈 1 − 𝑒 (−𝑁𝑇𝑈∙𝐶𝑟𝑎𝑡𝑖𝑜 ) −𝑁𝑇𝑈
If the configuration is cross flow, with the minimum capacitance stream unmixed:
−𝑁𝑇𝑈 ))
1 − 𝑒 (−𝐶𝑟𝑎𝑡𝑖𝑜 (1−𝑒 Eq. 4.3.9-43
𝜀=
𝐶𝑟𝑎𝑡𝑖𝑜
If the configuration is cross flow, with the maximum capacitance stream unmixed:
4–185
TRNSYS 18 – Mathematical Reference
1−𝑒 (−𝑁𝑇𝑈∙𝐶𝑟𝑎𝑡𝑖𝑜 )
[−( )] Eq. 4.3.9-44
𝐶
𝜀 = 1−𝑒
With the effectiveness known, the leaving conditions are calculated.
𝑄𝑚𝑎𝑥 = 𝐶𝑚𝑖𝑛 (𝑖𝑛1 − 𝑖𝑛2 ) Eq. 4.3.9-45
𝑄𝑚𝑎𝑥
𝑜𝑢𝑡1 = 𝑖𝑛1 − 𝜀 Eq. 4.3.9-46
𝐶1
𝑄𝑚𝑎𝑥
𝑜𝑢𝑡2 = 𝑖𝑛2 + 𝜀 Eq. 4.3.9-47
𝐶2
4.3.9.5. References
1. Brandemeuhl, M. J. 1993 HVAC2 Toolkit: Algorithms and Subroutines for Secondary HVAC
Systems Energy Calculations, ASHRAE.
2. IBPSA BuildSim-2004. 2004. Boulder Colorado: An Inprovement of ASHRAE Secondary HVAC
Toolkit Simple Cooling Coil Model for Building Simulation, Rahul J Chillar, Richard J Liesen, M&IE, UIUC.
4–186
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] The humidity mode determines whether the absolute humidity (=1)
or relative humidity (=2) ratio of the air stream is an input.
2 Design Inlet Fluid [C] The temperature of the fluid inlet to the cooling coil at the
Temperature conditions used to determine the design coil capacities.
3 Design Inlet Fluid Flow [kg/h] The flow rate of the fluid inlet to the cooling coil at the conditions
Rate used to determine the design coil capacities.
4 Design Inlet Air [C] The temperature of the air inlet to the cooling coil at the conditions
Temperature used to determine the design coil capacities.
5 Design Inlet Air [-] The absolute humidity ratio of the air inlet to the cooling coil at the
Humidity Ratio conditions used to determine the design coil capacities.
6 Design Inlet Air Flow [kg/h] The flow rate of the air inlet to the cooling coil at the conditions
Rate used to determine the design coil capacities.
7 Design Total Cooling [kJ/h] The total cooling capacity of the cooling coil at the inlet air and fluid
Capacity properties above.
8 Design Sensible [kJ/h] The sensible cooling capacity of the cooling coil at the inlet air and
Cooling fluid properties above.
9 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing through the cooling coil.
10 Heat Exchanger [-] The parameter denotes the configuration of the cooling coil
Configuration (Counterflow = 1; Parallelflow = 2; Crossflow - both unmixed = 3;
Crossflow - both mixed = 4; Crossflow - minimum capacity unmixed
= 5; Crossflow - maximum capacity unmixed = 6)
INPUTS
1 Inlet Fluid Temperature [C] The temperature of the fluid entering the cooling coil.
2 Inlet Fluid Flow Rate [kg/h] The flow rate of the fluid entering the cooling coil.
3 Inlet Air Temperature [C] The temperature of the air entering the cooling coil.
4 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the cooling coil.
4–187
TRNSYS 18 – Mathematical Reference
5 Inlet Air Relative [%] The percent relative humidity of the air entering the cooling coil.
Humidity
6 Inlet Air Flow Rate [kg/h] The flow rate of the air entering the cooling coil.
7 Inlet Air Pressure [atm] The pressure (in atmospheres) of the air entering the cooling coil.
OUTPUTS
1 Outlet Fluid [C] The temperature of the fluid exiting the cooling coil.
Temperature
2 Outlet Fluid Flow Rate [kg/h] The flow rate of the fluid exiting the cooling coil.
3 Outlet Air Temperature [C] The temperature of the air exiting the cooling coil.
4 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the cooling coil.
Ratio
5 Outlet Air Relative [%] The percent relative humidity of the air exiting the cooling coil.
Humidity
6 Outlet Air Flow Rate [kg/h] The flow rate of the air exiting the cooling coil.
7 Outlet Air Pressure [atm] The pressure (in atmospheres) of the air exiting the cooling coil.
8 Total Cooling [kJ/h] The total amount of cooling of the air stream.
10 Fraction Wet [-] The fraction of the coil that is considered 'wet' in the calculations (0
= completely dry; 1= completely wet).
TEXT FIELDS
4–188
TRNSYS 18 – Mathematical Reference
Where
𝑈𝐴
𝑈𝐴ℎ = Eq. 4.3.10-2
𝐶𝑝
With UA = conventional heat transfer coefficient and Cp = specific heat across the enthalpy difference.
When using fictitious enthalpies, a corresponding fictitious specific heat must be defined. UA h can be
calculated from a combination of series or parallel enthalpy resistances, similar to temperature resistances.
Then enthalpy capacitance rates related heat transfer to the enthalpy change of a fluid between inlet and
outlet. On the air side, the enthalpy capacity rate is air mass flow rate. While on the liquid side, the enthalpy
capacitance rate is based on the enthalpy of saturated air at the liquid temperature.
From the coil design parameters, the dewpoint and saturated liquid enthalpy at the rating point are
calculated. The leaving air enthalpies are calculated from the design capacities.
𝑄𝑡𝑜𝑡𝑎𝑙
ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 = ℎ𝑎𝑖𝑟,𝑖𝑛 − Eq. 4.3.10-3
𝑚̇𝑎𝑖𝑟
𝑄𝑡𝑜𝑡𝑎𝑙 − 𝑄𝑠𝑒𝑛𝑠𝑖𝑏𝑙𝑒
ℎ𝑎𝑖𝑟,𝑠𝑎𝑡𝑢𝑟𝑎𝑡𝑒𝑑 = ℎ𝑎𝑖𝑟,𝑖𝑛 − [ ] Eq. 4.3.10-4
𝑚̇𝑎𝑖𝑟
The outlet air humidity ratio is calculated from the inlet air temperature and the saturated air humidity ratio.
The outlet air temperature is then calculated from the outlet air humidity ratio and the outlet air enthalpy.
The Cp at saturated conditions can be estimated from the dew point temperature at the entering air
conditions, the saturated enthalpy at the dew point, the entering water temperature and the saturated air
enthalpy at the entering water temperature.
ℎ𝑠𝑎𝑡,𝑑𝑝 − ℎ𝑠𝑎𝑡,𝑙𝑖𝑞
𝐶𝑝𝑠𝑎𝑡 = Eq. 4.3.10-5
𝑇𝑑𝑝 − 𝑇𝑙𝑖𝑞,𝑖𝑛
4–189
TRNSYS 18 – Mathematical Reference
The next step is to determine the air-side overall heat transfer coefficient (UA) assuming that the coil surface
temperature is at the apparatus dewpoint temperature. First we must iterate to determine the apparatus
dewpoint equal to the temperature calculated by extending the line between the entering and leaving
conditions to the saturation curve.
The “slope” of temperature versus humidity ratio between entering and leaving states is calculated:
𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑇𝑎𝑖𝑟,𝑜𝑢𝑡
𝑠𝑙𝑜𝑝𝑒 = Eq. 4.3.10-9
𝑤𝑎𝑖𝑟,𝑖𝑛 − 𝑤𝑎𝑖𝑟,𝑜𝑢𝑡
We then iterate to find an apparatus dewpoint such that
𝑇𝑎𝑑𝑝 = 𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑠𝑙𝑜𝑝𝑒(𝑤𝑎𝑖𝑟,𝑖𝑛 − 𝑤𝑎𝑑𝑝 ) Eq. 4.3.10-10
With the apparatus dewpoint calculated, the bypass factor for the coil can be determined.
ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 − ℎ𝑎𝑝𝑑
𝐵𝑦𝑝𝑎𝑠𝑠𝐹𝑎𝑐𝑡𝑜𝑟 = Eq. 4.3.10-11
ℎ𝑎𝑖𝑟,𝑖𝑛 − ℎ𝑎𝑝𝑑
The air-side overall heat transfer coefficient is then calculated. If the enthalpy at the apparatus dewpoint is
less than or equal to the enthalpy of saturated air at the entering liquid temperature then the air-side overall
heat transfer coefficient is
𝑈𝐴𝑒𝑥𝑡 = 𝑈𝐴 ∙ 𝐶𝑝𝑎𝑖𝑟 Eq. 4.3.10-12
Otherwise it is
𝑈𝐴𝑒𝑥𝑡 = − ln(𝐵𝑦𝑝𝑎𝑠𝑠𝐹𝑎𝑐𝑡𝑜𝑟) 𝑚̇𝑎𝑖𝑟 (𝐶𝑝𝑎𝑖𝑟 + 𝑤𝑎𝑖𝑟,𝑖𝑛 𝐶𝑝𝑣𝑎𝑝 ) Eq. 4.3.10-13
Then the liquid-side overall heat transfer coefficient is calculated from the enthalpy-based overall coefficient
and the air-side coefficient.
𝐶𝑝𝑠𝑎𝑡
𝑈𝐴𝑖𝑛𝑡 =
1 𝐶𝑝 Eq. 4.3.10-14
− 𝑎𝑖𝑟
𝑈𝐴 𝑈𝐴𝑒𝑥𝑡
The coil area is estimated using some assumptions on the coil design.
The inside heat transfer coefficient for the tubes is calculated assuming an inside diameter of 0.0122 m and
a liquid velocity of 2 m/s. The heat transfer coefficient on the outside of the tubes is assumed to be constant
with a sensible value of 58 W/m 2K and a latent value of 82 W/m 2K. The fin efficiency is set to 0.92 based
on aluminum fins with 12 fins per inch and fin area of 90% of surface area. The inside to outside area ratio
is assumed at 0.07 since typical design area rations vary from 0.06 and 0.08. So the overall heat transfer
coefficient is
1
𝑈𝑜𝑣𝑒𝑟𝑎𝑙𝑙 =
1 1 Eq. 4.3.10-15
+
ℎ𝑖𝑛𝑠𝑖𝑑𝑒 ∙ 𝐴𝑟𝑒𝑎𝑅𝑎𝑡𝑖𝑜 ℎ𝑜𝑢𝑡𝑠𝑖𝑑𝑒 ∙ 𝐹𝑖𝑛𝐸𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑐𝑦
Giving an estimate of the coil surface area from
𝑈𝐴𝑡𝑜𝑡𝑎𝑙
𝐴𝑟𝑒𝑎 = Eq. 4.3.10-16
𝑈𝐴𝑜𝑣𝑒𝑟𝑎𝑙𝑙
These calculated heat transfer coefficients are only calculated once per simulation.
4–190
TRNSYS 18 – Mathematical Reference
On an iterative call to the cooling coil component, the model first checks if either the air flow rate or the
liquid flow rate is 0. If so, then the outlet conditions are set to the inlet conditions and the model exits.
If there is flow in both streams the model then the UA values are adjusted for the inlet conditions based on
work by Wetter (3).
𝑥𝑎 = 1 + 0.004769(𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑇𝑎𝑖𝑟,𝑖𝑛,𝑟𝑎𝑡𝑒𝑑 ) Eq. 4.3.10-17
0.8
𝑚̇𝑎𝑖𝑟
𝑈𝐴𝑒𝑥𝑡 = 𝑈𝐴𝑒𝑥𝑡,𝑟𝑎𝑡𝑒𝑑 𝑥𝑎 [ ] Eq. 4.3.10-18
𝑚̇𝑎𝑖𝑟,𝑟𝑎𝑡𝑒𝑑
0.014
𝑥𝑤 = 1 + [ ] (𝑇𝑙𝑖𝑞,𝑖𝑛 − 𝑇𝑙𝑖𝑞,𝑖𝑛,𝑟𝑎𝑡𝑒𝑑 ) Eq. 4.3.10-19
1 + 0.014𝑇𝑙𝑖𝑞,𝑖𝑛,𝑟𝑎𝑡𝑒𝑑
0.85
𝑚̇𝑙𝑖𝑞
𝑈𝐴𝑖𝑛𝑡 = 𝑈𝐴𝑖𝑛𝑡,𝑟𝑎𝑡𝑒𝑑 𝑥𝑤 [ ] Eq. 4.3.10-20
𝑚̇𝑙𝑖𝑞,𝑟𝑎𝑡𝑒𝑑
1
𝑈𝐴𝑡𝑜𝑡 =
1 1 Eq. 4.3.10-21
+
𝑈𝐴𝑒𝑥𝑡 𝑈𝐴𝑖𝑛𝑡
The inside and outside heat transfer coefficients are then determined from the corrected UAs and the
estimated surface area.
The completely dry and completely wet coil calculations are the same as the Type 123 coil model. The
difference is in the calculations when the coil is partially wet. Since we have an estimate of the total coil
surface area it is possible to calculate the performance of the wet and dry portions of the coil by adjusting
the UAs based on the fraction wet. The calculations are based on the idea that the leaving conditions from
the dry portion of the coil would be the inlet conditions to the wet portion of the coil. The coil surface
temperature at this boundary condition should be the same as the dewpoint at the entering air conditions.
The model iterates on the fraction wet until the surface temperature at the boundary equals the dewpoint.
(This is actually a double iteration since at each guess of fraction wet the code must iterate on the air
temperature to find the corrected liquid temperature at the boundary.)
4.3.10.5. References
1. Brandemeuhl, M. J. 1993 HVAC2 Toolkit: Algorithms and Subroutines for Secondary HVAC
Systems Energy Calculations, ASHRAE.
2. IBPSA BuildSim-2004. 2004. Boulder Colorado: An Inprovement of ASHRAE Secondary HVAC
Toolkit Simple Cooling Coil Model for Building Simulation, Rahul J Chillar, Richard J Liesen, M&IE, UIUC.
3. Wetter, M. 1999 Simulation Model Finned Water-to-Air Coil without Condensation, LBNL-42355
4–191
TRNSYS 18 – Mathematical Reference
1 Design Atmospheric [atm] The pressure of the atmosphere for the cooling tower air at design
Pressure conditions.
2 Design Inlet Fluid [C] The temperature of the fluid entering the cooling tower at design
Temperature conditions.
3 Design Outlet Fluid [C] The temperature of the fluid temperature exiting the cooling tower
Temperature at design conditions.
4 Design Fluid Flow Rate [kg/h] The flow rate of the fluid through the tower at design conditions.
5 Design Entering Air [C] The wet bulb temperature of the air entering the cooling tower at
Wet Bulb Temperature design conditions.
6 Design Air Flow Rate [kg/h] The flow rate of the air through the cooling tower at design
conditions.
7 Design Fan Power [kJ/h] The power consumed by the fan at design conditions.
8 Natural Convection [-] The fraction of the design airflow though the tower when the fan is
Airflow Fraction off and the tower is operating in natural convection mode.
9 Natural Convection [-] The fraction of the design capacity of the tower when the fan is off
Capacity Fraction and the tower is operating in natural convection mode.
INPUTS
1 Entering Fluid [C] The temperature of the fluid entering the cooling tower.
Temperature
2 Entering Fluid Flow [kg/h] The flow rate of fluid entering the cooling tower.
Rate
3 Entering Air Wet Blub [C] The wet bulb temperature of the air entering the cooling tower.
Temperature
4 Atmospheric Pressure [atm] The atmospheric pressure of the air in the cooling tower.
5 Fan Control Signal [-] The control signal for the fan in the cooling tower.
4–192
TRNSYS 18 – Mathematical Reference
OUTPUTS
1 Leaving Fluid [C] The temperature of the fluid leaving the cooling tower.
Temperature
2 Leaving Fluid Flow [kg/h] The flow rate of water exiting the tower sump.
Rate
3 Leaving Air Wet Bulb [C] The wet bulb temperature of the air leaving the cooling tower.
Temperature
4 Leaving Air Flow Rate [kg/h] The flow rate of the air leaving the cooling tower.
6 Heat Rejection [kJ/h] The total heat rejected to the cooling tower.
UA at Design [kJ/h K] The calculated UA based on the design full flow conditions.
Conditions
4–193
TRNSYS 18 – Mathematical Reference
then the performance is calculated using the natural convection airflow rate and UA value. Otherwise the
performance with the fan operational airflow rate and UA value is calculated.
The inlet saturated air enthalpy is calculated based on the inlet dry bulb and a relative humidity of 100%.
The capacity rate of the water stream is determined.
𝐶𝑤 = 𝐶𝑝𝑤 𝑚̇𝑤 Eq. 4.3.11-1
The component then guesses an outlet wetbulb temperature and calculates the tower performance for
those conditions.
The outlet saturated air enthalpy is calculated based on the outlet wetbulb temperature and a relative
humidity of 100%.
A fictitious specific heat and capacity rate are calculated from the saturated enthalpies and airflow rate.
ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 − ℎ𝑎𝑖𝑟,𝑖𝑛
𝐶𝑝𝑎𝑖𝑟,𝑓𝑖𝑐𝑡𝑖𝑡𝑖𝑜𝑢𝑠 = Eq. 4.3.11-2
𝑇𝑤𝑏,𝑜𝑢𝑡 − 𝑇𝑤𝑏,𝑖𝑛
𝐶𝑎𝑖𝑟 = 𝐶𝑝𝑎𝑖𝑟,𝑓𝑖𝑐𝑡𝑖𝑡𝑖𝑜𝑢𝑠 𝑚̇𝑎𝑖𝑟 Eq. 4.3.11-3
The maximum and minimum of the water and air capacity rates are determined and the ratio of the capacity
rates is calculated.
The design UA value is adjusted based on the fictitious specific heat.
𝐶𝑝𝑎𝑖𝑟,𝑓𝑖𝑐𝑡𝑖𝑡𝑖𝑜𝑢𝑠
𝑈𝐴𝑓𝑖𝑐𝑡𝑖𝑡𝑖𝑜𝑢𝑠 = 𝑈𝐴𝑑𝑒𝑠𝑖𝑔𝑛 Eq. 4.3.11-4
𝐶𝑝𝑎𝑖𝑟
The NTU for the adjust UA value is calculated.
If Cmin = 0 then NTU = 1e15 ; otherwise
𝑈𝐴𝑓𝑖𝑐𝑡𝑖𝑡𝑖𝑜𝑢𝑠
𝑁𝑇𝑈 = Eq. 4.3.11-5
𝐶𝑚𝑖𝑛
The effectiveness of the tower with the current conditions is calculated from the NTU.
If the ratio of the capacity rates is greater than 0.995 then
𝑁𝑇𝑈
𝜀= Eq. 4.3.11-6
𝑁𝑇𝑈 + 1
Otherwise
𝑒 = 𝑒 (−𝑁𝑇𝑈(1−𝐶𝑟𝑎𝑡𝑖𝑜 )) Eq. 4.3.11-7
1−𝑒
𝜀= Eq. 4.3.11-8
1 − 𝑒 ∙ 𝐶𝑟𝑎𝑡𝑖𝑜
With the effectiveness, the total heat transfer and leaving wet bulb temperature are calculated.
𝑄 = 𝜀𝐶𝑚𝑖𝑛 (𝑇𝑤,𝑖𝑛 − 𝑇𝑤𝑏,𝑖𝑛 ) Eq. 4.3.11-9
𝑄
𝑇𝑤𝑏,𝑜𝑢𝑡 = 𝑇𝑤𝑏,𝑖𝑛 + Eq. 4.3.11-10
𝐶𝑎𝑖𝑟
The component iterates until the guessed and calculated outlet wetbulb temperatures agree and then the
outlet water temperature is calculated.
𝑄
𝑇𝑤,𝑜𝑢𝑡 = 𝑇𝑤,𝑖𝑛 − Eq. 4.3.11-11
𝐶𝑤𝑎𝑡𝑒𝑟
4–194
TRNSYS 18 – Mathematical Reference
1 Design Atmospheric [atm] The pressure of the atmosphere for the cooling tower air at design
Pressure conditions.
2 Design Inlet Fluid [C] The temperature of the fluid entering the cooling tower at design
Temperature conditions.
3 Design Outlet Fluid [C] The temperature of the fluid temperature exiting the cooling tower
Temperature at design conditions.
4 Design Fluid Flow Rate [kg/h] The flow rate of the fluid through the tower at design conditions.
5 Design Entering Air [C] The wet bulb temperature of the air entering the cooling tower at
Wet Bulb Temperature design conditions.
6 Design Air Flow Rate [kg/h] The flow rate of the air through the cooling tower at design
conditions.
7 Design Fan Power [kJ/h] The power consumed by the fan at design conditions.
8 Low Speed Airflow [-] The fraction of the design flow rate of the air through the tower
Fraction when the fan is running in low speed.
9 Low Speed Capacity [-] The fraction of the design capacity of the tower when the fan is
Fraction operating at low speed.
10 Natural Convection [-] The fraction of the design airflow though the tower when the fan is
Airflow Fraction off and the tower is operating in natural convection mode.
11 Natural Convection [-] The fraction of the design capacity of the tower when the fan is off
Capacity Fraction and the tower is operating in natural convection mode.
INPUTS
1 Entering Fluid [C] The temperature of the fluid entering the cooling tower.
Temperature
2 Entering Fluid Flow [kg/h] The flow rate of fluid entering the cooling tower.
Rate
4–195
TRNSYS 18 – Mathematical Reference
3 Entering Air Wet Blub [C] The wet bulb temperature of the air entering the cooling tower.
Temperature
4 Atmospheric Pressure [atm] The atmospheric pressure of the air in the cooling tower.
5 Fan Control Signal [-] The control signal for the fan in the cooling tower.
OUTPUTS
1 Leaving Fluid [C] The temperature of the fluid leaving the cooling tower.
Temperature
2 Leaving Fluid Flow [kg/h] The flow rate of water exiting the tower sump.
Rate
3 Leaving Air Wet Bulb [C] The wet bulb temperature of the air leaving the cooling tower.
Temperature
4 Leaving Air Flow Rate [kg/h] The flow rate of the air leaving the cooling tower.
UA at Design [kJ/h K] The calculated UA based on the design full flow conditions.
Conditions
4–196
TRNSYS 18 – Mathematical Reference
4–197
TRNSYS 18 – Mathematical Reference
1 Design Atmospheric [atm] The pressure of the atmosphere for the cooling tower air at design
Pressure conditions.
2 Design Inlet Fluid [C] The temperature of the fluid entering the cooling tower at design
Temperature conditions.
3 Design Outlet Fluid [C] The temperature of the fluid temperature exiting the cooling tower
Temperature at design conditions.
4 Design Fluid Flow Rate [kg/h] The flow rate of the fluid through the tower at design conditions.
5 Design Entering Air [C] The wet bulb temperature of the air entering the cooling tower at
Wet Bulb Temperature design conditions.
6 Design Air Flow Rate [kg/h] The flow rate of the air through the cooling tower at design
conditions.
7 Design Fan Power [kJ/h] The power consumed by the fan at design conditions.
8 Low Speed Airflow [-] The fraction of the design flow rate of the air through the tower
Fraction when the fan is running in low speed.
9 Low Speed Capacity [-] The fraction of the design capacity of the tower when the fan is
Fraction operating at low speed.
10 Natural Convection [-] The fraction of the design airflow though the tower when the fan is
Airflow Fraction off and the tower is operating in natural convection mode.
11 Natural Convection [-] The fraction of the design capacity of the tower when the fan is off
Capacity Fraction and the tower is operating in natural convection mode.
INPUTS
1 Entering Fluid [C] The temperature of the fluid entering the cooling tower.
Temperature
4–198
TRNSYS 18 – Mathematical Reference
2 Entering Fluid Flow [kg/h] The flow rate of fluid entering the cooling tower.
Rate
3 Entering Air Wet Blub [C] The wet bulb temperature of the air entering the cooling tower.
Temperature
4 Atmospheric Pressure [atm] The atmospheric pressure of the air in the cooling tower.
5 Leaving Fluid Setpoint [C] The setpoint for the fluid leaving the tower. The tower will
operature at the lowest speed that creates a fluid leaving
temperature equal to or less than the setpoint.
OUTPUTS
1 Leaving Fluid [C] The temperature of the fluid leaving the cooling tower.
Temperature
2 Leaving Fluid Flow [kg/h] The flow rate of water exiting the tower sump.
Rate
3 Leaving Air Wet Bulb [C] The wet bulb temperature of the air leaving the cooling tower.
Temperature
4 Leaving Air Flow Rate [kg/h] The flow rate of the air leaving the cooling tower.
6 Fan Speed [-] The speed that the tower fan is operating to maintain the setpoint.
UA at Design [kJ/h K] The calculated UA based on the design full flow conditions.
Conditions
4–199
TRNSYS 18 – Mathematical Reference
4–200
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] This parameter indicates whether the absolute humidity ratio inputs
to this model will be used for the moist air calculations (mode 1) or
whether the percent relative humidity inputs will be used (mode 2).
2 Logical Unit – Cooling [-] The logical unit which will be assigned to the data file which
Data contains the heat pump cooling performance data. Logical units
must be unique integers greater than 10 in any TRNSYS input file.
3 Logical Unit – Heating [-] The logical unit which will be assigned to the data file which
Data contains the heat pump heating performance data. Logical units
must be unique integers greater than 10 in any TRNSYS input file.
4 Number of Outdoor [-] The number of outdoor ambient dry bulb temperatures for which
Dry-Bulb Steps – data is provided in the cooling performance data file.
Cooling
5 Number of Indoor Dry- [-] The number of return air (indoor air) dry bulb temperatures for
Bulb Steps – Cooling which cooling performance data is provided in the associated data
file.
6 Number of Indoor Wet- [-] The number of return air (jndoor air) wet bulb temperatures for
Bulb Steps – Cooling which cooling data is provided in the associated performance data
file.
7 Number of Outdoor [-] The number of ambient air dry bulb temperatures for which heating
Dry-Bulb Temperatures performance data is supplied in the associated data file.
– Heating
8 Number of Indoor [-] The number of return air (indoor air) dry bulb temperatures for
Temperatures – which heating performance data is supplied in the associated data
Heating file.
9 Number of Air Flow [-] The number of air flow rate steps for which heating and cooling
Steps performance data is supplied in the associated data file.
INPUTS
1 Inlet Air Temperature – [C] The dry bulb temperature of the air entering the indoor coil of the
Indoor Coil heat pump section.
2 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the indoor coil of the
– Indoor Coil heat pump section.
4–201
TRNSYS 18 – Mathematical Reference
3 Inlet Air Relative [%] The percent relative humidity of the air entering the indoor coil of
Humidity – Indoor Coil the heat pump section.
4 Indoor Coil Air Flow [kg/h] The flow rate of dry air entering the indoor coil of the heat pump
section.
5 Inlet Air Pressure – [atm] The absolute pressure of the air entering the indoor coil of the heat
Indoor Coil pump section.
6 Indoor Coil Pressure [atm] The pressure drop of the air across the indoor coil of the heat
Drop pump section.
7 Inlet Air Temperature – [C] The dry bulb temperature of the air entering the outdoor coil of the
Outdoor Coil heat pump section.
8 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the outdoor coil of
– Outdoor Coil the heat pump section.
9 Inlet Air Relative [%] The percent relative humidity of the air entering the outdoor coil of
Humidity – Outdoor the heat pump section.
Coil
10 Outdoor Coil Air Flow [kg/h] The flow rate of dry air entering the outdoor coil of the heat pump
section.
11 Inlet Air Pressure – [atm] The absolute pressure of the air entering the outdoor coil of the
Outdoor Coil heat pump section.
12 Outdoor Coil Pressure [atm] The pressure drop of the air across the outdoor coil of the heat
Drop pump section.
13 Cooling Control Signal [-] The control signal for cooling operation: ctrl < 0.5: cooling mode is
off, ctrl >= 0.5: cooling mode is on.
14 Heating Control Signal [-] The control signal for heating operation: ctrl < 0.5: heating mode is
off, ctrl >= 0.5: heating mode is on.
OUTPUTS
1 Outlet Air Temperature [C] The dry bulb temperature of the air exiting the indoor coil of the
– Indoor Coil heat pump.
2 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the indoor coil of the
Ratio – Indoor Coil heat pump.
3 Outlet Air Relative [%] The percent relative humidity of the air exiting the indoor coil of the
Humidity – Indoor Coil heat pump.
4 Indoor Coil Flow Rate [kg/h] The flow rate of dry air exiting the indoor coil of the heat pump.
5 Outlet Air Pressure – [atm] The absolute air pressure of the air exiting the indoor coil of the
Indoor Coil heat pump.
6 Outlet Air Temperature [C] The dry bulb temperature of the air exiting the outdoor coil of the
– Outdoor Coil heat pump.
4–202
TRNSYS 18 – Mathematical Reference
7 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the outdoor coil of the
Ratio – Outdoor Coil heat pump.
8 Outlet Air Relative [%] The percent relative humidity of the air exiting the outdoor coil of
Humidity – Outdoor the heat pump.
Coil
9 Outdoor Coil Air Flow [kg/h] The flow rate of dry air exiting the outdoor coil of the heat pump.
Rate
10 Outlet Air Pressure – [atm] The absolute air pressure of the air exiting the outdoor coil of the
Outdoor Coil heat pump.
11 Total Cooling Rate [kJ/h] The rate at which energy (both sensible and latent) is removed
from the conditioned air stream of the indoor coil in cooling mode.
12 Sensible Cooling Rate [kJ/h] The rate at which sensible heat is removed from the conditioned air
stream of the indoor coil in cooling mode.
13 Latent Cooling Rate [kJ/h] The rate at which latent energy is removed from the conditioned air
stream of the indoor coil in cooling mode.
14 Total Heating Rate [kJ/h] The rate at which heat is added to the conditioned air stream in the
indoor air coil by the heat pump.
17 EER [-] The energy efficiency rating of the heat pump during the timestep.
Rated Total Cooling [kJ/h] The total cooling capacity of the DX coil at 26.7 C EDB, 19.4 C EWB,
Capacity and 35 C ODB.
Rated Sensible [kJ/h] The sensible cooling capacity of the DX coil at 26.7 C EDB, 19.4 C
Cooling Capacity EWB, and 35 C ODB.
Rated Heating [kJ/h] The heating capacity of the DX coil at 21.1 C EDB and 8.33 C ODB.
Capacity
4–203
TRNSYS 18 – Mathematical Reference
4.3.14.4. Nomenclature
COP [-] Device coefficient of performance
m air [kg/h] Mass flow rate of air across the indoor coil
4–204
TRNSYS 18 – Mathematical Reference
The latent cooling is computed as the difference between the total and the sensible cooling values. The
evaporator and condenser energies are set according to:
𝑄̇𝑒𝑣𝑎𝑝 = 𝑄̇𝑡𝑜𝑡,𝑐𝑜𝑜𝑙 Eq. 4.3.14-3
4–205
TRNSYS 18 – Mathematical Reference
𝑄̇𝑡𝑜𝑡,𝑐𝑜𝑜𝑙
𝐶𝑂𝑃 = Eq. 4.3.14-6
̇
𝑃𝑐𝑜𝑚𝑝
𝑄̇𝑡𝑜𝑡,ℎ𝑒𝑎𝑡
𝐶𝑂𝑃 = Eq. 4.3.14-9
̇
𝑃𝑐𝑜𝑚𝑝
The condenser energy is removed from the outdoor coil air stream:
𝑄̇𝑡𝑜𝑡,ℎ𝑒𝑎𝑡
ℎ𝑎𝑖𝑟,𝑂𝑢𝑡𝑑𝑜𝑜𝑟𝐶𝑜𝑖𝑙𝑂𝑢𝑡 = ℎ𝑎𝑖𝑟,𝑂𝑢𝑡𝑑𝑜𝑜𝑟𝐶𝑜𝑖𝑙𝐼𝑛 − Eq. 4.3.14-10
𝑚̇𝑎𝑖𝑟
4–206
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] This parameter indicates whether the inputs for absolute humidity
ratio (this parameter = 1) or percent relative humidity (this
parameter = 2) should be used to set the inlet air conditions.
2 Cooling Fluid Specific [kJ/kg K] The specific heat of the liquid stream flowing through the fan coil
Heat cooling coils.
3 Heating Fluid Specific [kJ/kg K] The specific heat of the liquid stream flowing through the fan coil
Heat heating coils.
4 Rated Volumetric Air [l/s] The volumetric flow rate of air through the device at its rated
Flow Rate conditions.
5 Rated Fan Power [kJ/h] The fan power draw at its rated conditions.
6 Logical Unit – Cooling [-] The logical unit which will be assigned to the external data file
Performance containing the cooling performance data. Logical units must be
unique integers in each TRNSYS simulation. (Simulation Studio will
automatically assign this number.)
7 Number of Dry Bulb [-] The number of air dry bulb temperatures for which cooling coil
Temperatures – performance data will be provided in the user-provided external
Cooling data file.
8 Number of Wet Bulb [-] The number of air wet bulb temperatures for which cooling coil
Temperatures – performance data will be provided in the user-provided external
Cooling data file.
9 Number of Air Flows – [-] The number of normalized air flow rates for which cooling coil
Cooling performance data will be provided in the user-provided external
data file.
10 Number of Liquid [-] The number of liquid (water typically) temperatures for which
Temperatures – cooling coil performance data will be provided in the user-provided
Cooling external data file.
11 Number of Liquid Flow [-] The number of liquid flow rates for which cooling coil performance
Rates – Cooling data will be provided in the user-provided external data file.
12 Logical Unit – Heating [-] The logical unit which will be assigned to the external data file
Performance containing the heating performance data. Logical units must be
unique integers in each TRNSYS simulation. (Simulation Studio will
automatically assign this number.)
4–207
TRNSYS 18 – Mathematical Reference
13 Number of Air [-] The number of air dry bulb temperatures for which heating coil
Temperatures – performance data will be provided in the user-provided external
Heating data file.
14 Number of Air Flows – [-] The number of normalized air flow rates for which heating coil
Heating performance data will be provided in the user-provided external
data file.
15 Number of Liquid [-] The number of liquid (water typically) temperatures for which
Temperatures – heating coil performance data will be provided in the user-provided
Heating external data file.
16 Number of Liquid Flow [-] The number of liquid flow rates for which heating coil performance
Rates – Heating data will be provided in the user-provided external data file.
17 Logical Unit – Fan [-] The logical unit which will be assigned to the external data file
Corrections containing the fan performance data.
18 Number of Fan Speeds [-] The number of normalized fan speeds for which fan performance
data will be provided in the user-provided external data file.
20 Fraction of Fan Heat to [-] The fraction of the fan power/heat that ends up in the air stream.
Air Values are typically zero for fans motors mounted outside of the air
stream and 1 for fan motors mounted within the air stream.
INPUTS
1 Cooling Fluid Inlet [C] The temperature of the liquid stream fluid flowing into the fan coil
Temperature unit's cooling coils.
2 Cooling Fluid Flow [kg/h] The flow rate of the cooling liquid stream fluid flowing into the fan
Rate coil unit's cooling coils.
3 Heating Fluid Inlet [C] The temperature of the liquid stream fluid flowing into the fan coil
Temperature unit's heating coils.
4 Heating Fluid Flow [kg/h] The flow rate of the heating liquid stream fluid flowing into the fan
Rate coil unit's heating coils.
5 Return Air [C] The dry-bulb temperature of the return air entering the fan coil.
Temperature This return air gets mixed with a user-specified fraction of outside
air.
6 Return Air Humidity [-] The absolute humidity ratio of the return air entering the fan coil.
Ratio This return air gets mixed with a user-specified fraction of outside
air.
7 Return Air Relative [%] The percent relative humidity of the return air entering the fan coil.
Humidity This return air gets mixed with a user-specified fraction of outside
air.
8 Return Air Pressure [atm] The absolute pressure of the air streams entering the fan coil.
9 Air-Side Pressure Rise [atm] The pressure rise of the air stream as it flows across the fan.
– Fan
4–208
TRNSYS 18 – Mathematical Reference
10 Air-Side Pressure Drop [atm] The pressure drop of the air stream as it passes across the coils.
– Coils
11 Fresh Air Temperature [C] The dry bulb temperature of the ambient air entering the fan coil for
mixing with the return air.
12 Fresh Air Humidity [-] The absolute humidity ratio of the ambient air entering the fan coil
Ratio for mixing with the return air.
13 Fresh Air Relative [%] The percent relative humidity of the ambient air entering the fan coil
Humidity for mixing with the return air.
14 Heating Control Signal [-] The control signal for heating operation: 0 = Off and 1 = On.
15 Cooling Control Signal [-] The control signal for cooling operation: 0 = Off and 1 = On.
16 Fan Control Signal [-] The control signal for fan operation: 0 = Off, 1 = Full On, Values
between 0 and 1 set the fraction of rated fan speed.
17 Fraction of Outside Air [-] The control signal for outside air mixing: 0 = No outside air and
100% return air and 1 = 100% outside air and no return air. Values
between 0 and 1 set the fraction of outside air.
OUTPUTS
1 Cooling Fluid Outlet [C] The temperature of the liquid stream exiting the fan coil unit's
Temperature cooling coils.
2 Outlet Cooling Fluid [kg/h] The flow rate of the liquid stream exiting the fan coil unit's cooling
Flow Rate coils.
3 Heating Fluid Outlet [C] The temperature of the liquid stream exiting the fan coil unit's
Temperature heating coils.
4 Outlet Heating Fluid [kg/h] The flow rate of the liquid stream exiting the fan coil unit's heating
Flow Rate coils.
5 Outlet Air Temperature [C] The dry bulb temperature of the air exiting the fan coil.
6 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the fan coil.
Ratio
7 Outlet Air Relative [%] The percent relative humidity of the air exiting the fan coil.
Humidity
8 Outlet Air Flow Rate [kg/h] The flow rate of dry air exiting the fan coil.
9 Outlet Air Pressure [atm] The absolute pressure of the air exiting the fan coil.
10 Total Cooling Rate [kJ/h] The rate at which energy is removed from the air stream (sensible
plus latent) across the cooling coil.
11 Sensible Cooling Rate [kJ/h] The rate at which sensible energy is removed from the air stream
across the cooling coil.
4–209
TRNSYS 18 – Mathematical Reference
12 Total Heating Rate [kJ/h] The rate at which energy is added to the air stream across the
heating coil.
13 Fan Power [kJ/h] The rate at which the fan consumes energy.
14 Fan Heat to Air Stream [kJ/h] The rate at which energy is added to the air stream by the fan.
15 Fan Heat to Ambient [kJ/h] The rate at which energy is rejected to the ambient by the fan.
16 Condensate [C] The temperature of the condensed water from the air stream
Temperature leaving the fan coil.
17 Condensate Flow Rate [kg/h] The rate at which condensed water from the air stream exits the
fan coil.
18 Conditioning Energy [kJ/h] The rate at which energy is transferred to the air stream by the
Rate coils; positive implies energy added to the air stream (heating).
This term does not include energy added by the fan or energy
associated with the condensate draining from the unit but is strictly
a measure of the coil heat transfer.
4–210
TRNSYS 18 – Mathematical Reference
4.3.15.4. Nomenclature
Cp air [kJ/kg.K] The specific heat of the air flowing through the fan coil
f toAir [0..1] Fraction of fan power that results in an air-stream temperature rise
hair , fan [kJ/kg] Enthalpy of air exiting the fan section of the fan coil
hair ,mixed [kJ/kg] Enthalpy of air exiting the mixing section of the fan coil
hair ,out [kJ/kg] Enthalpy of air exiting the fan coil.
hair ,outside [kJ/kg] Enthalpy of fresh air entering the fan coil.
hair ,return [kJ/kg] Enthalpy of return air entering the fan coil.
q air , fan [kJ/hr] Energy added to the air stream by the fan.
cl,tot
q Total (sensible + latent) energy removed from the air stream by the
[kJ/hr]
cooling coil section
cl , sns
q Sensible energy removed from the air stream by the cooling coil
[kJ/hr]
section
q ht [kJ/hr] Sensible energy added to the air stream by the heating coil section
m cond [kg/hr] Mass flow rate of condensate draining from the cooling coil.
liquid
m [kg/hr] Mass flow rate of liquid flowing through the cooling coil.
air ,mixed
m [kg/hr] Mass flow rate (return + fresh) of air entering the cooling coil.
4–211
TRNSYS 18 – Mathematical Reference
Next, a call is made to the TRNSYS Air Properties routine to determine the temperature dependent specific
heat of air at the inlet temperature condition.
NO FLOW CONDITION
If either air or liquid is not flowing through the fan coil the fan coil type sets the outlet air temperature to the
inlet temperature, sets the outlet air pressure to the inlet air pressure minus the air side pressure drop
(specified as an input to the model), sets the outlet air humidity ratio to the inlet air humidity ratio and the
outlet air enthalpy to the inlet air enthalpy. The equation used to calculate air outlet pressure is:
𝑃𝑜𝑢𝑡 = 𝑃𝑖𝑛 − ∆𝑃 Eq. 4.3.15-1
The sensible and total cooling energies are set to zero. Before exiting, the fan coil type performs a last call
to the psychrometrics routine to fully determine the air outlet state. Because of the air side pressure drop,
condensation of the air stream may occur in the device even if the water side is not flowing. As with the first
call to the psychrometrics routine, the humidity ratio may be reset if saturated conditions occur. If after the
call to the psychrometrics routine, the outlet humidity ratio is not equal to the inlet humidity ratio, the mass
flow rate of condensate is calculated according to:
𝑚̇𝑐𝑜𝑛𝑑 = 𝑚̇𝑎𝑖𝑟 (𝜔𝑎𝑖𝑟,𝑖𝑛 − 𝜔𝑎𝑖𝑟,𝑜𝑢𝑡 ) Eq. 4.3.15-2
FLOW CONDITION
The fan coil type includes three control-signal inputs. Setting these inputs to a value of 1 indicates the ON
condition. Setting them to zero indicates the OFF condition. The heating and cooling control signals are
simple on/off switches and it should be noted that the fan coil type does not set the liquid flow rate based
on these signals. This means that an error may occur if either the heating or cooling control signal is set to
ON and there is no liquid flow. The third control signal determines the speed of the fan. If this input is set
to a value of -1 then the fan will be activated at its rated flow rate whenever either the heating or cooling
control signal is set to the ON condition. Alternatively the user may set the fan control signal to any value
between 0 and 1. The fan volumetric flow rate will be the rated volumetric flow rate multiplied by the value
of the fan control signal.
When the fan coil type determines that there is air and liquid flow and that the fan coil is in active heating
or cooling mode, the model next fully determines the outside air state then mixes the return and outside air
according to:
ℎ𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑 = ℎ𝑎𝑖𝑟,𝑟𝑒𝑡𝑢𝑟𝑛 (1 − 𝑓𝑜𝑎 ) + ℎ𝑎𝑖𝑟,𝑜𝑢𝑡𝑠𝑖𝑑𝑒 𝑓𝑜𝑎 Eq. 4.3.15-3
The psychrometrics routine is called with the mixed air enthalpy and humidity ratio in order to obtain the
mixed air temperature, relative humidity, and dry air density.
The fan coil type next determines the impact of the fan. The fan performance data file is queried by the
TRNSYS InterpolatData subroutine. The routine returns the fraction of full load fan power that corresponds
to the relative fan speed (the fan control signal input). The fan power is then set as:
̇
𝑃𝑓𝑎𝑛 ̇
= 𝑃𝑟𝑡𝑑,𝑓𝑎𝑛 𝑓𝑝𝑤𝑟,𝑓𝑎𝑛 Eq. 4.3.15-5
The fan coil type allows the user to specify the fraction of the fan’s inefficiency that ends up as a heat gain
in the air stream and the fraction that ends up in the ambient. For fans whose motor is mounted in the air
stream, the “fraction of fan heat to air” parameter should be set to 1. Fans whose motors are mounted
outside the air stream should have this parameter set to 0. The heat gain to the air stream is given by:
𝑄̇𝑎𝑖𝑟,𝑓𝑎𝑛 = 𝜂𝑚𝑜𝑡𝑜𝑟 𝑃𝑓𝑎𝑛
̇ ̇
+ (1 − 𝜂𝑚𝑜𝑡𝑜𝑟 )𝑓𝑇𝑜𝐴𝑖𝑟 𝑃𝑓𝑎𝑛 Eq. 4.3.15-6
The mass flow rate of the air is obtained by multiplying the current volumetric flow rate (rated volumetric
flow rate times fan control signal) by the dry air density that was returned by the mixed air psychrometrics
call. The enthalpy and humidity ratio of the air leaving the fan can be computed:
4–212
TRNSYS 18 – Mathematical Reference
𝑄̇𝑎𝑖𝑟,𝑓𝑎𝑛
ℎ𝑎𝑖𝑟,𝑓𝑎𝑛 = ℎ𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑 + Eq. 4.3.15-7
𝑚̇𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑
𝜔𝑎𝑖𝑟,𝑓𝑎𝑛 = 𝜔𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑 Eq. 4.3.15-8
The psychrometrics routine is called with enthalpy and humidity ratio to fully determine the state of air
leaving the fan and entering the coils.
COOLING MODE
The performance of the cooling coil is based on a data file that is read through queries to the TRNSYS data
reading subroutine. As such, the data files must conform in their syntax to a predefined format. In the case
of the fan coil type the file provides the total cooling capacity and the sensible cooling capacity as a function
of the inlet mixed air wet bulb temperature, dry bulb temperature, the temperature of the entering liquid and
the air and liquid flow rates.
The syntax of the cooling performance data file is that five independent variables are required. The first line
of the data file must contain at least one value of liquid volumetric flow rate. The second line of the data file
must contain at least one value of volumetric air flow rate. The third line of the data file must contain at least
one value of inlet liquid temperature in degrees C. The fourth line of the data file must contain at least one
value of the inlet air (mixed) dry bulb temperature in degrees C and the fifth line of the data file must contain
at least one value of the inlet air (mixed) wet bulb temperature in degrees C. The subsequent lines of the
file must each contain two values, separated by at least one space. The first value is the total (sensible and
latent) cooling that can be accomplished at the given inlet conditions. The second value is the sensible
cooling that can be accomplished at the current inlet conditions. One line of data (dependent values) must
be provided for each possible combination of independent values. A sample data file is provided.
The TRNSYS data reading subroutine, while able to interpolate the dependent variable values in multiple
dimensions, is unable to extrapolate beyond the data range given in the data files. If a value of one of the
independent variables sent to the data reading routine is above or below the range present in the file, the
data reading routine will print a warning to the TRNSYS simulation log and list files and will return the
corresponding maximum or minimum value.
Once the fan coil’s total and sensible cooling capacity have been determined, the outlet air conditions are
computed:
𝑄̇𝑐𝑙,𝑡𝑜𝑡
ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 = ℎ𝑎𝑖𝑟,𝑓𝑎𝑛 − Eq. 4.3.15-9
𝑚̇𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑
𝑄̇𝑐𝑙,𝑠𝑛𝑠
𝑇𝑎𝑖𝑟,𝑜𝑢𝑡 = 𝑇𝑎𝑖𝑟,𝑓𝑎𝑛 − Eq. 4.3.15-10
𝑚̇𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑 𝐶𝑝𝑎𝑖𝑟
The psychrometrics routine is again called to fully determine the outlet air state. A few special cases are
checked since condensation often occurs when the air stream is cooled. If the outlet humidity ratio returned
by the psychrometrics routine is larger than the humidity ratio at the fan outlet then the device outlet humidity
ratio is reset to the fan outlet humidity ratio and the psychrometrics routine is recalled, this time with the
enthalpy and the recomputed humidity ratio. If the returned relative humidity is greater than 99.9% then the
psychrometrics routine is called with the enthalpy Error! Reference source not found.and an RH of 100%.
The total and sensible energy transferred by the fan coil is recomputed from:
𝑄̇𝑐𝑙,𝑡𝑜𝑡 = 𝑚̇𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑 (ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 − ℎ𝑎𝑖𝑟,𝑓𝑎𝑛 ) Eq. 4.3.15-11
The flow rate of condensate from the air stream is computed from:
𝑚̇𝑐𝑜𝑛𝑑 = 𝑚̇𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑 (𝜔𝑎𝑖𝑟,𝑓𝑎𝑛 − 𝜔𝑎𝑖𝑟,𝑜𝑢𝑡 ) Eq. 4.3.15-13
The temperature of the condensate is set to the leaving air temperature. The liquid outlet temperature is
calculated by adding the energy that was removed from the air stream to the liquid stream.
4–213
TRNSYS 18 – Mathematical Reference
HEATING MODE
As with the cooling coil, the performance of the heating coil is based on a data file that is read through
queries to the TRNSYS data reading subroutine.
The syntax of the heating performance data file is slightly different from that of the cooling file. The first line
of the data file must contain at least one value of liquid volumetric flow rate. The second line of the data file
must contain at least one value of volumetric air flow rate. The third line of the data file must contain at least
one value of inlet liquid temperature in degrees C. The fourth line of the data file must contain at least one
value of the inlet air (mixed) dry bulb temperature in degrees C. The subsequent lines of the file must each
contain a single value of the sensible heating that can be accomplished at the given inlet conditions.
A sample data file is provided.
The TRNSYS data reading subroutine, while able to interpolate the dependent variable values in multiple
dimensions, is unable to extrapolate beyond the data range given in the data files. If a value of one of the
independent variables sent to the data reading routine is above or below the range present in the file, the
data reading routine will print a warning to the TRNSYS simulation log and list files and will return the
corresponding maximum or minimum value.
Once the fan coil’s sensible heating capacity have been determined, the outlet air conditions are computed:
𝑄̇ℎ𝑡
ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 = ℎ𝑎𝑖𝑟,𝑓𝑎𝑛 + Eq. 4.3.15-14
𝑚̇𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑
𝜔𝑎𝑖𝑟,𝑜𝑢𝑡 = 𝜔𝑎𝑖𝑟,𝑓𝑎𝑛 Eq. 4.3.15-15
The psychrometrics routine is again called to fully determine the outlet air state. The liquid outlet
temperature is calculated simply by subtracting the energy that was added to the air stream from the liquid
stream.
4–214
TRNSYS 18 – Mathematical Reference
1 Maximum Heating [kJ/h] The maximum possible energy transfer to the fluid stream. The
Rate maximum available energy transfer to the fluid stream will be the
product of the maximum possible energy transfer and the
conversion efficiency.
2 Specific Heat of Fluid [kJ/kg K] The specific heat of the liquid being heated.
3 Efficiency of Auxiliary [-] The thermal conversion efficiency of the auxiliary heater. (Typical
Heater values: Electric Heater = 1.0 ; Natural Gas = 0.79)
INPUTS
1 Inlet Fluid Temperature [C] The temperature of the fluid entering the heater.
2 Fluid Mass Flow Rate [kg/h] The flow rate of the fluid through the heater.
3 Control Function [-] If the control function = 1 then the heater is on and providing
energy to stream. If the control function = 0 then the heater is off.
The heater control function input requires either 1 or 0; proportional
control signals (e.g. CF=0.53) will be interpreted as heater=off!
4 Setpoint Temperature [C] The desired setpoint temperature at the outlet of the auxiliary
heating device. This device sets the outlet temperature at this
temperature unless the heating capacity is insufficient or the device
is turned off.
OUTPUTS
1 Outlet Fluid [C] The temperature of the fluid exiting the heater.
Temperature
2 Outlet Fluid Flow Rate [kg/h] The flow rate of the fluid through the heater.
3 Rate of Energy [kJ/h] The amount of energy added to the fluid stream.
Delivery to Fluid
Stream
4 Required Energy Input [kJ/h] The amount of energy that must be input to the heater.
4–215
TRNSYS 18 – Mathematical Reference
4–216
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] This parameter indicates whether the inlet absolute humidity ratio
(mode = 1) or the percent relative humidity input (mode = 0) will be
used to calculate the inlet moist air state to this device.
2 Rated Heating Rate [kJ/h] The amount of energy that the heater adds to the air stream.
3 Heater Efficiency [-] The efficiency of the device adding heat to the air stream. Typical
values are 1.0 for electric heaters and 0.8 for gas heaters.
4 Air Flow Rate [kg/h] The flow rate of the air through the heater when the blower is on.
5 Blower Power [kJ/h] The power consumption of the blower when it is on.
INPUTS
1 Inlet Air Temperature [C] The dry bulb temperature of the air entering the auxiliary heater.
2 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the auxiliary heater
device.
3 Inlet Air Relative [%] The percent relative humidity of the air entering the auxiliary heater
Humidity device.
4 Air Flow Rate [kg/h] The flow rate of dry air entering the auxiliary heater.
5 Inlet Air Pressure [atm] The absolute pressure of the air entering the device.
6 Heater Control [-] The control function for the heater (0 = off, 1 = on).
Function
7 Fan Control Signal [-] The control signal for the blower (0=off, 1=on).
OUTPUTS
1 Outlet Air Temperature [C] The temperature (dry bulb) of the air exiting the device.
2 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the device.
Ratio
3 Outlet Air Relative [%] The percent relative humidity of the air exiting the device.
Humidity
4–217
TRNSYS 18 – Mathematical Reference
4 Outlet Air Flow Rate [kg/h] The flow rate of dry air exiting the device.
5 Outlet Air Pressure [atm] The absolute pressure of the air exiting the device.
6 Heat Added [kJ/h] The amount of energy that is added to the air stream.
7 Power Input [kJ/h] The rate that energy must be added to the furnace (blower &
heater).
4–218
TRNSYS 18 – Mathematical Reference
Since this is a heating process, the humidity ratio of the air leaving the blower is set to the humidity ratio of
the air entering the blower. The remaining leaving air properties are calculated from the leaving enthalpy
and humidity ratio. If the heater control is less than 0.5 these outlet air properties become the outputs from
the model, otherwise they become the inputs to the heater calculation.
If the heater control signal is greater than 0.5 then the rated heating capacity is used to calculate the
enthalpy of the air leaving the heater.
𝑄ℎ𝑒𝑎𝑡𝑒𝑟
ℎ𝑜𝑢𝑡 = ℎ𝑖𝑛 + Eq. 4.3.17-2
𝑚̇
Again since the process is an air heating process, the humidity ratio of the air leaving the heater is the same
as the humidity ratio of the air entering the heater. The remaining properties of the air leaving the heater
are calculated from the leaving enthalpy and humidity ratio.
The energy input to the heater is calculated from the heater energy and the heater efficiency.
𝑄ℎ𝑒𝑎𝑡𝑒𝑟
𝑄𝑎𝑢𝑥 = Eq. 4.3.17-3
𝜀ℎ𝑒𝑎𝑡𝑒𝑟
The total energy added to the air stream is the sum of the fan heat and the heater input.
𝑄𝑡𝑜𝑡𝑎𝑙 = 𝑄𝑎𝑖𝑟 + 𝑄ℎ𝑒𝑎𝑡𝑒𝑟 Eq. 4.3.17-4
The total power input required to the furnace is the fan power and the energy input to the heater.
𝑃𝑖𝑛𝑝𝑢𝑡 = 𝑃𝑓𝑎𝑛 + 𝑄𝑎𝑢𝑥 Eq. 4.3.17-5
4–219
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] The humidity mode determines whether the absolute humidity (=1)
or relative humidity (=2) ratio of the air stream is used to calculate
the inlet air properties.
2 Design Inlet Fluid [C] The temperature of the fluid inlet to the heating coil at the rating
Temperature condition.
3 Design Fluid Flow Rate [kg/h] The flow rate of the fluid inlet to the heating coil at the rating
condition.
4 Design Inlet Air [C] The temperature of the air inlet to the heating coil at the rating
Temperature condition.
5 Design Inlet Air [-] The absolute humidity ratio of the air inlet to the heating coil at the
Humidity Ratio rated conditions.
6 Design Air Flow Rate [kg/h] The flow rate of the air inlet to the heating coil at the rated
conditions.
7 Design Total Heating [kJ/h] The total heating capacity of the heating coil at the rating
Capacity conditions.
8 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing through the heating coil.
9 Heat Exchanger [-] The parameter denotes the configuration of the heating coil
Configuration (Counterflow = 1; Parallelflow = 2; Crossflow - both unmixed = 3;
Crossflow - both mixed = 4; Crossflow - minimum capacity unmixed
= 5; Crossflow - maximum capacity unmixed = 6)
INPUTS
1 Inlet Fluid Temperature [C] The temperature of the fluid entering the heating coil.
2 Inlet Fluid Flow Rate [kg/h] The flow rate of the fluid entering the heating coil.
3 Inlet Air Temperature [C] The temperature of the air entering the heating coil.
4 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the heating coil.
5 Inlet Air Relative [%] The percent relative humidity of the air entering the heating coil.
Humidity
6 Inlet Air Flow Rate [kg/h] The flow rate of the air entering the heating coil.
4–220
TRNSYS 18 – Mathematical Reference
7 Inlet Air Pressure [atm] The pressure (in atmospheres) of the air entering the heating coil.
OUTPUTS
1 Outlet Fluid [C] The temperature of the fluid exiting the heating coil.
Temperature
2 Outlet Fluid Flow Rate [kg/h] The flow rate of the fluid exiting the heating coil.
3 Outlet Air Temperature [C] The temperature of the air exiting the heating coil.
4 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the heating coil.
Ratio
5 Outlet Air Relative [%] The percent relative humidity of the air exiting the heating coil.
Humidity
6 Outlet Air Flow Rate [kg/h] The flow rate of the air exiting the heating coil.
7 Outlet Air Pressure [atm] The pressure (in atmospheres) of the air exiting the heating coil.
8 Total Heating [kJ/h] The total amount of heating of the air stream.
TEXT FIELDS
4–221
TRNSYS 18 – Mathematical Reference
Then the model iterates to find a UA for the coil which provides the outlet air temperature such that
𝑄𝑟𝑎𝑡𝑒𝑑 = 𝐶𝑎𝑖𝑟 (𝑇𝑜𝑢𝑡 − 𝑇𝑖𝑛,𝑟𝑎𝑡𝑒𝑑 ) Eq. 4.3.18-3
The calculation of the UA value for the coil is performed only once per simulation and in this version of the
simple heating coil model, the UA is considered to be constant regardless of the inlet condition.
On an iterative call, first the component checks that there is both air flow and liquid flow through the heating
coil. If either flow is zero, then the outlet conditions are set to the inlet conditions and the component exits.
If there is both air flow and liquid flow, the component first determines all of the inlet air and liquid properties.
Then the capacity rates are calculated.
𝐶𝑎𝑖𝑟 = 𝑚̇𝑎𝑖𝑟 (𝐶𝑝𝑎𝑖𝑟 + 𝜔𝑖𝑛 𝐶𝑝𝑣𝑎𝑝 ) Eq. 4.3.18-4
The outlet temperatures are then calculated from the inlet conditions, the capacity rates, the UA for the coil,
and the coil configuration. Since this is an air heating process, the outlet air humidity ratio equals the inlet
air humidity ratio. The total energy added to the air stream is then determined.
𝑄𝑡𝑜𝑡𝑎𝑙 = 𝐶𝑎𝑖𝑟 (𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑇𝑎𝑖𝑟,𝑜𝑢𝑡 ) Eq. 4.3.18-6
4.3.18.5. References
1. Brandemeuhl, M. J. 1993 HVAC2 Toolkit: Algorithms and Subroutines for Secondary HVAC
Systems Energy Calculations, ASHRAE.
4–222
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] The humidity mode determines whether the absolute humidity (=1)
or relative humidity (=2) ratio of the air stream is used to calculate
the inlet air properties.
2 Design Inlet Fluid [C] The temperature of the fluid inlet to the heating coil at the rating
Temperature condition.
3 Design Fluid Flow Rate [kg/h] The flow rate of the fluid inlet to the heating coil at the rating
condition.
4 Design Inlet Air [C] The temperature of the air inlet to the heating coil at the rating
Temperature condition.
5 Design Inlet Air [-] The absolute humidity ratio of the air inlet to the heating coil at the
Humidity Ratio rated conditions.
6 Design Air Flow Rate [kg/h] The flow rate of the air inlet to the heating coil at the rated
conditions.
7 Design Total Heating [kJ/h] The total heating capacity of the heating coil at the rating
Capacity conditions.
8 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing through the heating coil.
9 Heat Exchanger [-] The parameter denotes the configuration of the heating coil
Configuration (Counterflow = 1; Parallelflow = 2; Crossflow - both unmixed = 3;
Crossflow - both mixed = 4; Crossflow - minimum capacity unmixed
= 5; Crossflow - maximum capacity unmixed = 6)
10 UA Ratio [-] The ratio of the air-side to fluid-side heat transfer at the design
conditions.
INPUTS
1 Inlet Fluid Temperature [C] The temperature of the fluid entering the heating coil.
2 Inlet Fluid Flow Rate [kg/h] The flow rate of the fluid entering the heating coil.
3 Inlet Air Temperature [C] The temperature of the air entering the heating coil.
4 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the heating coil.
4–223
TRNSYS 18 – Mathematical Reference
5 Inlet Air Relative [%] The percent relative humidity of the air entering the heating coil.
Humidity
6 Inlet Air Flow Rate [kg/h] The flow rate of the air entering the heating coil.
7 Inlet Air Pressure [atm] The pressure (in atmospheres) of the air entering the heating coil.
OUTPUTS
1 Outlet Fluid [C] The temperature of the fluid exiting the heating coil.
Temperature
2 Outlet Fluid Flow Rate [kg/h] The flow rate of the fluid exiting the heating coil.
3 Outlet Air Temperature [C] The temperature of the air exiting the heating coil.
4 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the heating coil.
Ratio
5 Outlet Air Relative [%] The percent relative humidity of the air exiting the heating coil.
Humidity
6 Outlet Air Flow Rate [kg/h] The flow rate of the air exiting the heating coil.
7 Outlet Air Pressure [atm] The pressure (in atmospheres) of the air exiting the heating coil.
8 Total Heating [kJ/h] The total amount of heating of the air stream.
TEXT FIELDS
4–224
TRNSYS 18 – Mathematical Reference
Then the model iterates to find a UA for the coil which provides the outlet air temperature such that
𝑄𝑟𝑎𝑡𝑒𝑑 = 𝐶𝑎𝑖𝑟 (𝑇𝑜𝑢𝑡 − 𝑇𝑖𝑛,𝑟𝑎𝑡𝑒𝑑 ) Eq. 4.3.19-3
The air-side and liquid-side UA values are determined based on the UA ratio parameter for the coil.
1 + 𝑈𝐴𝑟𝑎𝑡𝑖𝑜
𝑈𝐴𝑙𝑖𝑞 = 𝑈𝐴 [ ] Eq. 4.3.19-4
𝑈𝐴𝑟𝑎𝑡𝑖𝑜
𝑈𝐴𝑎𝑖𝑟 = 𝑈𝐴𝑙𝑖𝑞 𝑈𝐴𝑟𝑎𝑡𝑖𝑜 Eq. 4.3.19-5
On an iterative call, first the component checks that there is both air flow and liquid flow through the heating
coil. If either flow is zero, then the outlet conditions are set to the inlet conditions and the component exits.
If there is both air flow and liquid flow, the component first determines all of the inlet air and liquid properties.
The UA values are adjusted for the inlet temperatures and flow rates based on work by Wetter [2]
𝑥𝑎 = 1 + 0.004769(𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑇𝑎𝑖𝑟,𝑖𝑛,𝑟𝑎𝑡𝑒𝑑 ) Eq. 4.3.19-6
0.8
𝑚̇𝑎𝑖𝑟
𝑈𝐴𝑎𝑖𝑟 = 𝑈𝐴𝑎𝑖𝑟,𝑟𝑎𝑡𝑒𝑑 𝑥𝑎 [ ] Eq. 4.3.19-7
𝑚̇𝑎𝑖𝑟,𝑟𝑎𝑡𝑒𝑑
0.014
𝑥𝑤 = 1 + [ ] (𝑇𝑙𝑖𝑞,𝑖𝑛 − 𝑇𝑙𝑖𝑞,𝑖𝑛,𝑟𝑎𝑡𝑒𝑑 ) Eq. 4.3.19-8
1 + 0.014𝑇𝑙𝑖𝑞,𝑖𝑛,𝑟𝑎𝑡𝑒𝑑
0.85
𝑚̇𝑙𝑖𝑞
𝑈𝐴𝑙𝑖𝑞 = 𝑈𝐴𝑙𝑖𝑞,𝑟𝑎𝑡𝑒𝑑 𝑥𝑤 [ ] Eq. 4.3.19-9
𝑚̇𝑙𝑖𝑞,𝑟𝑎𝑡𝑒𝑑
1
𝑈𝐴 =
1 1 Eq. 4.3.19-10
+
𝑈𝐴𝑙𝑖𝑞 𝑈𝐴𝑎𝑖𝑟
The capacity rates are calculated.
𝐶𝑎𝑖𝑟 = 𝑚̇𝑎𝑖𝑟 (𝐶𝑝𝑎𝑖𝑟 + 𝑤𝑖𝑛 𝐶𝑝𝑣𝑎𝑝 ) Eq. 4.3.19-11
The outlet temperatures are then calculated from the inlet conditions, the capacity rates, the UA for the coil,
and the coil configuration. Since this is an air heating process, the outlet air humidity ratio equals the inlet
air humidity ratio. The total energy added to the air stream is then determined.
𝑄𝑡𝑜𝑡𝑎𝑙 = 𝐶𝑎𝑖𝑟 (𝑇𝑎𝑖𝑟,𝑖𝑛 − 𝑇𝑎𝑖𝑟,𝑜𝑢𝑡 ) Eq. 4.3.19-13
4–225
TRNSYS 18 – Mathematical Reference
4.3.19.5. References
1. Brandemeuhl, M. J. 1993 HVAC2 Toolkit: Algorithms and Subroutines for Secondary HVAC
Systems Energy Calculations, ASHRAE.
2. Wetter, M. 1999. Simulation Model: Finned Water-to-Air Coil without Condensation. LBNL-42355.
4–226
TRNSYS 18 – Mathematical Reference
1 Logical Unit – [-] The logical unit number which will be assigned to the user-supplied
Performance Data data file containing the capacity and COP ratios as a function of
inlet cooling water temperature and chilled water setpoint
temperatures. (Simulation Studio will automatically assign this
number.)
2 Logical Unit – PLR [-] The logical unit which will be assigned to the user-supplied data file
Data which contains the fraction of full-load power data as a function of
the machine part load ratio. (Simulation Studio will automatically
assign this number.)
3 CHW Fluid Specific [kJ/kg K] The specific heat of the chilled water stream flowing through the
Heat chiller.
4 CW Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing into the chiller as the cooling
flow stream.
5 Number of CW Points [-] The number of cooling water temperatures for which capacity and
COP ratios are provided in the user-supplied external data file.
6 Number of CHW Points [-] The number of chilled water setpoint temperatures for which the
capacity and COP ratio are provided in the user-supplied external
data file.
7 Number of PLRs [-] The number of part-load ratios for which fraction of full-load power
is supplied in the user-provided external data file.
INPUTS
1 Chilled Water Inlet [C] The temperature of the chilled water stream entering the chiller.
Temperature
2 Chilled Water Flow [kg/h] The mass flow rate at which chilled water enters the chiller.
Rate
3 Cooling Water [C] The temperature at which the cooling water flow stream enters the
Temperature chiller.
4 Cooling Water Flow [kg/h] The mass flow rate at which the cooling fluid (typically water)
Rate enters the chiller.
5 CHW Setpoint [C] The setpoint temperature for the chilled water stream. If the chiller
Temperature has the capacity to meet the current load, the chiller will modulate
to meet the load and chilled water stream will leave at this
temperature.
4–227
TRNSYS 18 – Mathematical Reference
6 Chiller Control Signal [-] The control signal for the operation of the chiller: ctrl < 0.5: chiller is
off, ctrl >= 0.5: chiller is on.
OUTPUTS
1 Chilled Water [C] The temperature of the chilled water stream exiting the chiller.
Temperature
2 Chilled Water Flow [kg/h] The flow rate of the chilled water stream exiting the chiller.
Rate
3 Cooling Water [C] The temperature of the cooling flow stream exiting the chiller.
Temperature
4 Cooling Water Flow [kg/h] The mass flow rate at which the cooling stream exits the chiller.
Rate
5 Chiller Power [kJ/h] The power requirement of the chiller. The power is read (and
interpolated) from the user-supplied data file.
6 Chiller Heat Rejection [kJ/h] The rate at which heat is rejected to the cooling water flow stream
by the chiller.
7 Chiller Capacity [kJ/h] The capacity of the chiller given the current cooling water inlet
temperature and chilled water setpoint temperature.
9 Chiller Load [kJ/h] The load that the chiller must attempt to meet at the current
timestep. The load is simply the chilled water mass flow rate
multiplied by the fluid specific heat multiplied by the temperature
difference between the chilled water inlet temperature and chilled
water setpoint. The machine may or may not be able to meet this
load.
10 Chiller Load Met [kJ/h] The load that the chiller was able to meet at the current timestep. If
the chiller was unable to meet the entire load, the temperature of
the exiting flow stream will be higher than the chilled water setpoint
temperature.
11 Chiller PLR [-] The chiller part load ratio at the current conditions. The part load
ratio is defined as the load met by the chiller divided by the
capacity of the chiller at the given conditions.
12 Fraction of Full-Load [-] The fraction of full-load power is interpolated from the user-
Power supplied data file as a function of the chiller part load ratio. The
fraction of full-load power is a ratio of the chiller power at the
current conditions at part-load to the chiller power at the current
conditions but at full-load.
4–228
TRNSYS 18 – Mathematical Reference
Rated Capacity [kJ/h] Capacity at 6.67C chilled water leaving temperature and 29.44C cooling
water entering temperature from the data file.
Rated COP [-] COP at 6.67C chilled water leaving temperature and 29.44C cooling
water entering temperature from the data file.
4.3.20.4. Nomenclature
COPnom [-] Chiller nominal Coefficient of Performance at current conditions.
COPratio [-] Chiller COP at current conditions divided by the rated COP.
Capacityratio [kJ/hr] Chiller capacity at current conditions divided by the rated capacity.
Q [kJ/hr] Current load on the chiller.
load
Q [kJ/hr] Load met by the chiller.
met
4–229
TRNSYS 18 – Mathematical Reference
m chw [kg/hr] Flow rate of fluid entering the chilled fluid stream.
Cp chw [kJ/kg.K] Specific heat of fluid entering the chilled fluid stream.
Cpcw [kJ/kg.K] Specific heat of fluid entering the cooling fluid stream.
Tchw,set [ºC] Desired outlet temperature of fluid in the chilled fluid stream.
Tchw,in [ºC] Temperature of fluid entering the chilled fluid stream.
Tchw,out [ºC] Temperature of fluid exiting the chilled fluid stream.
PLR [0..1] Chiller Part Load Ratio (the ratio of the current load to the rated load).
4–230
TRNSYS 18 – Mathematical Reference
4–231
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] The humidity mode indicates which of the humidity values will be
used to calculate the inlet moist air state: 1 = the inlet humidity ratio
will be used, 2 = the inlet relative humidity (%) will be used.
2 Logical Unit for Cooling [-] The logical unit which is assigned to the data file which contains
Data the heat pump cooling performance data. (Simulation Studio will
automatically set this number.)
3 Logical Unit for Heating [-] The logical unit which is assigned to the data file containing the
Data heat pump heating performance data. (Simulation Studio will
automatically set this number.)
4 Logical Unit for Cooling [-] The logical unit which is assigned to the data file which contains
Correction Data the cooling correction factors for off-design indoor air temperatures.
(Simulation Studio will automatically set this number.)
5 Logical Unit for Heating [-] The logical unit which is assigned to the data file containing the
Correction Data heating correction factors for off-design indoor air temperatures.
(Simulation Studio will automatically set this number.)
6 Number of Water Flow [-] The number of water flow rates for which data is provided in the
Steps performance data files.
7 Number of Water [-] The number of water temperatures for which cooling performance
Temperatures – data is provided in the associated data files.
Cooling
8 Number of Water [-] The number of water temperatures for which heating data is
Temperatures – provided in the associated heating performance data file.
Heating
9 Number of Wet Bulb [-] The number of indoor wet bulb temperatures for which cooling
Temperature Steps correction factors are supplied in the associated data file.
10 Number of Dry Bulb [-] The number of indoor dry bulb temperatures for which cooling
Temperature Steps – correction factors are supplied in the associated data file.
Cooling
11 Number of Dry Bulb [-] The number of entering air dry bulb temperatures for which heating
Temperature Steps – correction factor data is supplied in the associated data file.
Heating
4–232
TRNSYS 18 – Mathematical Reference
12 Number of Air Flow [-] The number of air flow rate steps for which cooling performance
Steps – Cooling data will be supplied in the associated data file.
13 Number of Air Flow [-] The number of air flow rate steps for which heating performance
Steps – Heating data is supplied in the associated data file.
14 Density of Liquid [kg/m3] The density of the liquid stream entering the heat pump. The liquid
Stream stream is used for heat rejection when in cooling mode and for heat
absorption when in heating mode.
15 Specific Heat of Liquid [kJ/kg K] The specific heat of the liquid stream entering the heat pump. The
Stream liquid stream is used for heat rejection when in cooling mode and
for heat absorption when in heating mode.
16 Blower Power [kJ/h] The power of the blower motor when the heat pump is operating.
Typically, the entire heat pump package power (compressor +
blower + controls) is given for the reported heat pump power in the
catalog data. The blower and controller power will be subtracted
from the calculated power in order to calculate the compressor
power.
17 Controller Power [kJ/h] The power of the controller in the packaged heat pump unit.
Typically, the total packaged heat pump power (blower + controls +
compressor) is reported for heat pump power in the catalog data.
The blower and controller power will be subtracted from the total
calculated heat pump power in order to get the compressor power.
18 Capacity of Stage-1 [kJ/h] The heating capacity of the first-stage auxiliary heating device.
Auxiliary
19 Capacity of Stage-2 [kJ/h] The heating capacity of the 2nd-stage auxiliary heating device.
Auxiliary
20 Total Air Flow Rate [l/s] The flow rate on the air-side of the heat pump. This flow rate is the
total flow rate (return plus outside air).
INPUTS
1 Inlet Liquid [C] The temperature of the heat transfer fluid entering the heat pump.
Temperature This is typically water from a ground-coupled heat exchanger.
2 Inlet Liquid Flow Rate [kg/h] The flow rate of heat transfer fluid entering the heat pump.
3 Return Air [C] The temperature of the air returning to the heat pump from the
Temperature zone. This is typically the room air temperature. This air will be
mixed with a user-controlled amount of outside air before entering
the heat pump.
4 Return Air Humidity [-] The absolute humidity ratio of the air returning to the heat pump
Ratio from the zone. This air is typically at room air conditions. This
return air will be mixed with a user-specified amount of outside air
before entering the heat pump.
5 Return Air Relative [%] The percent relative humidity of the air returning to the heat pump
Humidity from the zone. This air is typically at room air conditions. This
return air will be mixed with a user-specified amount of outside air
before entering the heat pump.
4–233
TRNSYS 18 – Mathematical Reference
6 Return Air Pressure [atm] The absolute pressure of the air returning to the heat pump from
the zone. This air is typically at room air conditions. This return air
will be mixed with a user-specified amount of outside air before
entering the heat pump.
7 Return Air Damper [atm] The pressure drop of the return air stream as it passes across the
Pressure Drop return air damper.
8 Fresh Air Temperature [C] The temperature of the fresh air available to the heat pump. The
heat pump will mix a user-specified amount of fresh air with the
return air before conditioning this air in the heat pump.
9 Fresh Air Humidity [-] The absolute humidity ratio of the fresh air available to the heat
Ratio pump. The heat pump will mix a user-specified amount of fresh air
with the return air before conditioning this air in the heat pump.
10 Fresh Air Relative [%] The percent relative humidity of the fresh air available to the heat
Humidity pump. The heat pump will mix a user-specified amount of fresh air
with the return air before conditioning this air in the heat pump.
11 Fresh Air Pressure [atm] The absolute pressure of the fresh air available to the heat pump.
The heat pump will mix a user-specified amount of fresh air with
the return air before conditioning this air in the heat pump.
12 Fresh Air Damper [atm] The pressure drop of the fresh air stream as it passes across the
Pressure Drop outside air damper.
13 Cooling Control Signal [-] The control signal for cooling operation: CTRL < 0.5: cooling mode
is OFF; CTRL >= 0.5: cooling mode is ON.
14 Heating Control Signal [-] The control signal for heating operation: CTRL < 0.5: heating mode
is OFF; CTRL >= 0.5: heating mode is ON.
15 Stage 1 Auxiliary [-] The control signal for the 1st stage auxiliary heater: CTRL < 0.5:
Control Signal 1st stage auxiliary heater is OFF; CTRL >= 0.5: 1st stage auxiliary
heater is ON.
16 Stage 2 Auxiliary [-] The control signal for the operation of the 2nd-stage auxiliary
Control Signal heater: CTRL < 0.5: 2nd stage auxiliary heater is OFF; CTRL >=
0.5: 2nd stage auxiliary heater is ON.
17 Fan Control Signal [-] The control signal for operation of the ventilation fan when the heat
pump is not operating in heating or cooling mode: CTRL < 0.5: fan
is OFF if heat pump compressor is OFF; CTRL >= 0.5: fan is ON
regardless of compressor operation.
18 Fraction of Outside Air [-] The heat pump will mix this user-specified amount of fresh air with
the remaining fraction of return air before conditioning this air in the
heat pump.
19 Pressure Rise through [atm] The pressure rise (positive) of the air as it flows through the heat
Heat Pump pump. The pressurization is due to the internal heat pump fan.
OUTPUTS
1 Exiting Fluid [C] The temperature of the liquid stream exiting the heat pump.
Temperature
4–234
TRNSYS 18 – Mathematical Reference
2 Exiting Fluid Flow Rate [kg/h] The flow rate of liquid stream exiting the heat pump.
3 Outlet Air Temperature [C] The temperature of the air stream exiting the heat pump.
4 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the heat pump.
Ratio
5 Outlet Air Relative [%] The percent relative humidity of the air exiting the heat pump.
Humidity
6 Outlet Air Flow Rate [kg/h] The flow rate of dry air exiting the heat pump.
7 Outlet Air Pressure [atm] The absolute pressure of the air exiting the heat pump.
8 Total Cooling Rate [kJ/h] The rate at which energy (both sensible and latent) is removed
from the conditioned air stream in cooling mode.
9 Sensible Cooling Rate [kJ/h] The rate at which sensible energy is removed from the conditioned
air stream in cooling mode.
10 Latent Cooling Rate [kJ/h] The rate at which latent energy is removed from the conditioned air
stream in cooling mode.
11 Total Heating Rate [kJ/h] The rate at which energy is added to the conditioned air stream in
heating mode.
12 Heat Rejection [kJ/h] The rate at which energy is rejected to the water stream in cooling
mode.
13 Heat Absorption [kJ/h] The rate at which energy is absorbed from the fluid stream in
heating mode.
14 Compressor Power [kJ/h] The power consumed by the heat pump compressor while
operating.
15 Heat Pump Power [kJ/h] The total power (compressor + controls + blower) consumed by the
heat pump while operating. This value also includes any auxiliary
heat.
17 EER [-] The Energy Efficiency Rating of the heat pump during the timestep.
18 Auxiliary Heating [kJ/h] The rate at which the heat pump is using auxiliary energy to heat
Power the outgoing air stream.
19 Condensate [C] The temperature of the condensate leaving the heat pump.
Temperature
20 Condensate Flow Rate [kg/h] The flow rate of condensate leaving the heat pump.
4–235
TRNSYS 18 – Mathematical Reference
Rated Total Cooling [kJ/h] Total cooling at 21.11C EWT from the data file.
Capacity
Rated Sensible [kJ/h] Sensible cooling at 21.11 EWT from the data file.
Cooling Capacity
Rated Heating [kJ/h] Heating capacity at 10.0C EWT from the data file.
Capacity
4–236
TRNSYS 18 – Mathematical Reference
4–237
TRNSYS 18 – Mathematical Reference
interpolates between cooling performance measures based on the current values of the air flow rate, fluid
flow rate and entering fluid temperature (ºC). It should be noted that the component does not extrapolate
beyond the data range provided. If values outside the data range are provided, the maximum or minimum
cooling performance values will be returned and a warning will be written to the TRNSYS listing file and to
the simulation log file.
Users creating their own performance data must adhere closely to the syntax of the sample file. The values
of air flow must all appear on the first row of the data file. The values of fluid flow rate must all appear on
the second row of the data file. The values of the entering fluid temperature must all appear on the third
row of the data file. Users may specify more or fewer values of each of the three variables than are shown
in the sample file but must also remember to modify the corresponding parameters in the TRNSYS input
file. For example, the sample file contains two values of air flow rate. Consequently the value of the
parameter: number of airflow steps – cooling; would be set to 2. The values of all three cooling performance
measures must then appear each group on its own line.
4–238
TRNSYS 18 – Mathematical Reference
The first line of the data file should contain values of entering air dry bulb temperature. Thereafter, each
line should contain a total capacity multiplier and a total (compressor and fan) power multiplier.
4.3.21.5. References
1. Mitchell, J.W. and J.E. Braun, Design Analysis, and Control of Space Conditioning Equipment and
Systems, Solar Energy Laboratory, University of Wisconsin – Madison. 1997
4–239
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] The humidity mode indicates which of the input humidity values will
be used to calculate the inlet moist air state: 1= the inlet humidity
ratio will be used, 2 = the inlet relative humidity (%) will be used.
2 Logical Unit for [-] The logical unit number assigned to the data file that contains the
Performance Data cooling coil performance data (the total cooling capacity, sensible
cooling capacity and the power draw) as a function of the
evaporator flow rate, ambient temperature, indoor wet bulb
temperature and the indoor dry bulb temperature. (Simulation
Studio will automatically assign this number.)
3 Number of Condenser [-] The number of ambient temperatures for which the cooling coil
Temperatures capacity and power draw are given in the performance data file.
4 Number of Evaporator [-] The number of evaporator flow rates for which the cooling coil
Flows capacities and power draw are given in the performance data file.
5 Number of Indoor Wet [-] The number of indoor wet bulb temperature data points for which
Bulb Temperatures the cooling coil capacities and power draw are given in the
performance data file.
6 Number of Indoor Dry [-] The number of indoor dry bulb temperature data points for which
Bulb Temperatures the cooling coil capacities and power draw are given in the
performance data file.
7 Blower Power Draw [kJ/h] The power draw of the blower(s) for the device while operating.
The power of the blower is assumed to be included in the total
power read from the external data file.
INPUTS
1 Ambient Temperature [C] The ambient dry bulb temperature (the temperature of the air
flowing across the outdoor coil (the condenser)).
2 Indoor Temperature [C] The indoor dry bulb temperature (the temperature of the air flowing
across the indoor coil (the evaporator)).
3 Indoor Humidity Ratio [-] The absolute humidity ratio of indoor air (the air flowing across the
indoor coil (the evaporator)).
4 Indoor Relative [%] The percent relative humidity of the indoor air (the air flowing
Humidity across the indoor coil (the evaporator)).
4–240
TRNSYS 18 – Mathematical Reference
5 Evaporator Flow Rate [kg/h] The flow rate of dry air across the indoor coil (the evaporator).
6 Indoor Air Pressure [atm] The absolute pressure of the indoor air (the air flowing across the
indoor coil (the evaporator)).
7 Air-Side Pressure Drop [atm] The pressure drop of the indoor air as it flows across the indoor coil
(the evaporator).
8 Control Signal [-] The on/off control signal for the cooling coil (>= 0.5: on, < 0.5: off).
OUTPUTS
1 Return Air [C] The dry bulb temperature of the indoor air after it has passed
Temperature through the air conditioner (across the evaporator section).
2 Return Air Humidity [-] The absolute humidity ratio of the indoor air after it has passed
Ratio through the air conditioner (across the evaporator section).
3 Return Air Relative [%] The percent relative humidity of the indoor air after it has passed
Humidity through the air conditioner (across the evaporator section).
4 Return Air Flow Rate [kg/h] The flow rate of the indoor air passing through the air conditioner
(across the evaporator section).
5 Return Air Pressure [atm] The absolute pressure of the indoor air after it has passed through
the air conditioner (across the evaporator section).
6 Total Energy Removal [kJ/h] The total (sensible+latent) energy removal rate from the indoor air
stream.
7 Sensible Energy [kJ/h] The rate at which sensible energy is removed from the air stream
Removal as it passes across the indoor coil (evaporator).
9 Compressor Power [kJ/h] The rate at which power is consumed by the blower(s) for the
device.
10 Blower Power [kJ/h] The rate at which power is consumed by the blower(s) for the
device.
13 Condensate [C] The temperature of the condensate being drained from the air
Temperature conditioner.
14 Condensate Flow Rate [kg/h] The flow rate of condensate being drained from the device.
4–241
TRNSYS 18 – Mathematical Reference
Rated Total Cooling [kJ/h] Total cooling at 26.7C EDB, 19.4C EWB, and 35C ODB from the data
Capacity file.
Rated Sensible [kJ/h] Sensible cooling at 26.7C EDB, 19.4C EWB, and 35C ODB from the
Cooling Capacity data file.
Rated Power [kJ/h] Power at 26.7C EDB, 19.4C EWB, and 35C ODB from the data file.
Consumption
4.3.22.4. Nomenclature
Tevap,in [ºC] Temperature of air entering the evaporator side of the coil
hevap,in [kJ/kg] Enthalpy of air exiting the evaporator side of the coil
evap,in [kgH2O/kgAir] Humidity ratio of air entering the evaporator side of the coil
Pevap,in [atm] Pressure of air entering the evaporator side of the coil
Tevap,out [ºC] Temperature of air exiting the evaporator side of the coil
hevap,out [kJ/kg] Enthalpy of air entering the evaporator side of the coil
evap,out [kgH2O/kgAir] Humidity ratio of air exiting the evaporator side of the coil
Pevap,out [atm] Pressure of air exiting the evaporator side of the coil
Q [kJ/hr] Rate of total energy transferred by the coil
total
4–242
TRNSYS 18 – Mathematical Reference
Q [kJ/hr] Rate of sensible energy transferred by the coil
sensible
Pevap [atm] Pressure drop across the evaporator side of the coil
Pwrtotal [kJ/hr] Total power draw by the air conditioner (residential cooling coil)
The total power draw of the air conditioner, as specified in the data file is assumed to include controller
power draw, blower power draw and compressor power draw. Both controller and blower power draw are
requested as inputs to the model; the compressor power is simply the difference between the power read
from the data file and the combined blower and controller power. The heat rejection of the device (the rate
at which heat is rejected from the device to the ambient is calculated using
𝑄̇𝑟𝑒𝑗𝑒𝑐𝑡𝑒𝑑 = 𝑄̇𝑡𝑜𝑡𝑎𝑙 + 𝑃𝑤𝑟𝑡𝑜𝑡𝑎𝑙 Eq. 4.3.22-4
The COP (coefficient of performance) and EER (energy efficiency rating) are therefore
4–243
TRNSYS 18 – Mathematical Reference
The amount of moisture removed from the evaporator air stream leaves the device via a condensate stream
whose fluid temperature is that of the air exiting the evaporator and whose flow rate is given by
𝑚̇𝑐𝑜𝑛𝑑𝑒𝑛𝑠𝑎𝑡𝑒 = 𝑚̇𝑒𝑣𝑎𝑝 (𝜔𝑒𝑣𝑎𝑝,𝑖𝑛 − 𝜔𝑒𝑣𝑎𝑝,𝑜𝑢𝑡 ) Eq. 4.3.22-7
The file containing the capacities and power data should have the following format:
The first line should contain the values of evaporator flow rate in increasing order separated by a space.
The second line should contain the outdoor dry bulb temperature values (C) in increasing order separated
by a space. The third line should contain the indoor wet bulb temperature values (C) in increasing order
separated by a space. The fourth line should contain the indoor dry bulb (C) temperatures values in
increasing order separated by a space. The next line should contain the total cooling capacity, sensible
cooling capacity, and power at the first evaporator flow rate value listed, the first outdoor dry bulb
temperature listed, the first indoor wet bulb temperature listed and the first indoor dry bulb temperature
listed. The next line should contain the total cooling capacity, sensible cooling capacity and power at flow
rate 1, outdoor dry bulb 1, indoor wet bulb 1 and indoor dry bulb 2. Continue until the power and capacities
are specified for each combination of flow rate, outdoor dry bulb, indoor wet bulb, and indoor dry bulb.
Example data files are provided.
4–244
TRNSYS 18 – Mathematical Reference
1 Number of zones [-] The number of zones to be conditioned by this air handler.
If the air handler employs a preheat coil in cooling mode set this
3 Preheat coil? [-]
parameter to 1, otherwise set this value to 0.
Logical unit for fan The logical unit number which will be ASSIGNed to the fan
5 [-]
performance data performance data file.
Number of fan PLR The number of fan part-load ratio data points for which fraction
6 [-]
points of full-load power data is provided in the external data file.
7 Design fan power [kJ/hr] The rated power draw of the fan when operating at full speed.
4–245
TRNSYS 18 – Mathematical Reference
The next three parameters are cycled, once for each VAV box (specified by parameter 1)
The minimum flow rate of air to the specified zone when the air
Minimum zonal air flow
10 [l/s] handler is operating. This parameter is cycled based on the
rate
value of the “number of zones” parameter.
The maximum flow rate of air to the specified zone when the air
Maximum zonal air
11 [l/s] handler is operating. This parameter is cycled based on the
flow rate
value of the “number of zones” parameter.
INPUTS
The fraction of the design air flow rate that will be outside air
(fresh air) at the current timestep. NOTE: normally, when a
building is unoccupied, its outdoor air dampers close. To model
this correctly, the value of this input should go to zero when the
6 Fraction of outside air [-] building is not occupied.
Set this value to 1 if the preheat coil can be active in the central
air handler. Note: the "Preheat coil?" parameter must also be set
7 Preheat okay? [-] to 1 for the preheat coil to be active.
The next five inputs are cycled, once for each VAV box (specified by parameter 1)
4–246
TRNSYS 18 – Mathematical Reference
The percent relative humidity of the zone air. This input is cycled
10 Zone relative humidity [%] based on the value of the “number of zones” parameter.
The amount of energy that will be added to the return air stream
for the specified zone (before outside air is mixed in). This input
is cycled based on the value of the “number of zones”
12 Return air heat gain [kJ/hr] parameter.
OUTPUTS
The rate at which energy is used by the preheat coil to boost the
temperature of the mixed air to the supply air set point. The
1 Preheat coil energy [kJ/hr] preheat coil is used in cooling mode only.
Cooling coil heat The rate at which energy is removed from the air stream by the
2 transfer [kJ/hr] cooling coil.
Cooling coil sensible The rate at which sensible energy is removed from the air
3 heat transfer [kJ/hr] stream by the cooling coil.
5 Fan power [kJ/hr] The rate at which the air handler fan consumes energy.
6 Fan PLR [-] The fractional speed at which the VAV fan is currently running.
Sensible load due to The sensible load imposed on the air handler by the introduction
8 outside air [kJ/hr] of the outside air into the system.
The rate at which the air handler failed to meet the sensible
9 Unmet sensible loads [kJ/hr] loads of the zones (a cooling load unmet is a positive value).
Delivered sensible
10 energy rate [kJ/hr] The rate at which sensible energy is delivered to the zones.
The dry bulb temperature of air exiting the preheat coil and
Cooling coil inlet entering the cooling coil. This output is needed for AHUs with
11 drybulb temperature [C] direct expansion (DX) coils in them because the performance of
the DX coil (for example a Type42 performance map) requires
4–247
TRNSYS 18 – Mathematical Reference
The wet bulb temperature of air exiting the preheat coil and
entering the cooling coil. This output is needed for AHUs with
direct expansion (DX) coils in them because the performance of
the DX coil (for example a Type42 performance map) requires
Cooling coil inlet the coil inlet conditions (and ambient dry bulb temperature) in
12 wetbulb temperature [C] order to return COP.
The wet bulb temperature of air exiting the preheat coil and
entering the cooling coil. This output is needed for AHUs with
direct expansion (DX) coils in them because the performance of
the DX coil (for example a Type42 performance map) requires
Cooling coil inlet the coil inlet conditions (and ambient dry bulb temperature) in
13 relative humidity [%] order to return COP.
Central unit outlet The dry bulb temperature of the air being supplied by the central
14 temperature [C] unit to the zone boxes.
Central unit outlet The relative humidity of the air being supplied by the central unit
15 relative humidity [%] to the zone boxes.
The next five outputs are cycled, once for each VAV box (specified by parameter 1)
The rate at which energy must be added back to the zone model
to account for load not met by the AHU. This output is also used
to send additional load caused by the supply air temperature
being below zone temperature back to the zone model.This
Unmet / additional load output is cycled based on the value of the “number of zones”
16 for zone [kJ/hr] parameter.
Zone supply air flow The volumetric flow rate of air to each zone. This output is
18 rate [l/s] cycled based on the value of the “number of zones” parameter.
Minimum possible flow [L/s] This field is taken from the parameter values set for each zone.
rate for each box
4–248
TRNSYS 18 – Mathematical Reference
Maximum possible [L/s] This field is taken from the parameter values set for each zone.
flow rate for each box
TEXT FIELDS
Economizer n/a This field has a value of either “active” or “none” depending on the value
of parameter 2
Preheat Coil n/a This field has a value of either “active” or “none” depending on the value
of parameter 3
Reheat coil load [kWh] The load on each of the VAV box reheat coils.
Fan energy [kWh] The energy consumed by the central unit fan.
consumption
Preheat coil load [kWh] The load on the central preheat coil
Cooling coil total load [kWh] The total energy (sensible plus latent) removed by the central cooling
coil.
Cooling coil sensible [kWh] The sensible energy removed by the central cooling coil.
load
Combined reheat coil [kWh] The total load on all VAV box reheat coils
load
Box flow during [L/s] The minimum and maximum flow rate through each box during the
operation course of the simulation.
Central unit supply air [C] The minimum and maximum temperature delivered by the central unit to
temperature the VAV boxes during the course of the simulation.
4–249
TRNSYS 18 – Mathematical Reference
(usually Type56). For the sake of convenience we use the "unmet load" outputs from Type151 to pass
back to the building. When looking for unmet load hours as required by standards such as ASHRAE
90.1 you should not use the unmet load output but should instead use another component (such as
Type584 in the TESS Utility library) to determine when the zone temperature falls below or above the
setpoints.
4.3.23.4. Nomenclature
Cp air [kJ/kg.K] Specific heat of dry air
f economizer [0..1] The fraction of outdoor air that can be used in economizer mode.
f overflow [0..1] A fraction that limits the volumetric flow of air through the air handler to the design flow rate.
f underflow [0..1] A fraction that sets the quantity of outdoor air being mixed into the return air at the air handler.
hair ,mixed [kJ/kg] Enthalpy of the mixed return and outside air entering the air handler fan.
hair ,ret,i [kJ/kg] Enthalpy of air returning from zone i (affected by return air energy gains/losses)
hbulk ,ret [kJ/kg] Enthalpy of the return air entering the air handler.
hClCoil ,out [kJ/kg] Enthalpy of air exiting the cooiling coil in the air handler.
h fan,out [kJ/kg] Enthalpy of air exiting the fan in the air handler.
hHtCoil ,out [kJ/kg] Enthalpy of air exiting the heating coil in the air handler.
m air ,mixed [kg/h] Mass flow rate of the mixed return and outside air entering the air handler fan.
m air ,ret [kg/h] Mass flow rate of return air entering the air handler
m air ,ret,i [kg/h] Mass flow rate of air returning from zone i
m water,i [kg/h] Mass flow rate of water added to or removed from the supply air to zone i.
qClCoil ,sens [kJ/h] Sensible energy removed from the air stream by the air handler’s cooling coil
qClCoil ,tot [kJ/h] Total (sensible plus latent) energy removed from the air stream by the air handler’s cooling coil
qdelivered,sens [kJ/h] Sensible energy delivered to the zones by the air handler.
q HtCoil ,sens [kJ/h] Sensible energy added to the air stream by the air handler’s heating coil
q HtCoil ,tot [kJ/h] Total (sensible plus latent) energy added to the air stream by the air handler’s heating coil.
qOA,sens [kJ/h] Sensible energy added to (or removed from) the air supply stream by mixing in outdoor air.
4–250
TRNSYS 18 – Mathematical Reference
qOA,tot [kJ/h]
Total energy (sensible and latent) added to (or removed from) the air supply stream by mixing
in outdoor air.
qreheat,i [kJ/h] Sensible energy added to the air supply stream for zone i by the reheat coil in the air handler.
qunmet,i [kJ/h] Sensible load for zone i that could not be met by the air handler at the current time.
Tbulk ,ret [C] Temperature of the mixed air returning to the air handler.
TClCoil ,out [C] Temperature ofair exiting the air handler’s cooling coil.
THtCoil ,out [C] Temperature of air exiting the air handler’s heating coil.
Tpreheat,out [C] Temperature of air exiting the air handler’s preheat coil.
vdesign [L/s] Volumetric flow rate of air of the air handler under design conditions.
veconomizer [L/s] Volumetric flow rate of air entering the economizer (if present) in the air handler.
vtot ,req [L/s] Volumetric flow rate of air required by all zones.
air,mixed [kgH2O/kgAir] Absolute humidity ratio of the mixed outside and return air entering the air handler.
air ,ret,i [kgH2O/kgAir] Absolute humidity ratio of air returning from zone i.
bulk ,ret [kgH2O/kgAir] Absolute humidity ratio of the return air entering the air handler.
ClCoil ,out [kgH2O/kgAir] Absolute humidity ratio of air leaving the cooling coil in the air handler.
fan,out [kgH2O/kgAir] Absolute humidity ratio of air leaving the fan in the air handler.
HtCoil ,out [kgH2O/kgAir] Absolute humidity ratio of air leaving the heating coil in the air handler.
4–251
TRNSYS 18 – Mathematical Reference
imposed on the central air handler’s coils. Type151 takes the sensible load as an input, using a sign
convention that is designed to make it compatible with Type56’s NTYPE2 output (QSENS). Heating loads
are negative values while cooling loads are positive values. It also takes the temperature and relative
humidity of each zone. The user specifies a minimum and maximum allowable volumetric flow rate to each
zone and a design outdoor air fraction. Based on current conditions, Type151 determines an air handler
supply temperature and a volumetric flow rate to each zone that it serves. It calculates the total load on the
air handler’s preheat coil, and cooling coil and the load on any VAV box reheat coils, providing each of
these as an output. These total loads can then be imposed by the user on whatever flow streams the central
plant provides to the air handler. In most cases, the flow streams will likely be hot and cold water. However,
it may be that heating is provided by steam, in which case the heating loads (preheat and reheat) would be
imposed on a steam flow. It may be that reheat is provided by hot water to each of the VAV boxes. In some
applications, however, reheat is by electric coil. How the user models the central plant is largely up to them.
The basic idea, however, of “imposing loads on a flow stream” is that a central plant supplies a conditioned
fluid (for example, water at 6.7C) to the air handler’s cooling coil. The cooling coil removes a certain amount
of energy from the air stream and dumps it into the chilled water stream. Consequently, the chilled water
stream returns to the central plant warmer. The most basic equation for imposing a cooling load on a chilled
water stream is:
𝑞̇ 𝐶𝑙𝐿𝑜𝑎𝑑
𝑇𝑐𝑤,𝑟𝑒𝑡𝑢𝑟𝑛 = 𝑇𝑐𝑤,𝑠𝑢𝑝𝑝𝑙𝑦 + Eq. 4.3.23-1
𝑚̇𝑤𝑎𝑡𝑒𝑟 𝐶𝑝𝑤𝑎𝑡𝑒𝑟
Since the sign for a heating load is a negative value of q, the above equation holds true for heating loads
as well.
4–252
TRNSYS 18 – Mathematical Reference
The total air flow rate that must be supplied by the air handler (vtot,req) is simply the sum of the zonal
requirements.
The enthalpy of the return air is the enthalpy of the zone air plus any energy that is added to the return air
divided by the mass flow rate of return air. Energy added to the return air is an input to the model for each
zone and allows the user to model situations in which energy gains from lighting balasts and other
equipment located in the plenum space above each zone can heat up the return air or in which return air
ducts exposed to unheated attic spaces can cool down the return air:
𝑞̇ 𝑟𝑒𝑡,𝑖
ℎ𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖 = ℎ𝑎𝑖𝑟,𝑖 + Eq. 4.3.23-8
𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖
The return air enthalpy, the absolute humidity ratio of zone air, and the absolute pressure of ambient air
are used to fully determine the return air state by means of a call to the TRNSYS psychrometrics routine.
The routine returns the temperature and relative humidity of the return air. Next, the enthalpy and humidity
ratio of the mixed return air are computed:
∑ ℎ𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖 𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖
ℎ𝑏𝑢𝑙𝑘,𝑟𝑒𝑡 = Eq. 4.3.23-9
𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡
4–253
TRNSYS 18 – Mathematical Reference
∑ 𝜔𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖 𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖
𝜔𝑏𝑢𝑙𝑘,𝑟𝑒𝑡 = Eq. 4.3.23-10
𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡
The psychrometrics routine is called again to determine the temperature and relative humidity of the mixed
return air.
The psychrometrics routine is again called, this time with pressure, enthalpy and humidity ratio in order to
fully determine the air state exiting the fan. The psychrometrics routine returns the temperature and relative
humidity.
4–254
TRNSYS 18 – Mathematical Reference
If the air stream temperature exiting the preheat coil is above the desired supply temperature, the cooling
coil brings it down. The psychrometrics routine is called with the desired supply temperature, and the
humidity ratio of the air exiting the preheat coil. The psychrometrics routine returns RH, humidity ratio, and
enthalpy. One of the features of the TRNSYS psychrometrics routine is that if the routine is called with air
conditions that are not physically possible (usually because those conditions are beyond the saturation line
on the psychrometric chart) then based on one of the arguments in the call, the routine will reset one of the
two values to the saturated conditions at the other value. In the present case, the desired supply
temperature and the humidity ratio of air exiting the preheat coil will almost always result in saturation (as
air cools, it is able to hold less moisture and condensation occurs). When the psychrometrics routine returns
its values, it will reset the humidity ratio to the saturation humidity ratio at the desired supply temperature
and the RH will return as 100%. Type151 makes a further check at this point. If the returned RH is greater
than 99%, Type151 resets the RH to 99% and calls the psychrometrics routine once more. Psychrometrics
returns the enthalpy and humidity ratio. The cooling coil total and sensible energy transfer is then calculated:
𝑞̇ 𝐶𝑙𝐶𝑜𝑖𝑙,𝑡𝑜𝑡 = 𝑚̇𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑 (ℎ𝑝𝑟𝑒ℎ𝑒𝑎𝑡,𝑜𝑢𝑡 − ℎ𝐶𝑙𝐶𝑜𝑖𝑙,𝑜𝑢𝑡 ) Eq. 4.3.23-18
Note that the temperature differences are written such that the cooling coil energy transfer is a positive
value when energy is removed from the air stream.
In the above equation, the sensible cooling energy required by each zone (q zone,sens,i) is taken from the
inputs to the model.
The user may limit the amount of reheat that each box may provide or may set the reheat capacity of one
or more boxes to a value of “-1” indicating that the reheat capacity is unlimited.
The sign convention of the mass flow rate is such that a positive result would indicate that the air handler
is adding moisture to the air stream, which is almost never the case. However, writing this term as moisture
addition (where a negative result indicates moisture removal) fits with the Type56 sign convention in which
a negative moisture gain can be specified as a dehumidification rate for a thermal zone.
Any unmet load should be returned to the building mode (normally Type56), usually with a one time step
delay in order to promote convergence. Note: it is important, therefore, to use a short timestep such as 5
minutes. Note that the energy provided by the reheat coils in the VAV boxes is added in to the “unmet load”
term here. This is done for convenience and to avoid additional connections between the VAV model and
4–255
TRNSYS 18 – Mathematical Reference
the building model. The reheat energy added must get back to the building model so that the zone
temperatures are correctly computed for its addition but it is understood that reheat does not really
constitute an unmet zone load.
4–256
TRNSYS 18 – Mathematical Reference
4.3.24. Type 152: Variable Air Volume (VAV) Air Handler with
Parallel Fan Powered (PFP) Boxes
Type152 models a variable air volume (VAV) air handler that mixes outdoor and return air centrally, is able
to preheat and/or cool air to a desired supply condition and provides heat/reheat at the VAV box level. The
zonal VAV boxes are equipped with the own fans
It is also important to note that Type151 is an energy rate control model and therefore takes zone loads as
inputs instead of taking a control signal from an external controller component. For additional information
on this distinction, please read the beginning of section 4.3.24.5.
1 Number of zones [-] The number of zones to be conditioned by this air handler.
If the air handler employs a preheat coil in cooling mode set this
3 Preheat coil? [-]
parameter to 1, otherwise set this value to 0.
Logical unit for fan The logical unit number which will be ASSIGNed to the fan
5 [-]
performance data performance data file.
Number of fan PLR The number of fan part-load ratio data points for which fraction
6 [-]
points of full-load power data is provided in the external data file.
7 Design fan power [kJ/hr] The rated power draw of the fan when operating at full speed.
The next five inputs are cycled, once for each VAV box (specified by parameter 1)
The minimum flow rate of air to the specified zone when the air
Minimum zonal air flow
10 [l/s] handler is operating. This parameter is cycled based on the
rate
value of the “number of zones” parameter.
The maximum flow rate of air to the specified zone when the air
Maximum zonal air
11 [l/s] handler is operating. This parameter is cycled based on the
flow rate
value of the “number of zones” parameter.
4–257
TRNSYS 18 – Mathematical Reference
The power consumed by the fan in the VAV terminal box for
13 Box fan power for zone [kJ/h]
each zone.
INPUTS
The fraction of the design air flow rate that will be outside air
(fresh air) at the current timestep. NOTE: normally, when a
6 Fraction of outside air [-] building is unoccupied, its outdoor air dampers close. To model
this correctly, the value of this input should go to zero when the
building is not occupied.
Set this value to 1 if the preheat coil can be active in the central
7 Preheat okay? [-] air handler. Note: the "Preheat coil?" parameter must also be set
to 1 for the preheat coil to be active.
The next three parameters are cycled, once for each VAV box (specified by parameter 1)
The percent relative humidity of the zone air. This input is cycled
10 Zone relative humidity [%]
based on the value of the “number of zones” parameter.
The amount of energy that will be added to the return air stream
for the specified zone (before outside air is mixed in). This input
12 Return air heat gain [kJ/hr]
is cycled based on the value of the “number of zones”
parameter.
4–258
TRNSYS 18 – Mathematical Reference
OUTPUTS
The rate at which energy is used by the preheat coil to boost the
1 Preheat coil energy [kJ/hr] temperature of the mixed air to the supply air set point. The
preheat coil is used in cooling mode only.
Cooling coil heat The rate at which energy is removed from the air stream by the
2 [kJ/hr]
transfer cooling coil.
Cooling coil sensible The rate at which sensible energy is removed from the air
3 [kJ/hr]
heat transfer stream by the cooling coil.
5 Fan power [kJ/hr] The rate at which the air handler fan consumes energy.
6 Fan PLR [-] The fractional speed at which the VAV fan is currently running.
Sensible load due to The sensible load imposed on the air handler by the introduction
8 [kJ/hr]
outside air of the outside air into the system.
The rate at which the air handler failed to meet the sensible
9 Unmet sensible loads [kJ/hr]
loads of the zones (a cooling load unmet is a positive value).
Delivered sensible
10 [kJ/hr] The rate at which sensible energy is delivered to the zones.
energy rate
The dry bulb temperature of air exiting the preheat coil and
entering the cooling coil. This output is needed for AHUs with
Cooling coil inlet direct expansion (DX) coils in them because the performance of
11 [C]
drybulb temperature the DX coil (for example a Type42 performance map) requires
the coil inlet conditions (and ambient dry bulb temperature) in
order to return COP.
The wet bulb temperature of air exiting the preheat coil and
entering the cooling coil. This output is needed for AHUs with
Cooling coil inlet direct expansion (DX) coils in them because the performance of
12 [C]
wetbulb temperature the DX coil (for example a Type42 performance map) requires
the coil inlet conditions (and ambient dry bulb temperature) in
order to return COP.
The wet bulb temperature of air exiting the preheat coil and
entering the cooling coil. This output is needed for AHUs with
Cooling coil inlet direct expansion (DX) coils in them because the performance of
13 [%]
relative humidity the DX coil (for example a Type42 performance map) requires
the coil inlet conditions (and ambient dry bulb temperature) in
order to return COP.
4–259
TRNSYS 18 – Mathematical Reference
Central unit outlet The dry bulb temperature of the air being supplied by the central
14 [C]
temperature unit to the zone boxes.
Central unit outlet The relative humidity of the air being supplied by the central unit
15 [%]
relative humidity to the zone boxes.
The next six outputs are cycled, once for each VAV box (specified by parameter 1)
The rate at which energy must be added back to the zone model
to account for load not met by the AHU. This output is also used
Unmet /additional load to send additional load caused by the supply air temperature
18 [kJ/hr]
for zone being below zone temperature back to the zone model.This
output is cycled based on the value of the “number of zones”
parameter.
Zone supply air flow The volumetric flow rate of air to each zone. This output is
20 [l/s]
rate cycled based on the value of the “number of zones” parameter.
Minimum possible flow [L/s] This field is taken from the parameter values set for each zone.
rate for each box
Maximum possible flow [L/s] This field is taken from the parameter values set for each zone.
rate for each box
4–260
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
Economizer n/a This field has a value of either “active” or “none” depending on the value
of parameter 2
Preheat Coil n/a This field has a value of either “active” or “none” depending on the value
of parameter 3
Reheat coil load [kWh] The load on each of the VAV box reheat coils.
Terminal unit fan [kWh] The power consumed by each terminal unit (box) fan.
power
Fan energy [kWh] The energy consumed by the central unit fan.
consumption
Preheat coil load [kWh] The load on the central preheat coil
Cooling coil total load [kWh] The total energy (sensible plus latent) removed by the central cooling
coil.
Cooling coil sensible [kWh] The sensible energy removed by the central cooling coil.
load
Combined reheat coil [kWh] The total load on all VAV box reheat coils
load
Combined PFP Box [kWh] The power consumed by all VAV box fans.
Fan Energy
Consumption
Box flow during [L/s] The minimum and maximum flow rate through each box during the
operation course of the simulation.
Central unit supply air [C] The minimum and maximum temperature delivered by the central unit to
temperature the VAV boxes during the course of the simulation.
4–261
TRNSYS 18 – Mathematical Reference
When looking for unmet load hours as required by standards such as ASHRAE 90.1 you should not
use the unmet load output but should instead use another component (such as Type584 in the TESS
Utility library) to determine when the zone temperature falls below or above the setpoints.
4.3.24.4. Nomenclature
Cp air [kJ/kg.K] Specific heat of dry air
f economizer [0..1] The fraction of outdoor air that can be used in economizer mode.
f overflow [0..1] A fraction that limits the volumetric flow of air through the air handler to the design flow rate.
f underflow [0..1] A fraction that sets the quantity of outdoor air being mixed into the return air at the air handler.
hair ,mixed [kJ/kg] Enthalpy of the mixed return and outside air entering the air handler fan.
hair ,ret,i [kJ/kg] Enthalpy of air returning from zone i (affected by return air energy gains/losses)
hbulk ,ret [kJ/kg] Enthalpy of the return air entering the air handler.
hClCoil ,out [kJ/kg] Enthalpy of air exiting the cooiling coil in the air handler.
h fan,out [kJ/kg] Enthalpy of air exiting the fan in the air handler.
hHtCoil ,out [kJ/kg] Enthalpy of air exiting the heating coil in the air handler.
m air ,mixed [kg/h] Mass flow rate of the mixed return and outside air entering the air handler fan.
m air ,ret [kg/h] Mass flow rate of return air entering the air handler
m air ,ret,i [kg/h] Mass flow rate of air returning from zone i
m water,i [kg/h] Mass flow rate of water added to or removed from the supply air to zone i.
qClCoil ,sens [kJ/h] Sensible energy removed from the air stream by the air handler’s cooling coil
qClCoil ,tot [kJ/h] Total (sensible plus latent) energy removed from the air stream by the air handler’s cooling coil
qdelivered,sens [kJ/h] Sensible energy delivered to the zones by the air handler.
q HtCoil ,sens [kJ/h] Sensible energy added to the air stream by the air handler’s heating coil
q HtCoil ,tot [kJ/h] Total (sensible plus latent) energy added to the air stream by the air handler’s heating coil.
qOA,sens [kJ/h] Sensible energy added to (or removed from) the air supply stream by mixing in outdoor air.
qOA,tot [kJ/h]
Total energy (sensible and latent) added to (or removed from) the air supply stream by mixing
in outdoor air.
4–262
TRNSYS 18 – Mathematical Reference
qreheat,i [kJ/h] Sensible energy added to the air supply stream for zone i by the reheat coil in the air handler.
qunmet,i [kJ/h] Sensible load for zone i that could not be met by the air handler at the current time.
Tbulk ,ret [C] Temperature of the mixed air returning to the air handler.
TClCoil ,out [C] Temperature ofair exiting the air handler’s cooling coil.
THtCoil ,out [C] Temperature of air exiting the air handler’s heating coil.
Tpreheat,out [C] Temperature of air exiting the air handler’s preheat coil.
vdesign [L/s] Volumetric flow rate of air of the air handler under design conditions.
veconomizer [L/s] Volumetric flow rate of air entering the economizer (if present) in the air handler.
vtot ,req [L/s] Volumetric flow rate of air required by all zones.
air,mixed [kgH2O/kgAir] Absolute humidity ratio of the mixed outside and return air entering the air handler.
air ,ret,i [kgH2O/kgAir] Absolute humidity ratio of air returning from zone i.
bulk ,ret [kgH2O/kgAir] Absolute humidity ratio of the return air entering the air handler.
ClCoil ,out [kgH2O/kgAir] Absolute humidity ratio of air leaving the cooling coil in the air handler.
fan,out [kgH2O/kgAir] Absolute humidity ratio of air leaving the fan in the air handler.
HtCoil ,out [kgH2O/kgAir] Absolute humidity ratio of air leaving the heating coil in the air handler.
4–263
TRNSYS 18 – Mathematical Reference
convention that is designed to make it compatible with Type56’s NTYPE2 output (QSENS). Heating loads
are negative values while cooling loads are positive values. It also takes the temperature and relative
humidity of each zone. The user specifies a minimum and maximum allowable volumetric flow rate to each
zone and a design outdoor air fraction. Based on current conditions, Type152 determines an air handler
supply temperature and a volumetric flow rate to each zone that it serves. It calculates the total load on the
air handler’s preheat coil, and cooling coil and the load on any VAV box reheat coils, providing each of
these as an output. These total loads can then be imposed by the user on whatever flow streams the central
plant provides to the air handler. In most cases, the flow streams will likely be hot and cold water. However,
it may be that heating is provided by steam, in which case the heating loads (preheat and reheat) would be
imposed on a steam flow. It may be that reheat is provided by hot water to each of the VAV boxes. In some
applications, however, reheat is by electric coil. How the user models the central plant is largely up to them.
The basic idea, however, of “imposing loads on a flow stream” is that a central plant supplies a conditioned
fluid (for example, water at 6.7C) to the air handler’s cooling coil. The cooling coil removes a certain amount
of energy from the air stream and dumps it into the chilled water stream. Consequently, the chilled water
stream returns to the central plant warmer. The most basic equation for imposing a cooling load on a chilled
water stream is:
𝑞̇ 𝐶𝑙𝐿𝑜𝑎𝑑
𝑇𝑐𝑤,𝑟𝑒𝑡𝑢𝑟𝑛 = 𝑇𝑐𝑤,𝑠𝑢𝑝𝑝𝑙𝑦 + Eq. 4.3.24-1
𝑚̇𝑤𝑎𝑡𝑒𝑟 𝐶𝑝𝑤𝑎𝑡𝑒𝑟
Since the sign for a heating load is a negative value of q, the above equation holds true for heating loads
as well.
4–264
TRNSYS 18 – Mathematical Reference
𝑞̇ 𝑧𝑜𝑛𝑒,𝑠𝑒𝑛𝑠,𝑖
𝑣̇ 𝑎𝑖𝑟,𝑖 = Eq. 4.3.24-3
3.6𝜌𝑎𝑖𝑟 𝐶𝑝𝑎𝑖𝑟 (𝑇𝑧𝑜𝑛𝑒,𝑖 − 𝑇𝑎𝑖𝑟,𝑠𝑢𝑝𝑝𝑙𝑦 )
If the calulated volumetric air flow is above the maximum for any zone, it is limited to that zone’s maximum.
The total air flow rate that must be supplied by the air handler (vtot,req) is simply the sum of the zonal
requirements.
The enthalpy of the return air is the enthalpy of the zone air plus any energy that is added to the return air
divided by the mass flow rate of return air. Energy added to the return air is an input to the model for each
zone and allows the user to model situations in which energy gains from lighting ballasts and other
equipment located in the plenum space above each zone can heat up the return air or in which return air
ducts exposed to unheated attic spaces can cool down the return air:
𝑞̇ 𝑟𝑒𝑡,𝑖
ℎ𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖 = ℎ𝑎𝑖𝑟,𝑖 + Eq. 4.3.24-8
𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖
The return air enthalpy, the absolute humidity ratio of zone air, and the absolute pressure of ambient air
are used to fully determine the return air state by means of a call to the TRNSYS psychrometrics routine.
4–265
TRNSYS 18 – Mathematical Reference
The routine returns the temperature and relative humidity of the return air. Next, the enthalpy and humidity
ratio of the mixed return air are computed:
∑ ℎ𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖 𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖
ℎ𝑏𝑢𝑙𝑘,𝑟𝑒𝑡 = Eq. 4.3.24-9
𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡
∑ 𝜔𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖 𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡,𝑖
𝜔𝑏𝑢𝑙𝑘,𝑟𝑒𝑡 = Eq. 4.3.24-10
𝑚̇𝑎𝑖𝑟,𝑟𝑒𝑡
The psychrometrics routine is called again to determine the temperature and relative humidity of the mixed
return air.
The psychrometrics routine is again called, this time with pressure, enthalpy and humidity ratio in order to
fully determine the air state exiting the fan. The psychrometrics routine returns the temperature and relative
humidity.
4–266
TRNSYS 18 – Mathematical Reference
relative humidity and enthalpy of air exiting the preheat coil. The preheat coil energy (an output) is then set
by:
𝑞̇ 𝑝𝑟𝑒ℎ𝑒𝑎𝑡 = 𝑚̇𝑎𝑖𝑟,𝑚𝑖𝑥𝑒𝑑 (ℎ𝑝𝑟𝑒ℎ𝑒𝑎𝑡,𝑜𝑢𝑡 − ℎ𝑓𝑎𝑛,𝑜𝑢𝑡 ) Eq. 4.3.24-17
Note that the temperature differences are written such that the cooling coil energy transfer is a positive
value when energy is removed from the air stream.
In the above equation, the sensible cooling energy required by each zone (q zone,sens,i) is taken from the
inputs to the model. The power drawn by the box fans is assumed to result in a temperature rise in the air
stream. The box fans are assumed to be constant volume such that when on they always draw the same
power (as specified for each zone among the Type’s parameters).
The user may limit the amount of reheat that each box may provide or may set the reheat capacity of one
or more boxes to a value of “-1” indicating that the reheat capacity is unlimited.
The sign convention of the mass flow rate is such that a positive result would indicate that the air handler
is adding moisture to the air stream, which is almost never the case. However, writing this term as moisture
addition (where a negative result indicates moisture removal) fits with the Type56 sign convention in which
a negative moisture gain can be specified as a dehumidification rate for a thermal zone.
4–267
TRNSYS 18 – Mathematical Reference
Lastly, Type152 performs a sensible energy balance in order to make sure that the zone loads were met.
In this case:
𝑞̇ 𝑢𝑛𝑚𝑒𝑡,𝑖 = 𝑞̇ 𝑧𝑜𝑛𝑒,𝑠𝑒𝑛𝑠,𝑖 + 𝑞̇ 𝑑𝑒𝑙𝑖𝑣𝑒𝑟𝑒𝑑,𝑠𝑒𝑛𝑠,𝑖 + 𝑞̇ 𝑟𝑒ℎ𝑒𝑎𝑡,𝑖 + 𝑝̇𝑏𝑜𝑥𝑓𝑎𝑛,𝑖 Eq. 4.3.24-23
Any unmet load should be returned to the building mode (normally Type56), usually with a one time step
delay in order to promote convergence. Note: it is important, therefore, to use a short time step such as 5
minutes. Note that the energy provided by the reheat coils and by fans in the VAV boxes is added in to the
“unmet load” term here. This is done for convenience and to avoid additional connections between the VAV
model and the building model. The reheat energy added must get back to the building model so that the
zone temperatures are correctly computed for its addition but it is understood that reheat does not really
constitute an unmet zone load.
4–268
TRNSYS 18 – Mathematical Reference
1 Design Atmospheric [atm] The pressure of the atmosphere for the cooling tower air at design
Pressure conditions.
2 Design Inlet Fluid [C] The temperature of the fluid entering the cooling tower at design
Temperature conditions.
3 Design Outlet Fluid [C] The temperature of the fluid temperature exiting the cooling tower
Temperature at design conditions.
4 Design Fluid Flow Rate [kg/h] The flow rate of the fluid through the tower at design conditions.
5 Design Entering Air [C] The wet bulb temperature of the air entering the cooling tower at
Wet Bulb Temperature design conditions.
6 Design Air Flow Rate [kg/h] The flow rate of the air through the cooling tower at design
conditions.
7 Design Fan Power [kJ/h] The power consumed by the fan at design conditions.
8 Natural Convection [-] The fraction of the design airflow though the tower when the fan is
Airflow Fraction off and the tower is operating in natural convection mode.
9 Natural Convection [-] The fraction of the design capacity of the tower when the fan is off
Capacity Fraction and the tower is operating in natural convection mode.
INPUTS
1 Entering Fluid [C] The temperature of the fluid entering the cooling tower.
Temperature
2 Entering Fluid Flow [kg/h] The flow rate of fluid entering the cooling tower.
Rate
3 Entering Air Wet Blub [C] The wet bulb temperature of the air entering the cooling tower.
Temperature
4 Atmospheric Pressure [atm] The atmospheric pressure of the air in the cooling tower.
4–269
TRNSYS 18 – Mathematical Reference
5 Leaving Fluid Setpoint [C] The setpoint for the fluid leaving the tower. The tower will
operature at the lowest speed that creates a fluid leaving
temperature equal to or less than the setpoint.
OUTPUTS
1 Leaving Fluid [C] The temperature of the fluid leaving the cooling tower.
Temperature
2 Leaving Fluid Flow [kg/h] The flow rate of water exiting the tower sump.
Rate
3 Leaving Air Wet Bulb [C] The wet bulb temperature of the air leaving the cooling tower.
Temperature
4 Leaving Air Flow Rate [kg/h] The flow rate of the air leaving the cooling tower.
6 Fan Speed [-] The speed that the tower fan is operating to maintain the setpoint.
UA at Design [kJ/h K] The calculated UA based on the design full flow conditions.
Conditions
4–270
TRNSYS 18 – Mathematical Reference
4–271
TRNSYS 18 – Mathematical Reference
Wat er
m Tw,i
w,i
Air
mw,o Tw,o
m a Ta,i a,i
Ts Sump
1 Calculation Mode [-] The mode that determines whether the performance data will be
read from an external data file (=2) or that the user will supply the
coefficients of the mass transfer relationship to be used in the
analysis (=1)
2 Flow Geometry [-] The flow geometry for the cooling tower (1 = Counterflow geometry,
2 = Crossflow geometry).
3 Number of Tower Cells [-] The number of identical tower cells that make up the cooling tower.
4 Maximum Cell Flow [m3/h] The maximum volumetric air flow rate for each cell.
Rate
5 Fan Power at [kW] The power consumed by one cell fan at the maximum volumetric
Maximum Flow air flow rate specified.
6 Natural Convection [m3/h] The constant volumetric flow rate of air per cell when a cell is
Cell Flow Rate operating in its natural convection mode.
4–272
TRNSYS 18 – Mathematical Reference
7 Sump Volume [m3] The sump volume for the cooling tower. Set this parameter to -1 if a
steady state analysis is to be used for the sump temperature.
8 Initial Sump [C] The temperature of the sump at the beginning of the simulation.
Temperature
9 Mass Transfer [-] The constant used in the relationship between flow rate and heat
Coefficient transfer coefficient.
10 Mass Transfer [-] The exponent used in the relationship between the mass flow rate
Exponent and the heat transfer coefficient.
11 Print Performance [-] The mode for writing the results from the curve-fit and the
Results? performance data to the output file (1 = Print the results to the
output file, 2 = Don't print the results).
9 Logical Unit [-] The logical unit through which the tower performance data will be
read. Each external file that TRNSYS reads from or writes to must
be assigned a unique logical unit in the TRNSYS input file.
10 Number of Data Points [-] The number of data points that will be read from the external
cooling tower performance data file.
11 Print Performance [-] The mode for writing the results from the curve-fit and the
Results? performance data to the output file (1 = Print the results to the
output file, 2 = Don't print the results).
INPUTS
1 Water Inlet [C] The temperature of the water entering the cooling tower.
Temperature
2 Inlet Water Flow Rate [kg/h] The flow rate of water entering the cooling tower.
3 Dry Bulb Temperature [C] The dry bulb temperature of the air entering the cooling tower.
4 Wet Bulb Temperature [C] The wet bulb temperature of the air entering the cooling tower.
5 Sum Make-Up [C] The temperature of the replacement water entering the sump.
Temperature
6 Relative Fan Speed for [-] The relative fan speed (fraction of maximum volumetric flow) of the
Cell specified tower cell. Set this input to -1 if the tower is operating in
natural convection mode.
OUTPUTS
2 Sump Flow Rate [kg/h] The flow rate of water exiting the tower sump.
4–273
TRNSYS 18 – Mathematical Reference
3 Fan Power Required [kW] The total fan power requirement for the cooling tower.
4 Heat Rejection Rate [kJ/h] The rate at which energy is transferred to the air stream from the
tower cells.
5 Cell Outlet [C] The effective mixed outlet temperature of the water from the tower
Temperature cells that is the inlet to the sump.
6 Water Loss Rate [kg/h] The rate at which water is evaporated into the air stream from the
cooling tower cells.
7 Outlet Air Dry Bulb [C] The bulk dry bulb temperature of the air exiting the cooling tower.
8 Outlet Air Wet Bulb [C] The bulk wet bulb temperature of the air exiting the cooling tower.
9 Outlet Humidity Ratio [-] The bulk humidity ratio (kg's of H2O / kg of dry air) of the air exiting
the cooling tower.
10 Outlet Air Flow Rate [kg/h] The flow rate of dry air exiting the cooling tower.
11 Change in Internal [kJ] The change in internal energy of the sump since the beginning of
Energy the simulation. The internal energy change is an energy term and
not an energy rate and therefore should not be integrated.
TEXT FIELDS
4–274
TRNSYS 18 – Mathematical Reference
4.3.26.4. Nomenclature
AV surface area of water droplets per tower cell exchange volume
Cpw constant pressure specific heat of water
Cs average derivative of saturation air enthalpy with respect to temperature
ha enthalpy of moist air per mass of dry air
hD mass transfer coefficient
hs enthalpy of saturated air
ma mass flow rate of dry air
mw mass flow rate of water
Ncell number of tower cells operating
Ntu mass transfer number of transfer units
Q cell overall tower cell heat transfer rate
Ta air temperature
Tmain temperature of water make-up to sump
Ts fully-mixed sump temperature
Tw water temperature
Twb ambient air wet bulb temperature
Tref water reference temperature (0 ° C)
Vcell total tower cell exchange volume
4–275
TRNSYS 18 – Mathematical Reference
A minimum of 2 and a maximum of 50 data points are required. The correlation used in this program is in
terms of the ratio of the mass flow rate of water to the mass flow rate of air. The data must contain at least
two different flow rate ratios in order for the program to correlate the data. For best results, the performance
data should cover a range of conditions typical of the expected operation of the tower.
The provided Type162 example data file shown below was created from a manufacturer’s nominal 240 ton
cooling tower:
4–276
TRNSYS 18 – Mathematical Reference
Ai r Ef fecti venes s
h
= a
a h
a,m ax
h
a,m ax
Humidity Ratio
h
a
4–277
TRNSYS 18 – Mathematical Reference
of the air enthalpy difference to the maximum possible air enthalpy difference. For a known effectiveness,
the heat rejection for an individual tower cell is then
𝑄𝑐𝑒𝑙𝑙 = 𝜀𝑎 𝑚𝑎 (ℎ𝑎,𝑤,𝑖 − ℎ𝑎,𝑖 ) Eq. 4.3.26-1
Using the assumption that the Lewis number equals one, Braun (3) has shown that the air effectiveness
can be determined using the relationships for sensible heat exchangers with modified definitions for the
number of transfer units and the capacitance rate ratios. For a counterflow cooling tower,
1 − 𝑒𝑥𝑝(−𝑁𝑇𝑈(1 − 𝑚∗ ))
𝜀𝑎 = Eq. 4.3.26-2
1 − 𝑚∗ 𝑒𝑥𝑝(−𝑁𝑇𝑈(1 − 𝑚∗ ))
and for the cross-flow cooling tower,
1
𝜀𝑎 = (1 − 𝑒𝑥𝑝 (−𝑚∗ (1 − 𝑒𝑥𝑝(−𝑁𝑇𝑈)))) Eq. 4.3.26-3
𝑚∗
where,
ℎ𝐷 𝐴𝑣 𝑉𝑐𝑒𝑙𝑙
𝑁𝑇𝑈 = Eq. 4.3.26-4
𝑚𝑎
𝑚𝑎 𝐶𝑠
𝑚∗ = Eq. 4.3.26-5
𝑚𝑤,𝑖 𝐶𝑝𝑤
The saturation specific heat, Cs, is defined as the average slope of the saturation enthalpy with respect to
temperature curve. It is determined with the water inlet and outlet conditions and psychometric data using
ℎ𝑠, 𝑤, 𝑖 − ℎ𝑠,𝑤,𝑜
𝐶𝑠 = Eq. 4.3.26-6
𝑇𝑤,𝑖 − 𝑇𝑤,𝑜
Tower Cell Performance Data
In order to determine tower effectiveness, it is necessary to have a relationship for the number of transfer
units. General correlations for heat and mass transfer in cooling towers in terms of the physical tower
characteristics are not readily available. As presented in the ASHRAE Equipment Guide (1), mass transfer
data is generally correlated in the form
ℎ𝐷 𝐴𝑉 𝑉𝑐𝑒𝑙𝑙 𝑚𝑤 𝑛
= 𝑐( ) Eq. 4.3.26-7
𝑚𝑤 𝑚𝑎
Multiplying both sides of the above equation by m w/ m a and utilizing the definition for NTU gives
𝑚𝑤 1+𝑛
𝑁𝑇𝑈 = 𝑐 ( ) Eq. 4.3.26-8
𝑚𝑎
The exponent n is typically between -0.35 and -1.1, while c may be in the range of 0.5 to 5. Simpson and
Sherwood (2) give data for a number of different tower designs. It is usually necessary to correlate specific
data in order to determine the parameters for a particular tower. This component correlates performance
data when in mode 2.
Tower Cell Exit Conditions
From an overall energy balance, the outlet temperature from a tower cell that is an inlet to the sump is
determined as
𝑚𝑤,𝑖 𝐶𝑝𝑤 (𝑇𝑤,𝑖 − 𝑇𝑟𝑒𝑓 ) − 𝑄𝑐𝑒𝑙𝑙
𝑇𝑤,𝑜 = + 𝑇𝑟𝑒𝑓 Eq. 4.3.26-9
𝑚𝑤,𝑜 𝐶𝑝𝑤
Most analyses neglect the water loss and assume that m w,o = mw,i. Generally, the water loss rate is on the
order of 1% to 4% of the entering water flow rate. Neglecting this loss can result in about a 1 degree Celsius
error in the exit water temperature. It is also necessary to know the water loss for analyzing the performance
4–278
TRNSYS 18 – Mathematical Reference
of the cooling tower sump, in order to incorporate the effects of water makeup. This component model
includes the effect of the water loss.
From an overall mass balance, the exit water flow rate is
𝑚𝑤,𝑜 = 𝑚𝑤,𝑖 − 𝑚𝑎 (𝜔𝑎,𝑜 − 𝜔𝑎,𝑖 ) Eq. 4.3.26-10
The exit humidity ratio is determined from an analytic solution to an equation for the mass transfer assuming
an effective water surface condition and a Lewis Number of unity (3).
𝜔𝑎,𝑜 = 𝜔𝑠,𝑤,𝑒 + (𝜔𝑎,𝑖 − 𝜔𝑠,𝑤,𝑒 )𝑒𝑥𝑝(−𝑁𝑇𝑈) Eq. 4.3.26-11
The effective saturation humidity ratio, s,w,e, is found with psychometric data using an effective saturation
enthalpy computed from the solution to the heat transfer equation.
ℎ𝑎,𝑜 − ℎ𝑎,𝑖
ℎ𝑠,𝑤,𝑒 = ℎ𝑎,𝑖 + Eq. 4.3.26-12
1 − 𝑒𝑥𝑝(−𝑁𝑇𝑈)
where,
ℎ𝑎,𝑜 = ℎ𝑎,𝑖 + 𝜀𝑎 (ℎ𝑠,𝑤,𝑖 − ℎ𝑎,𝑖 ) Eq. 4.3.26-13
To determine the air conditions exiting the tower, the exit air from each of the cells are combined to find
"bulk" air conditions. The total exiting air flow rate is the sum of the flow rates exiting the cells,
𝑁𝑐𝑒𝑙𝑙
The exiting enthalpy is found by summing the energy flow rates exiting the cells and dividing by the total air
flow rate,
𝑁
𝑐𝑒𝑙𝑙
∑𝑘=1 (𝑚̇𝑎 ℎ𝑎,𝑜 ) 𝑘 Eq. 4.3.26-15
ℎ𝑎,𝑒𝑥𝑖𝑡 =
𝑚̇𝑎,𝑒𝑥𝑖𝑡
From a mass balance on the moist air, an overall exit air humidity ratio can be calculated,
𝑁
𝑐𝑒𝑙𝑙
∑𝑘=1 (𝑚̇𝑤,𝑖 − 𝑚̇𝑤,𝑜 ) 𝑘 Eq. 4.3.26-16
𝜔𝑎,𝑒𝑥𝑖𝑡 = + 𝜔𝑎,𝑖
𝑚̇𝑎,𝑒𝑥𝑖𝑡
Using ha,exit and a,exit, psychometrics data is used to find the bulk dry bulb temperature, T a,exit, and the bulk
wet bulb temperature, Ta,exit.
Natural Convection Mode
Under certain conditions cooling towers are operated with the fans off, using natural convection to move
the air through the towers. This component allows a constant convective air flow rate to be specified as a
parameter. The natural convection mode of the model is used when -1 is input for the fan speed control
signal.
4–279
TRNSYS 18 – Mathematical Reference
𝑁𝑐𝑒𝑙𝑙
𝑑𝑇𝑠
𝜌𝑤 = ( ∑ (𝑚̇𝑤,𝑜 (𝑇𝑤,𝑜 − 𝑇𝑠 )) )
𝑑𝑡 𝑘
𝑘=1
𝑁𝑐𝑒𝑙𝑙 Eq. 4.3.26-17
If the user specifies a sump volume less than or equal to zero, the left-hand side of the energy balance
equation is set to zero and the steady-state sump temperature is computed.
The cooling tower fans are assumed to obey the fan laws. Given the power requirement at maximum fan
speed, the power consumption for a cooling tower consisting of N cell tower cells is calculated as
𝑁𝑐𝑒𝑙𝑙
where k and Pmax,k are the relative fan speed and maximum power for the k th tower cell.
4.3.26.6. References
1. ASHRAE Equipment Guide, American Society of Heating, Refrigerating, and Air Conditioning Engineers,
Atlanta, 1983.
2. Simpson, W.M. and Sherwood, T.K.,"Performance of Small Mechanical Draft Cooling Towers,"
Refrigerating Engineering, December, 1946.
3. Braun, J.E., “Methodologies for the Design and Control of Chilled Water Systems,” Ph. D. Thesis,
University of Wisconsin - Madison, 1988
4–280
TRNSYS 18 – Mathematical Reference
4.4. Hydrogen
Acknowledgements
The Hydrogen Systems components in this section are part of the HYDROGEMS library developed by
Øystein Ulleberg and Ronny Glöckner at the Institute for Energy Technology (IFE), Norway. The
components were originally integrated into the standard TRNSYS library for version 16.
Available Components
At the core of the Hydrogen Energy Systems library are two different fuel cell models, Type 170 and Type
173. Type 170 models a Proton Exchange Membrane Fuel Cell (PEMFC) and Type 173 models an Alkaline
Fuel Cell (AFC). Both models include detailed electrical, thermodynamic and thermal models and can
operate from Hydrogen and Air or Hydrogen and (pure) Oxygen.
Hydrogen storage is modeled by Type 164 (compressed gas tank). The model calculates the gas pressure
using the ideal gas law or the van der Waals equation of state for real gases.
Electricity generation from Hydrogen in an Advanced Alkaline Water Electrolyzer is modeled in Type 160.
The model is based on a combination of fundamental thermodynamics, heat transfer theory, and empirical
electrochemical relationships. A dynamic thermal model is also included.
The library also includes dedicated high level controllers (Type 100, electrolyzer controller, and Type 105,
Master level controller) and accessories (Type 167, multistage compressor).
Detailed Mathematical Reference
In addition to this manual, the Hydrogen Systems components mathematical description is provided as an
EES-based executable program which is included with TRNSYS. The program
(HydrogenSystemsDocumentation.exe) is located in "%TRNSYS18%\Documentation"
(where %TRNSYS18% is the TRNSYS 18 installation directory).
4–281
TRNSYS 18 – Mathematical Reference
2 Lower SOC limit [-] H2-storage level at which the electrolyzer is to be switched ON
3 Upper SOC limit [-] H2-storage level at which electrolyzer is to be switched OFF
4 Idling power [W] Minimum allowable idling power for electrolyzer (usually 20% of
rated power)
INPUTS
2 Power to electrolyzer [W] If the electrolyzer mode parameter is set to 1 the electrolyzer will
run on the excess power on mini-grid. If the electrolyzer mode
parameter is set to 2 the electrolyzer will run at full power.
OUTPUTS
1 Electrolyzer control [-] Control signal (0=Idle, 1=full or variable power). NOTE: Care
signal must be taken when directing this control signal to the
electrolyzer. This control signal should not always be connected
to the electrolyzer. Instead the power set point signal (output#2)
should be used instead.
2 Power set point [W] Power set point signal. NOTE: electrolyzers are connected to
the mini-grid via power conditioning equipment. Hence, the
power set point signal should be directed to this equipment, and
not to the electrolyzer itself.
TEXT FIELDS
Control Mode [-] “Variable Power” or “Fixed Power” depending on the value of Parameter
1
4–282
TRNSYS 18 – Mathematical Reference
4.4.1.4. Nomenclature
Pexcess [W] Excess power from the RE sources to the mini-grid
SOC [-] State Of Charge of the energy storage
Pely,set [W] Electrolyzer setpoint power
Pidle [W] Electrolyzer idling (minimum) power
ELlow [-] State Of Charge for which the Electrolyzer is switched ON
ELup [-] State Of Charge for which the Electrolyzer is switched OFF
CONTROL STRATEGY
If the electrolyzer is currently OFF (Idling):
If SOC < ELlow, switch ON and operate with Pely,set = Pexcess
Else, remain OFF (Idling)
If the electrolyzer is currently ON:
If SOC > ELup, switch OFF (Idling)
Else, keep operating at Pely,set = Pexcess
IDLING POWER
The electrolyzer is assumed to have a minimum idling power. When switched "OFF", P ely,set is not set to
zero but to Pidle.
CONTROLLER MODES
The controller has two modes: Constant power and Variable power.
In Variable Power mode (MODE = 1):
4–283
TRNSYS 18 – Mathematical Reference
4–284
TRNSYS 18 – Mathematical Reference
Number of cells is
3 [-] Number of cells in series per stack
series
Number of stacks in
4 [-] Number of stacks in parallel per unit
parallel
Maximum allowable
5 [mA/cm2] Maximum allowable current density per stack
current density
Maximum allowable
6 [C] Maximum allowable operating temperature
operating temperature
10 Electrolyzer type [-] The identification number of the electrolyzer listed in external file
INPUTS
Electrolyzer control
1 [-] Electrolyzer operating switch. 0=OFF, 1=ON
signal
4–285
TRNSYS 18 – Mathematical Reference
Electrolyzer
4 environment [C] Ambient (or room) temperature
temperature
6 Cooling water flow rate [m3/hr] Volumetric flow rate of cooling water
OUTPUTS
4 Hydrogen production [m3/hr] The volumetric rate at which hydrogen gas is produced by the
rate electrolyzer.
5 Oxygen production rate [m3/hr] The volumetric rate at which oxygen gas is produced by the
electrolyzer.
4–286
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
4–287
TRNSYS 18 – Mathematical Reference
For this reaction to occur a minimum electric voltage must be applied to the two electrodes. This minimum
voltage, or reversible voltage, can be determined from Gibbs energy for water splitting (Error! Reference
ource not found.). In an alkaline electrolyzer the electrolyte is usually aqueous potassium hydroxide
(KOH), where the potassium ion K+ and hydroxide ion OH- take care of the ionic transport. The anodic and
cathodic reactions taking place here are:
Anode: 2 OH- (aq) ½ O2(g) + H2O (l) + 2 e- Eq. 4.4.2-2
In an alkaline solution the electrodes must be resistant to corrosion, and must have good electric
conductivity and catalytic properties, as well as good structural integrity, while the diaphragm should have
low electrical resistance. This can, for instance, be achieved by using anodes based on nickel, cobalt, and
iron (Ni, Co, Fe), cathodes based on nickel with a platinum activated carbon catalyst (Ni, C-Pt), and nickel
oxide (NiO) diaphragms.
ELECTROCHEMICAL MODEL
The electrode kinetics of an electrolyzer cell can be modeled using empirical current-voltage (I-U)
relationships. Several empirical I-U models for electrolyzers have been suggested [4,5,6,7]. In order to
properly model the I-U curve for a given tempearture, overvoltages and ohmic resistance are taken into
account, as proposed in [1].
4–288
TRNSYS 18 – Mathematical Reference
Faraday Efficiency
𝐼𝑑𝑒𝑛𝑠𝑖𝑡𝑦 2
𝜂𝑓 = ( ) 𝑎2 Eq. 4.4.2-8
𝑎1 + 𝐼𝑑𝑒𝑛𝑠𝑖𝑡𝑦 2
According to Faraday’s law, the production rate of hydrogen in an electrolyzer cell is directly proportional
to the transfer rate of electrons at the electrodes, which in turn is equivalent to the electrical current in the
external circuit. Hence, the total hydrogen production rate in an electrolyzer, which consists of several cells
connected in series, can be expressed as:
Hydrogen Production
𝐼𝑒𝑙𝑦
𝑛̇ 𝐻2 = 𝜂𝑓 𝑁𝑐𝑒𝑙𝑙𝑠 Eq. 4.4.2-9
𝑛𝐹
The oxygen production rate is simply found from stoichiometry (Eq. 4.4.2-3), which on a molar basis is:
Oxygen Production
𝑛̇ 𝑂2 = 0.5𝑛̇ 𝐻2 Eq. 4.4.2-10
The generation of heat in an electrolyzer is mainly due to electrical inefficiencies. The energy efficiency can
be calculated from the thermoneutral voltage (Utn) and the cell voltage (Ucell):
Energy Efficiency
𝑈𝑡𝑛
𝜂𝑒 = Eq. 4.4.2-11
𝑈𝑐𝑒𝑙𝑙
For a given temperature, an increase in hydrogen production (i.e., an increase in current density) increases
the cell voltage, which consequently decreases the energy efficiency. For a given current density, the
energy efficiency increases with increasing cell temperature (see Figure 4.4.2–2).
4–289
TRNSYS 18 – Mathematical Reference
Figure 4.4.2–2: Electrolyzer – Cell voltage vs. Current for different Temperatures
It should be noted here that Error! Reference source not found. is only valid for systems where no
uxiliary heat is added to the system. If auxiliary heat is added, the voltage may drop into the region between
the reversible and thermoneutral voltage, and the efficiency would be greater than 100%. In low-
temperature electrolysis, the cell voltage will during normal operation (50-80°C and 40-300 mA/cm2) always
be well above the thermoneutral voltage, as observed in Figure 4.4.2–2. However, some initial heating may
be required during start-up if the electrolyzer has been allowed to cool down to ambient temperature.
In order to calculate the overall performance of an electrolyzer system, information about number of cells
in series and/or parallel per stack and number of stacks per unit is needed. The rated voltage of an
electrolyzer stack is found from the number of cells in series, while the number of cells in parallel yields the
rated current (and H2-production). The total power is simply the product of the current and voltage.
THERMODYNAMIC MODEL
Thermodynamics provides a framework for describing reaction equilibrium and thermal effects in
electrochemical reactors. It also gives a basis for the definition of the driving forces for transport phenomena
in electrolytes and leads to the description of the properties of the electrolyte solutions [3]. Below is a
description of the thermodynamics of the low-temperature hydrogen-oxygen electrochemical reactions
used in the electrolyzer model.
The following assumptions can be made about the water splitting reaction: (a) Hydrogen and air (or oxygen)
are ideal gases, (b) water is an incompressible fluid, and (c) the gas and liquid phases are separate. Based
on these assumptions the change in enthalpy H, Entropy S and Gibbs Energy G of the water splitting
reaction can be calculated with reference to pure hydrogen (H 2), oxygen (O2), and water (H2O) at a standard
temperature and pressure (25°C and 1 atm). The total change in enthalpy for splitting water is the enthalpy
difference between the products (H2 and O2) and the reactants (H2O). The same applies for the total change
in entropy. The change in Gibbs energy is expressed by:
4–290
TRNSYS 18 – Mathematical Reference
At standard conditions (25°C and 1 atm) the splitting of water is a non-spontaneous reaction, which means
that the change in Gibbs energy is positive. The standard Gibbs energy for water splitting is G0 = 237 kJ
mol-1. For an electrochemical process operating at constant pressure and temperature the maximum
possible useful work (i.e., the reversible work) is equal to the change in Gibbs energy G. Faraday’s law
relates the electrical energy (emf) needed to split water to the chemical conversion rate in molar quantities.
The emf for a reversible electrochemical process, or the reversible cell voltage, is expressed by:
THERMAL MODEL
The temperature of the electrolyte of the electrolyzer can be determined using simple or complex thermal
models, depending on the need for accuracy. Assuming a lumped thermal capacitance model, the overall
thermal energy balance can be expressed as a linear, first order, non-homogeneous differential equation.
Type 160 can calculate Tstack in 3 different ways:
TMODE=1: T is given as Input
TMODE=2: T is calculated based on a simple quasi-static thermal model
TMODE=3: T is calculated based on a complex lumped capacitance thermal model
Overall energy balance
𝐶𝑇 𝑑𝑇𝑑𝑡𝑒𝑙𝑦 = 𝑄̇𝑔𝑒𝑛 − 𝑄̇𝑙𝑐𝑠𝑠 − 𝑄̇𝑐𝑤 Eq. 4.4.2-15
The first term on the right hand side of Error! Reference source not found. is the internal heat generation,
he second term the total heat loss to the ambient, and the third term the auxiliary cooling demand. The
overall thermal capacity Ct and resistance Rt for the electrolyzer, and the UA-product for the cooling water
heat exchanger are the constants that need to be determined analytically or empirically prior to solving the
4–291
TRNSYS 18 – Mathematical Reference
thermal equations. It should be noted that the thermal model presented here is on a per stack basis. In
Type 160, UA is given as a function of electrolyzer current:
𝑈𝐴ℎ𝑥 = ℎ1 + ℎ2 𝐼𝑒𝑙𝑦 Eq. 4.4.2-19
EXAMPLE
2
1,Alkaline Electrolyzer PHOEBUS (KFA)
8.05031E-05 -2.50410E-07 0.1849 -0.10015 8.4242 247.2663 250.0 0.96 7.0 0.020
2,GHW Electrolyzer (p=30 bar) (Munich Airport)
1.997990E-05 0.0 0.2113 0.01984 0.0 0.0 250.0 0.96 7.0 0.0200
4.4.2.6. References
1. Ulleberg Ø. (2002) Modeling of advanced alkaline electrolyzers: a system simulation approach. Int.
J. Hydrogen Energy 28(1): 7-19.
2. Ulleberg Ø. (1998) Stand-Alone Power Systems for the Future: Optimal Design, Operation &
Control of Solar-Hydrogen Energy Systems. PhD thesis, Norwegian University of Science and
Technology, Trondheim.
4–292
TRNSYS 18 – Mathematical Reference
4–293
TRNSYS 18 – Mathematical Reference
Maximum allowable
2 [bar] Maximum allowable pressure
pressure
Gas critical
5 [C] Critical temperature of gas
temperature
INPUTS
4 Initial pressure level [-] Initial pressure level. This value is normalized 0: completely
empty. 1: completely full (pressure will in this case be set to the
maximum allowable tank pressure that is specified as a
parameter to this model.
OUTPUTS
1 Gas volume [Nm3] Volume of gas stored in tank (1 Nm3 = 1 Normal cubic meter at
0°C and 1 bar)
4 Rate at which gas is [m3/s] Dumped gas (through high pressure safety valve)
dumped
4–294
TRNSYS 18 – Mathematical Reference
Gas critical
[C] Critical temperature of gas
temperature
TEXT FIELDS
4–295
TRNSYS 18 – Mathematical Reference
According to the van der Waals equation of state, the pressure p of a real gas in a storage tank can be
calculated from:
𝑛𝑅𝑇𝑔𝑎𝑠 𝑛2
𝑝= −𝑎 Eq. 4.4.3-1
𝑉𝑜𝑙 − 𝑛𝑏 𝑉𝑜𝑙 2
Where n denotes the number of moles of gas, R is the universal gas constant, Vol is the volume of the
storage tank, and Tgas is the temperature of the gas. The second term (comprising the constant a ) account
for the intermolecular attraction forces, while b accounts for the volume occupied by the gas molecules.
Note that the ideal gas law is obtained by setting a and b to 0:
𝑝𝑉𝑜𝑙 = 𝑛𝑅𝑇𝑔𝑎𝑠 Eq. 4.4.3-2
4.4.3.5. References
1. C¸ engel Y. A. and Boles M. A. (1989) Thermodynamics - An Engineering Approach. 1 edn,
McGraw-Hill, London.
2. Ulleberg Ø. (1998) Stand-Alone Power Systems for the Future: Optimal Design, Operation &
Control of Solar-Hydrogen Energy Systems. PhD thesis, Norwegian University of Science and
Technology, Trondheim.
3. GriesshaberW. and Sick F. (1991) Simulation of Hydrogen-Oxygen-Systems with PV for the Self-
Sufficient Solar House (in German). FhG-ISE, Freiburg im Breisgau, Germany.
4–296
TRNSYS 18 – Mathematical Reference
Number of parallel
1 [-] Number of identical compressors in parallel.
compressors
Number of compressor
2 [-] The number of stages in the compressor.
stages
INPUTS
2 Gas inlet pressure [bar] The pressure at which gas enters the compressor.
3 Desired outlet pressure [bar] The pressure at which the compressor should deliver gas.
OUTPUTS
3 Maximum outlet [C] The temperature at which gas would exit the compressor if no
temperature cooling were applied.
4 Volumetric outlet flow [m3/hr] The volumetric rate at which gas exits the compressor.
5 Isentropic efficiency [-] The efficiency at which the compressor is currently operating.
6 Intermediate pressure [bar] first intermediate pressure if the device has more than one stage
1
7 Intermediate pressure [bar] second intermediate pressure if the device has more than two
2 stages
8 Intermediate pressure [bar] third intermediate pressure if the device has more than three
3 stages
4–297
TRNSYS 18 – Mathematical Reference
9 Intermediate pressure [bar] fourth intermediate pressure if the device has more than four
4 stages
where p and V are the pressure and volume of the ideal gas, respectively, and the value of N is a constant
for the particular prosess.
4–298
TRNSYS 18 – Mathematical Reference
𝑁−1
𝑁𝑅𝑇𝑙𝑜𝑤 𝑝𝑜𝑢𝑡 ( 𝑁
)
𝑊2 = ( ) (1 − ( ) ) Eq. 4.4.4-3
𝑁−1 𝑝𝑥
Isothermic Work
𝑝𝑜𝑢𝑡
𝑊𝑖𝑠𝑜 = −𝑅𝑇𝑙𝑜𝑤 ln ( ) Eq. 4.4.4-5
𝑝𝑖𝑛
𝑃𝑖𝑠𝑜 = 𝑚̇𝑖𝑛 𝑊𝑖𝑠𝑜 Eq. 4.4.4-6
Isentropic Efficiency
𝑃𝑖𝑠𝑜
𝜂𝑖𝑠𝑒𝑛 = Eq. 4.4.4-7
𝑃𝑐𝑜𝑚𝑝
Isentropic efficiency involve a comparison between the actual performance of the compressor and an
idealized performance which neglects the change in entropy.
THERMAL MODEL
Ramp factor - effect of step compression:
1
𝑝𝑜𝑢𝑡 𝑁𝑠𝑡𝑎𝑔𝑒𝑠
𝑅𝑓 = ( ) Eq. 4.4.4-8
𝑝𝑖𝑛
Outlet temperature of a polytropic process:
𝑁−1
𝑇ℎ𝑖𝑔ℎ = 𝑇𝑙𝑜𝑤 𝑅𝑓 𝑁 Eq. 4.4.4-9
A few remarks about this process can be made. Intercooling means that the gas at the intermediate
pressure (after the first compression stage) is cooled to the initial temperature T low before it is passed on to
the second compression stage. It should also be noted that the sign convention used in Eq. 4.4.4-2 and
Eq. 4.4.4-3 is such that the required compressor work (work added to the system) is negative.
4.4.4.5. References
1. C¸ engel Y. A. and Boles M. A. (1989) Thermodynamics - An Engineering Approach. 1 edn,
McGraw-Hill, London.
2. Ulleberg Ø. (1998) Stand-Alone Power Systems for the Future: Optimal Design, Operation &
Control of Solar-Hydrogen Energy Systems. PhD thesis, Norwegian University of Science and
Technology, Trondheim.
4–299
TRNSYS 18 – Mathematical Reference
Number of cells in Number of cells in series per stack. NCELLS gives the
3 [-]
series per stack VOLTAGE RATING of the fuel cell.
Number of stacks in Number of stacks in parallel per FC unit. NSTACKS gives the
4 [-]
parallel per module CURRENT RATING of the fuel cell.
Transport number for Transport number for water. 0.0 = Well hydrated PEM. 1.2 =
7 [-]
water Water deficient, or lean water PEM.
4–300
TRNSYS 18 – Mathematical Reference
Maximum allowable
9 [mA/cm2] Maximum allowable current density.
cell current density
Heat transfer Heat transfer coefficient from FC stack to ambient air. 5-50 =
11 [W/m2.K]
coefficient natural convection. 50-250 = forced convection.
Heat transfer Heat transfer coefficient from FC stack to ambient air. 5-50 =
11 [W/m2.K]
coefficient natural convection. 50-250 = forced convection.
Height of a single fuel Height of a single fuel cell, i.e., one side of a rectangular cell.
15 [cm]
cell H_CELL > H_PEM.
Width of a single fuel Width of a single fuel cell, i.e., one side of a rectangular cell.
16 [cm]
cell W_CELL > W_PEM
17 End plate thickness [cm] Thickness of end plate (supporting plate) of PEMFC-stack
4–301
TRNSYS 18 – Mathematical Reference
Specific heat of cell Specific heat of cell material (graphite is default). Not needed in
22 [J/kg.K]
material TMODE=1.
End plate material Thermal conductivity of end plate material (stainless steel is
23 [W/m.K]
thermal conductivity default)
Density of end plate Density of end plate material (stainless steel is default). Not
24 [kg/m3]
material needed in TMODE=1.
Specific heat of end Specific heat of end plate material (stainless steel is default).
25 [J/kg.K]
plate material Not needed in TMODE=1.
Single stack thermal Thermal resistance for a single FC stack. Rt = 1/UA, where
11 [K/W]
resistance UA = overall heat loss coefficient
INPUTS
Hydrogen inlet
4 [bar] Hydrogen inlet pressure.
pressure
4–302
TRNSYS 18 – Mathematical Reference
Cooling water Temperature rise in cooling water, as it passes through the fuel
10 [C]
temperature rise cell. DELTATCW=TCWout-TCWout
Evaporation rate of
11 [-] Evaporation rate of process water produced in the fuel cell
process water
OUTPUTS
1 Fuel cell power output [W] Total power output from FC unit.
Auxiliary cooling
9 [W] Total auxiliary cooling demand for FC unit.
demand
Auxiliary heating
12 [W] Total auxiliary heating demand for FC unit.
demand
Stack thermal
16 [J/kg] Thermal capacitance for one single stack of the FC unit.
capacitance
4–303
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
4–304
TRNSYS 18 – Mathematical Reference
Figure 4.4.5–1: PEMFC principle (Air can be replaced with pure O2)
A fuel cell (Figure 4.4.5–1) is an electrochemical device that converts the chemical energy of a fuel and an
oxidant to electrical current (DC). The oxidant can be pure oxygen or a gas containing oxygen, such as air.
An example of PEMFC geometry is shown in Figure 4.4.5–2 (page 4–310).
In the case of a hydrogen-air fuel cell (OXMODE = 1), hydrogen (H2) is the fuel and air (O2) is the oxidant
[8]. In the case of a hydrogen-oxygen fuel cell (OXMODE = 2), hydrogen (H2) is the fuel and oxygen (O2) is
the oxidant [8].
The two equations below show the anodic and cathodic reactions taking place in a PEM fuel cell that is fed
with hydrogen-containing anode gas and an oxygen-containing cathode gas.
Anode: H2(g) 2 H+ (aq) + 2 e- Eq. 4.4.5-1
The products of the process shown in the equation above are electricity, liquid water and heat
ELECTROCHEMICAL MODEL
4–305
TRNSYS 18 – Mathematical Reference
The performance of a fuel cell (output voltage) is defined as a function of the thermodynamical potential,
the activation overvoltage, and the ohmic overvoltage, with mass transport losses incorporated in each of
the terms [3]. The basic expression for the voltage of the single cell is:
Cell Voltage
𝑈𝑐𝑒𝑙𝑙 = 𝐸𝜂𝑎𝑐𝑡 𝜂𝑜ℎ𝑚𝑖𝑐 Eq. 4.4.5-4
Where: ‘E’ is the thermodynamic potential, act is the anode and cathode activation over-voltage, a measure
of the voltage loss associated with the anode and cathode, and ‘ETA ohmic’ is the ohmic over-voltage, a
measure of the IR losses associated with the proton conductivity of the solid polymer electrolyte and
electronic internal resistances.
Thermodynamic Potential
𝐸 = 1.23 − 0.00085(𝑇𝑠𝑡𝑎𝑐𝑘 − 298) + 0.0000431𝑇𝑠𝑡𝑎𝑐𝑘 ln(𝑝𝐻2 𝑝𝑂2 0.5 ) Eq. 4.4.5-5
Activation Overvoltage
𝜂𝑎𝑐𝑡 = −0.95 + 0.00234𝑇𝑠𝑡𝑎𝑐𝑘 + 0.000192𝑇𝑠𝑡𝑎𝑐𝑘 ln(𝐴𝑃𝐸𝑀 ) − 0.000192𝑇𝑠𝑡𝑎𝑐𝑘 ln(𝐼𝐹𝐶 )
Eq. 4.4.5-6
+ 0.000076𝑇𝑠𝑡𝑎𝑐𝑘 ln(𝐶𝑂2 )
Ohmic Overvoltage
−𝐼𝐹𝐶 𝑡𝑃𝐸𝑀 8 𝐼𝐹𝐶 𝐼𝐹𝐶 3
𝜂𝑜ℎ𝑚𝑖𝑐 = (1 + 1.64 +𝛾( ) ) Eq. 4.4.5-7
𝐴𝑃𝐸𝑀 𝑇𝑠𝑡𝑎𝑐𝑘 − 353 𝐴𝑃𝐸𝑀 𝐴𝑃𝐸𝑀
𝑒𝑥𝑝 (3.6 )
𝑇𝑠𝑡𝑎𝑐𝑘
The thermodynamical potential is defined through the Nernst equation. The parametric coefficients in the
activation overvoltage term act, are based on the theoretical equations from kinetic, thermodynamic and
electrochemistry fundamentals [2]. The parametric coefficients in the internal resistance term ohmic, are
purely empirical, based on temperature and current experimental data [3].
THERMODYNAMIC MODEL
Thermodynamics provides a framework for describing reaction equilibrium and thermal effects in
electrochemical reactors. It also gives a basis for the definition of the driving forces for transport phenomena
in electrolytes and leads to the description of the properties of the electrolyte solutions [1]. Below is a
description of the thermodynamics of the low-temperature hydrogen-air or hydrogen-oxygen
electrochemical reactions used in the fuel cell model.
The following assumptions can be made about the water splitting reaction: (a) Hydrogen and air (or oxygen)
are ideal gases, (b) water is an incompressible fluid, and (c) the gas and liquid phases are separate. Based
on these assumptions the change in enthalpy H of the water splitting reaction can be calculated with
reference to pure hydrogen (H2), oxygen (O2), and water (H2O) at a standard temperature and pressure
(25°C and 1 atm). The total change in enthalpy for splitting water is the enthalpy difference between the
products (H2 and O2) and the reactants (H2O). The same applies for the total change in entropy.
The total amount of energy released in the fuel cell reaction is equivalent to the change in enthalpy H. The
standard enthalpy for splitting water is H0 = 286 kJ mol-1. The total energy demand H is related to the
thermo-neutral cell voltage by the expression:
4–306
TRNSYS 18 – Mathematical Reference
inefficiencies. The energy efficiency can be calculated from the thermoneutral voltage (Eq. 4.4.5-8) and the
cell voltage (above) by the expression:
Energy Efficiency
𝑈𝑐𝑒𝑙𝑙
𝜂𝑒 = Eq. 4.4.5-9
𝑈𝑡𝑛
It would appear from Eq. 4.4.5-9 that a high operating voltage Ucell is required for high efficiency. At a fixed
fuel flow rate. However, utilization declines with increasing operating voltage. Power also decreases as
operating voltage is raised from the maximum power voltage which in common experience is slightly less
than half the open circuit voltage. The greatest efficiency at any given fuel flow is obtained at the operating
voltage which results in the highest power output.
The inlet rates of hydrogen, oxygen and air are sized by empirical stoichiometric factors of the consumption
rates. Hydrogen, oxygen and air inlet rates:
𝑛̇ 𝐻2,𝑎,𝑖𝑛 = 𝑆𝐻2 𝑛̇ 𝐻2,𝑎,𝑐𝑜𝑛𝑠 Eq. 4.4.5-13
The flow rate of hydrogen on the fuel side and oxygen (air) on the oxidant side affects the performance of
the PEM fuel cell. For instance, if the H2 flow is kept fixed and the O2 stoichiometry is increased, the overall
performance of the fuel cell also increases. In the H2/Air fuel cells, which have lower concentrations of O 2
on the cathode side than H2/O2 fuel cells, the air flow rates are typically kept about twice the O 2 flow rate.
4–307
TRNSYS 18 – Mathematical Reference
−4.192𝐼𝐹𝐶
𝑝𝑂2 = 𝑝𝑐,𝑖𝑛 𝑒𝑥𝑝 ( ) − 𝑝𝐻20,𝑠𝑎𝑡 Eq. 4.4.5-18
𝐴𝑃𝐸𝑀 𝑇𝑠𝑡𝑎𝑐𝑘 1.334
Thermal Resistance
𝐿𝑓𝑟𝑎𝑚𝑒 1
𝑅𝑡 = + Eq. 4.4.5-19
𝑘𝑐𝑒𝑙𝑙 𝐴𝐹𝐶 ℎ𝑎𝑖𝑟 𝐴𝐹𝐶
Thermal Capacity
𝐶𝑡 = 𝐶𝑝,𝑐𝑒𝑙𝑙 𝑁𝑐𝑒𝑙𝑙𝑠 ℎ𝑐𝑒𝑙𝑙 𝑤𝑐𝑒𝑙𝑙 𝑡𝑐𝑒𝑙𝑙 𝜌𝑐𝑒𝑙𝑙 + 𝐶𝑝,𝑝𝑙𝑎𝑡𝑒 𝜌𝑝𝑙𝑎𝑡𝑒 2ℎ𝑝𝑙𝑎𝑡𝑒 𝑤𝑝𝑙𝑎𝑡𝑒 𝑡𝑝𝑙𝑎𝑡𝑒 Eq. 4.4.5-20
The overall thermal capacity Ct and resistance Rt for the fuel cell, and the UA-product for the cooling water
heat exchanger are the constants that need to be determined analytically or empirically prior to solving the
thermal equations.
THERMAL MODEL
A heat balance of a fuel cell can be determined using simple or complex thermal models, depending on the
need for accuracy. Assuming a lumped thermal capacitance model, the overall thermal energy balance can
be expressed as a linear, first order, non-homogeneous differential equation. If TMODE = 1, the stack
temperature is assumed to be constant (Tstack,in = Tstack,out). If TMODE = 2, the stack temperature is
calculated.
The first term on the right hand side of Eq. 4.4.5-21 is the internal heat generation (Qgen), the second term
the total heat loss to the ambient (Qloss), the third term the auxiliary cooling demand (Qcool) and the fourth
term is the evaporation of water at the cathode (Q evap). The left hand terms describes the accumulation of
heat, defined by the thermal capacity (Ct ) and the stack temperature gradient (dT/dt).
Internal Heat Generation
4–308
TRNSYS 18 – Mathematical Reference
1 − 𝜂𝑒
𝑄̇𝑔𝑒𝑛 = 𝑃𝑠𝑡𝑎𝑐𝑘 ( ) Eq. 4.4.5-22
𝜂𝑒
Heat losses to Ambient
1
𝑄̇𝑙𝑜𝑠𝑠 = (𝑇 − 𝑇𝑎𝑚𝑏 ) Eq. 4.4.5-23
𝑅𝑡 𝑠𝑡𝑎𝑐𝑘
Evaporative Losses (on cathode side)
𝑄̇𝑒𝑣𝑎𝑝 = 𝑋𝑒𝑣𝑎𝑝 𝑛̇ 𝐻2𝑂 ℎ𝑓𝑔,𝐻2𝑂 𝑀𝐻2𝑂 Eq. 4.4.5-24
The internal heat generation (Qgen), is calculated using the energy efficiency (e) to determine the fraction
of heat produced from the stack power (Pstack). Heat loss to ambient (Qloss), is calculated using the overall
thermal resistance (Rt) of the fuel cell and the temperature difference to the ambient. The main cooling of
the fuel cell is detemined by the heat absorbtion from the cooling water (Q cool), using specific heat capacity
of water (Cpwater), flow rate (Vcool) and a fixed temperature difference of the in/out flow. The heat consumption
from the evaporation of outlet water (Qevap), is calculated from the enthalpy of vaporization (h fgH2O) and
fraction of water vaporized (Xvap). It should be noted that the thermal model presented here is on a per stack
basis.
4–309
TRNSYS 18 – Mathematical Reference
4.4.5.5. References
1. Rousar I. (1989) Fundamentals of electrochemical reactors. In Electrochemical Reactors: Their
Science and Technology Part A, Ismail M. I. (Eds), Vol pp. Elsevier Science, Amsterdam.
2. Amphlett J. C., Baumert R. M., Mann R. F., Peppley B. A., Roberge P. R. and Harris T. J. (1995)
Performance modeling of the Ballard Mark IV solid polymer electrolyte fuel cell. Part I - mechanistic
model development. J. Electrochem. Soc. 142(1): 1-8.
4–310
TRNSYS 18 – Mathematical Reference
3. Amphlett J. C., Baumert R. M., Mann R. F., Peppley B. A., Roberge P. R. and Harris T. J. (1995)
Performance modeling of the Ballard Mark IV solid polymer electrolyte fuel cell. Part II - empirical
model development. J. Electrochem. Soc. 142(1): 9-15.
4. Amphlett J. C., Mann R. F., Peppley B. A., Roberge P. R., Rodrigues A. and Salvador J. P. (1996)
A model predicting transient responses of proton exchange membrane fuel cells. J. Power Sources
61(1-2): 183-188.
5. Ulleberg Ø. (1998) Stand-Alone Power Systems for the Future: Optimal Design, Operation &
Control of Solar-Hydrogen Energy Systems. PhD thesis, Norwegian University of Science and
Technology, Trondheim.
6. Ulleberg Ø. (2001) Evaluation of IFE’s 100 W PEM Fuel Cell Stack Performance. Internal report,
Institute for Energy Technology,
7. Mann R. F., Amphlett J. C., Hooper M. A. I., Jensen H. M., Peppley B. A. and Roberge P. R. (2000)
Development and application of a generalised steady-state electrochemical model for a PEM fuel
cell. J. Power Sources 86(1-2): 173-180.
8. Kordesch K. and Simader G. (1996) Fuel Cells and their Applications. 1st edn, VCH, New York.
4–311
TRNSYS 18 – Mathematical Reference
Number of modules in Number of FC modules in series per stack. NMSER gives the
2 [-]
series VOLTAGE RATING of the fuel cell.
Number of modules in Number of stacks in parallel per FC unit. NSTACKS gives the
3 [-]
parallel CURRENT RATING of the fuel cell.
7 Tafel slope [V/dec] I-U curve coefficient #2: Tafel slope (on a per FC module basis)
8 Ohmic resistance [ohm] I-U curve coefficient #3: Resistance (on a per FC module basis).
INPUTS
2 Fuel cell current [A] Total electrical current that must be provided by FC unit.
Stack operating
3 [C] Nominal operating temperature for FC stack.
temperature
Hydrogen inlet
4 [bar] Hydrogen inlet pressure.
pressure
Cathode oxidant inlet Oxidant (air or oxygen depending on the value of parameter 1)
5 [bar]
pressure inlet pressure.
4–312
TRNSYS 18 – Mathematical Reference
OUTPUTS
1 Fuel cell power output [W] Total power output from FC unit.
TEXT FIELDS
4–313
TRNSYS 18 – Mathematical Reference
The products of this process (Eq. 4.4.6-3) are electricity, liquid water and heat
ELECTRICAL MODEL
Cell, module and stack voltage:
𝑈𝑚𝑜𝑑
𝑈𝑐𝑒𝑙𝑙 = Eq. 4.4.6-4
𝑛𝑐,𝑠𝑒𝑟
𝑈𝑚𝑜𝑑 = 𝑈𝑜 − 𝑏 log(𝐼𝑠𝑡𝑎𝑐𝑘 ) − 𝑅𝑜ℎ𝑚 𝐼𝑠𝑡𝑎𝑐𝑘 Eq. 4.4.6-5
4–314
TRNSYS 18 – Mathematical Reference
Stack power:
𝑃𝑠𝑡𝑎𝑐𝑘 = 𝑈𝑠𝑡𝑎𝑐𝑘 𝐼𝑠𝑡𝑎𝑐𝑘 Eq. 4.4.6-9
Energy efficiency:
𝑈𝑐𝑒𝑙𝑙
𝜂𝐸 = Eq. 4.4.6-10
𝑈𝑡𝑛
THERMODYNAMIC MODEL
Stoichiometric molar flow of hydrogen:
𝑛𝑐,𝑠𝑒𝑟 𝑛𝑚,𝑠𝑒𝑟 𝐼𝐹𝐶
𝑛̇ 𝐻2 = 𝜂𝐹 Eq. 4.4.6-11
𝑧𝐹
Total hydrogen consumption:
𝑛̇ 𝐻2
̇ =
𝑉𝐻2 𝑆 Eq. 4.4.6-12
𝜌𝑔𝑎𝑠 𝐻2
THERMAL MODEL
Total heat generated by fuel cell:
1 − 𝜂𝐸
𝑄𝑔𝑒𝑛 = 𝑃𝑠𝑡𝑎𝑐𝑘 ( ) Eq. 4.4.6-13
𝜂𝐸
4.4.6.5. References
1. Brown M. (2001) Testing of ZeTek stacks. Personal communication, Industrial Research Limited,
Christchurch, New Zealand.
2. ZeTek (2001) ZeTek Mk2-4 stack specification sheet.
4–315
TRNSYS 18 – Mathematical Reference
4.5. Hydronics
4–316
TRNSYS 18 – Mathematical Reference
1 Configuration Mode [-] 1 = Parallel Flow; 2 = Counter Flow; 3 = Cross Flow with Cold
Side Mixed and Hot Side Unmixed; 4 = Cross Flow with Hot Side
Mixed and Cold Side Unmixed; 5 = Cross Flow with Both
Unmixed; 6 = Cross Flow with Both Mixed; 7 = Shell and Tube.
2 Specific Heat of [kJ/kg K] The specific heat of the fluid flowing through the source side of
Source Side Fluid the heat exchanger.
3 Specific Heat of Load [kJ/kg K] The specific heat of the fluid flowing through the load side of the
Side Fluid heat exchanger.
4 Number of Shell [-] For mode 7 - The number of times that fluid in the shell passes
Passes over the tube bank. Often the shell is internally divided by baffles
that force the shell fluid to flow over the tube bank in multiple
passes. The number of passes is typically one more than the
number of internal baffles. For all other modes this parameter is
not used.
INPUTS
1 Source Side Inlet [C] The temperature of the fluid flowing into the source side of the
Temperature parallel flow heat exchanger.
2 Source Side Flow Rate [kg/h] The flow rate of the fluid flowing through the source side of the
heat exchanger.
3 Load Side Inlet [C] The temperature of the fluid flowing into the load side of the
Temperature parallel flow heat exchanger.
4 Load Side Flow Rate [kg/h] The flow rate of the fluid flowing through the load side of the
heat exchanger.
4–317
TRNSYS 18 – Mathematical Reference
5 Overall Heat Transfer [kJ/h K] Overall heat transfer coefficient of the heat exchanger.
Coefficient of
Exchanger
OUTPUTS
1 Source Side Outlet [C] The temperature of the fluid leaving the source side of the heat
Temperature exchanger.
2 Source Side Flow Rate [kg/h] The flow rate of fluid exiting the source side of the heat
exchanger.
3 Load Side Outlet [C] The temperature of the fluid leaving the load side of the heat
Temperature exchanger
4 Load Side Flow Rate [kg/h] The flow rate of fluid exiting the load side of the heat exchanger.
5 Heat Transfer Rate [kJ/h] The total heat transfer rate between the fluids in the heat
exchanger.
4.5.1.5. Nomenclature
Cc capacity rate of fluid on cold side, mcCpc
Ch capacity rate of fluid on hot side, mhCph
Cmax maximum capacity rate
Cmin minimum capacity rate
Cpc specific heat of cold side fluid
Cph specific heat of hot side fluid
heat exchanger effectiveness
4–318
TRNSYS 18 – Mathematical Reference
m h, T mc , Tc i
ho
Figure: Heat Exchanger Schematic
The capacitance of each side of the heat exchanger is calculated according to the following four equations.
𝐶𝑐 = 𝑚̇𝑐 𝐶𝑝𝑐 Eq. 4.5.1-1
The following indicate the expression used to calculate the heat exchanger effectiveness at each timestep
depending upon heat exchanger configuration.
4–319
TRNSYS 18 – Mathematical Reference
If Cmax = Ch,
𝑈𝐴 𝐶𝑚𝑖𝑛
𝛾 = 1 − 𝑒𝑥𝑝 ( ) Eq. 4.5.1-7
𝐶𝑚𝑖𝑛 𝐶𝑚𝑎𝑥
𝐶𝑚𝑎𝑥
𝜀 = 1 − 𝑒𝑥𝑝 (−𝛾 ) Eq. 4.5.1-8
𝐶𝑚𝑖𝑛
If Cmin = Ch,
𝑈𝐴
𝛾 = 1 − 𝑒𝑥𝑝 (− ) Eq. 4.5.1-9
𝐶𝑚𝑖𝑛
𝐶𝑚𝑎𝑥 𝐶𝑚𝑖𝑛
𝜀= [1 − 𝑒𝑥𝑝 (−𝛾 )] Eq. 4.5.1-10
𝐶𝑚𝑖𝑛 𝐶𝑚𝑎𝑥
Mode 4 – Cross Flow (Cold (load) Side Unmixed, Hot (source) Side Mixed)
If Cmax = Ch,
𝑈𝐴
𝛾 = 1 − 𝑒𝑥𝑝 (− ) Eq. 4.5.1-11
𝐶𝑚𝑖𝑛
𝐶𝑚𝑎𝑥 𝐶𝑚𝑖𝑛
𝜀= [1 − 𝑒𝑥𝑝 (−𝛾 )] Eq. 4.5.1-12
𝐶𝑚𝑖𝑛 𝐶𝑚𝑎𝑥
If Cmin = Ch ,
𝑈𝐴 𝐶𝑚𝑖𝑛
𝛾 = 1 − 𝑒𝑥𝑝 ( ) Eq. 4.5.1-13
𝐶𝑚𝑖𝑛 𝐶𝑚𝑎𝑥
𝐶𝑚𝑎𝑥
𝜀 = 1 − 𝑒𝑥𝑝 (−𝛾 ) Eq. 4.5.1-14
𝐶𝑚𝑖𝑛
Mode 5 – Cross Flow: Both Sides Unmixed
𝐶𝑚𝑎𝑥 𝑈𝐴 0.22 𝐶𝑚𝑖𝑛 𝑈𝐴 0.78
𝜀 = 1 − 𝑒𝑥𝑝 [( )( ) {𝑒𝑥𝑝 [− ( ) ] − 1}] Eq. 4.5.1-15
𝐶𝑚𝑖𝑛 𝐶𝑚𝑖𝑛 𝐶𝑚𝑎𝑥 𝐶𝑚𝑖𝑛
Mode 6 – Cross Flow: Both Sides Mixed
𝑈𝐴
𝐶𝑚𝑖𝑛
𝜀=
𝑈𝐴 𝐶𝑚𝑖𝑛 𝑈𝐴 Eq. 4.5.1-16
𝐶𝑚𝑖𝑛 𝐶𝑚𝑎𝑥 𝐶𝑚𝑖𝑛
𝑈𝐴 + 𝑈𝐴 𝐶𝑚𝑖𝑛 − 1
1 − 𝑒𝑥𝑝 (− ) 1 − 𝑒𝑥𝑝 (− )
𝐶𝑚𝑖𝑛 𝐶𝑚𝑖𝑛 𝐶𝑚𝑎𝑥
Mode 7 – Shell and Tube
4–320
TRNSYS 18 – Mathematical Reference
0.5 −1
2
𝑈𝐴 𝐶
0.5 1 + 𝑒𝑥𝑝 [− 𝐶 (1 + ( 𝑚𝑖𝑛 ) ) ]
𝐶𝑚𝑖𝑛 𝐶𝑚𝑖𝑛 2 𝑚𝑖𝑛 𝐶𝑚𝑎𝑥
𝜀1 = 2 1 + + (1 + ( ) ) Eq. 4.5.1-17
𝐶𝑚𝑎𝑥 𝐶𝑚𝑎𝑥 2 0.5
𝑈𝐴 𝐶
1 − 𝑒𝑥𝑝 [− (1 + ( 𝑚𝑖𝑛 ) ) ]
{ 𝐶𝑚𝑖𝑛 𝐶𝑚𝑎𝑥 }
−1
𝐶𝑚𝑖𝑛 𝑁 𝐶 𝑁
1 − 𝜀1 1 − 𝜀1 𝑚𝑖𝑛 𝐶𝑚𝑖𝑛
𝐶𝑚𝑎𝑥 𝐶𝑚𝑎𝑥 Eq. 4.5.1-18
𝜀= ( ) −1 ( ) −
1 − 𝜀1 1 − 𝜀1 𝐶𝑚𝑎𝑥
[ ][ ]
All Modes
𝐶𝑚𝑖𝑛
𝑇ℎ,𝑜𝑢𝑡 = 𝑇ℎ,𝑖𝑛 − 𝜀 ( ) (𝑇ℎ,𝑖𝑛 − 𝑇𝑐,𝑖𝑛 ) Eq. 4.5.1-19
𝐶ℎ
𝑄𝑇 = 𝜀𝐶𝑚𝑖𝑛 (𝑇ℎ,𝑖𝑛 − 𝑇𝑐,𝑖𝑛 ) Eq. 4.5.1-20
Special Cases
Mode 3:
𝑈𝐴
𝐶𝑚𝑖𝑛 𝐶𝑚𝑖𝑛
𝐼𝑓 | − 1| < 0.01 𝑇ℎ𝑒𝑛 𝜀 = Eq. 4.5.1-21
𝐶𝑚𝑎𝑥 𝑈𝐴
+1
𝐶𝑚𝑖𝑛
All Modes:
𝐶𝑚𝑖𝑛 𝑈𝐴
𝐼𝑓 ≤ 0.01 𝑇ℎ𝑒𝑛 𝜀 = 1 − 𝑒𝑥𝑝 (− ) Eq. 4.5.1-22
𝐶𝑚𝑎𝑥 𝐶𝑚𝑖𝑛
4–321
TRNSYS 18 – Mathematical Reference
1 Mode [-] The mode of the valve (1-10) [see above for description of the
modes]
If mode = 4,5,9 or 10
2 Number of Oscillations [-] The number of oscillations of the controller state allowed in one
Permitted timestep before the output will be fixed and the solution found. Set
to an odd number to allow the controller to bounce between two
control states for successive timesteps. (See Control Basics for a
more complete discussion of controller oscillations.)
INPUTS
For Mode = 1
1 Temperature at inlet 1 [C] The temperature of the first fluid entering the tee piece
2 Flow rate at inlet 1 [kg/h] The flow rate of the first fluid entering the tee piece
3 Temperature at inlet 2 [C] The temperature of the second fluid entering the tee piece
4 Flow rate at inlet 2 [kg/h] The flow rate of the second fluid entering the tee piece
For Mode = 2
1 Inlet temperature [C] The temperature of the fluid entering the flow diverter.
2 Inlet flow rate [kg/h] The flow rate of the fluid entering the flow diverter.
3 Control signal [0..1] The input control signal. The control signal sets the position of a
damper controlling the proportion of fluid to each exit. mdot,1 =
mdot,in * (1-Y); mdot,2 = mdot,in * Y
4–322
TRNSYS 18 – Mathematical Reference
For Mode = 3
1 Temperature at inlet 1 [C] The temperature of the first fluid entering the tee piece
2 Flow rate at inlet 1 [kg/h] The flow rate of the first fluid entering the tee piece
3 Temperature at inlet 2 [C] The temperature of the second fluid entering the tee piece
4 Flow rate at inlet 2 [kg/h] The flow rate of the second fluid entering the tee piece
3 Control signal [0..1] The control signal for the controlled flow mixer. The controlled flow
mixer uses the control signal to proportion the amount of flow from
each of the inlets. mdot,out = mdot,in,1 * (1 - Y) + mdot,in,2 * Y
1 Inlet temperature [C] The temperature of the fluid entering the flow diverter.
2 Inlet flow rate [kg/h] The flow rate of the fluid entering the flow diverter.
3 Heat source [C] The temperature of the fluid exiting the heat source that is to be
temperature cooled by the addition of fluid from the tempering valve component.
This temperature is used to determine how much of the fluid
entering the tempering valve will be sent to the heat source and
how much of the fluid will be diverted to mix with the fluid exiting
the heat source.
4 Setpoint temperature [C] The temperature below which the heat source flow stream is to be
kept at all times. The heat source flow stream temperature will be
kept at or below the setpoint temperature (if possible) by the
diversion of cooler fluid from the inlet of the heat source to a mixing
component at the exit of the heat source.
For Mode = 6
1 Temperature at inlet 1 [C] The temperature of the first fluid entering the tee piece
2 Humdity ratio at inlet 1 [-] The humidity ratio of the first fluid entering the tee piece
3 Flow rate at inlet 1 [kg/h] The flow rate of the first fluid entering the tee piece
4 Temperature at inlet 2 [C] The temperature of the second fluid entering the tee piece
5 Humdity ratio at inlet 2 [-] The humidity ratio of the second fluid entering the tee piece
6 Flow rate at inlet 2 [kg/h] The flow rate of the second fluid entering the tee piece
For Mode = 7
1 Inlet temperature [C] The temperature of the fluid entering the flow diverter.
2 Inlet humidity ratio [-] The humidity ratio of the fluid entering the flow diverter.
3 Inlet flow rate [kg/h] The flow rate of the fluid entering the flow diverter.
4–323
TRNSYS 18 – Mathematical Reference
4 Control signal [0..1] The input control signal. The control signal sets the position of a
damper controlling the proportion of fluid to each exit. mdot,1 =
mdot,in * (1-Y); mdot,2 = mdot,in * Y
For Mode = 8
1 Temperature at inlet 1 [C] The temperature of the first fluid entering the tee piece
2 Humdity ratio at inlet 1 [-] The humidity ratio of the first fluid entering the tee piece
3 Flow rate at inlet 1 [kg/h] The flow rate of the first fluid entering the tee piece
4 Temperature at inlet 2 [C] The temperature of the second fluid entering the tee piece
5 Humdity ratio at inlet 2 [-] The humidity ratio of the second fluid entering the tee piece
6 Flow rate at inlet 2 [kg/h] The flow rate of the second fluid entering the tee piece
7 Control signal [0..1] The control signal for the controlled flow mixer. The controlled flow
mixer uses the control signal to proportion the amount of flow from
each of the inlets. mdot,out = mdot,in,1 * (1 - Y) + mdot,in,2 * Y
1 Inlet temperature [C] The temperature of the fluid entering the flow diverter.
2 Inlet humidity ratio [-] The humidity ratio of the fluid entering the flow diverter.
3 Inlet flow rate [kg/h] The flow rate of the fluid entering the flow diverter.
4 Heat source [C] The temperature of the fluid exiting the heat source that is to be
temperature cooled by the addition of fluid from the tempering valve component.
This temperature is used to determine how much of the fluid
entering the tempering valve will be sent to the heat source and
how much of the fluid will be diverted to mix with the fluid exiting
the heat source.
5 Setpoint temperature [C] The temperature below which the heat source flow stream is to be
kept at all times. The heat source flow stream temperature will be
kept at or below the setpoint temperature (if possible) by the
diversion of cooler fluid from the inlet of the heat source to a mixing
component at the exit of the heat source.
OUTPUTS
1 Outlet temperature [C] The temperature of the fluid exiting the tee piece
2 Outlet flow rate [kg/h] The flow rate of the fluid exiting the tee piece
For Mode = 2
1 Temperature at outlet 1 [C] The temperature of the first fluid exiting the diverter
2 Flow rate at outlet 1 [kg/h] The flow rate of the first fluid exiting the diverter
4–324
TRNSYS 18 – Mathematical Reference
3 Temperature at outlet 2 [C] The temperature of the second fluid exiting the diverter
4 Flow rate at outlet 2 [kg/h] The flow rate of the second fluid exiting the diverter
1 Temperature at outlet 1 [C] The temperature of the first fluid exiting the diverter
2 Flow rate at outlet 1 [kg/h] The flow rate of the first fluid exiting the diverter
3 Temperature at outlet 2 [C] The temperature of the second fluid exiting the diverter
4 Flow rate at outlet 2 [kg/h] The flow rate of the second fluid exiting the diverter
5 Control function [-] The calculated fraction of fluid exiting through the first outlet of the
tempering valve. The fraction is defined as: Y = mdot,1 / mdot,in
1 Outlet temperature [C] The temperature of the fluid exiting the tee piece
2 Outlet humidity ratio [-] The humidity ratio of the fluid exiting the tee piece
3 Outlet flow rate [kg/h] The flow rate of the fluid exiting the tee piece
For Mode = 7
1 Temperature at outlet 1 [C] The temperature of the first fluid exiting the diverter
2 Humidity ratio at output [-] The humidity ratio of the first fluid exiting the diverter
1
3 Flow rate at outlet 1 [kg/h] The flow rate of the first fluid exiting the diverter
4 Temperature at outlet 2 [C] The temperature of the second fluid exiting the diverter
5 Humidity ratio at output [-] The humidity ratio of the second fluid exiting the diverter
2
6 Flow rate at outlet 2 [kg/h] The flow rate of the second fluid exiting the diverter
1 Temperature at outlet 1 [C] The temperature of the first fluid exiting the diverter
2 Humidity ratio at output [-] The humidity ratio of the first fluid exiting the diverter
1
3 Flow rate at outlet 1 [kg/h] The flow rate of the first fluid exiting the diverter
4 Temperature at outlet 2 [C] The temperature of the second fluid exiting the diverter
5 Humidity ratio at output [-] The humidity ratio of the second fluid exiting the diverter
2
6 Flow rate at outlet 2 [kg/h] The flow rate of the second fluid exiting the diverter
4–325
TRNSYS 18 – Mathematical Reference
5 Control function [-] The calculated fraction of fluid exiting through the first outlet of the
tempering valve. The fraction is defined as: Y = mdot,1 / mdot,in
Tempering Valve [C] The minimum and maximum of the input setpoint for tempering
Setpoint
4.5.2.4. Nomenclature
mi mass flow rate of inlet fluid
mo mass flow rate of outlet fluid
m1 mass flow rate at position 1 (See Figures)
m2 mass flow rate at position 2 (See Figures)
Th heat source fluid temperature
Ti temperature of inlet fluid
To temperature of outlet fluid
Tset maximum temperature of fluid supplied to load
T1 temperature at position 1 (See Figures)
T2 temperature at position 2 (See Figures)
control function having a value between 0 and 1
1 humidity ratio at position 1
2 humidity ratio at position 2
i humidity ratio of inlet fluid
o humidity ratio of outlet fluid
4–326
TRNSYS 18 – Mathematical Reference
T1 = Ti
T1 1 = i (Mode 7)
(Mode 7) m1 = mi 1-
1
m1 T2 = Ti
Ti =1
2 = i (Mode 7)
i (Mode 7)
m2 = mi
mi =0
T
2
2 (Mode 7)
m2
m T 1- + m2T2
T
To = 1 1
1 m1 1- + m2
(Mode 8) m 1- + m22
1
=1 o = 1 1 (Mode 8)
m1 To m1 1- + m2
o (Mode 8)
mo = m1 1- + m2
T =0 m
2 o
(Mode 8)
2
m2
4–327
TRNSYS 18 – Mathematical Reference
Th , m 1 TL , m i
A To Load
T ,m
Stor age i 2
B Make- Up
Ti ,m 1 T i , mi
T1
( Mode s 9 & 10)
1
Ti m1
( Mode s 9 & 10)
i
mi
T
2
( Mode s 9 & 10)
2
m2
Table 4.5.2–1:
4–328
TRNSYS 18 – Mathematical Reference
3 Loss Coefficient [kJ/h m2 K] The heat transfer coefficient for thermal losses to the environment
based on the inside pipe surface area.
5 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid in the pipe.
6 Initial Fluid [C] The temperature of the fluid in the pipe at the beginning of the
Temperature simulation.
INPUTS
1 Inlet Temperature [C] The temperature of the fluid flowing into the pipe.
2 Inlet Flow Rate [kg/h] The flow rate of fluid entering the pipe.
3 Environment [C] The temperature of the environment in which the pipe is located.
Temperature
OUTPUTS
1 Outlet Temperature [C] The temperature of the fluid exiting the pipe.
2 Outlet Flow Rate [kg/h] The flow rate of fluid exiting the pipe.
3 Environment Losses [kJ/h] The rate at which energy is lost to the environment from the pipe.
4 Energy to Pipe [kJ/h] The net rate at which energy is transferred to the pipe by the flow
stream.
5 Change in Internal [kJ] The change in internal energy of the pipe since the beginning of the
Energy simulation. This output should not be integrated as it is an energy
term and not an energy rate term.
6 Average Temperature [C] The average temperature of the fluid in the pipe over the timestep.
4–329
TRNSYS 18 – Mathematical Reference
7 Rate of Change in [kJ/h] The rate at which internal energy changes during the current
Internal Energy timestep.
Overall Thermal Loss [kJ/h K] Calculated from Parameter 1, Parameter 2 and Parameter 3
Coefficient
4.5.3.4. Nomenclature
Cp [kJ/kg.K] Fluid specific heat
M [kg] mass of fluid inside the pipe
m [kg/hr] mass flow rate of fluid
4–330
TRNSYS 18 – Mathematical Reference
T
i
T1 T3
T T
2
b)
x
O L
T
1
T
T 2
T
3
c) x
O L
Energy losses are considered for each element by solution of the following differential equation
𝑑𝑇𝑗
𝑀𝑗 𝐶𝑝 = −(𝑈𝐴)𝑗 (𝑇𝑗 − 𝑇𝑒𝑛𝑣 ) Eq. 4.5.3-3
𝑑𝑡
For elements that enter or leave during a particular timestep, only the duration of time within the pipe is
considered. The total energy loss rate to the environment is the summation of the individual losses from
each element given as:
𝑄𝑒𝑛𝑣,𝑗 = (𝑈𝐴)𝑗 (𝑇𝑗 − 𝑇𝑒𝑛𝑣 ) Eq. 4.5.3-4
The change in internal energy of the pipe since the beginning of the simulation is:
∆𝐸 = 𝑀𝐶𝑝(𝑇̅𝑓 − 𝑇𝐼 ) Eq. 4.5.3-5
4–331
TRNSYS 18 – Mathematical Reference
It is possible to verify the energy balance on this model by calculating the following quantities:
- Rate of energy flow across boundaries:
𝑄𝑖𝑛_𝑜𝑢𝑡 = 𝑚̇𝐶𝑝(𝑇𝑜 − 𝑇𝑖 ) Eq. 4.5.3-6
4–332
TRNSYS 18 – Mathematical Reference
1 Heat Exchanger [-] The effectiveness of the heat exchanger. The effectiveness is a
Effectiveness ratio of the actual heat exchanger heat transfer to the maximum
possible heat transfer which could occur in the heat exchanger.
(Effectiveness = Q/Qmax)
2 Specific Heat of [kJ/kg K] The specific heat of the fluid flowing through the source side of the
Source Side Fluid heat exchanger.
3 Specific Heat of Load [kJ/kg K] The specific heat of the fluid flowing through the load side of the
Side Fluid heat exchanger.
1 Specific Heat of [kJ/kg K] The specific heat of the fluid flowing through the source side of the
Source Side Fluid heat exchanger.
2 Specific Heat of Load [kJ/kg K] The specific heat of the fluid flowing through the load side of the
Side Fluid heat exchanger.
INPUTS
1 Source Side Inlet [C] The temperature of the fluid flowing into the source side of the heat
Temperature exchanger.
2 Source Side Flow Rate [kg/h] The flow rate of the fluid flowing through the source side of the
heat exchanger.
3 Load Side Inlet [C] The temperature of the fluid flowing into the load side of the heat
Temperature exchanger.
4 Load Side Flow Rate [kg/h] The flow rate of fluid flowing through the load side of the heat
exchanger.
5 Heat Exchanger [-] The effectiveness of the heat exchanger. The effectiveness is a
Effectiveness ratio of the actual heat exchanger heat transfer to the maximum
4–333
TRNSYS 18 – Mathematical Reference
OUTPUTS
1 Source Side Outlet [C] The temperature of the fluid leaving the source side of the heat
Temperature exchanger.
2 Source Side Flowrate [kg/h] The flow rate of fluid exiting the source side of the heat exchanger.
3 Load Side Outlet [C] The temperature of the fluid leaving the load side of the heat
Temperature exchanger.
4 Load Side Flowrate [kg/h] The flow rate of fluid exiting the load side of the heat exchanger.
5 Heat Transfer Rate [kJ/h] The total heat transfer rate between the fluids in the heat
exchanger.
6 Overall Heat Transfer [kJ/h K] The overall heat transfer coefficient of the heat exchanger is
Coefficient commonly referred to as the heat exchanger's UA value.
4–334
TRNSYS 18 – Mathematical Reference
4.5.4.4. Nomenclature
Cc capacity rate of fluid on cold side, mcCpc
Ch capacity rate of fluid on hot side, mhCph
Cmax maximum capacity rate
Cmin minimum capacity rate
Cpc specific heat of cold side fluid
Cph specific heat of hot side fluid
heat exchanger effectiveness
mc fluid mass flow rate on cold side
mh fluid mass flow rate on hot side
4–335
TRNSYS 18 – Mathematical Reference
m h , Thi mc , T
co
m h, T mc , Tc i
ho
Figure: Heat Exchanger Schematic
The model determines whether the cold (load) or the hot (source) side is the minimum capacitance side
and calculates the heat transfer. The heat exchanger outlet conditions are then computed. The capacitance
of each side of the heat exchanger is calculated according to the following four equations.
𝐶𝑐 = 𝑚̇𝑐 𝐶𝑝𝑐 Eq. 4.5.4-1
The following expressions are used to determine the maximum possible amount of heat transfer at a given
time step.
𝐼𝑓 𝐶𝑚𝑖𝑛 = 𝐶ℎ , 𝑄𝑚𝑎𝑥 = 𝐶ℎ (𝑇ℎ,𝑖𝑛 − 𝑇𝑐,𝑖𝑛 ) Eq. 4.5.4-5
The actual heat transfer then depends upon the user specified effectiveness.
𝑄𝑡𝑜𝑡𝑎𝑙 = 𝜀𝑄𝑚𝑎𝑥 Eq. 4.5.4-7
Lastly, heat exchanger outlet conditions are calculated for the two flow streams.
𝑄𝑡𝑜𝑡𝑎𝑙
𝑇ℎ,𝑜𝑢𝑡 = 𝑇ℎ.𝑖𝑛 − Eq. 4.5.4-8
𝐶ℎ
𝑄𝑡𝑜𝑡𝑎𝑙
𝑇𝑐,𝑜𝑢𝑡 = 𝑇𝑐.𝑖𝑛 + Eq. 4.5.4-9
𝐶𝑐
4.5.4.6. References
1. Kays, W.M. and A.L. London. 1964. Compact Heat Exchangers, 2nd Edition, New York:
McGraw-Hill.
4–336
TRNSYS 18 – Mathematical Reference
1 Rated Flow Rate [kg/h] The flow rate of fluid through the pump when operating.
2 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing through the device.
4 Motor Heat Loss [-] The fraction of the motor heat loss transferred to the fluid stream.
Fraction The motor heat loss is calculated by subtracting the efficiency of the
motor from 1 and multiplying the resultant quantity by the power
consumption. Typical values for this parameter are 0 for motors
mounted outside the fluid stream and 1 for motors mounted within
the fluid stream.
5 Number of Power [-] The number of polynomial multipliers that will be supplied relating
Coefficients the normalized pump power to the normalized pump flow rate (input
control signal).
6-N Power Coefficient [-] The value of the polynomial multiplier for the relationship between
normalized pump power and normalized pump flow rate (input
control signal).
INPUTS
1 Inlet Fluid [C] The temperature of the fluid entering the pump.
Temperature
2 Inlet Fluid Flow Rate [kg/h] The flow rate of fluid entering the pump. This input is not used by
this component except for convergence checking.
3 Control Signal [-] The input control signal to the pump. It determines the fraction of
the rated power that is delivered by the pump, as P_pump =
P_rated * (a0 + a1*gamma + a2*gamma^2 + ...) where gamma is
the control signal, and a0, a1, a2,..., are coefficients.
4 Overall Pump [-] The overall efficiency of the pump. The overall pump efficiency
Efficiency includes the inefficiencies due to the motor and shaft friction. The
overall pump efficiency must be less than the motor efficiency. The
lower the efficiency the greater the amount of power consumed and
the greater the heat transfer to the fluid and/or ambient.
4–337
TRNSYS 18 – Mathematical Reference
5 Motor Efficiency [-] The efficiency of the pump motor. The motor efficiency must be
greater than the overall pump efficiency. The lower the motor
efficiency the greater the amount of power consumed and the
greater the heat transfer to the fluid and/or ambient.
OUTPUTS
1 Outlet Fluid [C] The temperature of the fluid exiting the pump.
Temperature
2 Outlet Flow Rate [kg/h] The flow rate of fluid exiting the pump:
4 Fluid Heat Transfer [kJ/h] The rate at which heat is transferred to the fluid by the pump
operation.
5 Environmental Heat [kJ/h] The rate at which heat is transferred from the pump to the
Transfer environment. This value is simply the pump power minus the heat
transfer directly to the fluid.
TEXT FIELDS
4–338
TRNSYS 18 – Mathematical Reference
4.5.5.4. Nomenclature
Q fluid [kJ/hr]
Energy transferred from the pump motor to the fluid stream passing
through the pump.
motor [0..1] Pump motor efficiency
Pshaft [kJ/hr]
Shaft power required by the pumping process (does not include motor
inefficiency)
a 0 , a1 , a 2 ... [-] Polynomial coefficients in the pump power curve
Q ambient
[kJ/hr]
Energy transferred from the pump motor to the ambient air surrounding
the pump.
T fluid ,out [C] Temperature of fluid exiting the pump
m fluid [kg/hr] Mass flow rate of fluid passing though the pump.
The mass flow rate of fluid exiting the pump is a linear function of the control signal with a control signal of
1 resulting in the pump delivering its rated mass flow. The efficiency of pumping the fluid from its inlet to its
outlet pressure is given by the equation below; both the motor and overall efficiency of the pump are entered
by the user as inputs to the model.
𝜂𝑜𝑣𝑒𝑟𝑎𝑙𝑙
𝜂𝑝𝑢𝑚𝑝𝑖𝑛𝑔 = Eq. 4.5.5-2
𝜂𝑚𝑜𝑡𝑜𝑟
The shaft power of the pump can now be calculated. The shaft power is the power required to perform the
pumping operation, excluding the effects of motor inefficiency.
𝑃𝑠ℎ𝑎𝑓𝑡 = 𝑃𝜂𝑚𝑜𝑡𝑜𝑟 Eq. 4.5.5-3
4–339
TRNSYS 18 – Mathematical Reference
Energy transferred from the pump motor to the fluid stream is calculated as
𝑄𝑓𝑙𝑢𝑖𝑑 = 𝑃𝑠ℎ𝑎𝑓𝑡 (1 − 𝜂𝑝𝑢𝑚𝑝𝑖𝑛𝑔 ) + (𝑃 − 𝑃𝑠ℎ𝑎𝑓𝑡 )𝑓𝑚𝑜𝑡𝑜𝑟𝑙𝑜𝑠𝑠 Eq. 4.5.5-4
In which pumping is the pumping process efficiency and fmotorloss is a value between 0 and 1 that determines
whether the pump motor inefficiencies cause a temperature rise in the fluid stream that passes through the
pump or whether they cause a temperature rise in the ambient air surrounding the pump. Through use of
the fmotorloss fraction, the user can in effect specify whether the pump has an inline motor, in which case all
waste heat would impact the fluid stream temperature and fmotorloss would have a value of 1, or whether the
pump motor is housed outside of the fluid stream such that it’s waste heat impacts the ambient and fmotorloss
would have a value of 0.
The energy transferred from the pump motor to the ambient is given by
𝑄𝑎𝑚𝑏𝑖𝑒𝑛𝑡 = (𝑃 − 𝑃𝑠ℎ𝑎𝑓𝑡 )(1 − 𝑓𝑚𝑜𝑡𝑜𝑟𝑙𝑜𝑠𝑠 ) Eq. 4.5.5-5
4–340
TRNSYS 18 – Mathematical Reference
1 Rated Flow Rate [kg/h] The flow rate of fluid through the pump when operating.
2 Fluid Specific Heat [kJ/kg K] The specific heat of the fluid flowing through the device.
4 Motor heat Loss [-] The fraction of the motor heat loss transferred to the fluid stream.
Fraction The motor heat loss is calculated by subtracting the efficiency of the
motor from 1 and multiplying the resultant quantity by the power
consumption. Typical values for this parameter are 0 for motors
mounted outside the fluid stream and 1 for motors mounted within
the fluid stream.
INPUTS
1 Inlet Fluid [C] The temperature of the fluid entering the pump.
Temperature
2 Inlet Fluid Flow Rate [kg/h] The flow rate of fluid entering the pump. This input is not used by
this component except for convergence checking.
3 Control Signal [-] The input control signal to the pump <0.5 - the pump is OFF, >= 0.5
- the pump is ON
4 Overall Pump [-] The overall efficiency of the pump. The overall pump efficiency
Efficiency includes the inefficiencies due to the motor and shaft friction. The
overall pump efficiency must be less than the motor efficiency. The
lower the efficiency the greater the amount of power consumed and
the greater the heat transfer to the fluid and/or ambient.
5 Motor Efficiency [-] The efficiency of the pump motor. The motor efficiency must be
greater than the overall pump efficiency. The lower the motor
efficiency the greater the amount of power consumed and the
greater the heat transfer to the fluid and/or ambient.
OUTPUTS
1 Outlet Fluid [C] The temperature of the fluid exiting the pump.
Temperature
2 Outlet Flow Rate [kg/h] The flow rate of fluid exiting the pump:
4–341
TRNSYS 18 – Mathematical Reference
4 Fluid Heat Transfer [kJ/h] The rate at which heat is transferred to the fluid by the pump
operation.
5 Environmental Heat [kJ/h] The rate at which heat is transferred from the pump to the
Transfer environment. This value is simply the pump power minus the heat
transfer directly to the fluid.
TEXT FIELDS
4.5.6.4. Nomenclature
Q fluid [kJ/hr]
Energy transferred from the pump motor to the fluid stream passing
through the pump.
motor [0..1] Pump motor efficiency
4–342
TRNSYS 18 – Mathematical Reference
Pshaft [kJ/hr]
Shaft power required by the pumping process (does not include motor
inefficiency)
Q ambient [kJ/hr]
Energy transferred from the pump motor to the ambient air surrounding
the pump.
T fluid ,out [C] Temperature of fluid exiting the pump
m fluid [kg/hr] Mass flow rate of fluid passing though the pump.
Energy transferred from the pump motor to the fluid stream is calculated as
𝑄𝑓𝑙𝑢𝑖𝑑 = 𝑃𝑠ℎ𝑎𝑓𝑡 (1 − 𝜂𝑝𝑢𝑚𝑝𝑖𝑛𝑔 ) + (𝑃 − 𝑃𝑠ℎ𝑎𝑓𝑡 )𝑓𝑚𝑜𝑡𝑜𝑟𝑙𝑜𝑠𝑠 Eq. 4.5.6-3
In which pumping is the pumping process efficiency and fmotorloss is a value between 0 and 1 that determines
whether the pump motor inefficiencies cause a temperature rise in the fluid stream that passes through the
pump or whether they cause a temperature rise in the ambient air surrounding the pump. Through use of
the fmotorloss fraction, the user can in effect specify whether the pump has an inline motor, in which case all
waste heat would impact the fluid stream temperature and fmotorloss would have a value of 1, or whether the
pump motor is housed outside of the fluid stream such that it’s waste heat impacts the ambient and fmotorloss
would have a value of 0.
The energy transferred from the pump motor to the ambient is given by
𝑄𝑎𝑚𝑏𝑖𝑒𝑛𝑡 = 𝑃𝑟𝑎𝑡𝑒𝑑 (1 − 𝜂𝑚𝑜𝑡𝑜𝑟 )(1 − 𝑓𝑚𝑜𝑡𝑜𝑟𝑙𝑜𝑠𝑠 ) Eq. 4.5.6-4
4–343
TRNSYS 18 – Mathematical Reference
number of timesteps during which the fluid inlet mass flow rate for Type 114 is not equal to its outlet flow
rate is reported to the list file at the end of each simulation.
4–344
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] This parameter determines if the inlet air absolute humidity ratio
(mode = 1) or the percent relative humidity (mode = 2) is used to
calculate the properties of the air entering the duct.
2 Inside Diameter [m] The inside diameter of the duct. If a square duct is to be modeled,
this parameter should be set to an equivalent diameter which gives
the same surface area.
4 Loss Coefficient [kJ/h m2 K] The heat transfer coefficient for thermal losses to the environment
based on the inside duct surface area.
5 Initial Air Temperature [C] The temperature of the air in the duct at the beginning of the
simulation.
6 Initial Air Humidity [-] The humidity ratio of the air in the duct at the beginning of the
Ratio simulation.
INPUTS
1 Inlet Temperature [C] The temperature of the air flowing into the duct.
2 Inlet Humidity Ratio [-] The humidity ratio of the air entering the duct.
3 Inlet Relative Humidity [%] The percent relative humidity of the air entering the duct.
4 Inlet Flow Rate [kg/h] The flow rate of the air entering the duct.
5 Inlet Pressure [atm] The pressure of the air entering the duct.
6 Environment [C] The temperature of the environment in which the duct is located.
Temperature
OUTPUTS
1 Outlet Temperature [C] The temperature of the air exiting the duct.
4–345
TRNSYS 18 – Mathematical Reference
2 Outlet Humidity Ratio [-] The absolute humidity ratio of the air leaving the duct.
3 Outlet Relative [%] The percent relative humidity of the air leaving the duct.
Humidity
4 Outlet Flow Rate [kg/h] The flow rate of the air exiting the duct.
5 Outlet Pressure [atm] The pressure of the air leaving the duct.
6 Environmental Losses [kJ/h] The rate at which energy is lost to the environment from the duct.
7 Energy to Duct [kJ/h] The net rate at which energy is transferred to the duct by the flow
stream.
8 Change in Internal [kJ] The change in internal energy of the duct since the beginning of the
Energy simulation. This output should not be integrated as it is an energy
term and not an energy rate term.
9 Average Temperature [C] The average temperature of the air in the duct over the timestep.
10 Average Humidity [-] The average humidity ratio of the air in the duct over the timestep.
Ratio
11 Rate of Change in [kJ/h] The rate at which internal energy changes during the current time
Internal Energy step.
4–346
TRNSYS 18 – Mathematical Reference
T
i
T1 T3
T T
2
b)
x
O L
T
1
T
T 2
T
3
c) x
O L
In general:
𝑘−1
1
𝑇𝑜 = (∑ 𝑀𝑗 𝑇𝑗 + 𝑎𝑀𝑘 𝑇𝑘 ) Eq. 4.5.7-1
𝑚̇∆𝑡
𝑗=1
𝑘−1
1 Eq. 4.5.7-2
𝜔𝑜 = (∑ 𝑀𝑗 𝜔𝑗 + 𝑎𝑀𝑘 𝜔𝑘 )
𝑚̇∆𝑡
𝑗=1
If the resulting humidity ratio is above the saturation humidity ratio at the calculated temperature, the water
vapor in the air is considered to have condensed and the humidity ratio is set to the saturated humidity
ratio.
Energy losses are considered for each element by solution of the following differential equation
4–347
TRNSYS 18 – Mathematical Reference
𝑑𝑇𝑗
𝑀𝑗 𝐶𝑝 = −(𝑈𝐴)𝑗 (𝑇𝑗 − 𝑇𝑒𝑛𝑣 ) Eq. 4.5.7-4
𝑑𝑡
For elements that enter or leave during a particular timestep, only the duration of time within the duct is
considered. The total energy loss rate to the environment is the summation of the individual losses from
each element given as:
𝑄𝑒𝑛𝑣,𝑗 = (𝑈𝐴)𝑗 (𝑇𝑗 − 𝑇𝑒𝑛𝑣 ) Eq. 4.5.7-5
The change in internal energy of the pipe since the beginning of the simulation is:
∆𝐸 = 𝑀𝐶𝑝(𝑇̅𝑓 − 𝑇𝐼 ) Eq. 4.5.7-6
It is possible to verify the energy balance on this model by calculating the following quantities:
- Rate of energy flow across boundaries:
𝑄𝑖𝑛_𝑜𝑢𝑡 = 𝑚̇𝐶𝑝(𝑇𝑜 − 𝑇𝑖 ) Eq. 4.5.7-7
4–348
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] This parameter indicates whether the calculation will be based on
the inlet humidity ratio input (mode = 1) or the inlet relative humidity
input (mode = 2).
2 Rated Volumetric Flow [l/s] The rated volumetric flow rate of dry air through the fan when
Rate operating.
4 Motor Efficiency [-] The efficiency of the fan motor. This efficiency is used to calculate
the amount of heat added to the air stream.
5 Motor Heat Loss [-] The fraction of the motor heat loss transferred to the air stream.
Fraction The motor heat loss is calculated by subtracting the efficiency of the
motor from 1 and multiplying the resultant quantity by the power
consumption. Typical values are 0 for motors mounted outside the
air stream and 1 for motors mounted within the air stream.
INPUTS
1 Inlet Air Temperature [C] The dry bulb temperature of the air entering the fan.
2 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the fan.
3 Inlet Air Relative [%] The percent relative humidity of the air entering the fan.
Humidity
4 Air Flow Rate [kg/h] The flow rate of the air (dry) entering the fan. This input is not used
by this component except for mass balance checking.
6 Control Signal [-] The input control signal to the fan: < 0.5 = the fan is off, >= 0.5 =
the fan in on.
7 Air-Side Pressure [atm] The increase in air-side pressure for the fan. This value should be
Increase set to zero when the fan is off.
OUTPUTS
1 Outlet Air Temperature [C] The outlet air dry bulb temperature from the fan.
2 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the fan. In all cases,
Ratio the exiting humidity ratio is set to the inlet air humidity ratio.
4–349
TRNSYS 18 – Mathematical Reference
3 Outlet Air Relative [%] The percent relative humidity of the air exiting the fan.
Humidity
4 Outlet Air Flow Rate [kg/h] The flow rate of dry air exiting the fan
5 Outlet Air Pressure [atm] The absolute pressure of the air exiting the fan.
7 Air Heat Transfer [kJ/h] The rate at which heat is transferred to the air by the fan operation.
This value may include motor heat loss if the motor is located within
the air stream.
8 Ambient Heat Transfer [kJ/h] The rate at which energy is transferred to the environment from the
fan. This value is calculated by subtracting the heat transfer to the
air stream from the total fan power.
4.5.8.5. Nomenclature
Q
Energy transferred from the fan motor to the air stream passing through
air [kJ/hr]
the fan.
motor [0..1] Fan motor efficiency
Fraction of fan motor inefficiencies that contribute to a temperature rise
f motorloss [0..1] in the air stream passing through the fan. The remainder of these
inefficiencies contributes to an ambient temperature rise.
P [kJ/hr] Rated power of the fan.
rated
Energy transferred from the fan motor to the ambient air surrounding the
Q ambient [kJ/hr]
fan.
4–350
TRNSYS 18 – Mathematical Reference
m air [kg/hr] Mass flow rate of air passing though the fan.
vair [l/s] Volumetric flow rate of air passing through the fan.
In which ηmotor is the motor efficiency and fmotorloss is a value between 0 and 1 that determines whether the
fan motor inefficiencies cause a temperature rise in the air stream that passes through the fan or whether
they cause a temperature rise in the ambient air surrounding the fan. Through use of the fmotorloss fraction,
the user can in effect specify whether the fan has an inline motor, in which case all waste heat would impact
the air stream temperature and fmotorloss would have a value of 1, or whether the fan motor is housed outside
of the air stream such that it’s waste heat impacts the ambient and fmotorloss would have a value of 0.
The power drawn by the fan when it is operating is simply the rated power specified among the component
parameters. The energy transferred from the fan motor to the ambient is given by
𝑄̇𝑎𝑚𝑏𝑖𝑒𝑛𝑡 = 𝑃𝑟𝑎𝑡𝑒𝑑
̇ − 𝑄̇𝑎𝑖𝑟 Eq. 4.5.8-2
4–351
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] This parameter indicates whether the calculation will be based on
the inlet humidity ratio input (mode = 1) or the inlet relative humidity
input (mode = 2).
2 Rated Volumetric Flow [l/s] The rated volumetric flow rate of dry air through the fan when
Rate operating.
4 Motor Efficiency [-] The efficiency of the fan motor. This efficiency is used to calculate
the amount of heat added to the air stream.
5 Motor Heat Loss [-] The fraction of the motor heat loss transferred to the air stream.
Fraction The motor heat loss is calculated by subtracting the efficiency of the
motor from 1 and multiplying the resultant quantity by the power
consumption. Typical values are 0 for motors mounted outside the
air stream and 1 for motors mounted within the air stream.
6 Number of Power [-] The number of polynomial multipliers that will be supplied relating
Coefficients the normalized fan power to the normalized fan flow rate.
7-N Power Coefficient [-] The value of the polynomial multiplier for the relationship between
normalized fan power and normalized fan flow rate.
INPUTS
1 Inlet Air Temperature [C] The dry bulb temperature of the air entering the fan.
2 Inlet Air Humidity Ratio [-] The absolute humidity ratio of the air entering the fan.
3 Inlet Air Relative [%] The percent relative humidity of the air entering the fan.
Humidity
4 Air Flow Rate [kg/h] The flow rate of the air (dry) entering the fan. This input is not used
by this component except for mass balance checking.
6 Control Signal [-] The input control signal to the fan: < 0.5 = the fan is off, >= 0.5 =
the fan in on.
4–352
TRNSYS 18 – Mathematical Reference
7 Air-Side Pressure [atm] The increase in air-side pressure for the fan. This value should be
Increase set to zero when the fan is off.
OUTPUTS
1 Outlet Air Temperature [C] The outlet air dry bulb temperature from the fan.
2 Outlet Air Humidity [-] The absolute humidity ratio of the air exiting the fan. In all cases,
Ratio the exiting humidity ratio is set to the inlet air humidity ratio.
3 Outlet Air Relative [%] The percent relative humidity of the air exiting the fan.
Humidity
4 Outlet Air Flow Rate [kg/h] The flow rate of dry air exiting the fan
5 Outlet Air Pressure [atm] The absolute pressure of the air exiting the fan.
7 Air Heat Transfer [kJ/h] The rate at which heat is transferred to the air by the fan operation.
This value may include motor heat loss if the motor is located within
the air stream.
8 Ambient Heat Transfer [kJ/h] The rate at which energy is transferred to the environment from the
fan. This value is calculated by subtracting the heat transfer to the
air stream from the total fan power.
4–353
TRNSYS 18 – Mathematical Reference
4.5.9.5. Nomenclature
Energy transferred from the fan motor to the air stream passing through
Q air [kJ/hr]
the fan.
motor [0..1] Fan motor efficiency
Fraction of fan motor inefficiencies that contribute to a temperature rise
f motorloss [0..1] in the air stream passing through the fan. The remainder of these
inefficiencies contributes to an ambient temperature rise.
P [kJ/hr] Power drawn by the fan at a given time.
P [kJ/hr] Fan power draw when operating at rated conditions.
rated
a 0 , a1 , a 2 ... [kJ/hr] Coefficients of the polynomial relating control setting to power draw.
[0..1] Fan control signal.
Energy transferred from the fan motor to the ambient air surrounding
Q ambient [kJ/hr]
the fan.
hair ,out [kJ/kg] Enthalpy of air exiting the fan
hair ,in [kJ/kg] Enthalpy of air entering the fan
m air [kg/hr] Mass flow rate of air passing though the fan.
m rated [kg/hr] Maximum air mass flow rate that can pass through the fan.
With the current power drawn by the fan known the energy transferred to the fan air stream is calculated
using
𝑄̇𝑎𝑖𝑟 = (𝜂𝑚𝑜𝑡𝑜𝑟 + (1 − 𝜂𝑚𝑜𝑡𝑜𝑟 )𝑓𝑚𝑜𝑡𝑜𝑟𝑙𝑜𝑠𝑠 )𝑃̇ Eq. 4.5.9-2
In which ηmotor is the motor efficiency and fmotorloss is a value between 0 and 1 that determines whether the
fan motor inefficiencies cause a temperature rise in the air stream that passes through the fan or whether
they cause a temperature rise in the ambient air surrounding the fan. Through use of the fmotorloss fraction,
the user can in effect specify whether the fan has an inline motor, in which case all waste heat would impact
the air stream temperature and fmotorloss would have a value of 1, or whether the fan motor is housed outside
of the air stream such that it’s waste heat impacts the ambient and fmotorloss would have a value of 0.
4–354
TRNSYS 18 – Mathematical Reference
The energy transferred from the fan motor to the ambient is given by
𝑄̇𝑎𝑚𝑏𝑖𝑒𝑛𝑡 = 𝑃̇ − 𝑄̇𝑎𝑖𝑟 Eq. 4.5.9-3
The mass flow rate of air passing through the fan at any given time is linearly related to the control signal
as
𝑚̇ = 𝑚̇𝑟𝑎𝑡𝑒𝑑 𝛾 = 3.6𝑣̇ 𝑟𝑎𝑡𝑒𝑑 𝜌𝑎𝑖𝑟 Eq. 4.5.9-4
As with most pump and fan components in TRNSYS the flow rate of air exiting the fan is set by the
component without regard to the value of the mass flow rate that is an input to the model. The mass flow
rate input is retained to make connections around an air loop more intuitive and to allow for a mass balance
check to be made on the fan. Care should be taken in setting up air loops that no more than the fan rated
mass flow rate is passed to the model as an input. Type 147 prints a warning to the TRNSYS list file at the
end of the simulation if the fan mass balance failed during the simulation. Type 147 does not generate a
simulation stopping error if the mass balance fails.
The enthalpy of air exiting the fan can be calculated as
𝑄̇𝑎𝑖𝑟
ℎ𝑎𝑖𝑟,𝑜𝑢𝑡 = ℎ𝑎𝑖𝑟,𝑖𝑛 + Eq. 4.5.9-5
𝑚̇𝑎𝑖𝑟
Lastly, the pressure rise of the fan is added to the inlet air pressure and the PSYCHROMETRICS routine
is called to determine the remaining properties of the exiting air state (temperature, humidity ratio and
relative humidity.) The absolute humidity ratio of outlet air is unaffected by the fan (ωin = ωout).
4–355
TRNSYS 18 – Mathematical Reference
1 Humidity Mode [-] The parameter determine if the inlet humidity ratio (=1) or the inlet
relative humidity (=2) is used to calculate the inlet air properties.
2 Mode [-] The mode for the model. To model a flow mixer set the mode = 1.
To model a flow diverter set the mode = 2.
INPUTS
1 Inlet Temperature 1 [C] The temperature of the air stream entering the first inlet of the flow
mixer.
2 Inlet Humidity Ratio 1 [-] The absolute humidity ratio of the first air stream entering the mixer.
3 Inlet Relative Humidity [%] The relative humidity of the first air stream entering the mixer.
1
4 Inlet Flow Rate 1 [kg/h] The flow rate of first air stream entering the flow mixer.
5 Inlet Pressure 1 [atm] The pressure of the first air stream entering the mixer.
6 Inlet Temperature 2 [C] The temperature of the air stream entering the second inlet of the
flow mixer.
7 Inlet Humidity Ratio 2 [-] The absolute humidity ratio of the second air stream entering the
mixer.
8 Inlet Relative Humidity [%] The relative humidity of the second air stream entering the mixer.
2
9 Inlet Flow Rate 2 [kg/h] The flow rate of second air stream entering the flow mixer.
10 Inlet Pressure 2 [atm] The pressure of the second air stream entering the mixer.
1 Inlet Temperature [C] The temperature of the air stream entering the inlet of the flow
diverter.
2 Inlet Humidity Ratio [-] The absolute humidity ratio of the air stream entering the diverter.
3 Inlet Relative Humidity [%] The relative humidity of the air stream entering the diverter.
4 Inlet Flow Rate [kg/h] The flow rate of air stream entering the inlet of the flow diverter.
4–356
TRNSYS 18 – Mathematical Reference
5 Inlet Pressure [atm] The pressure of the air stream entering the diverter.
6 Control Signal [-] The input control signal. The control signal sets the position of a
damper controlling the proportion of air to each exit. mdot,1 =
mdot,in * (1-Y); mdot,2 = mdot,in * Y
OUTPUTS
1 Outlet Temperature [C] The temperature of the air stream exiting the mixer.
2 Outlet Humidity Ratio [-] The absolute humidity ratio of the air stream exiting the mixer.
3 Outlet Relative [%] The relative humidity of the air stream leaving the mixer.
Humidity
4 Outlet Flow Rate [kg/h] The flow rate of air stream leaving the mixer.
5 Outlet Pressure [atm] The pressure of the air stream leaving the mixer.
1 Temperature at Outlet [C] The temperature of the air exiting through the first outlet of the flow
1 diverter. The outlet temperature is set to the inlet temperature for
all cases.
2 Humidity Ratio at [-] The absolute humidity ratio of the air exiting the diverter through
Outlet 1 outlet 1. The exiting humidity ratio is always set to the inlet
humidity ratio.
3 Relative Humidity at [%] The relative humidity of the air leaving the diverter through outlet 1.
Outlet 1 The exiting relative humidity is always set to the entering relative
humidity.
4 Flow Rate at Outlet 1 [kg/h] The flow rate of air leaving the first outlet of the controlled flow
diverter. The first outlet flow rate is: mdot,1 = mdot,in * (1-Y)
5 Pressure at Outlet 1 [atm] The pressure of the air leaving the diverter through outlet 1. The
outlet pressure is always set to the inlet pressure.
6 Temperature at Outlet [C] The temperature of the air exiting through the second outlet of the
2 flow diverter. The temperature at the outlet is set to the inlet
temperature for all cases.
7 Humidity Ratio at [-] The absolute humidity ratio of the air leaving the diverter through
Outlet 2 outlet 2. The outlet humidity ratio is always set to the inlet humidity
ratio.
8 Relative Humidity at [%] The relative humidity of the air leaving the diverter through outlet 2.
Outlet 2 The outlet relative humidity is always set to the inlet relative
humidity.
9 Flow Rate at Outlet 2 [kg/h] The flow rate of air exiting the flow diverter through the second
outlet. The flow rate through the second outlet is: mdot,2 = mdot,in
*Y
4–357
TRNSYS 18 – Mathematical Reference
10 Pressure at Outlet 2 [atm] The pressure of the air leaving the diverter through outlet 2. The
outlet pressure is always set to the inlet pressure.
The remaining outlet air properties are the same as the inlet air properties.
4–358
TRNSYS 18 – Mathematical Reference
4–359
TRNSYS 18 – Mathematical Reference
4–360
TRNSYS 18 – Mathematical Reference
Surface Area [m2] The area of each wall, window, partition, etc. This value is cycled for
each surface of the zone.
Surface Area [m2] The area of each wall, window, partition, etc. This value is cycled for
each surface of the zone.
TEXT FIELDS
Control Mode n/a Either “Energy Rate Control” or “Temperature Level Control” depending
on the value of Parameter 1
Surface Type n/a This value is cycled (repeated) for each surface of the zone. The value
may be any of the following: Exterior Wall/Roof, Boundary Wall,
Adjacent Wall, Conduction Wall, or Window
4–361
TRNSYS 18 – Mathematical Reference
If mode (parameter 1) = 1
Min/Max Value Fields are only present in the *.ssr file if Type19 is in Control Mode 2 (parameter 1 = 2)
4.6.1.4. Nomenclature
A - overall surface area of wall or window exposed to inside of zone
b - transfer function coefficient for current and previous sol-air temperature
Cap - effective capacitance of room air plus any mass not considered with transfer functions
Cpa - specific heat of air
c - transfer function coefficient for current and previous equivalent zone air temperature
d - transfer function coefficient for current and previous heat flux to zone
Fki - view factor from surface k to i
F ki - net exchange factor from surface k to i
hc,i - convection coefficient at inside surface
hc,o - outside convection coefficient
hr,ij - linearized radiative coefficient between surfaces i and j
IT - total incident solar radiation
K1 - constant air change per hour
K2 - proportionality constant for air change due to indoor-outdoor temperature difference
K3 - proportionality constant for air change due to wind effects
minfl - mass flow rate of air infiltration
mv - mass flow rate of ventilation stream
N - total number of surfaces comprising zone
4–362
TRNSYS 18 – Mathematical Reference
q - heat transfer rate per unit area at the inside surface of a wall or window
I
Q - total heat transfer rate at the inside surface of a wall or window
Q infl - rate of energy gain into the zone due to infiltration
Q int - rate of energy transfer to the zone due to internal gains other than people or lights
Q lat - latent load; energy required to keep humidity levels within the comfort zone. Dehumidification is a
positive latent load, while humidification is negative.
Q sens - sensible load; energy required by auxiliary heating or cooling equipment to keep zone temperature
within the comfort zone. Cooling is positive, heating is negative.
Q spepl - rate of energy transfer to the zone due to sensible gains from people
Qv - rate of energy gain to the space due to the ventilation flow stream
Qz - rate of energy gain to the space due to convection from attached zones
s - sum of radiative energy absorbed at an inside surface due to solar, lights,
and people
Ta - ambient temperature
Teq - equivalent zone temperature; inside air temperature which, in the absence of radiative exchange at
the inside surface, gives the same heat transfer as actually occurs
Tmin - minimum allowable zone temperature; set point for heating
Tmax - maximum allowable zone temperature; set point for cooling
Tsa - sol-air temperature; outside air temperature, which in the absence of radiative exchange at outside
surface gives the same heat transfer as actually occurs
Ts - surface temperature
Tz - zone temperature
T'z - temperature of an adjacent zone
Ug - loss coefficient of window from inside to outside surface
Ug,o - overall loss coefficient of window including convection at inside and outside surfaces
Va - volume of air in the zone
W - windspeed
min - minimum allowable zone humidity ratio; set point for humidification
max - maximum allowable zone humidity ratio; set point for dehumidification
a - humidity ratio of ambient air
I - rate of internal moisture gains to zone other than people
v - humidity ratio of entering ventilation flow stream
z - humidity ratio of zone air
X - vector containing time varying Inputs that affect surface and zone temperatures
Z - matrix containing time independent factors affecting surface and zone temperatures
hvap - heat of vaporization of water
- absorptance of the outside of a surface for solar radiation
- reflectance term of inside surface for solar radiation
a - density of zone air
- Stephan-Boltzman constant
SUBSCRIPTS
i, j, or k - refer to surfaces i, j, k
h - denotes the term of a transfer function. 0 is the current hour, l is the previous hour, etc.
4–363
TRNSYS 18 – Mathematical Reference
where Ts,i represents the inside surface temperature of element i, unless i is equal to the number of surfaces
plus one (n+1), in which case it is the zone air temperature. The factor X i includes time varying Inputs that
affect Ts,i, Zi,j is a coefficient relating the heat transfer between elements i and j.
The objective is to formulate the problem in terms of Eq. 4.6.1-1, making simplifying assumptions that result
in a time independent Zi,j matrix. In this manner, the Zi,j matrix is inverted once at the beginning of the
simulation and stored for later use. The solution of the set of equations is then reduced to multiplication of
the inverted Zi,j matrix and the time varying Xi vector as given by Eq. 4.6.1-2 and formulated by Madsen [3].
−1
[𝑇𝑠,𝑖 ] = [𝑍𝑖,𝑗 ] [𝑋𝑖 ] Eq. 4.6.1-2
EXTERIOR WALL
The instantaneous heat flux entering or leaving the zone for an exterior wall can be modeled according to
the following transfer function relationship.
The coefficients bh, ch, and dh are transfer function coefficients for current and previous values of the sol-
air temperature (Tsa,i), equivalent zone temperature (Teq,i), and heat flux, q i . A value of h equal to zero
represents the current time interval, h equal to one is the previous hour and so on. The sol-air temperature,
Tsa,i, is the temperature of the outdoor air which, in the absence of all radiation exchanges, would give the
same heat transfer at the outside surface as actually occurs. For a vertical wall, it is generally expressed
as:
(𝛼𝐼𝑇 )𝑖
𝑇𝑠𝑎,𝑖 = 𝑇𝑎 + Eq. 4.6.1-4
ℎ𝑐,𝑜
The following expression is used to evaluate the heat transfer coefficient for convection over the building:
ℎ𝑐,𝑜 = 5.7 + 3.8𝑊 Eq. 4.6.1-5
where the windspeed W has the units of m/s and hc,o is in W/m2-C.
The equivalent zone temperature, Teq,i, is analogous to a sol-air temperature for the inside surface. It is the
inside air temperature, which in the absence of radiative exchange at the inside surface, gives the same
heat transfer as actually occurs. This is expressed as:
𝑠𝑖 + ∑𝑁
𝑗=1 ℎ𝑟,𝑖𝑗 (𝑇𝑠,𝑗 − 𝑇𝑠,𝑖 )
𝑇𝑒𝑞,𝑖 = 𝑇𝑧 + Eq. 4.6.1-6
ℎ𝑐,𝑖
The quantity si is the sum of radiative gains absorbed by the surface due to solar, lights, equipment, and
people. A discussion of the calculation of these gains appears in a following section. Long-wave radiation
between surfaces in the zone is considered through the use of a linearized radiative heat transfer
coefficient, hr,i,j. All surfaces are assumed to be black for long-wave radiation, such that
ℎ𝑟,𝑖,𝑗 = 4𝜎𝐹𝑖𝑗 𝑇̅ 3 Eq. 4.6.1-7
This radiative coefficient is assumed to be constant throughout the simulation. It is evaluated at the initial
temperature of the zone specified by the user. View factors between all surfaces in the zone are calculated
for a rectangular parallelpiped by subroutine Enclosure_17, as described in the Programmer’sGuide
manual. The user specifies the dimensions of the zone, along with the location of any windows or doors.
4–364
TRNSYS 18 – Mathematical Reference
Eq. 4.6.1-3 expressed the heat transfer at the inside surface in terms of a transfer function relationship.
However, it can also be given according by the following heat transfer equation:
𝑞𝑖 = ℎ𝑐,𝑖 (𝑇𝑠,𝑖 − 𝑇𝑒𝑞,𝑖 ) Eq. 4.6.1-8
If Eq. 4.6.1-8 is substituted into Eq. 4.6.1-3, the result can be arranged in the form of Eq. 4.6.1-1 as
∗ 𝑁 ∗ 𝑁
𝑐𝑜,𝑖 𝑐𝑜,𝑖 ∗
𝑇𝑠,𝑖 (1 − ∑ ℎ𝑟,𝑖𝑗 |) + ∑ ℎ𝑟,𝑖𝑗 𝑇𝑠,𝑗 + 𝑐𝑜,𝑖 𝑇𝑧
ℎ𝑐,𝑖 ℎ𝑐,𝑖
𝑗=1 𝑗=1 Eq. 4.6.1-9
∗
∗ ∗
𝑐𝑜,𝑖 𝑠𝑖
= ∑ 𝑏ℎ,𝑖 𝑇𝑠𝑎,𝑖,ℎ − ∑ 𝑐ℎ,𝑖 𝑇𝑒𝑞,𝑖,ℎ − ∑ 𝑑ℎ,𝑖 𝑇𝑠,𝑖,ℎ −
ℎ𝑐,𝑖
ℎ=0 ℎ=1 ℎ=1
where,
∗
𝑐𝑜,𝑖
𝑐𝑜,𝑖 = −1
ℎ𝑐,𝑖
∗
𝑐ℎ,𝑖
𝑐ℎ,𝑖 = − 𝑑ℎ
ℎ𝑐,𝑖
∗
𝑏ℎ,𝑖
𝑏ℎ,𝑖 =
ℎ𝑐,𝑖
In terms of the nomenclature of Eq. 4.6.1-1:
∗
𝑐𝑜,𝑖
𝑍𝑖,𝑗 = ℎ 𝑓𝑜𝑟 𝑖 ≠ 𝑗 Eq. 4.6.1-10
ℎ𝑐,𝑖 𝑟,𝑖𝑗
∗ 𝑁
𝑐𝑜,𝑖
𝑍𝑖,𝑖 = 1 − ∑ ℎ𝑟,𝑖𝑗 Eq. 4.6.1-11
ℎ𝑐,𝑖
𝑗=1
∗
𝑍𝑖,𝑁+1 = 𝑐𝑜,𝑖 Eq. 4.6.1-12
∗
∗ ∗
𝑐𝑜,𝑖 𝑠𝑖
𝑋𝑖 = ∑ 𝑏ℎ,𝑖 𝑇𝑠𝑎,𝑖,ℎ − ∑ 𝑐ℎ,𝑖 𝑇𝑒𝑞,𝑖,ℎ − ∑ 𝑑ℎ,𝑖 𝑇𝑠,𝑖,ℎ − Eq. 4.6.1-13
ℎ𝑐,𝑖
ℎ=0 ℎ=1 ℎ=1
INTERIOR PARTITION
An interior partition is assumed to be a wall that is exposed to identical conditions at both surfaces. With
this criterion, the wall is adiabatic at the centerline and the heat transfer at the surface is given as
The heat transfer is also given by Eq. 4.6.1-8. If this expression is substituted into equation Eq. 4.6.1-14,
the result can be rearranged in the form of Eq. 4.6.1-1 such that:
∗ ∗
(𝑐𝑜,𝑖 − 𝑏𝑜,𝑖 )ℎ𝑟,𝑖𝑗
𝑍𝑖𝑗 = 𝑓𝑜𝑟 𝑖 ≠ 𝑗 Eq. 4.6.1-15
ℎ𝑐,𝑖
∗ ∗
(𝑐𝑜,𝑖 − 𝑏𝑜,𝑖 ) ∑ ℎ𝑟,𝑖𝑗
𝑍𝑖,𝑖 = 1 − Eq. 4.6.1-16
ℎ𝑐,𝑖
∗ ∗
𝑍𝑖,𝑁+1 = 𝑐𝑜,𝑖 − 𝑏𝑜,𝑖 Eq. 4.6.1-17
∗
𝑋𝑖 = − ∑ 𝑐ℎ,𝑖 𝑇𝑒𝑞,𝑖,ℎ − ∑ 𝑑ℎ,𝑖 𝑇𝑠,𝑖,ℎ Eq. 4.6.1-18
ℎ=1 ℎ=1
4–365
TRNSYS 18 – Mathematical Reference
If both sides of the wall under consideration are exposed to the inside of zone, then the user should specify
the surface area to include both faces.
CONDUCTION INPUT
Walls or other structures not appropriately modeled using transfer function relationships must appear as
separate components in a simulation. The energy conduction at the inside surface of this wall must be
provided as an Input to the Type19 Zone. The expression for surface heat transfer given in Eq. 4.6.1-8 can
be rearranged in the form of Eq. 4.6.1-1 such that
−ℎ𝑟,𝑖𝑗
𝑍𝑖,𝑗 = 𝑓𝑜𝑟 𝑖 ≠ 𝑗 Eq. 4.6.1-19
ℎ𝑐,𝑖
∑ ℎ𝑟,𝑖𝑗
𝑍𝑖,𝑖 = 1 + Eq. 4.6.1-20
ℎ𝑐,𝑖
𝑍𝑖,𝑁+1 = −1 Eq. 4.6.1-21
𝑄𝑖
+ 𝑠𝑖
𝐴 Eq. 4.6.1-22
𝑋𝑖 = 𝑖
ℎ𝑐,𝑖
The heat transfer, Qi is provided as an Input. The equivalent zone temperature for this wall, T eq,i should be
used as the zone condition for evaluating Qi in the separate wall component. If the actual zone temperature
were used instead, then the effects of the absorption of radiation on the inside surface would not be correctly
accounted for.
WINDOW
There are two window modes. In mode 1, the solar transmission and the thermal heat gain are determined
internally. The solar energy passing through the window is the product of the incident solar radiation and
the transmittance provided as an Input. The thermal conduction through the window from the ambient is
given as
𝑄𝑖 = 𝐴𝑖 𝑈𝑔,𝑜,𝑖 (𝑇𝑎 − 𝑇𝑒𝑞,𝑖 ) Eq. 4.6.1-23
The loss coefficient from the inside to the outside surface of window is an Input. The overall loss coefficient,
Ug,o, is the reciprocal of the sum of the resistances of the window (1/U g), the outside air (1/hc,o) and the
inside air (1/hc,i). The energy transfer is evaluated with the above equation using the last estimate of T eq,i.
With this assumption, (Eq 5.7.3.19) - (Eq 5.7.3.22) are applicable. This procedure allows a variable overall
loss coefficient while retaining the time independence of the Z ij matrix.
In the second window mode, both solar energy transmitted through the wall and the thermal heat gain are
Inputs. These may be calculated using a more detailed window model such as the TYPE 35. (Eq 5.7.3.19)
- (Eq 5.7.3.22) are also applicable in this mode.
RADIATIVE GAINS
Radiation gains to each surface in the room originate from lights, people, and solar radiation entering
windows. Solar radiation passing through windows is assumed to be diffusely reflected. Consider beam
radiation striking a surface k. The diffuse radiation leaving k that strikes surface i is determined using the
total exchange factor from Beckman (5). This factor 𝐹̂𝑘𝑖 , is defined as the fraction of energy striking surface
4–366
TRNSYS 18 – Mathematical Reference
i which diffusely originated at surface k. For an enclosure with N diffusely reflecting surfaces, 𝐹̂𝑘𝑖 is
expressed as:
𝐹̂𝑖𝑗 = 𝐹𝑖𝑗 + 𝐹𝑖𝑙 𝜌1 𝐹̂𝑖𝑗 + ⋯ + 𝐹𝑖𝑖 𝜌𝑖 𝐹̂𝑖𝑗 + ⋯ + 𝐹𝑖𝑗 𝜌𝑖 𝐹̂𝑗𝑗 + ⋯ + 𝐹𝑖𝑁 𝜌𝑁 𝐹̂𝑁𝑗 Eq. 4.6.1-24
where:
𝛿𝑖𝑗 = 1 𝑓𝑜𝑟 𝑖 = 𝑗
𝛿𝑖𝑗 = 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Diffuse radiation entering windows is assumed to be isotropic. With this assumption, the fraction of the
diffuse radiation transmitted through a window k that strikes surface is 𝐹̂𝑘𝑖 .
All surfaces are assumed to be black (i.e. perfect absorbers) for radiation from lights and people. Radiation
from these sources is also considered to be isotropic. Radiative gains from people are assumed to be 70%
of their total sensible energy output.
INTERNAL SPACE
An energy balance on the zone air plus any furnishings considered as a lumped system yields
𝑁
𝑇𝑍𝐹 − 𝑇𝑍𝐼
𝐶𝑎𝑝 = ∑ ℎ𝑐,𝑖 𝐴𝑖 (𝑇𝑠,𝑗 − 𝑇𝑧 ) + 𝑄̇𝑣 + 𝑄̇𝑖𝑛𝑓𝑙 + 0.3𝑄̇𝑠𝑝𝑒𝑝𝑙 + 𝑄̇𝑖𝑛𝑡 + 𝑄̇𝑧 Eq. 4.6.1-26
∆𝑡
𝑗=1
In order to arrange the above expression in the form of (Eq 5.7.3.1) while maintaining the time
independence of Zij, it is necessary to make two simplifying assumptions. First of all, the zone temperature
variation is considered to be linear over each simulation timestep. Secondly, the ventilation and infiltration
energy gains are evaluated using the last estimate of the zone temperature. With these assumptions, (Eq
5.7.3.26) can be rearranged such that
𝑍𝑁+1,𝑗 = ℎ𝑐,𝑗 𝐴𝑗 Eq. 4.6.1-27
𝑁 2𝐶𝑎𝑝
∑ ∑ 𝑍𝑁+1,𝑁+1 = ∑ ℎ𝑐,𝑗 𝐴𝑗 − Eq. 4.6.1-28
𝑗=1 ∆𝑡
2𝐶𝑎𝑝
𝑋𝑁+1 = −𝑄𝑧 − 𝑄𝑣 − 𝑄𝑖𝑛𝑓𝑙 − 0.3𝑄𝑠𝑝𝑒𝑝𝑙 − 𝑄𝑖𝑛𝑡 − 𝑇 Eq. 4.6.1-29
∆𝑡 𝑍𝐼
The ventilation and infiltration gains are expressed as
𝑄𝑣 = 𝑚𝑣 𝐶𝑝𝑎 (𝑇𝑣 − 𝑇𝑧 ) Eq. 4.6.1-30
K1, K2, and K3 are empirical constants. Typical values for different construction qualities from the ASHRAE
Handbook of Fundamentals are given in Table 4.6.1–1 (SI units).
Table 4.6.1–1: Coefficients for Multiple Linear Regression Infiltration, Eq. 5.7.3.32
Construction K1 K2 K3 Description
Tight 0.10 0.011 0.034 New building where special precautions have been
taken to prevent infiltration.
4–367
TRNSYS 18 – Mathematical Reference
Loose 0.10 0.023 0.07 Evidence of poor construction on older buildings where
joints have separated.
The energy convected from people in the space is assumed to be 30% of the total sensible gain from
people. The additional 70% is in the form of radiation to the interior surfaces. The number of people in the
zone at any time is specified as an Input. Both the sensible and latent gain from people depends upon the
level of activity. Table 4.6.1–2 gives the possible activity levels that may be specified. This table was taken
from Chapter 26 of the 1981 ASHRAE Handbook of Fundamentals.
Table 4.6.1–2: Rates of Heat Gain from Occupants of Conditioned Spacesa
Total heat
Sensible Heat Latent Heat
Typical adjustedb
No Degree of Activity
Application
W BTU/h W BTU/h W BTU/h
2 Seated, very light writing Office, hotels, 120 420 65 230 55 190
apts.
4 Seated, light work, typing Offices, hotels, 150 510 75 255 75 255
apts.
5 Standing, light work or Retail store, bank 185 640 90 315 95 325
walking slowly
6 Light bench work Factory 230 780 100 345 130 435
7 Walking, 1.3m/s (3mph) Factory 305 1040 100 345 205 695
light machine work
9 Moderate dancing Dance hall 375 1280 120 405 255 875
10 Heavy work, heavy machine Factory 470 1600 165 565 300 1035
work, lifting
11 Heavy work, athletics Gymnasium 525 1800 185 635 340 1165
a Tabulated values are based on 25.5°C (78°F) room dry-bulb temperature. For 26.6°C (80°F) room dry bulb,
the total heat remains the same, but the sensible heat value should be decreased by approximately 8% and
the latent heat values increased accordingly.
b Adjusted total heat gain is based on normal percentage of men, women and children for the application
listed, with the postulate that the gain from an adult femail is 85% of that for an adult male, and that the gain
from a child is 75% of that for an adult male.
c Adjusted total heat value for eating in a restaurant includes 17.6W (60 BTU/h) for food per individual (8.8W
(30BTU/h) sensible and 8.8W (30BTU/h) latent).
4–368
TRNSYS 18 – Mathematical Reference
d For bouling figure one person per alley actually bowling and all others as sitting 117W (400BTU/h) or
standing and walking slowly 231W (790 BTU/h).
Error! Reference source not found. to Error! Reference source not found. apply for a floating room
mperature. This is characteristic of temperature level control or when the room temperature is in the comfort
zone (no load) in energy rate control. If, however, the zone temperature would be above the maximum or
below the minimum limits imposed by the user, then the zone temperature is set equal to the limit and the
following expressions are used.
𝑍𝑁+1,𝑗 = 0 Eq. 4.6.1-33
The sensible energy required to maintain the set temperature (i.e. the load) in mode 1 is
𝑁
𝐶𝑎𝑝(𝑇𝑍𝐹 − 𝑇𝑍𝐼 )
𝑄𝑠𝑒𝑛𝑠 = 𝑄𝑧 + 𝑄𝑣 + 𝑄𝑖𝑛𝑡 + 0.3𝑄𝑠𝑝𝑒𝑝𝑙 + 𝑄𝑖𝑛𝑓 + ∑ ℎ𝑐,𝑗 𝐴𝑗 (𝑇𝑠,𝑗 − 𝑇𝑧 ) − Eq. 4.6.1-36
∆𝑡
𝑗=1
As described above, ventilation, infiltration and thermal energy gains through windows are calculated using
the most recent estimate of the zone temperature. If the zone temperature is changing rapidly and these
energy quantities represent a significant portion of the energy gain to the space, this may not be adequate.
As a result, the Type19 uses an internal iteration if the energy balance on the zone does not close to within
2%.
LATENT LOADS
A moisture balance on the room air at any instant yields the following differential equation.
𝑑𝜔𝑧
𝜌𝑎 𝑉𝑎 = 𝑚𝑖𝑛𝑓𝑙 (𝜔𝑎 − 𝜔𝑧 ) + 𝑚𝑣 (𝜔𝑣 − 𝜔𝑧 ) + 𝜔𝐼 Eq. 4.6.1-37
𝑑𝑡
Eq. 4.6.1-37 is solved each simulation timestep for the zone humidity ratio. In temperature level control,
the ventilation flowstream or moisture generation should include moisture addition or removal due to heating
or cooling equipment. For this case, the latent load should be calculated external to the Type19, possibly
with a cooling coil model. In energy rate control, the latent load is the energy required to maintain the zone
humidity ratio within the humidity comfort zone (i.e. between minand max). If the zone humidity ratio would
fall outside the limits imposed by the user, then the zone humidity ratio is set equal to the limit and the latent
load is calculated as:
𝑄𝑙𝑎𝑡 = ∆ℎ𝑣𝑎𝑝 (𝑚𝑖𝑛𝑓𝑙 (𝜔𝑎 − 𝜔𝑧 ) + 𝑚𝑣 (𝜔𝑣 − 𝜔𝑧 ) + 𝜔𝐼 ) Eq. 4.6.1-38
Otherwise the latent load is zero. Note that Va (zone parameter number 3) may be artificially increased to
account for the moisture capacitance of furnishings, etc. This will not affect any other calculation.
4–369
TRNSYS 18 – Mathematical Reference
parameters and inputs is necessary. There are five possibilities for surface types. They include transfer
function representations for exterior walls, interior partitions, and walls separating zones at different
temperatures. Coefficients for the standard walls, partitions, ceilings, or floors taken from the ASHRAE
Handbook of Fundamentals [1] are in the file ASHRAE.COF (accessed through logical unit 8) and listed at
the end of the component description. The user may choose from these lists or may provide the coefficients
generated by the stand-alone program PREP (see %TRNSYS18%\Documentation\A2-
Type19Supplement.pdf) for other constructions. A wall may also be modeled using a separate TRNSYS
component with conduction through this wall provided as an input to the zone. The fifth type of surface
available is a window. The user must specify the properties of the window, along with specifics concerning
the illumination of the interior surfaces due to beam radiation passing through the window. A door or any
other wall that has negligible thermal capacitance can be considered by specifying a transfer function wall
with one b and c coefficient and no d coefficients. In this case, both bo and co should be set equal to the U
value of the door or wall.
The last parameters that must be supplied define the geometry of the zone for radiation exchange
calculations. There are three principal geometry modes. In the first mode, the program calculates view
factors for a parallelpiped (box) geometry. There is a set of parameters that describe the size of the room
and relative locations of wall surfaces. For each window or door, an additional set of parameters is
necessary to describe its location on a wall. Figure 4.6.1–1 shows the dimensions and definitions of the
zone geometry that are using in specifying the Type19 parameters. In the second geometry mode, the user
specifies the number of entries required. A third geometry mode is 0. In this case, the program uses area
ratios to determine view factors. Although this is not a correct procedure, it may be adequate when the
inside surfaces are close in temperature and infrared energy exchange is not significant. When the
geometry mode is specified as 0, no additional geometry parameters are required.
There are 10 standard outputs of the Type19. Up to 10 additional surface dependent quantities may be
specified as outputs using optional parameters that follow the geometry description. The first parameter
specifies the number of additional outputs that are desired. For each output, two parameters are then
required. The first one specifies the type of output desired as chosen (by number) from Table 4.6.1–2. The
second parameter in this group of two is the surface number for which this quantity is desired. The additional
outputs begin at the eleventh output and may range to the twentieth.
4–370
TRNSYS 18 – Mathematical Reference
3 Si Absorbed radiative gains from solar, lights, and people for surface i [kJ/m 2.hr]
4.6.1.7. References
1. ASHRAE, Handbook of Fundamentals, (2001).
2. Madsen, J.M. “Modeling Heat Transfer in Rooms Using Transfere Function Methods,” M.S. Thesis,
University of Wisconsin – Madison (1982).
3. McAdams, W.H., Heat Transmission, 3rd edition, McGraw-Hill, New York, (1954).
4. Beckman, W.A., “The Solution of Heat Transfer Problems on a Digital Computer,” Solar Energy, 13, 3,
(1971).
4–371
TRNSYS 18 – Mathematical Reference
1 Mode [-] This parameter tells Type 34 whether or not the view factor to
the sky has already been taken into account in the diffuse
radiation, which depends on the component to which input 4 is
connected
0: Radiation comes from Type15 (or Type16 or Type99). View
factor has NOT been taken into account.
1: Radiation comes from Type67 (mask). View factor has
already been taken into account.
Technical explanation:
The difference is in the view factor of the sky behind the window.
Type34 assumes a vertical orientation for the window. In doing
that, it knows that a window with no overhangs or projections
can only see half the sky so the sky view factor that it calculates
is: ShadedVF = 0.5 - OverhangEffects - WingwallEffects
Type68 allows for the window to be sloped and calculates its sky
view factor accordingly. If the window is vertical and there are no
obstructions in front of the window, then its calculated view
factor is 0.5 and the radiation that has been passed through
Type68 will already be cut down accordingly. If you then want to
include the effect of an overhang using Type34, you have
already accounted for the 0.5 in the ShadedVF equation above,
so you need to use
instead: ShadedVF = 1.0 - OverhangEffects - WingwallEffects
so that you don't account for the fraction of the sky that is behind
the window twice.
Overhang left The horizontal distance between the left edge of the receiver
6 [m]
extension and theleft edge of the overhang.
Overhang right The horizontal distance between the right edge of the receiver
7 [m]
extension and theright edge of the overhang.
4–372
TRNSYS 18 – Mathematical Reference
Left wingwall top The vertical distance between the top of the receiver and the
10 [m]
extension topof the wingwall.
Left wingwall bottom The vertical distance between the bottom of the receiver and the
11 [m]
extension bottom of the left wingwall.
Right wingwall The length of the right wingwall; measured in the plane of the
12 [m]
projection wingwall.
Right wingwall top The vertical distance between the top of the receiver and the top
14 [m]
extension ofthe right wingwall.
Right wingwall bottom The vertical distance between the bottom of the receiver and
15 [m]
extension thebottom of the right wingwall.
INPUTS
The solar zenith angle is the angle between the vertical and the
1 Solar zenith angle [degrees]
projection of the line of sight of the sun.
The solar azimuth angle is the angle between the local meridian
2 Solar azimuth angle [degrees] and the projection of the line of sight of the sun onto the
horizontal plane.
Total horizontal The total radiation (beam + sky difuse + ground reflected diffuse)
3 [kJ/hr.m2]
radiation incident upon a horizontal surface per unit area.
Beam radiation on The beam radiation per unit area incident upon the receiver
5 [kJ/hr.m2]
surface surface.
Incidence angle of
7 [degrees] Incidence angle of direct radiation on the receiver surface
direct radiation
4–373
TRNSYS 18 – Mathematical Reference
OUTPUTS
Incident receiver The average total solar radiation (beam + sky diffuse + ground
1 [kJ/hr.m2]
radiation reflected diffuse) incident on the shaded receiver per unit area.
Beam radiation on The average beam radiation incident upon the receiver per unit
2 [kJ/hr.m2]
receiver area.
Ground reflected The average ground reflected diffuse radiation incident upon
4 [kJ/hr.m2]
diffuse theshaded receiver per unit area.
6 View factor to sky [-] The view factor from the receiver surface to the sky.
7 View factor to ground [-] The view factor from the receiver to the ground.
View factor to
8 [-] The view factor from the receiver surface to the overhang.
overhang
Overhang projection [m] Parameter 4; Note: this value will not be written if the overhang
extension is 0
Overhang gap [m] Parameter 5; Note: this value will not be written if the overhang
extension is 0
Overhang left [m] Parameter 6; Note: this value will not be written if the overhang
projection extension is 0
4–374
TRNSYS 18 – Mathematical Reference
Overhang right [m] Parameter 7; Note: this value will not be written if the overhang
projection extension is 0
Left wingwall [m] Parameter 8; Note: this value will not be written if the left wingwall
projection extension is 0
[m] Parameter 9; Note: this value will not be written if the left wingwall
Left wingwall gap
extension is 0
Left wingwall top [m] Parameter 10; Note: this value will not be written if the left wingwall
extension extension is 0
Left wingwall bottom [m] Parameter 12; Note: this value will not be written if the left wingwall
extension extension is 0
Right wingwall [m] Parameter 13; Note: this value will not be written if the right wingwall
projection extension is 0
[m] Parameter 14; Note: this value will not be written if the right wingwall
Right wingwall gap
extension is 0
Right wingwall top [m] Parameter 15; Note: this value will not be written if the right wingwall
extension extension is 0
Right wingwall bottom [m] Parameter 16; Note: this value will not be written if the right wingwall
extension extension is 0
4–375
TRNSYS 18 – Mathematical Reference
Type34 assumes that the shaded aperture is vertical. Its view factor for diffuse radiation is therefore
half of the sky dome (i.e. no diffuse radiation comes from behind the receiver aperture). If you are
using another component (such as Type67) to compute the shading effects of faraway objects or
radiation augmentation by reflective surfaces) upstream of Type34 be sure that you do not double
account for the reduction in diffuse radiation visible by the Type34 aperture. Type34 includes a
parameter that allows the user to specify whether the diffuse radiation view factor should or should not
be taken into account by Type34.
4.6.2.4. Nomenclature
A - receiver area
Ai - receiver area irradiated by direct beam
As - receiver area shaded from direct beam
eb - wingwall extension past the bottom of the receiver
el - overhang extension past the left edge of the receiver
er - overhang extension past the right edge of the receiver
et - wingwall extension past the top of the receiver
fi - fraction of the receiver area irradiated by direct beam
FA-G - receiver radiation view factor of the ground
FA-O - receiver radiation view factor of the overhang
FA-S - receiver radiation view factor of the sky
FA-Wl - receiver radiation view factor of the left wingwall
FA-Wr - receiver radiation view factor of the right wingwall
g - gap between the edge of the receiver and the base of the overhang or wingwall
h - receiver height
I - horizontal total solar radiation
IbT - beam component of solar radiation incident on the receiver surface
Id - diffuse component of solar radiation incident on a horizontal surface
(IT)S - average solar radiation incident on a shaded receiver
- overhang or wingwall projection from receiver surface
w - receiver width
s - solar azimuth angle
Z - solar zenith angle
- receiver azimuth angle
gnd - ground reflectance
4–376
TRNSYS 18 – Mathematical Reference
4–377
TRNSYS 18 – Mathematical Reference
C
P
A dA
B1 1
A
2
B2
where FdA-A1 and FdA-A2 are given by Siegel and Howell [2] as:
𝐶
1 𝐵𝑖 𝐵𝑖 1
𝐹𝑑𝐴−𝐴𝑖 = tan−1 ( ) − tan−1 (𝑖 = 1,2) Eq. 4.6.2-4
2𝜋 𝐶 2 2 2 2
√( 𝑃 ) + ( 𝐶 ) √( 𝑃 ) + ( 𝐶 )
[ ( 𝐵𝑖 𝐵𝑖 ) ( 𝐵𝑖 𝐵𝑖 )]
The receiver radiation view factor of the overhang is computed in a similar manner. The total sky and ground
view factors FA-S and FA-G are given by:
1
𝐹𝐴−𝑆 = − 𝐹𝐴−𝑂 − ∫ 𝐹𝑑𝐴−𝐴1 𝑑𝐴 − ∫ 𝐹𝑑𝐴−𝐴1 𝑑𝐴 Eq. 4.6.2-5
2 𝐴 𝐴
left wingwall right wingwall
1
𝐹𝐴−𝐺 = − ∫ 𝐹𝑑𝐴−𝐴2 𝑑𝐴 − ∫ 𝐹𝑑𝐴−𝐴2 𝑑𝐴 Eq. 4.6.2-6
2 𝐴 𝐴
4.6.2.6. References
1. Sun, Tseng-Yao, 'SHADOW 1', Procedure for Determining Heating and Cooling Loads for
Computerizing Energy Calculations, ASHRAE Task Group on Energy Requirements, 1975, pp. 48-56.
2. Siegel, R. and Howell, J., Thermal Radiation Heat Transfer, McGraw-Hill, 1972, p. 784.
4–378
TRNSYS 18 – Mathematical Reference
5 Wall conductivity [kJ/hr.m.K] The effective thermal conductivity of the thermal storage wall.
Wall specific
6 [kJ/m3.K] The product of the wall density and wall specific heat.
capacitance
4–379
TRNSYS 18 – Mathematical Reference
Spacing between wall The distance between the outside surface of the thermal storage
11 [m]
and glazing wall and the first glazing cover.
If Mode (parameter 1) = 2
12 Vent outlet area [m2] The total outlet area of the vent.
Distance between The vertical distance between the inlet and outlet vents in the
13 [m]
vents thermal storage wall.
If Mode (parameter 1) = 3
If Mode (parameter 1) = 4
14 Vent outlet area [m2] The total outlet area of the vent.
Distance between The vertical distance between the inlet and outlet vents in the
15 [m]
vents thermal storage wall.
INPUTS
The speed of the wind across the outside surface of the thermal
4 Wind speed [m/s]
storage wall.
The overall heat transfer coefficient from the first glazing of the
5 Outside loss coefficient [kJ/hr.m2.K]
thermal storage wall to the ambient.
4–380
TRNSYS 18 – Mathematical Reference
The overall loss coefficient from the inside wall surface to the
6 Inside loss coefficient [kJ/hr.m2.K]
room.
If Mode (parameter 1) = 1
9 Inlet air flow rate [kg/hr] The flow rate of air through the gap in the thermal storage wall.
If Mode (parameter 1) = 1
If Mode (parameter 1) = 3
The beam solar radiation incident upon the thermal storage wall
8 Beam radiation [kJ/hr.m2]
per unit area.
10 Inlet air flow rate [kg/hr] The flow rate of air through the gap in the thermal storage wall.
If Mode (parameter 1) = 4
The beam solar radiation incident upon the thermal storage wall
8 Beam radiation [kJ/hr.m2]
per unit area.
OUTPUTS
The rate at which energy is lost from the thermal storage wall to
4 Thermal losses [kJ/hr]
the ambient.
4–381
TRNSYS 18 – Mathematical Reference
Wall to room heat The rate at which energy is transferred from the inside wall
5 [kJ/hr]
transfer surface to the room.
Glazing to ambient The rate at which energy is transferred from the first glazing to
6 [kJ/hr]
heat transfer the ambient.
The rate at which energy is transferred due to the flow rate of air
7 Ventilation energy flow [kJ/hr]
through the gap.
8 Air flow rate [kg/hr] The flow rate of air through the gap in the thermal storage wall.
The temperature of the air exiting the gap in the thermal storage
9 Outlet air temperature [C]
wall.
Temperature of first
10 [C] The temperature of the first glazing of the thermal storage wall.
glazing
DERIVATIVES
Number of wall nodes [-] The number of isothermal nodes into which the split
4–382
TRNSYS 18 – Mathematical Reference
If Mode (parameter 1) = 2
If Mode (parameter 1) = 3
If Mode (parameter 1) = 4
TEXT FIELDS
If Mode (parameter 1) = 1
If Mode (parameter 1) = 2
If Mode (parameter 1) = 3
If Mode (parameter 1) = 4
4–383
TRNSYS 18 – Mathematical Reference
If Mode (parameter 1) = 1
If Mode (parameter 1) = 2
If Mode (parameter 1) = 3
4.6.3.4. Nomenclature
A - Wall collector area
Ag - Total cross sectional area of the gap
Av - Total outlet area of the vent
Cpa - Specific heat of air
Cp - Specific heat of wall
C1 - Vent pressure loss coefficient
C2 - Gap pressure loss coefficient
dU
dt - Rate of change of wall internal energy
g - Acceleration of gravity
Gr - Grashof number
h - Wall height
hv - Height between inlet and outlet vents
hc - Gap air heat transfer coefficient
hr - Radiation heat transfer coefficient between wall and glazing
IbT - Incident beam radiation
4–384
TRNSYS 18 – Mathematical Reference
4–385
TRNSYS 18 – Mathematical Reference
The thermosiphon mass flow of air in this model has been determined by applying Bernoulli's equation to
the entire air flow system. For simplicity, it is assumed that the density and temperature of the air in the
gap varies linearly with height. Solution of Bernoulli's equation for the mean air velocity in the gap yields:
2𝑔ℎ 𝑇𝑚 − 𝑇𝑠
𝑣̅ = 2
√ 𝐴𝑔 |𝑇𝑚 | Eq. 4.6.3-1
𝐶1 ( ) + 𝐶2
𝐴𝑣
where Ts is either Ta or TR, depending on whether air is exchanged with the environment or the room. The
term (C1(Ag/Av)2 + C2) represents the pressure losses of the system. The ratio (Ag/Av)2 accounts for the
difference between the air velocity in the vents and the air velocity in the gap.
-1 0 1
HT T R
1 m 1
hc hc dX
k
T 1 Tg 1 T1 Ti T 1 T
amb Ut hr N U R
b
MODE 1 AND 3:
If= 1; m = input
𝑄𝑉 = 2𝑚𝐶𝑝𝑎 (𝑇𝑚 − 𝑇𝑅 ) Eq. 4.6.3-3
𝑄𝑅 = 𝑄𝑉 + 𝑄𝑏 Eq. 4.6.3-4
𝑄 = 𝑄𝑡 Eq. 4.6.3-5
If = -1; m = input
𝑄𝑉 = 2𝑚𝐶𝑝𝑎 (𝑇𝑚 − 𝑇𝑎 ) Eq. 4.6.3-6
𝑄 = 𝑄𝑉 + 𝑄𝑡 Eq. 4.6.3-7
𝑄𝑅 = 𝑄𝑏 Eq. 4.6.3-8
otherwise QV = 0
𝑚=0 Eq. 4.6.3-9
𝑄 = 𝑄𝑡 Eq. 4.6.3-10
𝑄𝑅 = 𝑄𝑏 Eq. 4.6.3-11
4–386
TRNSYS 18 – Mathematical Reference
MODE 2 AND 4:
If = 1 and Tm > TR
𝑚 = 𝑣̅ 𝜌̅𝐴𝑔 Eq. 4.6.3-12
𝑄𝑅 = 𝑄𝑉 + 𝑄𝑏 Eq. 4.6.3-15
If = -1 and Tm > Ta
𝑚 = 𝑣̅ 𝜌̅𝐴𝑔 Eq. 4.6.3-16
𝑄𝑅 = 𝑄𝑏 Eq. 4.6.3-19
otherwise Qv = 0
𝑚=0 Eq. 4.6.3-20
𝑄𝑅 = 𝑄𝑏 Eq. 4.6.3-22
The value of hc, the heat transfer coefficient between the gap air and the wall and glazing, depends on
whether or not there is air flow through the gap.
If m = 0 [Reference 2]
𝑘𝑎
ℎ𝑐 = (0.01711(𝐺𝑟 − 𝑃𝑟)0.29 ) Eq. 4.6.3-23
𝐿
If m ≠ 0 and Re > 2000 [Reference 3]
𝑘𝑎
ℎ𝑐 = (0.0158𝑅𝑒 0.8 ) Eq. 4.6.3-24
𝐿
If m ≠ 0 and Re ≤ 2000 [Reference 5]
𝑘𝑎 0.0606(𝑥 ∗ )−1.2
ℎ𝑐 = (4.9 + ) Eq. 4.6.3-25
𝐿 1 + 0.0856(𝑥 ∗ )−0.7
where
ℎ
𝑥∗ = Eq. 4.6.3-26
𝑅𝑒𝑃𝑟𝐷ℎ
2𝐴𝑔
𝐷ℎ = Eq. 4.6.3-27
1+𝑤
The heat transfer coefficient between the first glazing and the environment, Ut, can be set as in input or can
be determined from a correlation developed by Klein [4] and described in Section Error! Reference source
ot found., page Error! Bookmark not defined.. If the Klein top loss correlation is to be used, the input
value of Ut must be negative. If Ut is zero or positive, the correlation is bypassed. This allows a user to
simulate the application of a night insulating cover and use the loss correlation during the day.
4–387
TRNSYS 18 – Mathematical Reference
4.6.3.6. References
1. Trombe, F., Robert, J.F., Cabanot, M., and Sesolis, B., "Concrete Walls to Collect and Hold Heat",
Solar Age, Vol. 2, No. 8, Aug. 1977, pp. 13-19.
2. Randall, K.R., Mitchell, J.W., and El-Wakil, M.M. "Natural Convection Heat Transfer Characteristics
of Flat-Plate Enclosures," Journal of Heat Transfer, vol. 101, Feb.
1979, pp. 120-125.
3. Kays, W.M., Convective Heat and Mass Transfer, McGraw-Hill Book Co. 1966, p. 180. (Curve fit of
Kays' data by Duffie and Beckman).
4. Klein, S.A., "Calculation of Collector Loss Coefficients," Solar Energy Journal, Vol. 17,
1975, pp. 79-80.
5. Mercer, W.E., Pearce, W.M., Hitchcock, J.E., "Laminar Forced Convection in the
Entrance Region between Parallel Flat Plates." J. Heat Transfer 89, 251-257 (1967).
6. Utzinger, D.M., M.S. Thesis, Mechanical Engineering, University of Wisconsin-Madison (1979).
"Analysis of Building Components Related to Direct Solar Heating of Buildings.”
7. Utzinger, D.M., S.A. Klein, and J.W. Mitchell, Solar Energy, Vol 25, pg 511 (1980), "The Effect of Air
Flow Rate in Collector-Storage Walls.”
4–388
TRNSYS 18 – Mathematical Reference
The nominal heat loss coefficient for the specified floor. This
value can be found in the Type 56 building file and is shown in
the wall construction window. This value nominally includes
2 U-Value for each floor [kJ/h.m2.K] convective resistances on the inside and outside surfaces.
These resistances will be removed within this model to get the
heat loss coefficient of just the floor materials - you do not need
to remove them yourself.
Logical unit for soil The logical unit which will be assigned to the external data file
3 [-]
noding file which contains the map of the building to the soil nodes.
4–389
TRNSYS 18 – Mathematical Reference
Thermal conductivity of
5 [kJ/hr.m.K] The thermal conductivity of the soil located beneath the building.
soil
6 Density of soil [kg/m3] The density of the soil located beneath the building.
7 Specific heat of soil [kJ/kg.K] The specific heat of the soil located beneath the building.
Far field boundary The boundary condition at the near-field/far field boundary for
11 [-]
condition: X-axis heat transfer along the x-direction: 0=Adiabatic,1=Conductive.
Far field boundary The boundary condition at the near-field/far field boundary for
12 [-]
condition: Y-axis heat transfer along the y-direction: 0=Adiabatic,1=Conductive.
The logical unit which will be assigned to the external data file
that will contain the soil temperature profile at the end of the
Logical unit number for
14 [-] simulation. This temperature profile may be viewed with the
soil temperature file
external viewing program which was distributed with this
package.
Initial surface The initial temperature of the zone in Type 56 in which this
15 [C]
temperature surface is located.
INPUTS
The heat transfer into the building through the outside surface of
1 Heat Transfer to Floor [kJ/hr] the specified floor. This input is typically connected to the
QCOMO output from Type 56 for the specified floor.
OUTPUTS
Boundary temperature The boundary temperature for the specified floor (the
1 [C] temperature at the interface between the bottom of the floor and
for floor
the soil). This temperature should be conmnected to the input
4–390
TRNSYS 18 – Mathematical Reference
into the building model for the temperature at the outside surface
of the boundary wall.
Soil to building heat The rate at which energy is transferred into the building from the
2 [kJ/hr]
transfer for floor soil through the outer surface of the specified floor.
The rate at which energy is stored in the soil during the timestep
3 Energy stored in soil [kJ/hr] (net positive changes in soil temperature are reflected as a
positive value for stored energy).
Deep boundary heat The rate at which energy is lost from the near-field soil volume
5 [kJ/hr]
transfer through the deep earth boundary.
Side boundary heat The rate at which energy is lost to the far-field soil through the
6 [kJ/hr]
transfer vertical edges of the near field soil volume.
4.6.4.4. Nomenclature
Cp,soil [kJ/kg] Specific heat of soil
i [-] Nodal indicator along the length direction
4–391
TRNSYS 18 – Mathematical Reference
Q in [kJ/hr]
The rate at which energy enters a soil node
QType56, n [kJ/hr] The energy transferred through the floor of zone n into the ground
(calculated by Type56)
Rcond [hr.m2.K/kJ] The conductive heat transfer resistance
𝑇̅boundary,n [ºC] The average surface temperature of the interface between zone n and the
soil
Tcond [ºC] The adjacent temperature for conductive heat transfer
Tdeep earth [ºC] The temperature of the undisturbed soil at the deep earth boundary
Tfarfield(k) [ºC] The temperature of the undisturbed soil at the depth of node k
Ti,j,k [ºC] The temperature of a given soil node
𝑇̅I,j,k [ºC] The average temperature of a given soil node over the timestep
Tsurface,i,j [ºC] The surface temperature of node (i,j)
𝑇̅surface,i,j [ºC] The average surface temperature of soil node (i,j,1) over the timestep
Tsurface,Kasuda [ºC] The undisturbed soil surface temperature according to the Kasuda
correlation
x [m] The distance along the length direction
y [m] The distance along the width direction
Z [m] The depth dimension
ρsoil [kg/m3] Density of soil
Δxi [m] The x direction dimension of soil node i,j,k
Δyj [m] The y direction dimension of soil node i,j,k
Δzk [m] The z direction dimension of soil node i,j,k
ksoil [kJ/hr.m] Thermal conductivity of soil
mi,j,k [kg] Mass of soil node i,j,k
4–392
TRNSYS 18 – Mathematical Reference
temperature in the zone. Normally the boundary temperature specified in Type 56 is the temperature of a
zone connected to the back surface of the wall through a pure resistance (such as an air temperature
coupled to the back side of the wall through a convective resistance). However by specifying the convective
resistance of the back side of the boundary wall to a very small, but non-zero value, the Type56 zone model
assumes that the boundary temperature specified is the back-side surface temperature of the boundary
wall – which is exactly what one needs for the interface between the soil storage model and the Type56
zone model to work correctly.
To use Type49, one defines one or more floor surfaces within Type 56 as boundary walls with a “user
defined” temperature as an input (as opposed to as a schedule or a constant value), and with a very small
positive (but non-zero) back-side heat transfer coefficient. The boundary wall should contain all the layers
comprising the wall (carpeting, pad, concrete etc.). Users may have more than one floor type per thermal
zone in Type 56 – even if the floor is comprised of the same materials. Core and perimeter sections of the
floor can therefore be modeled.
This model reads a 2-dimensional “map” of the soil surface that indicates to the model whether the surface
of each soil section is exposed soil (=0) or covered by a specific floor surface (=1,2,3..n). This map is
typically created with a Sketch-Up™ Plug-In specifically written for this model. This plug-in will write the
required map files based on simple surface drawings in Sketch-Up. Users are strongly encouraged to read
the tutorial on using this model with the plug-in that is located in
the %TRNSYS18%\Tools\SoilNoding\ directory. The map file may also be written by hand and should be
saved as a space delimited ASCII text file in order for the file to be read correctly. The format of this file is
shown below:
Line 1: NXtotal NYtotal NZtotal NZfooter
Line 2: Δx1 Δx2 Δx3 . . . . . . ΔxNXtotal
Line 3: Δy1 Δy2 Δy3 . . . . . . ΔyNYtotal
Line 4: Δz1 Δz2 Δz3 . . . . . . ΔxNZtotal
Line 5: N(1,NYtotal) N(2,NYtotal) N(3,NYtotal) . . . N(NXtotal,NYtotal)
Line 6: N(1,NYtotal-1) N(2,NYtotal-1) N(3,NYtotal-1) . . . N(NXtotal,NYtotal-1)
.
.
.
.
Line 4+NYtotal: N(1,1) N(2,1) N(3,1) . . . N(NXtotal,1)
Figure 4.6.4–1: Soil Noding File Format
An example file for a 3-floor model is provided in %TRNSYS18%\Examples\Slab on Grade\.
This model discretizes the soil beneath the surface into cubic sections and subsequently solves for the
temperature of each of the sections at each timestep of the simulation using an implicit finite difference
approach. The higher the level of discretization (and hence the higher the number of nodes), the more
accurate the simulation but the longer the simulation will take to finish.
4–393
TRNSYS 18 – Mathematical Reference
An effective technique used to accurately model the heat transfer at reasonable simulation runtimes is to
cluster small nodes near all surface edges and corners and to have the sizes of the nodes “grow” as they
move away from the edges. The higher the growth rate gets, the less accurate the simulation but the
quicker the simulation runtimes. The algorithm that is currently used in the Sketch-Up™ Plug-In is of the
form:
Sizenew = Sizeprevious * Growth Factor Eq. 4.6.4-1
The Growth Factor variable varies from about 1.1 to 2 with 1.3 being a good default value. The size of the
smallest node is usually in the range of 0.01 to 0.1 meters with 0.02 meters being a good default value. As
an example of the differences that can be found in terms of number of nodes let’s study two identical slab
floors that are 10 meters long by 10 meters wide. In the first case we’ll use a smallest node size of 0.1
meters and a growth factor of 2. The resulting sizes of the 12 node starting from one edge of the floor and
working towards the other edge of the floor along one side are then found to be:
0.1 0.2 0.4 0.8 1.6 1.9 1.9 1.6 0.8 0.4 0.2 0.1
This results in 144 horizontal nodes (12 nodes x 12 nodes) for each vertical node for the soil just under the
slab (and does not include the soil exposed to the ambient air). If instead we decrease the smallest node
size to 0.02 meters and reduce the growth factor down to 1.2, the resulting noding pattern requires 44
nodes in each direction or 1936 horizontal nodes for each vertical node for the soil just under the slab – an
increase of 1344%! For this reason, the user should select the noding pattern parameters with care and
try to balance simulation speed with heat transfer accuracy.
The floor is assumed to be sitting on top of the soil and it is assumed that the edge of the floor surface is
adiabatic and that, consequently, no heat transfer occurs between the edges of the slab and the
surroundings. The user has the option of specifying vertical insulation which extends downwards from the
edges of the slab into the soil. This insulation can be used to model insulated footers although the thermal
properties of the footer material itself is not accounted for in this model.
The soil volume surrounding the floors in the x, y and z directions, as shown in Figure 4.6.4–3 below, is
referred to as the near-field. Nodes contained in the near-field can vary in size in all three dimensions,
usually becoming larger as they get farther from the surface. The near field is in turn surrounded by the far
field, which is assumed to be an infinite energy sink/source (energy transfer with the far-field does not result
in a temperature change of the far-field). The far-field boundary in the depth direction is often referred to as
the deep-earth boundary. Users have the option of treating the near-field/far-field boundary as an adiabatic
boundary or as a conductive boundary. The temperature of the far-field soil is set using the Kasuda
correlation (1) which estimates the temperature of the soil at a given depth given the time of year, the soil
properties, the average annual soil surface temperature, the amplitude of the annual soil surface
temperature, and the day of the year at which the minimum annual surface temperature occurs. The
temperature of these far-field nodes will change, but only as a function of depth and time of year.
4–394
TRNSYS 18 – Mathematical Reference
conduction heat transfer from the imposed Kasuda calculated surface temperature or from heat transfer
from the floor surface.
Ignoring the temperature dependence of the thermal properties and moisture impacts, the basic conduction
energy balance on a node contained in the slab or the soil is shown in:
𝑑𝑇𝑖,𝑗,𝑘
𝑚𝑖,𝑗,𝑘 𝐶𝑝𝑠𝑜𝑖𝑙 = ∑ 𝑄̇𝑖𝑛 Eq. 4.6.4-2
𝑑𝑡
In this model, the nodes are assumed to be cubic in shape so we have six unique heat transfers to analyze:
Where left is in the direction of decreasing x, right is in the direction of increasing x, front is in the direction
of increasing y, back is in the direction of decreasing y, top is in the direction of decreasing z, and bottom
is in the direction of increasing z.
4–395
TRNSYS 18 – Mathematical Reference
For soil nodes that border the far-field boundary on the left side (i=1) and have an adiabatic near-field/far-
field boundary, the conduction term is as follows:
𝑄̇𝑙𝑒𝑓𝑡 = 0 Eq. 4.6.4-7
Eq. 4.6.4-8 is further modified if the soil node in question has vertical perimeter insulation on its left surface:
∆𝑥𝑖 ∆𝑥𝑖−1
𝑅𝑐𝑜𝑛𝑑.𝑙𝑒𝑓𝑡 = 2 + 𝑅𝑓𝑜𝑜𝑡𝑒𝑟 + 2 Eq. 4.6.4-10
𝑘𝑠𝑜𝑖𝑙 ∆𝑦𝑗 ∆𝑧𝑘 𝑘𝑠𝑜𝑖𝑙 ∆𝑦𝑗 ∆𝑧𝑘
For soil nodes that border the far-field boundary on the right side (i=NXtotal) and have an adiabatic near-
field/far-field boundary, the conduction term is as follows:
𝑄̇𝑟𝑖𝑔ℎ𝑡 = 0 Eq. 4.6.4-14
4–396
TRNSYS 18 – Mathematical Reference
Error! Reference source not found. is further modified if the soil node in question has vertical perimeter
nsulation on its right surface face:
∆𝑥𝑖 ∆𝑥𝑖+1
𝑅𝑐𝑜𝑛𝑑.𝑟𝑖𝑔ℎ𝑡 = 2 + 𝑅𝑐𝑜𝑛𝑑,𝑟𝑖𝑔ℎ𝑡 + 2 Eq. 4.6.4-17
𝑘𝑠𝑜𝑖𝑙 ∆𝑦𝑗 ∆𝑧𝑘 𝑘𝑠𝑜𝑖𝑙 ∆𝑦𝑗 ∆𝑧𝑘
For soil nodes that border the far-field boundary on the back side (j=1) and have an adiabatic near-field/far-
field boundary, the conduction term is as follows:
𝑄̇𝑏𝑎𝑐𝑘 = 0 Eq. 4.6.4-21
Error! Reference source not found. is further modified if the soil node in question has vertical perimeter
nsulation on its back surface face:
∆𝑦𝑗 ∆𝑦𝑗−1
𝑅𝑐𝑜𝑛𝑑.𝑏𝑎𝑐𝑘 = 2 + 𝑅𝑓𝑜𝑜𝑡𝑒𝑟 + 2 Eq. 4.6.4-24
𝑘𝑠𝑜𝑖𝑙 ∆𝑥𝑖 ∆𝑧𝑘 𝑘𝑠𝑜𝑖𝑙 ∆𝑥𝑖 ∆𝑧𝑘
4–397
TRNSYS 18 – Mathematical Reference
For soil nodes that border the far-field boundary on the front side (j=NYtotal) and have an adiabatic near-
field/far-field boundary, the conduction term is as follows:
𝑄̇𝑓𝑟𝑜𝑛𝑡 = 0 Eq. 4.6.4-28
Error! Reference source not found. is further modified if the soil node in question has vertical perimeter
nsulation on its front surface face:
∆𝑦𝑗 ∆𝑦𝑗+1
𝑅𝑐𝑜𝑛𝑑.𝑓𝑟𝑜𝑛𝑡 = 2 + 𝑅𝑓𝑜𝑜𝑡𝑒𝑟 + 2 Eq. 4.6.4-31
𝑘𝑠𝑜𝑖𝑙 ∆𝑥𝑖 ∆𝑧𝑘 𝑘𝑠𝑜𝑖𝑙 ∆𝑥𝑖 ∆𝑧𝑘
For soil nodes that border the far-field boundary on the bottom side (k=NZtotal) and have an adiabatic near-
field/far-field boundary, the conduction term is as follows:
𝑄̇𝑏𝑜𝑡𝑡𝑜𝑚 = 0 Eq. 4.6.4-35
4–398
TRNSYS 18 – Mathematical Reference
For soil nodes that border one of the floor surfaces on the top side (k= 1) the conduction term is as follows
(where the zone (n) above node (i,j,k) is read from the soil map):
𝑄̇𝑡𝑜𝑝 = 𝑄̇𝑇𝑦𝑝𝑒56,𝑛 Eq. 4.6.4-41
The average temperature of the soil surface under each floor must be calculated by the model and passed
back to Type 56. The average surface temperature of node(i,j,1) over the timestep for the nodes under the
floors can then be calculated as:
𝑇̅𝑠𝑢𝑟𝑓𝑎𝑐𝑒,𝑖,𝑗 = 𝑇̅𝑖,𝑗,𝑘 + 𝑄̇𝑡𝑜𝑝 𝑅𝑐𝑜𝑛𝑑,𝑡𝑜𝑝 Eq. 4.6.4-44
∆𝑧𝑘
𝑇̅𝑠𝑢𝑟𝑓𝑎𝑐𝑒,𝑖,𝑗 = 𝑇̅𝑖,𝑗,𝑘 + 2 Eq. 4.6.4-45
𝑘𝑠𝑜𝑖𝑙 ∆𝑥𝑖 ∆𝑦𝑗
The average surface temperature over the timestep for floor n can then be calculated as:
∑ 𝑇̅𝑠𝑢𝑟𝑓𝑎𝑐𝑒,𝑖,𝑗 ∆𝑥𝑖 ∆𝑦𝑗
𝑇̅𝑠𝑢𝑟𝑓𝑎𝑐𝑒,𝑛 = Eq. 4.6.4-46
∑ ∆𝑥𝑖 ∆𝑦𝑗
SOLUTION TECHNIQUE
The solution of this large problem breaks down into the solution of a large set of coupled differential
equations. While there are several other available methods to solve coupled differential equations, we
decided to solve the problem with an approximate analytical solution. The analytical solution has several
inherent advantages over numerical solutions. First, the subroutine solves its own mathematical problem
and does not have to rely on nonstandard numerical recipes that must be attached to the subroutine. In
this way, the subroutine can be imported into any FORTRAN compiler without problems. Secondly, some
of the other solution methods (mainly the numerical solutions) are extremely dependent on the simulation
timestep and may not converge under certain circumstances commonly encountered in multi-zone building
simulations. The analytical solution is timestep independent but does require an iterative solution inside
the subroutine to solve the coupled differential equations.
To solve the differential equations analytically, the equations are placed into the form:
𝑑𝑇
= 𝑎𝑇 + 𝑏 Eq. 4.6.4-47
𝑑𝑡
Where T is the dependent variable, t is time, a is a constant and b may be a function of time or the dependent
variable. If b is a constant, than the solution of this differential equation can be readily solved. If b is not
constant, then a reasonable approximation to the analytical solution can be found by assuming that b is
constant over the timestep and equal to its average value over the timestep.
At any time (for a not equal to zero):
𝑏̅ 𝑏̅
𝑇𝑓𝑖𝑛𝑎𝑙 = (𝑇𝑖𝑛𝑖𝑡𝑖𝑎𝑙 + ) 𝑒 𝛼∆𝑡 − Eq. 4.6.4-48
𝑎 𝑎
where:
𝑏̅ = 𝑏(𝑇̅) Eq. 4.6.4-49
and:
4–399
TRNSYS 18 – Mathematical Reference
𝑏̅
𝑇𝑖𝑛𝑖𝑡𝑖𝑎𝑙 + ̅
𝑇̅ = 𝑎 (𝑒 𝛼∆𝑡 − 1) − 𝑏 Eq. 4.6.4-50
𝛼∆𝑡 𝑎
With this assumption, the problem becomes straightforward to solve. Simply write the differential equations
in the correct form, determine a and 𝑏̅ and solve for Tfinal and 𝑇̅ then recalculate and iterate until the
temperatures converge.
While the assumption that b is constant over the timestep (and equal to its average value) is not technically
correct (b for a soil node is a function of the temperature of adjacent soil nodes for example), it is a
reasonable approximation for the small timesteps we are using in the TRNSYS simulation (maximum
timestep=1 hour).
4.6.4.6. References
[1] Kasuda, T., and Archenbach, P.R. "Earth Temperature and Thermal Diffusivity at Selected Stations in
the United States", ASHRAE Transactions, Vol. 71, Part 1, 1965
4–400
TRNSYS 18 – Mathematical Reference
4–401
TRNSYS 18 – Mathematical Reference
1 The mode which indicates which property will be used to set the
Humidity Mode [-] inlet air conditions; 1 = the humidity ratio input will be used, 2 = the
relative humidity input will be used
3 Number of building The number of conditioned stories above ground. This value is
[-]
stories used to look up the ASHRAE wind coefficient and stack coefficient.
Shielding class [-] 3: moderate local shielding; some obstructions within two house
heights, thick hedge, solid fence or one neighboring house.
4: heavy local shielding;
5: very heavy shielding; large obstructions surrounding perimeter,
within two house heights, typical downtown shielding.
INPUTS
1 Indoor air temperature [C] The temperature of air inside the zone.
2 Indoor humidity ratio - The humidity ratio of air in the conditioned zone. NOTE: If
[kgH20/kgAir]
not used parameter 1 is set to 2 this input is ignored.
4 The pressure of air in the conditioned zone. Note that this air
pressure is used in calculating moist air properties. The Sherman
Indoor air pressure [atm]
Grimsrud infiltration model does not directly account for flow due to
indoor / outdoor pressure differences.
5 Outdoor air
[C] The temperature of ambient air
temperature
4–402
TRNSYS 18 – Mathematical Reference
6 The humidity ratio of air outside the conditioned zone. This input is
Outdoor humidity ratio [kgH20/kgAir]
ignored in Humidity Mode 2 (PAR 1 = 2).
7 Outdoor relative The relative humidity of air outside the conditioned zone. This input
[%]
humidity is ignored in Humidity Mode 1 (PAR 1 = 1)
8 The pressure of air outside the conditioned zone. Note that this air
pressure is used in calculating moist air properties. The Sherman
Outdoor air pressure [atm]
Grimsrud infiltration model does not directly account for flow due to
indoor / outdoor pressure differences.
OUTPUTS
1 The number of times per hour that the entire air volume of the
Infiltration air changes [ach/h]
conditioned space is exchanged with outdoor air.
2 Infiltration air
[m3/s] The volumetric flow rate of air infiltrating the conditioned space.
volumetric flow rate
4 Energy gain [kJ/hr] The amount of sensible energy gained or lost due to infiltration.
TEXT FIELDS
4–403
TRNSYS 18 – Mathematical Reference
4.6.6.4. Nomenclature
𝑄̇𝑓 Air flow rate (m 3/s)
𝐶𝑤 Wind coefficient [(L/s)2/[cm4(m/s)2]]
𝑉 Wind speed [m/s]
𝐸𝐿𝐴𝑡𝑜𝑡𝑎𝑙 Equivalent leakage area [cm 2]
𝐶𝑠 Stack coefficient [(L/s)2/[cm4K]]
∆𝑇 Difference between indoor and ambient temperature [C]
2 Light local shielding; few obstructions, few trees, or 0.000 246 0.000 325 0.000 382
small shed
3 Moderate local shielding; some obstructions within 0.000 174 0.000 231 0.000 271
two house heights, thick hedge, solid fence, or one
neighboring house.
4–404
TRNSYS 18 – Mathematical Reference
4 Heavy shielding; obstructions around most of the 0.000 104 0.000 137 0.000 161
perimeter, buildings or trees within 10 m in most
directions; typical suburban shielding
5 Very heavy shielding; large obstructions surrounding 0.000 032 0.000 042 0.000 049
perimeter within two house heights; typical
downtown shielding.
4.6.6.6. References
1. ASHRAE, Handbook of Fundamentals, (1997).
4–405
TRNSYS 18 – Mathematical Reference
1 Building loss coefficient [kJ/hr.m2.K] The coefficient for energy loss from the zone - per unit area.
5 Building surface area [m2] The total outside surface area from which thermal losses occur.
7 Humidity ratio multiplier [-] A multiplier on the zone air’s moisture capacity to account for the
zone’s contents to absorb and desorb more moisture than can the
air itself.
8 Initial temperature [C] The initial temperature of the building and its air volume.
9 Initial humidity ratio [kgH20/kgAir] The initial absolute humidity ratio of the building and its air volume.
10 Latent heat of [kJ/kg] The amount of energy required to vaporize one kilogram of water.
vaporization
INPUTS
1 Temperature of
[C] The temperature at which ventilation air is provided to the zone.
ventilation air
2 Humidity ratio of
[kgH20/kgAir] The humidity ratio at which ventilation air is provided to the zone.
ventilation air
5 Ambient humidity ratio [kgH20/kgAir] The absolute humidity ratio of ambient air.
4–406
TRNSYS 18 – Mathematical Reference
8 Rate of energy from The rate at which sensible energy is added to the space from
[kJ/hr]
equipment equipment.
9 Rate of sensible
The rate at which sensible energy is added to the space from its
energy gain from [kJ/hr]
occupants.
people
10 Rate of humidity gain [kg/hr] The rate at which moisture is added to the space from latent gains.
OUTPUTS
1 Zone temperature [C] The temperature of the zone and its air volume.
2 Zone humidity ratio [kgH20/kgAir] The absolute humidity ratio of the zone and its air volume.
5 Sensible energy gain The sensible energy gain to (+ve) or loss from (-ve) the space due
[kJ/hr]
from infiltration to infiltration.
6 Latent energy gain The latent energy gain to (+ve) or loss from (-ve) the space due to
[kJ/hr]
from infiltration infiltration.
7 Sensible energy gain The sensible energy gain to (+ve) or loss from (-ve) the space due
[kJ/hr]
from ventilation to ventilation.
8 Latent energy gain The latent energy gain to (+ve) or loss from (-ve) the space due to
[kJ/hr]
from ventilation ventilation.
4–407
TRNSYS 18 – Mathematical Reference
4.6.7.4. Nomenclature
U building loss coefficient (kJ/hr-m2-C)
Cap building capacitance (kJ/C)
Cpair specific heat of building air (kJ/kg-C)
air density of building air (kg/m3)
Area building surface area (m 2)
Vol building volume (m 3)
mult humidity ratio multiplier ( - )
Tinitial initial temperature (C)
initial initial humidity ratio ( - )
hfg latent heat of vaporization (kJ/kg)
4–408
TRNSYS 18 – Mathematical Reference
4–409
TRNSYS 18 – Mathematical Reference
1 Number of Zones [-] The number of zones for which the component will calculate the
infiltration rate.
2 Design Infiltration Rate [ach] The design infiltration rate for the zone. This is the base value that
will be modified based on the windspeed.
5 Surface Area [m2] The surface area of exterior walls in the zone.
6 Net Flow [l/s] The net airflow into the zone from the HVAC system (supply airflow
– return airflow).
INPUTS
3 HVAC System On [0/1] A signal for whether the HVAC system is on (=1) or off (=0) for the
Function zone at that timestep.
OUTPUTS
4–410
TRNSYS 18 – Mathematical Reference
The coefficients A, B and D depend on the physical charactieristics of the zone and whether the HVAC
system is on or off.
If the HVAC system is off, then
𝐴=0 Eq. 4.6.8-2
𝑆𝑢𝑟𝑓𝑎𝑐𝑒 𝐴𝑟𝑒𝑎
𝐵 = 0.002𝐻𝑒𝑖𝑔ℎ𝑡 + 0.043 Eq. 4.6.8-3
𝑉𝑜𝑙𝑢𝑚𝑒
𝑆𝑢𝑟𝑓𝑎𝑐𝑒 𝐴𝑟𝑒𝑎
𝐷 = −0.00002𝐻𝑒𝑖𝑔ℎ𝑡 + 0.211 Eq. 4.6.8-4
𝑉𝑜𝑙𝑢𝑚𝑒
If the HVAC system is on, then
𝑆𝑢𝑟𝑓𝑎𝑐𝑒 𝐴𝑟𝑒𝑎 𝑁𝑒𝑡 𝐹𝑙𝑜𝑤
𝐴 = 0.0001𝐻𝑒𝑖𝑔ℎ𝑡 + 0.933 − 47 Eq. 4.6.8-5
𝑉𝑜𝑙𝑢𝑚𝑒 1000 ∙ 𝑆𝑢𝑟𝑓𝑎𝑐𝑒 𝐴𝑟𝑒𝑎
𝑆𝑢𝑟𝑓𝑎𝑐𝑒 𝐴𝑟𝑒𝑎 𝑁𝑒𝑡 𝐹𝑙𝑜𝑤
𝐵 = 0.0002𝐻𝑒𝑖𝑔ℎ𝑡 + 0.0245 −5 Eq. 4.6.8-6
𝑉𝑜𝑙𝑢𝑚𝑒 1000 ∙ 𝑆𝑢𝑟𝑓𝑎𝑐𝑒 𝐴𝑟𝑒𝑎
𝑆𝑢𝑟𝑓𝑎𝑐𝑒 𝐴𝑟𝑒𝑎 𝑁𝑒𝑡 𝐹𝑙𝑜𝑤
𝐷 = 0.00008𝐻𝑒𝑖𝑔ℎ𝑡 + 0.1312 − 28 Eq. 4.6.8-7
𝑉𝑜𝑙𝑢𝑚𝑒 1000 ∙ 𝑆𝑢𝑟𝑓𝑎𝑐𝑒 𝐴𝑟𝑒𝑎
4.6.8.5. References
1. Ng, Lisa, Andrew Persily and Steven Emmerich “Improved Infiltration Modeling in Commercial
Building Energy Models”; National Institute of Standards and Technology.
4–411
TRNSYS 18 – Mathematical Reference
2 [m3] Volume of the airnode for calculating the air change rate from the
Zone volume
volume flow
4 Stack equation [-] Stack effect efficiency used in the Stack Effect Model
efficiency
INPUTS
Ventilation schedule [-] This schedule is additionally used for differentiation between day
and night. Dayflushing controls are used when, Input 3 > 0,
Nightflushing controls are used when Input 3 = 0.
4 controled air change Desired airflow for purposes other than cooling, usually the
[ach]
rate hygenic air change rate
6 max. air change rate [ach] Limit the maximum air change rate
10 on/off ventilation (day) [-] Switch to turn on/off flushing during operation time
4–412
TRNSYS 18 – Mathematical Reference
11 on/off ventilation (night) [-] Switch to turn on/off flushing during non-operation time
12 upper room air Room air temperature when flushing should be activated (see
temperature treshhold [deltaC] hysterses control) during operation time
(day)
13 lower room air Room air temperature when flushing should be deactivated (see
temperature threshold [deltaC] hysterses control) during operation time
(day)
16 upper room air Room air temperature when flushing should be activated (see
temperature treshhold [deltaC] hysterses control) during non-operation time
(night)
17 lower room air Room air temperature when flushing during operation time should
temperature threshold [deltaC] be deactivated (see hysterses control) during non-operation time
(night)
OUTPUTS
4–413
TRNSYS 18 – Mathematical Reference
4.6.9.4. Nomenclature
𝐴𝑏𝑜𝑡 [m²] Lower opening area
4–414
TRNSYS 18 – Mathematical Reference
1. Only Infiltration: if the schedule given as Input 3 is 0, and flushing control signal is 0, the air change
is only infiltration given as input 5.
2. Controlled ventilation: the controlled ventilation is active if the schedule given as Input 3 is greater
than zero. The air change is calculated by multiplying the schedule value with Input 4. If the
maximum possible volume flow is sufficient, the calculated air change rate is applied, otherwise the
maximum possible volume flow is used.
3. Flushing: Flushing is used to benefit from free cooling potential of outdoor air. If the general flushing
switch is activated (Input 10,11) the inputs 11-14 for operation time and the inputs 15-19 for non-
operation time, determine, if flushing is applied. Two hysteresis controller are used to generate the
flushing signal depending on the Room air temperature (above setpoint?) and the temperature
difference between indoor and outdoor air temperature (is there free cooling potential?). The
maximum possible air change rate is calculated according to Ruscheweyh or the Stack effect
model. There is an additional value (input 6) to limit the air change during the flushing event.
1
𝑇𝑎𝑖𝑟,𝑟𝑜𝑜𝑚 > 𝑇𝑆𝑒𝑡
0.8
and
0.6
0.4
0.2
no
Flush?
no
ACR=ACRmin ACRcon>ACRmin
yes
yes
no
ACRcon<ACRmax ACR=ACRmax
yes
ACR=ACRcon
SIMPLE MODEL
A simple model without considering opening areas. This model is useful in early stages, when the opening
areas and their positions are unknown.
4–415
TRNSYS 18 – Mathematical Reference
4.6.9.6. References
1. Recknagel, H., Sprenger, E., Schramek, E., "Taschenbuch für Heizung und Klimatechnik"
Oldenbourg Industrieverlag, München, 75.Edition, 2011
4–416
TRNSYS 18 – Mathematical Reference
4.7. Output
4–417
TRNSYS 18 – Mathematical Reference
1 Printing interval hr The time interval at which printing is to occur. If the time interval is
less than zero, then the print interval will be measured in the
absolute value of this parameter expressed in months. If parameter
6 is set to 2, this parameter gives the time of day when printing is to
occur. Examples: 1: print every hour; -1: print every month; STEP:
print every simulation time step
2 Start time hr The time of the year in hours at which printing is to start. The
default value (START) is a TRNSYS parameter equal to the
simulation start time
3 Stop time hr The time of the year in hours at which printing is to stop. The
default value (STOP) is a TRNSYS parameter equal to the
simulation stop time
4 Logical unit - This parameter sets the Fortran Logical Unit (File reference
number) of the output file. It is used internally by TRNSYS to refer
to the file. This parameter will automatically be assigned to a
unique value by the TRNSYS Studio
5 Units printing mode - This parameter can have the following values: 0: do not print units;
1: user-supplied units are printed to the output file (you have to
provide those units in the "special cards" tab). Also note that when
generating an output file that will be used as an EES lookup table
EES requires that you enter the units in square braquets. Please
do so when you specify the units of your inputs: e.g., [h] [kJ/h]; 2:
TRNSYS-supplied units are printed to the output file
6 Relative or absolute - This parameter controls whether the print intervals are relative or
start time absolute. 0: print at time intervals relative to the simulation start
time; 1: print at absolute time intervals; 2: print at a certain time of
the day specified by parameter 1. For example, if the simulation
start time is 0.5, the simulation time step is 0.25 and the printing
time step is 1: If this parameter is set to 0, printing will occur at 0.5,
1.5, 2.5, etc. If this parameter is set to 1, printing will occur at 1, 2,
3, etc. If this parameter is set to 2, printing will occur at the time
specified by parameter 1.
4–418
TRNSYS 18 – Mathematical Reference
8 Print header - This parameters determines whether or not a header with input file
information will be printed to the output file or not -1: Do not print
header; 1: Print header
9 Delimiter - This parameter controls the delimiter used in the output file: 0: use
tabs to delimit columns; 1: use spaces to delimit columns; 2: use
commas to delimit columns
10 Print labels - This parameter decides whether or not labels (variable descriptors)
should be printed as column headers: -1: Do not print descriptors;
1: Print descriptors
INPUTS
4.7.1.4. Nomenclature
Lunit - the logical unit number on which printer output is to occur
t - the TRNSYS simulation time step
tp - the time interval at which the INPUTS to the printer are to be printed out
ton - the time in the simulation at which the printer is to begin printing
4–419
TRNSYS 18 – Mathematical Reference
FORMATTING
There are two sets of proformas for Type25: formatted and unformatted. The difference is that the
unformatted versions print the information in engineering formatting, for example:
+1.0000000000000000E+00
The formatted versions of Type 25 allow you to specify the format in which the information will be written to
the text file. The format statement must be specified in the tab ‘Special cards’, and it uses the Fortran
convention for reading and writing information to external files. For example, the format
(F8.2,1X,F8.2)
will write the information as
1.00 1.00
Please go to a Fortran reference textbook or online resource for more information regarding the format
statement.
4–420
TRNSYS 18 – Mathematical Reference
1 Summary interval hr The time interval after which the summaries will printed and reset.
Specifiying a negative parameter indicates that the absolute value
of the parameter will be used to specify the rest time in months.
2 Summary start time hr The hour of the year at which the summary is to begin.
3 Summary stop time hr The hour of the year at which the summary is to stop.
4 Logical unit for the - This parameter sets the Fortran Logical Unit (File reference
output file number) of the output file. It is used internally by TRNSYS to refer
to the file. This parameter will automatically be assigned to a
unique value by the TRNSYS Studio
5 Output mode - The output mode for the simulation summary component: 1: Table
with heading for the whole simulation (external file) or Individual
tables for each summary (Lst file) 2: Table with a single heading for
every 12 sets of summaries (best adapted to monthly summaries)
The next parameter is repeated once for each each operation code specified in the Type28 proforma
6 Operation code - The reverse polish operation code that will be used to manipulate
the parameters and inputs to produce the outputs. The parameter
list may also contain constants to be used in the summary. If this is
the first operation code, either enter the number of inputs that
should not be integrated, or use an operation code <= 0 to put an
input on parameter on the stack.
INPUTS
1 Summary input [any] The specified input to be used in the simulation summary.
4–421
TRNSYS 18 – Mathematical Reference
In Mode 2, a table with a single heading is produced for every 12 sets of summaries (this is best adapted
to monthly summaries, in which case Type 28 also print the month name). With the same example, the
result is:
Simulation Summary in intervals of 1.000000 month
-----------------------------------------------------------------------------------
Month Time Quseful-unshaded Quseful-shaded
Jan 0.7440000000000000E+0003 0.2691661730332975E+0006 0.6801398991703584E+0005
Feb 0.1416000000000000E+0004 0.3346451047390851E+0006 0.9986525629429739E+0005
…
Oct 0.7296000000000000E+0004 0.3494940883789239E+0006 0.1187033571959028E+0006
Nov 0.8016000000000000E+0004 0.2472546177407783E+0006 0.6366422903990559E+0005
Dec 0.8760000000000000E+0004 0.2470276724538152E+0006 0.5797111710341804E+0005
Sum 0.8760000000000000E+0004 0.4433211959658687E+0007 0.2429448716222191E+0007
Like Type 25, Type 28 can be set to append to the output file rather than re-creating it (add 10 to the mode,
e.g. 11 instead of 1).
When Type 28 prints the results to the listing file, the first characters are the unit number corresponding to
the instance that wrote to the listing file. This may help understanding to which unit corresponds to the
outputs printed in the listing file.
LABELS
A special control statement called a LABELS statement is required for use of Type 28. Unlike Type 25, the
number of printed Outputs is not necessarily equal to the number of Inputs so Labels (variable descriptors)
cannot be specified on the initial values line following the Inputs line. Instead, the user must specify 2 lines
of the form:
Labels n
label1 label2 label3 … labeln
after the Unit X Type 28 line. (n) is the number of Outputs of Type 28 and labeln is the LABEL used to
identify the nth Output.
ENERGY BALANCES
The relative accuracy of a simulation can often be estimated by comparing the energy flows across a system
or subsystem boundary with the change in system internal energy. If the energy flows between several
4–422
TRNSYS 18 – Mathematical Reference
components balance, then the timestep and convergence tolerances are adequate. If an energy balance
does not close, then the system model or simulation parameters have not been specified properly.
To facilitate checking system energy balances, an energy balance checking routine is included in TRNSYS.
A control statement, called a CHECK statement, is used to specify an energy balance between several
quantities printed by the simulation summary component. If the energy balance does not close within the
tolerance given on the CHECK statement, a warning will be issued in the *.lst and *.log files.
All TRNSYS Units can have check statements. However, Type 28 is best adapted to use
check statements because of its ability to integrate some (or all) of its inputs.
The use of the CHECK statement is best illustrated with an example:
Suppose a Type 28 calculates and prints out QU, the energy supplied by the collector to the tank; DE, the
change in internal energy of the tank; QLOSS, the loss from the tank; and QLOAD, the energy supplied to
the load from the tank. Allowing for moderate error, we can say that the energy added to the tank (QU)
should be within 2% of the energy drawn from the tank (QLOSS + QLOAD) plus the change in internal
energy (DE). Output 1 minus outputs 2 through 4 should be close to 0. The line
CHECK .02 1, -2, -3, -4
will cause QCHECK = QU-DE-QLOSS-QLOAD to be calculated. If QCHECK is greater than 2% of (|QU| +
|DE| + |QLOSS| + |QLOAD|)/2, then a warning will be written to the *.lst and *.log files. As with other
TRNSYS tolerances, a positive number following the word CHECK is treated as a relative tolerance and a
negative number as an absolute tolerance.
OPERATION CODES
Type 28 Parameters 6 and higher are the operation codes. These codes enter integrated Inputs,
Parameters, and Time into an operational stack (in reverse Polish notation), command operations on these
values, and place results into the OUT array so they may be printed. (Note that the operations are
performed after the Inputs have been integrated). The operation codes are explained here below:
All operations are performed on the value on the top of the stack for unary operations, or on the top two
values in the stack for binary operations. The Parameters are processed sequentially and the values
determine what operations to perform on the Inputs.
In the following,
Pj is parameter j (i.e. the parameter being processed)
Sk is variable number k in the stack (starting from the top)
Xi is the ith input (i is incremented when an input is accessed, it starts at 1)
Yj is the jth input (j is incremented when an output is accessed, it starts at 1)
Ri is the register (memory spot) i
Binary Operations
Pi Interpretation
1 the two values on top of the stack are replaced with their product. (Sk-1 = Sk1*Sk)
4–423
TRNSYS 18 – Mathematical Reference
2 the two values on top of the stack are replaced by the result of the division of the second value from
the top of the stack by the value on top of the stack. (Sk-1 = Sk-1/Sk)
3 the two values on top of the stack are replaced by their sum. (Sk-1 = Sk-1 + Sk)
4 the two values on top of the stack are replaced by their difference. The top value on the stack is
subtracted from the second value from the top of the stack. (S k-1 = Sk-1 - Sk)
5 the two values on top of the stack are replaced by the second value from the top of the stack raised
to the power of the top value in the stack. (Sk-1 = Sk-1^Sk)
Unary Operations
Pi Interpretation
6 the top value in the stack is replaced by the log10 of the top value in the stack. (Sk = log10Sk)
15 The top value in the stack is replaced by the sine of the top value in the stac (Sk=sin(Sk)) [Sk must be
in degrees]
16 The top value in the stack is replaced by the cosine of the top value in the stack
(Sk = cos(Sk)) [Sk must be in degrees]
17 The top value in the stack is replaced by the arcsine of the top value in the stack (S k = arcsin(Sk))
[in degrees]
18 The top value in the stack is replaced by the arccosine of the top value in the stack (S k = arccos(Sk))
[in degrees]
19 The top value in the stack is replaced by the arctangent of the top value in the stack (Sk = arctan(Sk))
[in degrees]
Outputs
4–424
TRNSYS 18 – Mathematical Reference
Pi Interpretation
-3 the value on the top of the stack is set as the next Output (j = j + 1, Yj = Sk).
-4 like -3, but top value of the stack is removed from stack (j = j + 1, Yj = Sk, Sk = Sk-1).
Other functions
Pi Interpretation
-5 decrement top of stack "pointer" (Sk = Sk-1)
-6 increment top of stack "pointer" (Sk-1 = Sk).
-7 switch top two values on stack (Temp = Sk, Sk = Sk-1, Sk-1 = Temp).
-11 place the 1st Input on top of the stack (Sk = X1).
-12 place the 2nd Input on top of the stack (Sk = X2).
-20 place the 10th Input on top of the stack (Sk = X10).
-(20+i) set register i to the value on the top of the stack; 1 ≤ i ≤ 10 (R i = Sk, k = k- 1)
-(30+i) place the value in register i on the top of the stack; 1 ≤ i ≤ 10 (k = k + 1, Sk = Ri)
4–425
TRNSYS 18 – Mathematical Reference
1 Logical unit [-] This parameter sets the Logical Unit (file reference) number of the
output file. The number is used internally by TRNSYS to refer to
the file. This parameter will automatically be assigned to a unique
value by the TRNSYS Studio
2 Logical unit for monthly [-] This parameter may either be set to -1 or to the logical unit number
summaries of a monthly summary file that will be automatically generated by
the component. This parameter will automatically be assigned to a
unique value by the TRNSYS Studio
3 Relative or absolute [-] This parameter controls whether the print intervals are relative or
start time absolute. 0: print at time intervals relative to the simulation start
time; 1: print at absolute time intervals.
For example, if the simulation start time is 0.5, the simulation time
step is 0.25 and the printing time step is 1. If this parameter is set
to 0 (relative intervals), printing will occur at 0.5, 1.5, 2.5, etc. If this
parameter is set to 1 (absolute intervals), printing will occur at 1, 2,
3, etc.
This parameter is ignored if the reset time is set to monthly
integrations.
4 Printing & integrating [hr] The time interval at which printing is to occur. If the time interval is
interval less than zero, then the print interval will be set to monthly
integrations. Examples: 1: print every hour; -1: print every month;
STEP print every simulation time step.
5 Number of inputs to [-] The number of inputs that should NOT be integrated and instead
avoid integration should have their values printed at the same time as the integrated
values.
The next parameter is repeated once for each input that is NOT integrated.
6 Non-integrated input [-] The index number of the input that should NOT be integrated and
number instead should have its value printed at the same time as the other
integrated values. This parameter is repeated once for each value
parameter 5.
INPUTS
4–426
TRNSYS 18 – Mathematical Reference
4.7.3.4. Nomenclature
Xi [-] the ith quantity or rate to be integrated and printed.
Yi [-] the time integral of Xi
LUuser [-] the logical unit number to which the user-period printer output is to be written.
LUauto [-] the logical unit number to which the automatic (monthly) printer output is to be
written.
t [hr] the TRNSYS simulation time step.
tp [hr] the time interval at which the INPUTS to the printer are to be printed out
ton [hr] the time in the simulation at which the printer is to begin printing
toff [hr] the time in the simulation at which the printer is to stop printing
TIME [hr] the current value of time in the simulation.
4–427
TRNSYS 18 – Mathematical Reference
The sum of each input (summed over the entire simulation period) is reported at the end of the output
file(s). Note that the sum for inputs that were set to avoid integration will be set to zero.
FORMATTING
There are two sets of proformas for Type 46: formatted and unformatted. The difference is that the
unformatted versions print the information in engineering formatting, for example:
+1.0000000000000000E+00
The formatted versions of Type 46 allow you to specify the format in which the information will be written to
the text file. The format statement must be specified in the tab ‘Special cards’, and it uses the Fortran
convention for reading and writing information to external files. For example, the format
(F8.2,1X,F8.2)
will write the information as
1.00 1.00
You will need to specify one more value in the format statement than the number of inputs being printed.
This is because the value of time is automatically printed and needs to be formatted as well.
Please refer to a Fortran reference textbook for more information regarding the format statement.
4–428
TRNSYS 18 – Mathematical Reference
Number of left-axis The number of variables that will be plotted using the left Y-axis for
1 [-]
variables scaling purposes.
Number of right-axis The number of variables that will be plotted using the right axis for
2 [-]
variables scaling purposes.
3 Left axis minimum [-] The minimum value for the left Y-axis.
4 Left axis maximum [-] The maximum value for the left Y-axis.
5 Right axis minimum [-] The minimum value for the right Y-axis.
6 Right axis maximum [-] The maximum value for the right Y-axis.
8 X-axis gridpoints [-] The number of grid points that the X-axis (time) will be divided into.
This parameter controls the delimiter used in the output file: 0: use
12 Output file delimiter [-] tabs to delimit columns; 1: use spaces to delimit columns; 2: use
commas to delimit columns
4–429
TRNSYS 18 – Mathematical Reference
INPUTS
This component’s inputs are repeated once for each variable defined by parameters 1 and 2.
The specified variable which is to be plotted using the left Y-axis for
1 Left axis variable any scaling purposes. This input is repeated for each left axis variable
defined by parameter 1
4–430
TRNSYS 18 – Mathematical Reference
When the simulation is stopped, you can use the "Plot options" menu to change the plot background or line
thickness. You can also change the left and right Y-axis limits by clicking on the axes themselves, which
will display a dialog box (see Figure 4.7.4–1). Please note that changes to those limits will be lost if you re-
run the simulation. You should change the online plotter parameters in the input file or Studio project if you
want changes to be permanent.
4–431
TRNSYS 18 – Mathematical Reference
Note: By pressing SHIFT and moving the mouse over the plot, you will display the values
plotted by the online plotter, which are interpolated between TRNSYS time steps. If you
want to see only the actual simulation time steps, pres CTRL-SHIFT when moving the
mouse. This can be useful to study control signal switching from 0 to 1, for example, since
the online plotter will draw a continuous line between those 2 states and it will show
interpolated values that do not correspond to any simulated values.
4–432
TRNSYS 18 – Mathematical Reference
At the end of the simulation, TRNSYS will display a dialog box asking if you want to leave the online plotter
open.
4–433
TRNSYS 18 – Mathematical Reference
1 Number of actors [-] The number of variables that should be plotted by this scope. It is
recommended to leave this value set to 1 and to implement
multiple scopes.
5 Update rate [-] Draw component every Update Rate timesteps only (avoids
flickering).
INPUTS
1 Actor [-] The input value which will pilot the component’s image.
4–434
TRNSYS 18 – Mathematical Reference
A miniature version of the online plot will be generated for each input
Curve
value.
The line between the terminals will be open when the input value is 0 and
Switch will link the terminals when the input value is 1. Note that the “min” and
“max” parameters are not used in this mode.
The color of the box will appear blue when the input value is at or near the
Color minimum value (set as a parameter) and will tend towards red when the
input value is at or near the maximum value (also set as a parameter).
The bar extends farther to the right as the input value(s) increase from the
Colored Bars
minimum to the maximum value (set as parameters)
The needle on the dial moves clockwise as the input value(s) increase
Guage
from the minimum to the maximum value (set as parameters)
4.7.5.5. References
This component was written by W. Kielholz of CSTB.
4–435
TRNSYS 18 – Mathematical Reference
2 Start time [hr] The hour of the year at which values should start being printed to
the result file.
3 Stop time [hr] The hour of the year at which values should stop being printed to
the result file.
4 Logical unit [-] An integer value assigned as a reference index to the file produced
by this component.
INPUTS
This component’s inputs are repeated once for each variable that is to be printed.
4–436
TRNSYS 18 – Mathematical Reference
The information from the surfaces and zones can now be linked to Type125.
4–437
TRNSYS 18 – Mathematical Reference
4–438
TRNSYS 18 – Mathematical Reference
to set Trnsys3d to render by data value instead of by surface class. To do this go to the main SketchUp
menu and chose Plugins ‐> Trnsys3d ‐> Renderings ‐> By Data Value .
If any portion of model appears white, it indicates that no data results are available from the TRNSYS
simulation for the selected date for that zone. The model should be colored based on the zone air
temperature, as shown below.
4–439
TRNSYS 18 – Mathematical Reference
4–440
TRNSYS 18 – Mathematical Reference
4–441
TRNSYS 18 – Mathematical Reference
1 Horizontal radiation [-] The radiation processor may be supplied with one of five
mode combinations of inputs; this parameter specifies to the
component which set of inputs will be provided. Use the correct
proforma for the desired mode, and do not change this
parameter.
2 Tracking mode [-] Specifies if (or how) the surface receiving the radiation tracks
the sun. 1 = Fixed surface, no tracking; 2 = Single axis tracking,
vertical axis (fixed slope, variable azimuth); 3 = Single axis
tracking, axis parallel to surface; 4 = Two-axis tracking.
3 Tilted surface mode [-] Specifies the model used to process radiation on a tilted surface.
1 = Isotropic sky model; 2 = Hay and Davies model; 3 = Reindl
model; 4 = Perez 1988 model; 5 = Perez 1999 model.
4 Starting day [day] The day of the year corresponding to the simulation start time.
6 Solar constant [kJ/hr-m2] The mean solar irradiance per unit area that would be incident
on a plane perpendicular to the rays, at a distance of one
astronomical unit from the Sun.
7 Shift in solar time [°] The difference between the standard meridian for the local time
zone and the longitude of the location in question. Longitude
angles are positive towards West, negative towards East. This
parameter is ignored if true solar time is used (see parameter 9).
8 Not used [-] This parameter is no longer used by the radiation processor; it is
preserved to maintain compatibility with previous versions of the
Type. Do not change the default value.
9 Solar time [-] If the radiation data is at even intervals of solar time (as the TMY
data is), set this parameter to a negative number; if the data is at
even intervals of local time, set this value to a positive number.
This parameter determines whether or not parameter 7 is used.
4–442
TRNSYS 18 – Mathematical Reference
INPUTS
If Mode (parameter 1) = 1
If Mode (parameter 1) = 2
If Mode (parameter 1) = 3
If Mode (parameter 1) = 4
2 Direct normal beam [kJ/hr-m2] Beam radiation on a surface oriented towards the sun.
radiation
If Mode (parameter 1) = 5
In the following table entries, n = 1 for Mode 1, n = 3 for Mode 2 and n = 2 for Modes 3 through 5
n+1 Time of last data read [hr] The time of the last reading of the external file containing the
weather data.
n+2 Time of next data [hr] The time of the next reading of the external file containing the
read weather data.
n+3 Ground reflectance [-] The reflectance of the ground above which the surface is
located. Typical values are 0.2 for ground not covered by snow
and 0.7 for ground covered by snow.
The next two inputs are cycled based on the number of surfaces on which Type16 is computing solar radiation. In
the following table entries, m=4 for mode 1, m=6 for mode 2, and m=5 for mode 3.
m+1 Slope of surface [°] The slope of the surface or tracking axis. The slope is positive
when tilted in the direction of the azimuth. 0 = Horizontal ; 90 =
4–443
TRNSYS 18 – Mathematical Reference
m+2 Azimuth of surface [°] The angle between the local meridian and the projection of the
line of sight of the sun onto the horizontal plane. 0 = Facing
equator; 90 = Facing West; 180 (or -180) = Facing away from
the equator; -90 (or 270) = Facing East. This input may be
ignored, depending on the tracking mode selected. This input is
cycled with the number of surfaces to be evaluated.
OUTPUTS
2 Solar zenith angle [°] The angle between the vertical and the line of sight of the sun.
3 Solar azimuth angle [°] The angle between the local meridian and the projection of the
line of sight of the sun onto the horizontal plane.
4 Total horizontal [kJ/hr-m2] The total radiation incident on a horizontal surface. The total
radiation radiation is equal to the beam radiation + sky diffuse radiation +
ground reflected diffuse radiation.
6 Horizontal diffuse [kJ/hr-m2] The diffuse radiation (sky only) on a horizontal surface.
radiation
C1 Total radiation on [kJ/hr-m2] The total radiation on the tilted surface (beam + sky diffuse +
surface ground reflected diffuse). This output is cycled with the number
of surfaces to be evaluated (up to 8 are allowed).
C2 Beam radiation on [kJ/hr-m2] The beam radiation incident on the surface. This output is cycled
surface with the number of surfaces to be evaluated (up to 8 are
allowed).
C3 Sky diffuse radiation on [kJ/hr-m2] The sky diffuse radiation incident on the surface. This output is
surface cycled with the number of surfaces to be evaluated (up to 8 are
allowed).
C4 Incidence angle for [°] The angle of incidence of the beam radiation on the surface.
surface This output is cycled with the number of surfaces to be
evaluated (up to 8 are allowed).
C5 Slope for surface [°] The slope of the surface. This will equal the input surface slope
if tracking mode 1 (fixed surface) is selected. This output is
cycled with the number of surfaces to be evaluated (up to 8 are
allowed).
4–444
TRNSYS 18 – Mathematical Reference
Simulation Start Day [day] The day of the year on which the simulation begins.
Solar shift [°] The difference between the standard meridian for the local time zone
and the longitude of the location in question. This field is blank if true
solar time is used.
TEXT FIELDS
Tilted Radiation Mode [-] One of the following five means of calculating radiation (and
beam/diffuse split) on a tilted surface: Isotropic sky model, Hay and
Davies sky model, Reindl sky model, Perez 1988 sky model, Perez
1999 sky model.
Surface Tracking [-] One of the following four ways in which the surface(s) may track the
Mode position of the sun throughout the day: Fixed surface (no tracking),
single-axis tracking with vertical axis, fixed slope, variable azimuth;
single-axis tracking with axis parallel to surface, or two-axis tracking
surfaces.
Solar Radiation Data [-] Either solar time or local (clock) time
Surface (or Axis) Slope [°] Input corresponding to surface slope; cycles for as many surfaces as
are specified in the proforma (up to 8).
Surface (or Axis) [°] Input corresponding to surface azimuth; cycles for as many surfaces as
Azimuth are specified in the proforma (up to 8).
4–445
TRNSYS 18 – Mathematical Reference
1 Flat plate or parabolic [-] A value of 1 indicates that the shading is to be calculated for a flat-
trough mode plate collector array, whereas a value of 2 indicates that the
shading is to be calculated for a single-axis tracking parabolic
trough array. Use proforma 30a for flat plate arrays and 30b for
parabolic trough arrays. Do not change this value.
If Mode (parameter 1) = 1
2 Collector height [m] The height of one of the identical solar collectors in the array. The
height specified here should be independent of the collector slope
(the true height of the collector).
3 Collector row length [m] The length of one row of the solar collector array.
4 Collector slope [°] The slope between the collector array surface and the horizontal.
The slope must be between 0 and 90 degrees and must be greater
than the slope of the collector field.
5 Collector row [m] The distance between rows of the flat-plate solar collector array
separation (measured on the horizontal plane).
6 Number of rows [-] The number of identical rows of solar collectors in the array.
7 Collector array azimuth [°] The collector array surface azimuth. The surface azimuth is
defined as the angle between the local meridian and the line of
sight of the collector surface onto the horizontal plane. Zero
surface azimuth is facing the equator, west is positive (90), east is
negative (-90).
8 Slope of collector field [°] The slope between the field (or mounting surface) on which the
collector array is situated and the horizontal. The slope must be
between 0 and 90 degrees and must be less than the slope of the
collector array surface.
If Mode (parameter 1) = 2
2 Axis orientation [-] This parameter is no longer used; it is maintained only for
backwards compatibility. Do not change this value.
3 Collector axes [m] The distance between axes of the rows of parabolic troughs
separation (measured on the horizontal plane).
4 Aperture width [m] The width of one of the identical parabolic troughs in the array.
4–446
TRNSYS 18 – Mathematical Reference
5 Number of rows [-] The number of identical rows of parabolic troughs in the array.
6 Slope of axes plane [°] The slope of the field on which the trough array is situated. Slope is
positive when the surface is tilted toward the azimuth, negative
otherwise.
INPUTS
If Mode (parameter 1) = 1
1 Tilted surface radiation [kJ/hr-m2] The total radiation (beam + sky diffuse + ground reflected diffuse)
incident upon the unshaded collector surface per unit area.
2 Incident beam radiation [kJ/hr-m2] The beam radiation incident upon the unshaded collector surface
per unit area.
3 Solar zenith angle [°] The solar zenith angle is the angle between the vertical and the line
of sight of the sun. This is 90 minus the angle between the sun
and the horizontal (solar altitude angle).
4 Solar azimuth angle [°] The solar azimuth angle is the angle between the local meridian
and the projection of the line of sight of the sun onto the horizontal
plane. Zero solar azimuth is facing the equator, west is positive
(90) while east is negative (-90).
5 Total horizontal [kJ/hr-m2] The total radiation (beam + sky diffuse + ground reflected diffuse)
radiation incident on a horizontal surface per unit area.
6 Horizontal diffuse [kJ/hr-m2] The diffuse radiation incident upon a horizontal surface per unit
radiation area.
7 Beam radiation on field [kJ/hr-m2] The beam radiation per unit area incident upon a surface with the
slope of the field on which the collector array is situated.
8 Ground reflectance [-] The reflectance of the ground above which the solar collector array
is situated. The reflectance is a ratio of the amount of radiation
reflected by the surface to the total radiation incident upon the
surface and therefore must be between 0 and 1. Typical values are
0.2 for ground not covered by snow and 0.7 for snow-covered
ground.
If Mode (parameter 1) = 2
1 Incident beam radiation [kJ/hr-m2] The beam radiation incident upon the unshaded trough aperture
per unit area
2 Collector slope [°] The slope of the trough aperture. Slope is positive when the
aperture is tilted toward the azimuth, negative otherwise.
OUTPUTS
If Mode (parameter 1) = 1
1 Total shaded radiation [kJ/hr-m2] The total solar radiation (beam + sky diffuse + ground reflected
diffuse) incident upon the shaded collector surface per unit area,
including the effects of shading.
4–447
TRNSYS 18 – Mathematical Reference
2 Shaded beam radiation [kJ/hr-m2] The beam radiation incident upon the shaded collector surface per
unit area, including the effects of shading.
3 Shaded diffuse [kJ/hr-m2] The diffuse radiation incident upon the shaded collector surface per
radiation, total unit area, including the effects of shading. This includes both
radiation diffused through the sky and radiation reflected from the
ground.
4 Shaded diffuse [kJ/hr-m2] The radiation diffused through the sky and incident upon the
radiation, sky portion shaded collector surface per unit area, including the effects of
shading.
5 Shaded diffuse [kJ/hr-m2] The diffuse radiation reflected from the ground and incident upon
radiation, ground- the shaded collector surface per unit area, including the effects of
reflected portion shading.
If Mode (parameter 1) = 2
1 Shaded beam radiation [kJ/hr-m2] The beam radiation incident upon the shaded trough aperture per
unit area, including the effects of shading.
2 Shading fraction [-] The fraction of the unshaded beam radiation (from Input 1) that is
received by the troughs.
If Mode (Parameter 1) = 1
Row Height [m] The height of one of the identical solar collectors in the array.
Row Length [m] The length of one row of the solar collector array.
Row Slope [°] The slope between the collector array surface and the horizontal.
Row Separation [m] The distance between rows of the flat-plate solar collector array
(measured on the horizontal plane).
Number of Rows [-] The number of identical rows of solar collectors in the array.
Field Slope [°] The slope between the field (or mounting surface) on which the collector
array is situated and the horizontal.
If Mode (Parameter 1) = 2
Distance Between [m] The distance between axes of the rows of parabolic troughs (measured
Axes on the horizontal plane).
Collector Aperture [m] The width of one of the identical parabolic troughs in the array.
Number of Rows [-] The number of identical rows of parabolic troughs in the array.
4–448
TRNSYS 18 – Mathematical Reference
Field Slope [°] The slope of the field on which the trough array is situated.
TEXT FIELDS
Shaded Fraction [-] Ratio of effective radiation on the array (after shading) to radiation
without shading effects, or 0 when there is no radiation on the array.
4–449
TRNSYS 18 – Mathematical Reference
4.8.2.4. Nomenclature
Da - distance between tracking axes of single axis tracking collectors
DR - distance between rows of flat plate collectors in a field
fbs - fraction of total array area that is shaded from beam radiation
f'bs - fraction of ground area between rows of collectors that is shaded from beam radiation
(fbs)1 - fraction of area of a single row of collectors that is shaded by an adjacent row
Fgnd - overall view factor from the collector array to the ground in front of the array
Fg-s - overall view factor from the ground between rows of collectors to the sky
Fsky - overall view factor from the collector array to the sky
F'gnd - overall view factor from the collector array to the ground between rows
Hc - height of each collector row
I - total unshaded horizontal radiation per unit area
IbT - unshaded incident beam radiation per unit area
IdT - unshaded incident diffuse radiation per unit area
IT - unshaded total incident radiation per unit area
I'bT - unshaded incident beam radiation per unit area on the field slope on which collectors
are mounted
I'dT - unshaded incident diffuse radiation per unit area on the field of slope F on which
collectors are mounted
(IbT)s - incident beam radiation per unit area including shading effects
(IdT)s - diffuse incident radiation per unit area including shading effects
(IT)s - total incident radiation per unit area including shading effects
NR - number of rows of collectors
P - distance between planes that contain sun and each axis of a single axis tracking
system
Wa - width of collector aperture
WR - width of row of collectors
- collector surface slope
a - slope of plane containing the tracking axes
F - slope of field on which collector array is situated
- azimuth of collector surface; angle between the projection of the normal into the
horizontal plane and the local meridian. Zero azimuth facing the equator, west
positive, east negative
a - azimuth angle of the plane containing the tracking axes.
s - solar azimuth; angle between the projection of the line of sight to the sun into the
horizontal plan and the local meridian
g - ground reflectance to the plane
p - angle between a plane containing the sun and an axis and a plane that is
perpendicular containing all the collector axes
z - solar zenith angle
(𝐼𝑇 )𝑠 = (1 − 𝑓𝑏𝑠 )𝐼𝑏𝑇 + 𝐹𝑠𝑘𝑦 𝐼𝑑𝑇 + 𝑟𝑔 𝐹𝑔𝑛𝑑 𝐼 + 𝑟𝑔 ((1 − 𝑓′𝑏𝑠 )𝐹′𝑔𝑛𝑑 𝐼′𝑏𝑇 + 𝐹𝑔−𝑠 𝐹′𝑔𝑛𝑑 𝐼′𝑑𝑇 ) Eq. 4.8.2-1
4–450
TRNSYS 18 – Mathematical Reference
The first term in Eq. 4.8.2-1 is the shaded incident beam radiation. IbT is the incident beam radiation on an
unshaded surface, while fbs is the fraction of the collector array area that is shaded from direct beam
radiation. The second and third terms in the above equation are the diffuse radiation that strikes the collector
side view Rows of Colle ct ors
surface originating from the sky and the ground in front of the array. I dT and I are the diffuse and total
radiation on a horizontal surface. Fsky and Fgnd are the view factors from the collector to the sky and ground
considering the obstructed view due to adjacent rows of collectors. The ground reflectance is g. The final
term is the incident diffuse radiation resulting from beam and diffuse radiation striking the area between
rows of collectors. I’bT and I’dT are the beam and diffuse radiation incident upon the sloped ground Wa on which
the array is located. F’bs is the fraction of the area between rows that isFshaded from beam radiation. F g-s is
the view factor from the ground between rows to the sky and F’ gnd is the view factor from the collector array
hor izont al DR
to the ground between rows.
t op vie w
side view Rows of Colle ct ors
Sout h
W
R
Wa
F
hor izont al DR
where P is the distance between the collector axes on a projection that is normal to a line from a collecto
axis to the sun. If p is the angle between a plane containing the sun and an axis and a plane that is
perpendicular to the plane which contains the collector axes, P is found from:
𝑃 = 𝐷𝑎 cos 𝜃𝑝 Eq. 4.8.2-3
From geometry, it is possible to derive the following expression to calculate the angle p:
𝜃𝑝 = 𝛽 − 𝛽𝑎𝑝 Eq. 4.8.2-4
4–451
TRNSYS 18 – Mathematical Reference
4–452
TRNSYS 18 – Mathematical Reference
1 Psychrometrics mode [-] This mode indicates to the general psychrometrics routine which
two properties will be used to calculate the remaining moist air
properties. Modes are preset for each proforma. Do not change
this value.
2 Wet bulb mode [-] 0 = Do not calculate the wet bulb temperature; 1 = Calculate the
wet bulb temperature (if it is not supplied as an input). If the wet
bulb temperature is not required as an output, this parameter
should be set to zero to reduce the required computational
effort.
3 Error mode [-] The error mode indicates the error handling procedure to the
general psychrometrics routine. 1 = Only one warning condition
will be printed throughout the simulation. 2 = Warnings will be
printed at every timestep that warning conditions occur.
INPUTS
If Mode (Parameter 1) = 6 (Proforma 33a, absolute humidity ratio and enthalpy known)
*Note: in this mode, if saturated conditions occur, enthalpy is set to the saturation enthalpy at the given humidity
ratio.
1 Absolute humidity ratio [-] The absolute humidity ratio of the moist air (kg's H2O / kg dry
air).
1 Dry bulb temperature [C] The dry bulb temperature of the air.
If Mode (Parameter 1) = 4 (Proforma 33c, dry bulb and humidity ratio known)
1 Dry bulb temperature [C] The dry bulb temperature of the air.
4–453
TRNSYS 18 – Mathematical Reference
2 Absolute humidity ratio [-] The absolute humidity ratio of the moist air (kg's H2O / kg dry
air).
If Mode (Parameter 1) = 3 (Proforma 33d, dry bulb and dew point temperature known)
1 Dry bulb temperature [C] The dry bulb temperature of the air.
2 Dew point temperature [C] The dew point temperature of the air.
If Mode (Parameter 1) = 2 (Proforma 33e, dry bulb and relative humidity known)
1 Dry bulb temperature [C] The dry bulb temperature of the air.
2 Percent relative [%] The percent relative humidity of the moist air.
humidity
If Mode (Parameter 1) = 1 (Proforma 33f, dry bulb and wet bulb known)
1 Dry bulb temperature [C] The dry bulb temperature of the air.
2 Wet bulb temperature [C] The wet bulb temperature of the air.
If Mode (Parameter 1) = 7 (Proforma 33g, absolute humidity ratio and enthalpy known)
*In this mode, if saturated conditions occur, humidity ratio is set to the saturation humidity ratio at the given
enthalpy.
1 Absolute humidity ratio [-] The absolute humidity ratio of the moist air (kg's H2O / kg dry
air).
1 Percent relative [%] The percent relative humidity of the moist air.
humidity
If Mode (Parameter 1) = 9 (Proforma 33i, relative humidity and humidity ratio known)
1 Percent relative [%] The percent relative humidity of the moist air.
humidity
2 Absolute humidity ratio [-] The absolute humidity ratio of the moist air (kg's H2O / kg dry
air).
If Mode (Parameter 1) = 10 (Proforma 33j, relative humidity and dew point temperature known)
1 Percent relative [%] The percent relative humidity of the moist air.
humidity
2 Dew point temperature [C] The dew point temperature of the air.
4–454
TRNSYS 18 – Mathematical Reference
3 Pressure [atm] The total pressure of the moist air system. This will be
atmospheric pressure for ambient conditions.
OUTPUTS
1 Humidity ratio [-] The absolute humidity ratio of the moist air.
2 Wet bulb temperature [C] The wet bulb temperature of the moist air.
5 Density of dry air [kg/m3] The density of the dry air only.
6 Percent relative [%] The percent relative humidity of the moist air.
humidity
7 Dry bulb temperature [C] The dry bulb temperature of the moist air.
8 Dew point temperature [C] The dew point temperature of the moist air.
9 Status [-] A warning flag indicating improper conditions input to this unit
(See Hints and Tips for more information).
4–455
TRNSYS 18 – Mathematical Reference
1 Weather file units [-] An indicator to the weather generator model of the units
contained in the external file of monthly averages. 1=SI units,
2=English units. SI units must be used if either of the default
monthly average files are used (WDATA.DAT or NREL.DAT).
2 Logical Unit [-] The logical unit through which the external weather data file will
be accessed (if used). Each file that TRNSYS writes to or reads
from must be assigned a unique logical unit in the TRNSYS
input file. This parameter is not used if no external file is used.
3 City number [-] The identification number (listed in the weather data file, if
used) given to the city for which the weather will be generated.
See Detailed Description for city identification numbers. This
parameter is not used if no external file is used.
4 Temperature model [-] The type of temperature model to be used in the generation of
the weather. 1= Stochastic model, 2 = Cosine model. See the
Detailed Description below for more details on the appropriate
choice of temperature model for your simulation.
5 Hourly radiation correction [-] Should the calculated values of solar radiation be
autocorrelated? 1=Yes, 2=No. See the Detailed Description
below for more details on the autocorrelation of radiation
values.
6 Use default seeds? [-] 1= use default random number seeds, 2=use user-supplied
random number seeds.
If Parameter 6 = 2
7 Starting random seed 1 [-] The first random number seed for the starting positions in the
sequences.
8 Starting random seed 2 [-] The second random number seed for the starting positions in
the sequences.
9 Hourly radiation seed 1 [-] The first random number seed for the generation of the hourly
radiation values.
4–456
TRNSYS 18 – Mathematical Reference
10 Hourly radiation seed 2 [-] The second random number seed for the generation of the
hourly radiation values.
11 Hourly temperature seed 1 [-] The first random number seed for the generation of the hourly
dry bulb temperatures.
12 Hourly temperature seed 2 [-] The second random number seed for the generation of the
hourly dry bulb temperatures.
13 Hourly wind speed seed 1 [-] The first random number seed for the generation of the hourly
wind speed data.
14 Hourly wind speed seed 2 [-] The second random number seed for the generation of the
hourly wind speed data.
N– Average windspeed for [m/s] The average windspeed by month for each month of the year,
N+11 each month, January January through December (12 parameters total). Use default
through December values if windspeed data are not available.
N+12 Altitude [m] The altitude of the city for which the weather will be generated.
A default value of 0 (sea level) should be used if no data is
available.
N+13 Latitude [°] The latitude of the location. North of the equator is taken as
positive, south as negative.
N+14 Average daily solar for The amount of solar radiation (total) incident on the horizontal
– each month, January during the average day of the month for each month of the
N+25 through December year, January through December (12 parameters total).
N+26 Average humidity ratio for [-] The average humidity ratio each month of the year, January
– each month, January through December (12 parameters total).
N+37 through December
N+38 Average temperature for [C] The average air temperature each month of the year, January
– each month, January through December (12 parameters total).
N+49 through December
OUTPUTS
1 Month of the year [-] The number corresponding to the month of the year (1 =
January, 12 = December) at the current timestep.
2 Day of the month [day] The number corresponding to the day of the year (1 = January 1,
365 = December 31) at the current timestep.
4 Dry bulb temperature [C] The dry bulb air temperature (interpolated at timesteps less than
1 hour).
5 Dew point temperature [C] The dew point temperature of the ambient air (interpolated at
timesteps less than 1 hour).
4–457
TRNSYS 18 – Mathematical Reference
6 Percent relative [%] The relative humidity of the ambient air, expressed as a
humidity percentage (interpolated at timesteps less than 1 hour).
7 Global horizontal [kJ/hr-m2] The global solar radiation on a horizontal surface integrated over
radiation the previous hour. (Not interpolated at timesteps less than one
hour - use radiation processor to interpolate solar radiation)
8 Direct normal radiation [kJ/hr-m2] The direct normal solar radiation integrated over the previous
hour. (Not interpolated at timesteps less than 1 hour - use
radiation processor to interpolate solar radiation)
9 Diffuse radiation [kJ/hr-m2] The diffuse solar radiation integrated over the previous hour.
(Not interpolated at timesteps less than 1 hour - use radiation
processor to interpolate solar radiation)
10 Wind velocity [m/s] The velocity of the wind. (Interpolated at timesteps of less than
one hour)
99 Time of last read [hr] The time at which the last values were read from the data file.
This output is to be used strictly with the TYPE 16 radiation
processor.
100 Time of next read [hr] Thetime at which the next values will be read from the data file.
This output is to be strictly used with the radiation processor.
101 Month of the year at [-] The month of the year at the next timestep.
next timestep
102 Day of the month at [day] The day of the month corresponding to the next timestep (not
next timestep interpolated at timesteps less than 1 hour).
103 Hour at next timestep [hr] The hour of the year at the next timestep.
104 Dry bulb temperature [C] The dry bulb (ambient) temperature at the next timestep.
at next timestep
105 Dew point temperature [C] The dew point temperature of the ambient air at the next
at next timestep timestep (interpolated at timesteps of less than 1 hour).
106 Percent relative [%] The percent relative humidity of the ambient air at the next
humidity at next timestep (interpolated at timesteps of less than 1 hour).
timestep
107 Global horizontal [kJ/hr-m2] Global horizontal surface radiation at the next timestep. Used
radiation at next with the smoothing option in he radiation processor.
timestep
108 Direct normal radiation [kJ/hr-m2] Direct normal solar radiation at the next timestep. Used with the
at next timestep radiation smoothing option in the radiation processor
component.
109 Diffuse radiation at [kJ/hr-m2] The diffuse solar radiation at the next timestep. This output is
next timestep typically used with the radiation smoothing option in the radiation
processor component.
4–458
TRNSYS 18 – Mathematical Reference
110 Wind velocity at next [m/s] The wind velocity at the next timestep.
timestep
City Weather File [-] Weather file number (if using a weather file)
4.8.4.4. Nomenclature
kt [-] hourly clearness index (total radiation over extraterrestrial global radiation for an hour)
Kt [-] daily clearness index (total radiation over extraterrestrial global radiation for a day)
Kt [-] monthly clearness index (total radiation over extraterrestrial global radiation for a month)
(or Kt(bar))
4–459
TRNSYS 18 – Mathematical Reference
Owenby, and Baldwin, published by the U.S. National Oceanic and Atmospheric Administration, Asheville,
NC. Data for 96 Canadian locations is also included.
Table 4.8.4–1: Weather Data File Format
line 1: NLOC
line 2: LOCATION 1 LATITUDE
line 3: I1 I2 I3 . . . I12
line 4: w1*10000 w2*10000 w3*10000 . . . w12*10000
line 5: TEMP1 TEMP2 TEMP3 . . . TEMP12
line 6: LOCATION 2 LATITUDE
line 7: I1 I2 I3 . . . I12
ETC.
where:
NLOC the number of locations in the data base
LOCATION is the name of the location, maximum of 32 characters
LATITUDE between -90.0 and 90.0 , number must start in column 33
I1-I12 Monthly average daily global horizontal solar radiation (kJ/m2)
w1-w12 Monthly average humidity ratio times 10,000 (kg water/kg air)
TEMP1-TEMP12 is the monthly average temperature (C)
From one to as many locations as desired can be entered into the data file. If locations are added to the
end of wdata.dat; the first line, which contains NLOC, must be changed.
Additionally, the National Renewable Energy Lab has created a new set of monthly average weather data
for the same 239 US sites listed in wdata.dat. The National Renewable Energy Laboratory (NREL) is in the
process of creating new TMY data. The new TMY data is yet to be released however they have already
released new monthly average data in the National Solar Radiation Data Base (NSRDB). This data was
first included with TRNSYS 14.1 in a file called NREL.DAT. These data should be more accurate and more
current than the data in wdata.dat. It is based on 30 years during the period 1961 through 1990. We suggest
that you use the new data from NREL.DAT.
ALGORITHMS
The following is a brief description of the weather data generation model; a more detailed description can
be found in Knight et al. [1,2].
Radiation is often described in a dimensionless form called the clearness index, which is simply the ratio of
the total radiation on a horizontal surface to the extraterrestrial global solar radiation on a horizontal surface
at the same time. The instantaneous values can be integrated over any time period; commonly used
quantities are hourly (kt)), daily (Kt)), and monthly (Kt(bar)) clearness indices.
Kt values for each day of the month are calculated in TYPE 54 from the daily clearness index cumulative
distribution function. A correlation is used to approximate the distribution as a function of K t(bar). To
determine the order in which the days should occur, a "sequence" is used. Specifically, the integers 1 to
31 are assigned to the 31 Kt values obtained from the distribution, with 1 corresponding to the smallest K t
value and 31 to the largest. The "sequence" consists of the integers 1 to 31, ordered such that when the Kt
values corresponding to the integers are placed in that order, the approximate lag one daily K t
autocorrelation is reproduced. A similar process is used for the other weather variables, and likewise, there
are "sequences" for the other variables [5,6].
The long-term mean kt value for each hour (k tm) is estimated from a correlation. The deviations from this
long-term average value are generated from a first order autoregressive model (which introduces some
randomness); the autoregressive model parameter is a function of Kt [1, 2, 3, 4]. Diffuse radiation values
are computed from the diffuse fraction correlation of Erbs et al. [7].
4–460
TRNSYS 18 – Mathematical Reference
When the hourly radiation values are summed, the daily total of the generated radiation is not necessarily
equal to the original 'target' daily radiation value. Over a month, these discrepancies tend to average out;
as an alternative, TYPE 54 can scale the hourly values (by multiplying them by the ratio of the 'target' K t
value to the generated Kt value) such that the 'target' Kt values are matched exactly. The effect of this
correction on the diurnal variation is insignificant, however, the hourly lag one autocorrelation is affected.
For systems sensitive to the hourly autocorrelation of radiation, no correction to the radiation values should
be made, i.e., PAR. 5 = 2. For systems in which the daily autocorrelation has more of an effect (most
systems), the radiation correction should be made, i.e., PAR. 5 = 1.
There are two models for dry bulb temperature; the first is a stochastic model (PAR. 4 = 1) in which the
hourly values are determined from a second order autoregressive model (some randomness is introduced);
the second is a deterministic hourly model (PAR. 4 = 2).
In the stochastic hourly temperature model (PAR. 4 = 1), 24 hourly monthly-average dry bulb temperature
values are computed, and the hourly deviations from these average values are then calculated with a
second order autoregressive (AR2) model. The coefficients in the AR2 model have constant values
determined from data for Albuquerque, NM, Madison, WI, and Miami, FL. To ensure the correct monthly-
average dry bulb temperature value, the entire month's hourly values are generated on the first hour of the
month. A monthly-average value is computed from the hourly values and compared to the Input monthly-
average value; the hourly values are then adjusted by adding the difference to each hourly temperature
[1,2].
The deterministic hourly dry bulb temperature model (PAR. 4 = 2) is similar to the radiation model. Daily
average values and daily maximum values are obtained from normal distributions where the means and
standard deviations are either Input or estimated from correlations [8]; the daily average and daily maximum
dry bulb temperatures are then each ordered with a "sequence". The daily average temperature value is
assumed to be both the mean and the median value; the time at which the minimum and maximum
temperatures occur are taken to be sunrise and 3 p.m., respectively. Hourly values are calculated by a
cosine interpolation between the daily minimums and maximums [5, 6].
The stochastic model (PAR. 4 = 1) better represents the hourly autocorrelation structure of the dry bulb
temperatures, however, it does not always generate temperature data with the correct daily autocorrelation
and daily distribution. The deterministic model (PAR. 4 = 2) consistently reproduces the daily structure but
neglects the variation and autocorrelation of the hourly sequence. Studies by Hollands et al. [9] indicate
that for some systems, the error in solar fraction when neglecting the random component of the hourly
temperatures is very small (on the order of 1%). The user should decide whether the hourly or daily structure
would have a greater effect upon the simulation and select the appropriate model; often the deterministic
model (PAR. 4 = 2) will be more appropriate.
The relative humidity model is actually a dewpoint temperature model. The Input humidity ratios are
converted to monthly-average dewpoint temperatures. Daily-average dewpoint temperatures are obtained
from a normal distribution (with the mean equal to the monthly-average dewpoint temperature and the
standard deviation equal to the standard deviation of the daily maximum dry bulb temperature) and ordered
according to a "sequence". An algorithm is used to determine the dewpoint depressions at the hours
corresponding to the maximum and minimum dry bulb temperature each day. Hourly dewpoint depressions
are computed by linearly interpolating between the dewpoint depressions at the minimum and maximum
dry bulb temperatures. Dewpoint temperatures and relative humidities are calculated from the dewpoint
depressions [8, 5, 6].
The monthly-average windspeed is assumed equal to 9 mph (4 m/s) unless other values are Input by the
user. Daily values are computed from a normal distribution with the mean equal to the monthly-average
value and the standard deviation equal to 0.31 times the mean; the daily values are then ordered by a
"sequence". Hourly values are randomly selected from a normal distribution with the mean equal to the
daily-average value and the standard deviation equal to 0.35 times the mean [5, 6].
Cross-correlations are not directly reproduced by Type54; this is perhaps the most serious shortcoming,
and further research in this area is necessary. For comparison of the generated data with 22 years of
recorded data and Typical Meteorological Year data, see Knight et al. [1, 2].
Some features of Type54 are listed here below:
4–461
TRNSYS 18 – Mathematical Reference
4.8.4.6. References
1. Knight, K.M., Klein, S.A., and Duffie, J.A., "A Methodology for the Synthesis of Hourly Weather Data,"
Solar Energy, (1991).
2. Knight , K.M., "Development and Validation of a Weather Data Generation Model," M.S. Thesis, 1988,
University of Wisconsin - Madison, Solar Energy Laboratory.
3. Graham, V.A., "Stochastic Synthesis of the Solar Atmospheric Transmittance," Ph.D. Thesis in
Mechanical Engineering, University of Waterloo (1985).
4. Graham, V.A., Hollands, K.G.T., and Unny, T.E., "Stochastic Variation of Hourly Solar Radiation Over
the Day," Advances in Solar Energy Technology, Vol. 4, ISES Proceedings, Hamburg, Germany,
September 13-18, (1987).
5. Degelman , L.O., "A Weather Simulation Model for Building Energy Analysis," ASHRAE Transactions,
Symposium on Weather Data, Seattle, WA, Annual Meeting, June 1976, pp. 435-447.
6. Degelman, L.O., "Monte Carlo Simulation of Solar Radiation and Dry Bulb Temperatures for Air
Conditioning Purposes," Report No. 70-9, sponsored by the National Science Foundation under Grant
No. GK-2204, Department of Architectural Engineering, The Pennsylvania State University, September,
(1970).
7. Erbs, D.G., Klein, S.A., and Duffie, J.A., "Estimation of the Diffuse Radiation Fraction of Hourly, Daily,
and Monthly-Average Global Radiation," Solar Energy, Vol. 28, pp. 293-302, (1982).
8. Erbs, D.G., "Models and Applications for Weather Statistics Related to Building Heating and Cooling
Loads," Ph.D. Thesis, University of Wisconsin-Madison, (1984).
9. Hollands, K.G.T., D'Andrea, L.T., and Morrison, I.D., "Effect of Random Fluctuations in Ambient Air
Temperature on Solar System Performance," Solar Energy, Vol. 42, pp. 335-338, (1989).
10. Gansler, R.A., “Assessment of Generated Meterological Data for Use in Solar Energy Simulations”, M.S.
Thesis, 1993, University of Wisconsin - Madison, Solar Energy Laboratory
11. Gansler, R.A., Klein S.A., “Assessment of the Accuracy of Generated Meteorological Data for Use in
Solar Energy Simulation Studies”, Proceedings of the 1993 ASME International Solar Energy
Conference, April 1993, Washington D.C., pp. 59-66
12. Gansler, R.A., Klein S. A., Beckman W. A., “ Investigation of Minute Solar Radiation Data”, Proceedings
of the 1994 Annual Conference of the American Solar Energy Society, June 1994, San Jose CA, pp.
344-348
4–462
TRNSYS 18 – Mathematical Reference
The three parameters are cycled as a group so as to be able to provide properties for multiple fluids or for multiple
states without the use of multiple instances of the component
1 Refrigerant for state [-] The identification number of the refrigerant for the specified
state. Generally, this is the number following the R in the
refrigerant’s numerical designation (e.g. enter 11 as parameter 1
for R-11). Recognized refrigerants include R-11, R-12, R-13, R-
14, R-22, R-114,R-134a(enter 134 as parameter 1), R-500, R-
502, Ammonia (enter 717 as parameter 1), and Steam (enter
718 as parameter 1). These parameters cycle with the number
of refrigerant state points specified.
2 1st property type for [-] The number of the first property corresponding to the specified
state state. 1 = Input #1 is a temperature (C); 2 = Input #1 is a
pressure (kPa); 3 = Input #1 is an enthalpy (kJ/kg); 4 = Input #1
is an entropy (kJ/kg.K); 5 = Input #1 is a quality (0 to 1); 6 =
Input #1 is a specific volume (m3/kg); 7 = Input #1 is an internal
energy (kJ/kg). Two unique properties (ie temperature and
enthalpy) must be supplied in order to calculate the state of the
fluid. These parameters cycle with the number of refrigerant
state points specified.
3 2nd property type for [-] The number of the second property corresponding to the
state specified state. 1 = Input #2 is a temperature (C); 2 = Input #2 is
a pressure (kPa); 3 = Input #2 is an enthalpy (kJ/kg); 4 = Input
#2 is an entropy (kJ/kg.K); 5 = Input #2 is a quality (0 to 1); 6 =
Input #2 is a specific volume (m3/kg); 7 = Input #2 is an internal
energy (kJ/kg). Two unique properties (ie temperature and
enthalpy) must be supplied in order to calculate the state of the
fluid. These parameters cycle with the number of refrigerant
state points specified.
INPUTS
The two inputs are cycled as a group so as to be able to provide properties for multiple fluids or for multiple states
without the use of multiple instances of the component
1 1st property for state [Varies – see The value of the first property required to calculate the remaining
Parameter 2] state properties of the fluid. For example, for the first fluid state
specified, if parameter 2 is set to 1 (temperature), then this input
must be the temperature of the fluid. These inputs cycle with the
number of refrigerant states specified.
4–463
TRNSYS 18 – Mathematical Reference
2 2nd property for state [Varies – see The value of the second property required to calculate the
Parameter 3] remaining state properties of the fluid. For example, for the first
fluid state specified, if parameter 3 is set to 3 (enthalpy) then this
input must be the enthalpy of the fluid. These inputs cycle with
the number of refrigerant states specified.
OUTPUTS
The seven outputs are cycled as a group so as to be able to provide properties for multiple fluids or for multiple
states without the use of multiple instances of the component
1 Temperature [C] The temperature of the fluid. These outputs cycle with the
number of refrigerant state points specified.
2 Pressure [kPa] The pressure of the fluid. These outputs cycle with the number
of refrigerant state points specified.
3 Enthalpy [kJ/kg] The enthalpy of the fluid. These outputs cycle with the number of
refrigerant state points specified.
4 Entropy [kJ/kg-K] The entropy of the fluid. These outputs cycle with the number of
refrigerant state points specified.
5 Quality [-] The quality of the fluid. These outputs cycle with the number of
refrigerant state points specified.
6 Specific volume [m3/kg] The specific volume of the fluid. These outputs cycle with the
number of refrigerant state points specified.
7 Internal energy [kJ/kg] The internal energy of the fluid. These outputs cycle with the
number of refrigerant state points specified.
4–464
TRNSYS 18 – Mathematical Reference
4.8.5.4. Nomenclature
Please see the documentation for the Fluid_Properties and Steam_Properties utility subroutines in the 07-
Programmer’s Guide manual.
4–465
TRNSYS 18 – Mathematical Reference
6 Initial temperature [C] The temperature of the object modeled at the beginning of the
simulation.
INPUTS
1 Temperature of the [C] The temperature of the surroundings of the object modeled.
surroundings Assume the object is fully surrounded by fluid (air or liquid) at
this temperature.
2 Energy input [kJ/hr] Energy gained to (or lost from) the object by means other than
thermal losses to the surrounding fluid (such as radiation
exchange, internal energy generation, and so forth). Positive
values are gains to the object, negative values are losses from
the object. Set this input to zero if the object has no energy input
other than thermal losses to (or gains from) the surrounding
fluid.
3 Heat transfer [kJ/hr-m2-K] The overall heat transfer coefficient between the surface of the
coefficient object and the surrounding fluid. Note that, in order to prevent
division by zero, this value cannot be zero (small values very
close to zero are allowed).
OUTPUTS
2 Heat transfer to [kJ/hr] The average rate of heat transfer over the timestep between the
surroundings lumped capacitance object and the surrounding fluid. Positive
values indicate transfer from the object to the surrounding fluid,
while negative values indicate transfer from the surrounding fluid
to the object.
4–466
TRNSYS 18 – Mathematical Reference
4.8.6.4. Nomenclature
[kg/m3] density of object
V [m3] volume of the object
A [m2] surface area of the object
C [kJ/kg-K] specific heat of the object
𝑇∞ [C] temperature of the surrounding fluid
h [kJ/hr-m2-K] external convection coefficient of the object
𝐸̇𝑖𝑛 [kJ/hr] thermal energy generation and/or radiation gains of the object
T [C] temperature of the object
t [hr] time
4–467
TRNSYS 18 – Mathematical Reference
where is the density of the body with volume V, area A and specific heat C. The energy balance
represented this equation takes into account an energy input and convective heat transfer to the
surroundings, at a temperature 𝑇∞ with a heat transfer coefficient h. The energy input may be used to
represent radiation on the surface or thermal energy generation within the body. The solution of the
differential equation uses the routine SolveDiffEq().
4.8.6.6. References
[1] Incropera, F.P., and DeWitt, D.P., “Fundamentals of Heat and Mass Transfer”. John Wiley and Sons,
5th ed., 2002.
4–468
TRNSYS 18 – Mathematical Reference
1 Logical unit for data file [-] The integer that is assigned to the file containing the mask data.
2 Number of openings in [-] The total number of openings for which incident radiation inputs
file have been provided.
3 Number of surface [-] The number of surface angles for which obstruction heights are
angles provided in the external data file.
INPUTS
1 Solar azimuth angle [degrees] The solar azimuth angle is the angle between the local meridian
and the projection of the line of sight of the sun onto the
horizontal plane. The reference is as follows:
2 Solar zenith angle [degrees] The zenith angle is the angle between the vertical and the line of
sight of the sun.
3 Total radiation on [kJ/hr.m2] The total solar radiation (beam+diffuse) incident on a horizontal
horizontal surface.
4 Diffuse radiation on [kJ/hr.m2] The amount of diffuse radiation incident on a horizontal surface
horizontal
The next four inputs are cycled, once for each opening in the data file.
5 Beam radiation for [kJ/hr.m2] Beam (or direct) radiation corresponding to the orientation of the
opening opening.
6 Diffuse radiation for [kJ/hr.m2] Diffuse radiation corresponding to the orientation of the opening.
opening
The angle formed by the horizontal plane and the plane of the
7 Slope of opening degrees
wall containing the opening.
The direction that the opening faces. This follows the standard
8 Azimuth of opening degrees convention (0: towards the equator, 180: away from the equator,
-90: east, 90: west)
OUTPUTS
1 Solar altitude angle [degrees] Angular height of the direct line between the opening's center
and the sun versus the horizontal.
4–469
TRNSYS 18 – Mathematical Reference
The remaining outputs are cycled based on the number of openings in the data file.
2 Fraction of beam [-] Flag = 1 if beam radiation is visisble for this opening, otherwise
visible for surf. = 0.
3 Shaded beam rad. for [kJ/hr.m2] Beam radiation for this surface, taking shading into account.
surf.
4 Fraction of diffuse [-] Number between 0 and 1 which gives the fraction of diffuse
visible for surf. radiation visible from the opening. 0 indicates no diffuse
radiation is visible and 1 indicates that all the shading has no
influence (i.e., all the diffuse radiation normally visible by the
window is indeed visible).
5 Shaded diffuse rad. on [kJ/hr.m2] Diffuse radiation for this surface, taking shading into account.
surf.
6 Shaded total rad. for [kJ/hr.m2] Total radiation for this opening, taking shading into account.
surf.
7 Fraction of beam [-] Flag = 1 if beam radiation is visisble for this opening, otherwise
visible on horiz. for = 0.
mask
8 Shaded beam rad. on [kJ/hr.m2] Beam radiation on the horizontal taking shading by this
horiz. for mask opening's mask into account.
9 Fraction of diffuse [-] Number between 0 and 1 which gives the fraction of diffuse
visible on horiz. for radiation visible from the horizontal given this opening's mask. 0
mask indicates no diffuse radiation is visible and 1 indicates that all the
shading has no influence. (i.e., all the diffuse radiation normally
visible by the window is indeed visible).
10 Shaded diffuse rad. on [kJ/hr.m2] Diffuse radiation on the horizontal taking shading by this
horiz. for mask opening's mask into account.
11 Shaded total rad. on [kJ/hr.m2] Total radiation on the horizontal taking shading by this opening's
horiz. for mask mask into account.
The two integrated value report variables are cycled, once for each opening.
The two min/max report variables are cycled, once for each opening.
4–470
TRNSYS 18 – Mathematical Reference
4–471
TRNSYS 18 – Mathematical Reference
…
for OPEN_IDn at = Alpha1
for OPEN_IDn at = Alpha2
…
for OPEN_IDn at = AlphaN
EXAMPLE
See the files in \%Trnsys18%\Examples\Data Files\Type64*.* for a data file example.
-180.0 -157.5 -135.0 … -22.5 0.0 22.5 … 112.5 135.0 157.5 ! View angles - ALWAYS (-180:step:180-step)
10.000 ! Obstruction height for opening 1, view angle 1 (i.e. between -180 and -157.5)
30.000 ! Obstruction height for opening 1, view angle 2 (i.e. between -157.5 and -135 )
20.000 ! Obstruction height for opening 1, view angle 3 (i.e. between -135 and -112.5)
…
50.000 ! Obstruction height for opening 1, view angle 15 (i.e. between 135 and 157.5)
10.000 ! Obstruction height for opening 1, view angle 16 (i.e. between 157.5 and 180 )
10.000 ! Obstruction height for opening 2, view angle 1 (i.e. between -180 and -157.5)
60.000 ! Obstruction height for opening 2, view angle 2 (i.e. between -157.5 and -135 )
…
30.000 ! Obstruction height for opening 2, view angle 15 (i.e. between 135 and 157.5)
20.000 ! Obstruction height for opening 2, view angle 16 (i.e. between 157.5 and 180 )
4–472
TRNSYS 18 – Mathematical Reference
1 Logical unit for data file [-] The integer that is assigned to the file containing the mask data.
2 Number of openings in [-] The total number of openings for which incident radiation inputs
file have been provided.
3 Number of surface [-] The number of surface angles for which obstruction heights are
angles provided in the external data file.
INPUTS
1 Solar azimuth angle [degrees] The solar azimuth angle is the angle between the local meridian
and the projection of the line of sight of the sun onto the
horizontal plane. The reference is as follows:
2 Solar zenith angle [degrees] The zenith angle is the angle between the vertical and the line of
sight of the sun.
3 Total radiation on [kJ/hr.m2] The total solar radiation (beam+diffuse) incident on a horizontal
horizontal surface.
4 Diffuse radiation on [kJ/hr.m2] The amount of diffuse radiation incident on a horizontal surface
horizontal
The next two inputs are cycled, once for each opening in the data file.
5 Beam radiation for [kJ/hr.m2] Beam (or direct) radiation corresponding to the orientation of the
opening opening.
4–473
TRNSYS 18 – Mathematical Reference
6 Diffuse radiation for [kJ/hr.m2] Diffuse radiation corresponding to the orientation of the opening.
opening
OUTPUTS
1 Solar altitude angle [degrees] Angular height of the direct line between the opening's center
and the sun versus the horizontal.
The remaining outputs are cycled based on the number of openings in the data file.
2 Fraction of beam [-] Flag = 1 if beam radiation is visisble for this opening, otherwise
visible for surf. = 0.
3 Shaded beam rad. for [kJ/hr.m2] Beam radiation for this surface, taking shading into account.
surf.
4 Fraction of diffuse [-] Number between 0 and 1 which gives the fraction of diffuse
visible for surf. radiation visible from the opening. 0 indicates no diffuse
radiation is visible and 1 indicates that all the shading has no
influence (i.e., all the diffuse radiation normally visible by the
window is indeed visible).
5 Shaded diffuse rad. on [kJ/hr.m2] Diffuse radiation for this surface, taking shading into account.
surf.
6 Shaded total rad. for [kJ/hr.m2] Total radiation for this opening, taking shading into account.
surf.
7 Fraction of beam [-] Flag = 1 if beam radiation is visisble for this opening, otherwise
visible on horiz. for = 0.
mask
8 Shaded beam rad. on [kJ/hr.m2] Beam radiation on the horizontal taking shading by this
horiz. for mask opening's mask into account.
9 Fraction of diffuse [-] Number between 0 and 1 which gives the fraction of diffuse
visible on horiz. for radiation visible from the horizontal given this opening's mask. 0
mask indicates no diffuse radiation is visible and 1 indicates that all the
shading has no influence. (i.e., all the diffuse radiation normally
visible by the window is indeed visible).
10 Shaded diffuse rad. on [kJ/hr.m2] Diffuse radiation on the horizontal taking shading by this
horiz. for mask opening's mask into account.
11 Shaded total rad. on [kJ/hr.m2] Total radiation on the horizontal taking shading by this opening's
horiz. for mask mask into account.
The two integrated value report variables are cycled, once for each opening.
4–474
TRNSYS 18 – Mathematical Reference
The two min/max report variables are cycled, once for each opening.
4.8.8.4. Nomenclature
- Surface angle measured in TRNSYS coordinates (for the northern hemisphere
South = 0, East = -90, West = 90, North = ±180)
- the slope of the plane containing an opening
- The angular height of an obstruction
i, j, k - Unit normal vectors in x, y and z respectively
S - The plane of an opening
nS - The unit normal vector for S
v - A vector representation of a surface angle
p - The projection of a surface angle vector in the plane S
- The angle between nS and p
h1 - The height of a spherical zone
h2 - The height of a spherical cap
4–475
TRNSYS 18 – Mathematical Reference
S1 - The surface area of a segment of the spherical zone defined by the plane of
the diameter, a height h1 and an angle
S2 - The surface area of a segment of the spherical cap defined by a height h2 and
NOTE: Underlined letters indicate a vector. Vectors appearing in equations have an arrow over their letter
representation.
Figure 4.8.8–1: Definition of surface angles () and obstruction height angles ()
For the case of a vertical opening, the plane containing the opening forms angles of 90° for all angles
departing to the rear of the window. In the case of a sloped plane, the angles departing toward the rear
of the opening are not always 90° but follow the function described by Eq. 4.8.8-12. The angle departing
directly behind the window forms an angle equal to the slope of the opening (Figure 4.8.8–2)
4–476
TRNSYS 18 – Mathematical Reference
Figure 4.8.8–2: Apparent Obstruction Angles Created by the Plane of a Sloped Opening
To find k, we dot both sides of the equation with nS. Since p and nS are perpendicular, their dot product is
0. nS dotted with itself is unity. Consequently, the formula for k is:
4–477
TRNSYS 18 – Mathematical Reference
The vector v exists in the plane of the horizontal so it only has x and y components. The formula for v comes
directly from the definition of the tangent in a right triangle:
𝑣 = tan 𝛼𝑖 + 𝑗 Eq. 4.8.8-5
expanding gives:
(tan 𝛽)2 tan 𝛽
{0,0,1} ∙ {tan 𝛼 , 1 − , }
1 + (tan 𝛽)2 1 + (tan 𝛽)2
2 2
Eq. 4.8.8-11
(tan 𝛽)2 tan 𝛽
= √02 + 02 + 12 √(tan 𝛼)2 + (1 − ) + ( ) cos 𝜎
1 + (tan 𝛽)2 1 + (tan 𝛽)2
Eq. 4.8.8-12 can be solved for the angle between the projection of a surface angle in S and a vertical line
(the normal to the horizontal plane). The angle is subtracted from 90 to arrive at the angle that the
projection makes with the horizontal plane. The result is called At this stage, we have a set of apparent
obstruction height angles for the plane of the opening. This set is compared with the data provided in the
file for each surface angle .
There is of course one more complication. Simply comparing two obstruction heights and dividing them to
find the fraction of sky that remains visible for that surface angle does not take into account the fact that
each surface angle in reality represents a wedge of sky; an obstruction angle height of = 45° does not
mean that for the given , half the sky is visible. Instead, we need to compare the two surface areas S1
and S2 as shown in Figure 4.8.8–4.
4–478
TRNSYS 18 – Mathematical Reference
Furthermore, a right triangle is formed by the vertical axis of the sphere, a radius and the plane containing
the base of the segment S2. Consequently, it can be written that:
ℎ1 = 𝑟 cos(2𝜋 − 𝜃) Eq. 4.8.8-15
in which is in radians.
The areas S1 (a segment of a spherical zone) and S2 (a segment of a spherical cap) both have the same
basic formula. is measured in radians. :
𝑆1 = 𝛾𝑟ℎ1
Eq. 4.8.8-16
𝑆2 = 𝛾𝑟ℎ2
Using the results of equations Eq. 4.8.8-14, Eq. 4.8.8-15 and Eq. 4.8.8-16, Eq. 4.8.8-13 can be rewritten
as:
𝑓 = 1 − 𝑐𝑜𝑠(2𝜋 − 𝜃) Eq. 4.8.8-17
is again in radians
Now that all the math is in place, two sums over the set of surface angles () are made and divided. The
numerator contains the set angles from the data file as applied to equation Eq. 4.8.8-17. The denominator
contains the set of angles found using Eq. 4.8.8-12 as applied to equation Eq. 4.8.8-17:
∑𝜋𝛼=−𝜋 1 − cos(2𝜋 − 𝜃𝑠ℎ𝑎𝑑𝑒𝑑 )𝛼
𝑓= Eq. 4.8.8-18
∑𝜋𝛼=−𝜋 1 − cos(2𝜋 − 𝜃𝑢𝑛𝑠ℎ𝑎𝑑𝑒𝑑 )𝛼
4–479
TRNSYS 18 – Mathematical Reference
slopes, the entire list of opening azimuths, and the entire list of surface angles must each fit on its own line
in the external data file.
The maximum number of characters on a single line that can be read by TRNSYS in either the Input file or
an external file is set in the TrnsysConstants.f90 file located in the TRNSYS Source Code Kernel directory.
The default line length is 1000 characters. Modification of this value necessitates that the TRNDll.dll file be
recompiled and relinked.
A few notes on file format may help avoid problems:
The surface angles for which angular obstruction heights () are provided correspond to absolute
azimuths; they are NOT specified relative to the azimuth of the opening.
Surface angles in the data file MUST cover the entire range of possible surface angles. In other words,
the first surface angle should always be –180. Surface angles must also have an equal step size
between them; it is not possible to add more precision to part of the surface angle range.
Opening ID numbers should be in increasing order.
The file format should be as follows:
OPEN_ID1 OPEN_ID2 … OPEN_Idn
SLP1 SLP2 … SLPn
AZ1 AZ2 … Azn
Alpha1 Alpha2 alpha3 … AlphaN (equally spaced, must cover whole range)
for OPEN_ID1 at = Alpha1 (Alpha 1 is ALWAYS -180)
for OPEN_ID1 at = Alpha2
…
for OPEN_ID1 at = AlphaN (AlphaN is ALWAYS 180-step where step is the
for OPEN_ID2 at = Alpha1 increment used between Alpha values)
for OPEN_ID2 at = Alpha2
…
for OPEN_ID2 at = AlphaN
…
for OPEN_IDn at = Alpha1
for OPEN_IDn at = Alpha2
…
for OPEN_IDn at = AlphaN
Example
See the files in ..\Examples\Data Files\Type67*.* for full examples with more openings (or orientations).
In the example here below line 4 is shortened by replacing a few actual values with "…" In the real file all
values need to be specified
4–480
TRNSYS 18 – Mathematical Reference
1 Mode for cloudiness [-] Specify 0 if the cloudiness factor should be calculated within the
factor Type (based on ratio of diffuse to global radiation), or specify 1 if
the cloudiness factor is to be provided as an input to the model.
This parameter should be locked to 1 for Proforma 69a and to 0 for
Proforma 69b.
2 Height over sea level [m] The altitude of the location (0 = sea level).
INPUTS
2 Dew point temperature [C] The dew point temperature at the location.
at ambient conditions
3 Beam radiation on the [kJ/hr-m2] The beam radiation per unit area on the horizontal plane at the
horizontal location.
4 Diffuse radiation on the [kJ/hr-m2] The diffuse radiation per unit area on the horizontal plane at the
horizontal location.
If Mode (parameter 1) = 0
5 Cloudiness factor – sky [-] The fraction of the sky that is covered by clouds. 0 = clear sky, 1 =
fully cloud-covered sky.
OUTPUTS
1 Fictive sky temperature [C] An approximate or equivalent ‘sky temperature’ useful for
calculating long-wave radiation losses from buildings, solar
collectors, and other objects, especially at nighttime.
2 Cloudiness factor of [-] For Type 69b, this is the value calculated internally for the
the sky cloudiness factor of the sky, as a function of the ratio of diffuse to
global radiation. 0 = clear sky, 1 = fully cloud-covered sky. For
Type 69a, this is simply Input 5.
Cloudiness Factor [-] Whether the cloudiness factor of the sky is read from a data file or
Calculation calculated within the Type
4–481
TRNSYS 18 – Mathematical Reference
4.8.9.4. Nomenclature
CCover [0..1] cloudiness factor of the sky
EDif [kJ/hr.m2] diffuse radiation on the horizontal
EDir [kJ/hr.m2] beam radiation on the horizontal
EGlob,h [kJ/hr.m2] total radiation on the horizontal
g [m/s2] gravitational acceleration
h [m] elevation above sea level
patm [atm] atmospheric pressure
p0 [atm] atmospheric pressure at the height ho
0 [kg/m3] air density at the height ho
0 [0..1] emittance of the clear sky
Tamb [°C] ambient temperature
Tsat [°C] dew point temperature at ambient conditions
Tsky [°C] sky temperature
4–482
TRNSYS 18 – Mathematical Reference
The atmospheric pressure at the user-specified elevation is determined according the barometric height
formula for the location in question:
𝑔𝜌0 ℎ
𝑝𝑎𝑡𝑚 = 𝑝0 𝑒 𝑝0 Eq. 4.8.9-2
Note that if the atmospheric pressure being given to the model as an input is already corrected for elevation
(i.e. is the elevation at the site) then the elevation parameter should be set to zero to avoid a double
correction. The emittance of the clear sky can be derived by the saturation temperature (T sat) corresponding
the ambient conditions (temperature and air humidity) [1]:
𝑇𝑑𝑝 𝑇𝑑𝑝 2 𝑡𝑖𝑚𝑒
𝜀0 = 0.711 + 0.005 ( ) + 7.3𝑥10−5 ( ) + 0.013 cos (2𝜋 ) + 12𝑥10−5 (𝑝𝑎𝑡𝑚 − 𝑝0 ) Eq. 4.8.9-3
100 100 24
where the variable time corresponds to the hour of the day.
The effective sky temperature can then be determined by [1]:
𝑇𝑠𝑘𝑦 = 𝑇𝑎𝑚𝑏 (𝜀0 + 0.8(1 − 𝜀0 )𝐶𝑐𝑜𝑣𝑒𝑟 )0.25 Eq. 4.8.9-4
4.8.9.6. References
[1] M. Martin, P. Berdahl, Characteristics of Infrared Sky Radiation in the United States, Lawrence Berkeley
Laboratory, University of California - Berkeley, Solar Energy Vol. 33, No. 3/4, pp. 321-336, 1984.
[2] Kasten Czeplak, Solar Energy Vol. 24, S. 177 - 189, Pergamon Press Ltd.
4–483
TRNSYS 18 – Mathematical Reference
1 Number of temperature [-] The number of temperatures that will be output from the model.
nodes For each output temperature desired, the user has to specify the
depth at which the output temperature should be calculated. These
depths should be entered in parameters 8 to 7 + N, where N is the
number of temperature nodes (this parameter).
2 Mean surface [C] The mean (average) surface temperature of the ground during the
temperature year. The temperature of the ground at an infinite depth will be this
temperature. This temperature is typically the average annual air
temperature for the given location.
3 Amplitude of surface [deltaC] The amplitude of the surface temperature function throughout the
temperature year. The maximum temperature of the surface will be TMEAN
(Parameter 2) +TAMPL (this parameter).
4 Time shift [day(s)] The time difference (in days) between the beginning of the
calendar year and the occurrence of the minimum surface
temperature. For example, if the coldest day of the typical year is
February 20, this parameter would be 50 (31 days in January + 20
days in February - 1 for the first of the year).
5 Soil thermal [kJ/hr-m-K] The thermal conductivity of the soil for which the temperature is
conductivity being calculated. The Type assumes uniform properties throughout
the soil.
6 Soil density [kg/m3] The density of the soil for which the temperature is being
calculated. The Type assumes uniform properties throughout the
soil.
7 Soil specific heat [kJ/kg-K] The specific heat of the soil for which the temperature is being
calculated. The Type assumes uniform properties throughout the
soil.
8 Depth at point (N) [m] The depth of the soil at which the temperature for this node should
be evaluated. 0=Surface.
OUTPUTS
1 Soil temperature at [C] The soil temperature at the specified depth for this node.
node (N)
4–484
TRNSYS 18 – Mathematical Reference
Depth at Point [m] The depth of the soil at which the temperature should be evaluated.
0=Surface. This field cycles for as many soil depths as are specified.
Temperature at Soil [C] Output corresponding to soil layer (Output 1 is 1st soil depth, Output 2 is
Depth 2nd soil depth, and so forth). This field cycles for as many soil depths as
are specified.
4.8.10.4. Nomenclature
T [ºC] Temperature
Tmean [ºC] Mean surface temperature (average air temperature)
Amplitude of surface temperature (maximum air temperature minus mean air
Tamp [ºC]
temperature)
Depth [m] Depth below surface
[m2/day] Thermal diffusivity of the ground (soil)
tnow [day] Current day of the year
tshift [day Day of the year corresponding to the minimum surface temperature
Tinitial [ºC] initial temperature
4–485
TRNSYS 18 – Mathematical Reference
In the above equation is the thermal diffusivity of the soil. It is computed inside the model using:
𝑘
𝛼= Eq. 4.8.10-2
𝜌𝐶𝑝
in which k is the soil’s thermal conductivity, rho is the soil density and Cp is the soil specific heat.
In absence of a measured value, Tmean (the mean surface temperature) may be taken as the average annual
air temperature.
The Kasuda equation results in a distribution of temperature with respect to time for different values of soil
depth and for a given climate as shown in Figure 4.8.10–1
30
Depth=0
28
26 Depth=1
Ground Temperature
24
22 Depth=3
Depth=50
20
18
16
14
12
10
0 52 104 156 209 261 313 365
Day of the Year
Figure 4.8.10–1: Temperature Profiles as a Function of Depth
The range of temperatures generated by this equation are shown in Figure 4.8.10–2. Line WI shows one
extreme that the temperature profile assumes during the winter season. Line SU shows the other extreme
that the temperature profile assumes during the summer. In between the summer and winter extremes,
the ground temperature profile will lie between the two extremes. In the shoulder seasons (spring (SP) and
fall (FA)), the surface is heated and cooled more quickly than the lower depths; resulting in the 'humped'
distributions shown in Figure 4.8.10–2
4–486
TRNSYS 18 – Mathematical Reference
SP FA
WI SU
Increasing
depth
Figure 4.8.10–2: Seasonal Temperature Distributions as a Function of Depth
4.8.10.6. References
[1] ASHRAE. Chapter 31- Geothermal Energy. In: ASHRAE Handbook: Heating, Ventilating and Air-
Conditioning APPLICATIONS. 1999.
[2] Kasuda, T., and Archenbach, P.R. "Earth Temperature and Thermal Diffusivity at Selected Stations in
the United States", ASHRAE Transactions, Vol. 71, Part 1, 1965
4–487
TRNSYS 18 – Mathematical Reference
1 Surface Type [-] 1 = Horizontal surface, 2 = Vertical surface. Value is positive if the
default constants and exponents should be used in the Nusselt
number correlations, negative if the user will supply the coefficients
for these equations. Use the correct proforma for the surface type
and coefficient values desired, and do not change this parameter.
2 Number of surfaces [-] The number of surfaces for which convection coefficients should be
calculated.
If SurfaceType (Parameter 1) = -1
3 Constant for floor [-] The constant K1 in the equation conv = K1 (Tsurf – Tair)e1 ,
warmer than air where conv is the convection coefficient and Tsurf and Tair are
the surface and air temperatures, respectively. This constant will be
used for floors when the floor surface is warmer than the air.
4 Exponent for floor [-] The exponent e1 in the equation conv = K1 (Tsurf – Tair)e1 ,
warmer than air where conv is the convection coefficient and Tsurf and Tair are
the surface and air temperatures, respectively. This exponent will
be used for floors when the floor surface is warmer than the air.
5 Constant for ceiling [-] The constant K1 in the equation conv = K1 (Tsurf – Tair)e1 ,
warmer than air where conv is the convection coefficient and Tsurf and Tair are
the surface and air temperatures, respectively. This constant will be
used for ceilings where the ceiling surface is warmer than the air.
6 Exponent for ceiling [-] The exponent e1 in the equation conv = K1 (Tsurf – Tair)e1 ,
warmer than air where conv is the convection coefficient and Tsurf and Tair are
the surface and air temperatures, respectively. This constant will be
used for ceilings where the ceiling surface is warmer than the air.
7 Constant for floor [-] The constant K1 in the equation conv = K1 (Tsurf – Tair)e1 ,
cooler than air where conv is the convection coefficient and Tsurf and Tair are
the surface and air temperatures, respectively. This constant will be
used for floors when the floor surface is cooler than the air.
8 Exponent for floor [-] The exponent e1 in the equation conv = K1 (Tsurf – Tair)e1 ,
cooler than air where conv is the convection coefficient and Tsurf and Tair are
the surface and air temperatures, respectively. This exponent will
be used for floors when the floor surface is cooler than the air.
4–488
TRNSYS 18 – Mathematical Reference
9 Constant for ceiling [-] The constant K1 in the equation conv = K1 (Tsurf – Tair)e1 ,
cooler than air where conv is the convection coefficient and Tsurf and Tair are
the surface and air temperatures, respectively. This constant will be
used for ceilings where the ceiling surface is cooler than the air.
10 Exponent for ceiling [-] The exponent e1 in the equation conv = K1 (Tsurf – Tair)e1 ,
cooler than air where conv is the convection coefficient and Tsurf and Tair are
the surface and air temperatures, respectively. This constant will be
used for ceilings where the ceiling surface is cooler than the air.
If SurfaceType (Parameter 1) = -2
3 Constant for [-] The constant Kv1 in the equation conv,vertical = Kv1
alpha_conv calculation, (Tsurfvertical –Tairvertical)ev1 , where conv,vertical is the
vertical surface
convection coefficient for the vertical surface and Tsurf,vertical and
Tair,vertical are the vertical surface temperature and air
temperature in the vicinity of the vertical surface, respectively.
4 Exponent for [-] The exponent ev1 in the equation conv,vertical = Kv1
alpha_conv calculation, (Tsurfvertical –Tairvertical)ev1 , where conv,vertical is the
vertical surface
convection coefficient for the vertical surface and Tsurf,vertical and
Tair,vertical are the vertical surface temperature and air
temperature in the vicinity of the vertical surface, respectively.
INPUTS
Cycle (based Air temperature near [C] The temperature of the ambient air near the surface (if the
on PAR 2) floor surface surface is a floor). This input cycles for as many surfaces
as are specified.
Cycle (based Air temperature near [C] The temperature of the ambient air near the surface (if the
on PAR 2) ceiling surface surface is a ceiling). This input cycles for as many
surfaces as are specified.
Cycle (based Temperature of floor [C] The temperature of the surface (if the surface is a floor).
on PAR 2) surface This input cycles for as many surfaces as are specified.
Cycle (based Temperature of ceiling [C] The temperature of the surface (if the surface is a ceiling).
on PAR 2) surface This input cycles for as many surfaces as are specified.
Cycle (based Air temperature in front [C] The temperature of the ambient air in front of the vertical
on PAR 2) of vertical surface surface. This input cycles for as many surfaces as are
specified.
Cycle (based Air temperature behind [C] The temperature of the ambient air behind the vertical
on PAR 2) vertical surface surface. This input cycles for as many surfaces as are
specified.
Cycle (based Temperature of front of [C] The temperature of the front of the surface. This input
on PAR 2) vertical surface cycles for as many surfaces as are specified.
4–489
TRNSYS 18 – Mathematical Reference
Cycle (based Temperature of back of [C] The temperature of the back of the surface. This input
on PAR 2) vertical surface cycles for as many surfaces as are specified.
OUTPUTS
Cycle (based Convective coefficient [kJ/hr-m2-K] The convective coefficient for the floor surface, per unit
on PAR 2) for floor surface area. This output cycles for as many surfaces as are
specified.
Cycle (based Convective coefficient [kJ/hr-m2-K] The convective coefficient for the ceiling surface, per unit
on PAR 2) for ceiling surface area. This output cycles for as many surfaces as are
specified.
Cycle (based Convective coefficient [kJ/hr-m2-K] The convective coefficient for the front side of the vertical
on PAR 2) for front side of surface surface, per unit area. This output cycles for as many
surfaces as are specified.
Cycle (based Convective coefficient [kJ/hr-m2-K] The convective coefficient for the back side of the vertical
on PAR 2) for back side of surface surface, per unit area. This output cycles for as many
surfaces as are specified.
Convective coefficient [kJ/hr-m2-K] 1st Output corresponding to the given surface. This field cycles for as
for floor surface many surfaces as are specified.
Convective coefficient [kJ/hr-m2-K] 2nd Output corresponding to the given surface. This field cycles for as
for ceiling surface many surfaces as are specified.
Convective coefficient [kJ/hr-m2-K] 1st Output corresponding to the given surface. This field cycles for as
for front side of surface many surfaces as are specified.
Convective coefficient [kJ/hr-m2-K] 2nd Output corresponding to the given surface. This field cycles for as
for back side of surface many surfaces as are specified.
4–490
TRNSYS 18 – Mathematical Reference
4.8.11.4. Nomenclature
conv [W/m2.K]* convective heat transfer coefficient
Tsurf [C] surface temperature
Tair [C] air temperature
K [-] correlation coefficient
e [-] correlation exponent
*Note: while equations for convection coefficient in the Detailed Description below are in units of [W/m 2-
K], the outputs of the Type will be in the default TRNSYS units of [kJ/hr-m2-K].
The above relationship is valid assuming that the surface temperature is higher than the surrounding air
temperature. If this is not the case, then the relationship given below is used [1]:
0.25
𝛼𝑐𝑜𝑛𝑣 = 1.87(𝑇𝑠𝑢𝑟𝑓 − 𝑇𝑎𝑖𝑟 ) Eq. 4.8.11-2
There are, of course, many alternative correlations possible to calculate the heat transfer coefficients. The
user can choose any alternative by setting PARAMETER 1 to –1. In this case, eight additional
PARAMETERS are needed in order to define the convection coefficient (K1, e1, K2, and e2 are required
for both ceiling and floor surfaces). If the temperature difference is positive, the correlation is:
𝑒1
𝛼𝑐𝑜𝑛𝑣 = 𝐾1 (𝑇𝑠𝑢𝑟𝑓 − 𝑇𝑎𝑖𝑟 ) Eq. 4.8.11-3
For vertical surfaces the routine uses the following default equation [1]:
0.25
𝛼𝑐𝑜𝑛𝑣,𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 = 1.5(𝑇𝑠𝑢𝑟𝑓,𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 − 𝑇𝑎𝑖𝑟,𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 ) Eq. 4.8.11-5
If, however, PAR(1) is set to –2, 2 additional PARAMETERS have to be defined, resulting in the following :
𝑒𝑣1
𝛼𝑐𝑜𝑛𝑣,𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 = 𝐾𝑣1 (𝑇𝑠𝑢𝑟𝑓,𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 − 𝑇𝑎𝑖𝑟,𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 ) Eq. 4.8.11-6
The user is able to use coefficients that can be found in literature or by measurements.
4.8.11.6. References
[1] Glück, Bernd. Waermetechnisches Raummodell. C.F.Mueller-Verlag 1997. pages 66-67.
4–491
TRNSYS 18 – Mathematical Reference
4–492
TRNSYS 18 – Mathematical Reference
1 Number in series [-] Specifies how many collectors are connected in a series
arrangement (outlet of first collector = inlet of second collector etc.).
Set this parameter to 1 if all collectors in the array are in parallel
(fed from a common manifold). The model assumes each parallel
chain of collectors (if any) has the same number of collectors in
series.
2 Collector area [m2] The total area of the solar collector array, consistent with the
supplied efficiency parameters (typically efficiency values are
calculated based on gross area, not net area).
3 Fluid specific heat [kJ/kg-K] The specific heat of the collector fluid.
1= the efficiency parameters are given as a function of the inlet
4 Efficiency mode [-]
temperature; 2= the efficiency parameters are given as a function
of the average temperature; 3= the efficiency parameters are given
as a function of the outlet temperature. Parameters are commonly
given as a function of inlet temperature in the United States and as
a function of average temperature in Europe.
5 Tested flow rate [kg/hr-m2] The flow rate (per unit collector area) at which the collector
efficiency test was performed.
The y-intercept (a0) of the following collector efficiency equation:
6 Intercept efficiency [-]
Efficiency = a0 - a1*(T-Tamb)/I_T- a2 * ((T-Tamb)2)/I_T , where
I_T = Insolation per unit area;
T_amb = ambient air temperature;
4–493
TRNSYS 18 – Mathematical Reference
9 Optical mode [-] Sets how the incidence angle modifier (IAM) will be calculated by
the component. 1= no incidence angle modification; 2=incidence
angle modifiers will be determined by 2nd order equation as
function of incidence angle; 3= incidence angle modifiers are to be
interpolated from an external data file as a function of incidence
angle; 4=incidence angle modifiers will be calculated from
properties of collector cover(s); 5= Biaxial (transverse and
longitudinal) incidence angle modifiers are to be interpolated from
an external data file as a function of incidence angle.
10 1st order IAM [-] This parameter is b0 in the equation IAM = 1 - b0 * S - b1 * S2,
where S = (1/cos(incidence angle)-1).
11 2nd order IAM [-] This parameter is b1 in the equation IAM = 1 - b0 * S - b1 * S2,
where S = (1/cos(incidence angle)-1).
10 Logical unit of data file [-] The logical unit through which the incidence angle modifier data
will be read. This number is automatically assigned and should not
be changed unless by advanced TRNSYS users.
11 Number of rows in file [-] The number of values of incidence angle, with associated IAM's,
contained in the data file (must be between 2 and 10).
10 Plate absorptance [-] The absorptance of the collector absorber plate, or the ratio of
absorbed radiation to total radiation on the plate. Typical values of
plate absorptance can be found from: Solar Engineering of
Thermal Processes, Duffie and Beckman, Wiley-Interscience, New
York, 1980.
4–494
TRNSYS 18 – Mathematical Reference
11 Number of identical [-] The number of identical glazings (or covers – typically glass or
covers plastic) on the solar collector; used to calculate the transmittance-
absorptance product.
12 Index of refraction [-] Index of refraction of one glazing covering the solar collector
13 Extinction coefficient- [-] The product of the extinction coefficient and cover thickness for
thickness product one glazing covering the solar collector
10 Logical unit of data file [-] The logical unit through which the incidence angle modifier data
will be read. This number is automatically assigned and should not
be changed unless by advanced TRNSYS users.
11 Number of rows in file [-] The number of values of incidence angle, with their associated
biaxial modifier data, contained in the external data file (must be
between 2 and 10).
INPUTS
1 Inlet temperature [°C] The temperature of the fluid entering the solar collector
2 Inlet flowrate [kg/hr] The mass flow rate of the fluid entering the solar collector array.
Note that this is the flowrate to the entire array, not the flowrate to
an individual collector. Flow will be equally divided amongst parallel
collectors (or chains of collectors).
3 Ambient temperature [°C] The temperature of the ambient air surrounding the collector
4 Incident radiation [kJ/hr-m2] The total (beam + diffuse) radiation incident on the plane of the
solar collector, per unit area
5 Total horizontal [kJ/hr-m2] The total radiation (beam + diffuse) on a horizontal surface, per unit
radiation area.
6 Horizontal diffuse [kJ/hr-m2] The diffuse radiation on a horizontal surface, per unit area
radiation
7 Ground reflectance [-] The reflectance of the surface above which the solar collector is
positioned. Typical values are 0.2 for ground not covered by snow
and 0.7 for snow-covered ground. The reflectance is the ratio of
reflected radiation to total incident radiation and therefore must be
between 0 and 1.
9 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
4–495
TRNSYS 18 – Mathematical Reference
5 Total diffuse radiation [kJ/hr-m2] The total (sky + ground-reflected) radiation incident on the plane of
the solar collector, per unit area
7 Zenith angle [degrees] The angle between the vertical and the line to the sun; the angle of
incidence of beam radiation on a horizontal surface.
8 Solar azimuth [degrees] The angular displacement from south of the projection of beam
radiation on the horizontal plane, with east negative and west
positive. 0° = from due south; -90° = from due east; 90° = from due
west.
9 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
10 Collector azimuth [degrees] The deviation of the collector surface from the local meridian, with
zero due south, east negative, and west positive. 0° = facing due
south; -90° = facing due east; 90° = facing due west.
DERIVATIVES
OUTPUTS
1 Outlet temperature [°C] The temperature of the fluid exiting the solar collector array
2 Outlet flowrate [kg/hr] The flowrate of the fluid exiting the solar collector array. In this
component, the outgoing flow rate will always equal the incoming
flowrate.
3 Useful energy gain [kJ/hr] The rate of useful energy gain by the solar collector fluid:
Qu = mdot * Cp * (Tout - Tin)
4 Collector efficiency [-] The ratio of the collector’s useful energy gain (Output 3) to the total
incident radiation (beam + diffuse) on the surface of the collector
5 Incidence angle [-] The ratio of the transmittance-absorptance product of the collector
modifier (overall) at the given incidence angle over the transmittance-absorptance
product at normal incidence; the ratio of the total absorbed
radiation to the radiation that would have been absorbed if the
beam radiation were normal to the collector surface.
4–496
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
4–497
TRNSYS 18 – Mathematical Reference
The incidence angle modifier (or Kτα) versus incidence angle (θ) values may be easily entered into
and read from a data file (Optical Mode 3); if the values don’t extend to 90°, add a value of 0 at 90°
to prevent warnings at incidence angles greater than the largest angle specified.
Note the tested mass flow rate provided must be divided by collector area to obtain tested flow per
unit area (Parameter 5).
For theoretical calculation of incidence angle modifiers (Optical Mode 4): Typical values of plate
absorptance, extinction coefficient, and other optical properties for common collector materials can be
found from Solar Engineering of Thermal Processes1.
Continuity Checking: Make sure the specific heat specified for the collector fluid is the same as that
specified for any pipes, pumps, or storage tanks connected to the collector.
Limitations of This Model: Type 1 is a steady-state model; there is no capacitance accounted for in
the collector. There is also no accounting for phase change of the fluid (boiling) in this model; constant
fluid properties are assumed.
Comparison to Other Standard Collector Models: This model is best suited for collectors with a known
equation of efficiency vs. temperature difference/radiation ratio. To model a collector without a known
efficiency equation, but with known physical parameters (insulation thickness and properties, glazing
thickness and properties, etc.), see Type 73.
4.9.1.4. Nomenclature
A [m²] Total collector array aperture or gross area (consistent with
FR(), FRUL, FRUL/T and Gtest)
4–498
TRNSYS 18 – Mathematical Reference
The loss coefficient UL is not exactly constant with respect to temperature, so a better expression is obtained
by taking into account a linear dependency of UL versus (Ti-Ta) :
Qu T Ta F U Ti Ta
FR n FR UL i
2
Eq. 4.9.1-2
R L/T
A IT IT IT
a 0 a1
T a T 2 Eq. 4.9.1-3
2
IT IT
This is the general solar collector thermal efficiency equation used in Type 1. The thermal efficiency is
defined by three parameters: a0, a1 and a2. These three parameters are available for collectors tested
according to ASHRAE standards and rated by the Solar Rating and Certification Corporation (SRCC) 2, as
well as for collectors tested according to the European Standards on solar collectors (CEN) 3.
Note: It is important to make sure that collector area entered as a parameter matches the
area used when determining the values of a0, a1 and a2. Typically, efficiency curves are
provided for gross area in the US and aperture area in Europe
In the Hottel-Willier equation, T is equal to the difference between the collect inlet temperature (T i) and
the ambient temperature (Ta). Collector test reports sometimes provide the efficiency curve using either the
collector average temperature (Tav = (Ti+To)/2) or the collector outlet temperature (To) :
Ti Ti Ta
T Tav Tav Ta Eq. 4.9.1-4
T T T
o o a
The 1st formulation is usually preferred in the US, while the 2 nd one is used in most European documents.
Type 1 can use any of these definitions of the temperature difference, and the user can specify the a 0, a1
and a2 coefficients using any of the definitions. The TRNSYS subroutine FPRIME (distributed as a DLL)
calculates the fin efficiency factor for the collector, taking into account the number of collectors in series,
whether the efficiency equation is defined in terms of inlet, average, or outlet temperature, and changes in
fluid specific heat and flowrate between the rated conditions and the use conditions.
4–499
TRNSYS 18 – Mathematical Reference
I bT
b I 1cos d
n d 2 n g
I
1cos
2
g
Eq. 4.9.1-5
n
n IT
b 1 b 1 1 b 1 12
0 1 Eq. 4.9.1-6
n cos cos
Note: Some collector tests only provide the IAM value at one incidence angle, typically 50°. In such a case,
the recommended approach is to use Optical Mode 2, set b1 = 0, and calculate b0 using the equation above.
Optical mode 3
Values of ()b/()n versus incidence angle ( are supplied in an external data file. Mode 3 is for a collector
with a cover that is symmetrical in both longitudinal and transverse directions (such as a flat plate), so only
one incidence direction needs to be provided in the data file. The data consist of between 2 and 10 values
of incidence angles and modifiers.
The data file format is as follows (2 Na 10):
<Incidence angle 1> <Incidence angle 2> etc. Na values [0;90]
<IAM 1> IAM for angle 1
<IAM 2> IAM for angle 1
...
<IAM Na> IAM for angle Na
The first line gives the values of the independent variable (incidence angle) that will be used in the IAM
map. Then, the dependent variable (IAM) is provided for all values of the independent variable. Data are
read in free format. These data are read and interpolated by subroutine DYNAMICDATA (see the
Programmer's Guide for more information).
An example is shown below. An example is also provided in the main %TRNSYS18% directory, in the
Examples -> Data Files sub-directory.
Example
0 10 20 30 40 50 60 70 80 90 ! Angle values
1.000 ! IAM for incident angle 1 ( 0)
0.997 ! IAM for incident angle 2 (10)
0.988 ! IAM for incident angle 3 (20)
...
0.644 ! IAM for incident angle 8 (70)
4–500
TRNSYS 18 – Mathematical Reference
Optical mode 4
The TRNSYS function routine Tau_Alpha (see the Programmer’s Guide) is used to calculate incidence
angle modifiers for beam radiation in terms of angle of incidence and cover properties. The methodology
is derived from Solar Engineering of Thermal Processes1. See the Programmer’s Guide for further
elaboration on the procedure.
Optical mode 5
Values of (τα)b/(τα)n versus incidence angle (θ) are supplied in an external data file for both the
longitudinal (θL) and transverse (θT) directions. The incidence angle modifier used in the model is the
product of the modifiers in each direction. This approach allows for approximating incidence angle
modifiers for asymmetrical covers, such as tubes. Note that this mode only offers an approximation of
IAMs for these surfaces; see Type 71 for interpolating true bi-axial incidence angle modifier data
The data file format is as follows (2 Na 10):
<Incidence angle 1> <Incidence angle 2> etc. Na values [0;90]
<Longitudinal IAM 1> <Transverse IAM 1> IAMs for angle 1
<Longitudinal IAM 2> <Transverse IAM 2> IAMs for angle 2
...
<Longitudinal IAM Na> <Transverse IAM Na> IAMs for angle Na
The first line gives the values of the independent variable (incidence angle) that will be used in the IAM
map. Then, the dependent variables (longitudinal IAM, transverse IAM) are provided for all values of the
independent variable. Data are read in free format. These data are read and interpolated by subroutine
DYNAMICDATA (see the Programmer's Guide for more information).
An example is shown below. An example is also provided in the main %TRNSYS18% directory, in the
Examples -> Data Files sub-directory. (Note: these values are intended only to illustrate the use of Type 1;
they are not intended as typical or representative values).
Example
0 15 30 45 60 75 90 ! Angle values
1.00 1.00 ! Longitudinal and transverse IAMs for incidence angle 1 ( 0)
1.00 1.01 ! Longitudinal and transverse IAMs for incidence angle 2 (15)
0.98 1.03 ! Longitudinal and transverse IAMs for incidence angle 3 (30)
...
0.90 1.04 ! Longitudinal and transverse IAMs for incidence angle 8 (60)
0.71 1.02 ! Longitudinal and transverse IAMs for incidence angle 9 (75)
0.00 0.00 ! Longitudinal and transverse IAMs for incidence angle 10 (90)
ds 0 / 2 bn ( ) cos sin dd / 2 / 2 b
( ) cos sin dd
n Eq. 4.9.1-7
n / 2 /2 /2 sin 1 (cot / tan )
0
/2
cos sin dd
/ 2
/2
cos sin dd
For the ground-reflected diffuse radiation incidence angle modifiers, which are integrated over the surface
area of the ground projected onto the collector:
4–501
TRNSYS 18 – Mathematical Reference
These integrations are performed numerically, using the user-supplied IAM data for ()b/()n.
4.9.1.6. References
1. Beckman, W.A., and Duffie, J. A. Solar Engineering of Thermal Processes. Second Edition. New
York: John Wiley & Sons, Inc, 1991.
2. Solar Ratings and Certification Corporation (Website). Available at https://secure.solar-
rating.org/Certification/Ratings/RatingsSummaryPage.aspx Last accessed August 2015. Last accessed
August 2015.
4–502
TRNSYS 18 – Mathematical Reference
1 Collector area [m2] The area of the solar collector, consistent with the supplied
efficiency parameters (typically efficiency values are calculated
based on gross area, not net area).
The y-intercept (a0) of the following collector efficiency equation:
2 Intercept efficiency [-]
Efficiency = a0 - a1*(T-Tamb)/I_T, where
I_T = Insolation per unit area;
T_amb = ambient air temperature;
T=T_inlet.
a0 may also be called FrTan. NOTE: Unlike Type 1, Type 45 does
*not* allow the user to specify efficiency as a function of average or
outlet collector temperature.
The slope (a1) of the following collector efficiency equation:
3 Efficiency slope [kJ/hr-m2-K]
Efficiency = a0 - a1*(T-Tamb)/I_T, where
I_T = Insolation per unit area;
T_amb = ambient air temperature;
T=T_inlet
a1 may also be called FrUl. NOTE: Unlike Type 1, Type 45 does
*not* allow the user to specify efficiency as a function of average or
outlet collector temperature.
4 Tested flow rate [kg/hr-m2] The flow rate (per unit collector area) at which the collector
efficiency test was performed.
6 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
4–503
TRNSYS 18 – Mathematical Reference
The logical unit number of the file which contains the collector head
7 Logical unit [-]
vs. flowrate data (head is in meters of water). Every external file
that TRNSYS reads from or writes to must be assigned a unique
logical unit number in the TRNSYS input file. This number is
automatically assigned and should not be changed unless by
advanced TRNSYS users.
8 Number of data points [-] The number of data points of collector head vs. flowrate that are
contained in the external data file (must be between 2 and 10).
7 Internal pressure drop [-] When set < 0, this parameter indicates to the component
calculation subroutine that the presure drop should be calculated internally.
Do not change this parameter; use the other proforma for Type 45
if head pressure vs flowrate data will be supplied through a data
file.
8 Number of parallel [-] The number of parallel collector risers; used for flow vs head
collector risers calculations.
12 Number of collector [-] The number of equally-sized nodes that the collector will be divided
nodes into for the thermal head calculations.
13 Collector inlet to outlet [m] The vertical distance between the collector inlet and the collector
distance outlet.
14 Collector inlet to tank [m] The vertical distance between the outlet of the tank and the inlet of
outlet distance the collector.
15 Collector inlet diameter [m] The diameter of the inlet pipe of the collector.
16 Length of collector inlet [m] The length of the collector inlet pipe.
17 Number of inlet bends [-] The number of equivalent right-angle bends in the collector inlet
pipe.
18 Inlet pipe loss [kJ/hr-m2-K] The loss coefficient of the collector inlet pipe (including its
coefficient insulation).
21 Number of outlet [-] The number of equivalent right-angle bends in the collector outlet
bends piping.
4–504
TRNSYS 18 – Mathematical Reference
22 Outlet pipe loss [kJ/hr-m2-K] The loss coefficient of the collector outlet piping (including its
coefficient insulation).
23 Inlet position mode [-] Mode 1 = hot water enters the tank in a fixed location; the incoming
segment mixes with adjacent segments if the temperature is within
1/2 degree.
Mode 2 = the tank has variable inlet positions; new segments are
inserted at levels which produce no temperature inversions. This
mode allows for a maximum degree of stratification.
24 Tank volume [m3] The actual volume of the storage tank (not the nominal value).
25 Tank height [m] The height of the storage tank (if the tank is vertical), or the
diameter of the storage tank (if the tank is horizontal).
26 Height of collector [m] The vertical distance between the bottom of the storage tank and
return the inlet of the collector.
27 Fluid specific heat [kJ/kg-K] The specific heat of the fluid contained in the system.
28 Fluid density [kg/m3] The density of the fluid contained in the system.
29 Thermal conductivity [kJ/hr-m-K] The effective thermal conductivity of the fluid and the walls of the
storage tank (0 = no conduction between adjacent fluid nodes).
31 Overall loss coefficient [kJ/hr-K] The overall loss coefficient (UA) for the storage tank.
32 Insulation ratio [-] The ratio of the thickness of the top insulation to the side insulation
for vertical tanks, or the ratio of the insulation thickness of the top
insulation to the bottom insulation of a horizontal cylindrical tank
(set this ratio to 1 if the tank has a concentric insulation jacket).
34 Maximum heating rate [kJ/hr] The maximum rate at which energy can be added to the thermal
storage tank from the auxiliary heating element. If there is no
heating element in the tank, set this parameter to 0.
35 Auxiliary height [m] The height of the auxiliary heater element above the bottom of the
storage tank.
36 Thermostat height [m] The height of the thermostat for the auxiliary heater above the
bottom of the storage tank.
37 Set point temperature [°C] The set point temperature for the auxiliary heating element. The
thermostat will enable the heating element when the temperature
of the node containing the thermostat falls below (Tsetpoint –
Tdeadband), and it will continue to heat the fluid until it reaches the
set point temperature.
38 Temperature [°C] The dead band temperature difference for the auxiliary heating
deadband element. The thermostat will enable the heating element when the
temperature of the node containing the thermostat falls below
4–505
TRNSYS 18 – Mathematical Reference
39 Flue loss coefficient [kJ/hr-K] The overall loss coefficient (UA) for heat loss to the flue when the
auxiliary heater is off. This parameter is used to model gas heated
storage tanks and should be set to zero if there is no flue.
INPUTS
1 Total incident radiation [kJ/hr-m2] The total (beam + diffuse) radiation incident on the plane of the
solar collector, per unit area
2 Total horizontal [kJ/hr-m2] The total horizontal radiation (beam + diffuse) per unit area.
radiation
3 Horizontal diffuse [kJ/hr-m2] The diffuse radiation (both from the sky and ground-reflected) on a
radiation horizontal surface, per unit area.
4 Incidence angle [degrees] Angle of incidence of beam radiation on the collector surface.
5 Ground reflectance [-] The reflectance of the surface above which the solar collector is
positioned. Typical values are 0.2 for ground not covered by snow
and 0.7 for snow-covered ground. The reflectance is the ratio of
reflected radiation to total incident radiation and therefore must be
between 0 and 1.
6 Ambient temperature [°C] The temperature of the ambient air surrounding the collector. Note
this may be different from the environment surrounding the storage
tank (Input 9 below).
7 Replacement [°C] The temperature of the replacement fluid flowing into the bottom of
temperature the storage tank (temperature of the fluid displacing the load
flowrate, Input 8 below).
8 Load flowrate [kg/hr] The flowrate of replacement fluid flowing into the bottom of the
storage tank. An equal amount of fluid is assumed to flow from the
top of the tank to meet the load.
9 Environment [°C] The temperature of the environment in which the storage tank is
temperature located. If the storage tank is outside (with the solar collector),
connect the same input as used for Input 6 above.
10 Control signal [-] The control signal for the auxiliary heating element. The available
power for the heating element will be this input multiplied by the
maximum power for the element. If an auxiliary heater is not
desired for the simulation, set this input to a constant of 0.0 or set
the maximum power for the element to 0.0
DERIVATIVES
OUTPUTS
1 Temperature to tank [°C] The temperature of the fluid exiting the solar collector and entering
the storage tank.
4–506
TRNSYS 18 – Mathematical Reference
2 Useful energy from [kJ/hr] The rate of useful energy gain by the solar collector fluid:
collector
Quseful = mdot,collector * Cp * (Tout,collector – Tin,collector).
(Note, useful gain does not include pipe thermal gains or losses).
3 Temperature to [°C] The temperature of the fluid exiting the bottom of the storage tank
collector and returning to the collector; the temperature of the bottom node
of the storage tank.
4 Flowrate through [kg/hr] The flowrate of the fluid exiting the solar collector and entering the
collector storage tank; or, the flow rate of fluid exiting the bottom of the
storage tank to return to the collector.
5 Temperature to load [°C] The temperature of the fluid exiting the top of the storage tank and
delivered to the service load; the temperature of the top node of the
storage tank.
6 Flowrate to load [kg/hr] The flow rate of fluid exiting the tank at the top to meet the service
load. Same as input load flowrate (Input 8).
7 Thermal losses [kJ/hr] The rate of thermal energy loss to the environment from the
storage tank (not including the piping to and from the tank or the
losses from the collector).
8 Energy rate to load [kJ/hr] The rate at which energy is removed from the tank to supply the
load:
Qload = mdot,load * Cp * (Ttop,tank - Treplacement)
9 Internal energy change [kJ] The internal energy change of the tank, relative to its initial
condition. Note: this output should not be integrated, as it is an
energy quantity (not an energy rate).
10 Auxiliary heating rate [kJ/hr] The rate at which energy is added to the thermal storage tank by
the auxiliary heater.
11 Energy rate from heat [kJ/hr] The rate of energy transfer from the collector to the storage tank:
source
Qin = mdot,collector * Cp * (Ttank,top – Ttank,bottom)
12 Average tank [°C] The average temperature of the fluid in the storage tank over the
temperature timestep.
13 Incidence angle [-] The ratio of the transmittance-absorptance product of the collector
modifier (overall) at the given incidence angle over the transmittance-absorptance
product at normal incidence; the ratio of the total absorbed
radiation to the radiation that would have been absorbed if the
beam radiation were normal to the collector surface.
4–507
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
4–508
TRNSYS 18 – Mathematical Reference
systems in which the bulk of the mass of the fluid is held in the collector itself. There is also no
accounting for phase change of the fluid (boiling) in this model.
4.9.2.4. Nomenclature
A Collector area
bo Incidence angle modifier constant from ASHRAE 93-77 test result
Cp Specific heat of working fluid
di, do Diameter of collector inlet and outlet pipes
dH Diameter of collector headers
dR Diameter of collector risers
f Friction factor for flow in pipes
F'UL Product of the collector efficiency factor, F', and heat loss coefficient, UL
FRUL Slope of the collector efficiency versus (Tci - Ta)/IT curve
FR()n Intercept of the collector efficiency versus (Tci - Ta)/IT curve
FR() Intercept efficiency corrected for non-normal incidence
g Gravitational constant
G Collector flowrate per unit area
Gtest Collector flowrate per unit area during efficiency test
Hc Vertical distance between outlet and inlet of collectors
Ha Height of auxiliary heating element above bottom of tank
Ho Vertical distance between outlet of tank and inlet to collector
HR Height of collector return above bottom of tank
Ht Height of tank
Hth Height of auxiliary thermostat above bottom of tank
hLi Frictional head loss in the piping
I Horizontal total radiation per unit area
IbT Beam radiation per unit area
Id Horizontal diffuse radiation per unit area
Ig Diffuse reflected ground radiation per unit area
IT Total incident radiation per unit area
kw Effective thermal conductivity of water and tank
k i, k o Number of velocity heads lost by flow in bends, tees, and restrictions of inlet
and outlet
Li, Lo Length of inlet and outlet piping
Lh Length of collector headers
LU Fortran logical unit containing collector frictional head loss data
m Thermosyphon flowrate
mL Load flowrate
NB1,NB2 Number of equivalent right angle bends in inlet and outlet connecting pipes
NDATA Number of lines of data in LU
NR Number of parallel collector risers
Nx Number of equal sized collector nodes
Q AUX Rate of auxiliary energy Input to tank
4–509
TRNSYS 18 – Mathematical Reference
At any instant of time, the sum of the pressure changes around the loop must equal zero:
4–510
TRNSYS 18 – Mathematical Reference
i N i N
i hi i hLi Eq. 4.9.2-2
i1 i1
The thermosiphon model involves the numerical solution for the flow rate that satisfies the above equation.
The density of the fluid is evaluated at the local temperature using a correlation for water. Temperatures
and frictional head losses in each node of the collector and pipes are determined as described below.
The collector inlet and outlet pipes are each considered to be single nodes, with negligible thermal
capacitance.
A first law analysis yields the following expressions for average and outlet temperatures of these pipes:
mCp UA p
Tp = Ta + Tpi - Ta 1-exp - Eq. 4.9.2-3
UA p mCp
UA p
Tpo = Ta + (Tpi - Ta) . exp - Eq. 4.9.2-4
mCp
4–511
TRNSYS 18 – Mathematical Reference
b. Sudden Contraction
k = -.3259 (D2/D1)4 -.1784 (D2/D1)2 + 0.5
where D1 = inlet diameter, D2 = outlet diameter
5. Collector header pressure drop (if collector friction data is not specified) - average of pressure
change along inlet and outlet headers for equal mass flow in each riser:
NR
NR i 1
S1 Eq. 4.9.2-6
i1 NR2
NR
NR i 1
S2 Eq. 4.9.2-7
i1 NR2
f LhV2h
A11 = Eq. 4.9.2-8
2 dh
where f = 64/Re with Re based on inlet header velocity and temperature
THERMOSIPHON HEAD
The net weight of fluid in the collector is found by dividing the collector into Nx (user specified) equally sized
nodes. The thermal performance is modeled according to the Hottel-Whillier equation (Morrison and
Ranatunga, 1980). The temperature at the midpoint of any collector node, k, is:
I F () I F () k - 1/2
Tck = Ta + T R + Tci - Ta - T R exp F'U L Eq. 4.9.2-11
FRUL FR UL G Cp Nx
The collector parameter F'UL is calculated from the value of FRUL and G at test conditions:
4–512
TRNSYS 18 – Mathematical Reference
This procedure neglects changes in F' and UL due to changes in the fluid heat transfer coefficient. The
parameter FR() is determined from the intercept efficiency at normal incidence F R()n, using an
incidence angle modifier, ()/()n. In general:
b 1+cos s 1-cos g
IbT + Id + Ig
n 2 n 2 n Eq. 4.9.2-13
=
n IT
The incidence angle modifier for beam radiation is given in terms of incidence angle and a user specified
constant, bo, (ASHRAE 93 test result) as:
b
= 1 - bo 1 - 1 Eq. 4.9.2-14
n cos
The incidence angle modifiers for both diffuse sky radiation, ()s/()n, and ground reflected diffuse
radiation, ()g/()n, are determined in all modes by integrating beam IAMs over the sky dome and over
the ground projected onto the collector surface, respectively: Isotropic diffuse radiation is assumed for this
analysis. See the integration equation below for integrating sky diffuse incidence angle modifiers over the
sky dome:
/ 2 / 2 b /2 sin 1 (cot / tan ) b ( ) cos sin dd
ds
0 ( ) cos sin dd
/2 / 2
/2 n
n Eq. 4.9.2-15
n / 2 /2 /2 sin 1 (cot / tan )
cos sin dd
0 /2 / 2
/2
cos sin dd
For the ground-reflected diffuse radiation incidence angle modifiers, which are integrated over the surface
area of the ground projected onto the collector:
/2 /2 b ( ) cos( ) sin( ) dd
dg / 2 sin 1
(cot / tan )
n Eq. 4.9.2-16
n /2
/2
cos( ) sin( ) dd
/ 2 sin 1 (cot / tan )
These integrations are performed numerically, using the user-supplied IAM data for ()b/()n.
The overall useful energy collection is:
Qu = r Ac (FR() IT - FRUL (Tci - Ta)) Eq. 4.9.2-17
Where:
G 1-exp - F'U L
F use GC p
r= R = Eq. 4.9.2-18
F R test G test 1-exp - F'U L
G te st Cp
From a simple energy balance, the collector outlet temperature is:
Tco = Qu/ m Cp + Tci Eq. 4.9.2-19
4.9.2.6. References
1. Beckman, W.A., and Duffie, J. A. Solar Engineering of Thermal Processes. Second Edition. New
York: John Wiley & Sons, Inc, 1991.
4–513
TRNSYS 18 – Mathematical Reference
4–514
TRNSYS 18 – Mathematical Reference
2 Collector area [m2] The total area of the solar collector array, consistent with the fin
efficiency and loss coefficients provided (Parameters 3 and 6,
respectively).
The ratio of the actual useful energy gain to the useful gain that
3 Collector fin efficiency [-]
factor (or collector would result if the collector absorbing surface were at the local fluid
efficiency factor) temperature, or (heat transfer from fluid to air)/(heat transfer from
absorber to air). For a flat absorber, it is the heat transfer from the
fin over the maximum possible heat transfer from the fin.
Refer to: ASHRAE Standard 93-77 for details on the fin efficiency
4 Fluid specific heat (or [kJ/kg-K] The specific heat of the collector fluid.
thermal capacitance
per unit mass)
5 Collector plate [-] The absorptance of the absorber surface of the collector (visible
absorptance wavelength range). The absorptance is a ratio of the amount of
radiation absorbed by a surface to the total radiation incident on
the surface.
4–515
TRNSYS 18 – Mathematical Reference
If mode (Parameter 1)=1 (flat plate collector, constant losses, constant transmittance)
6 Overall loss coefficient [kJ/hr-m2-K] The overall loss coefficient from the solar collector absorber to the
ambient air, per unit collector area (using the area specified in
Parameter 2).
7 Cover transmittance [-] Ratio of radiation transmitted through the collector cover(s) to the
total radiation incident on the collector. Must be between 0 and 1.
Must be a constant for this proforma (for transmittance as a
function of incidence angle, see modes 3 or 4).
If mode =2 (flat plate collector, losses as a function of temperature, wind, and geometry, constant transmittance)
6 Number of glass [-] The number of covers (or glazings) over the collector surface
covers
7 Collector plate [-] Ratio of radiation emitted by the collector plate to that which would
emittance be emitted by a blackbody. Must be between 0 and 1.
8 Loss coefficient from [kJ/hr-m2-K] Thermal loss coefficient (per unit top surface area) for thermal
bottom and edges (per losses from the edges and bottom of the collector
unit area in Parameter
2)
9 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
10 Cover transmittance [-] Ratio of radiation transmitted through the collector cover(s) to the
total radiation incident on the collector. Must be between 0 and 1.
Must be a constant for this proforma (for transmittance as a
function of incidence angle, see modes 3 or 4).
4–516
TRNSYS 18 – Mathematical Reference
6 Number of glass [-] The number of covers (or glazings) over the collector surface
covers
7 Overall loss coefficient [kJ/hr-m2-K] The overall loss coefficient from the solar collector absorber to the
ambient air, per unit collector area (using the area specified in
Parameter 2).
8 Extinction coefficient- [-] The product of the extinction coefficient and cover thickness for
thickness product of a one glazing covering the solar collector
single cover
if mode = 4 (flat plate collector, losses as a function of temperature, windspeed, and geometry, angular dependence
on transmittance)
6 Number of glass [-] The number of covers (or glazings) over the collector surface
covers
7 Collector plate [-] Ratio of radiation emitted by the collector plate to that which would
emittance be emitted by a blackbody. Must be between 0 and 1.
8 Loss coefficient from [kJ/hr-m2-K] Thermal loss coefficient (per unit top surface area) for thermal
bottom and edges (per losses from the edges and bottom of the collector
unit area in Parameter
2)
9 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
10 Extinction coefficient- [-] The product of the extinction coefficient and cover thickness for
thickness product of a one glazing covering the solar collector
single cover
11 Temperature [K-1] Temperature coefficient [C] of solar cell efficiency (see eqn below):
coefficient of solar cell
efficiency Eff (T) = Eff(TRef) * (1-C*(T-TRef)).
12 Reference temperature [°C] Reference temperature [Tref] for cell efficiency (see eqn below):
for cell efficiency
Eff (T) = Eff(TRef) * (1-C*(T-TRef)).
4–517
TRNSYS 18 – Mathematical Reference
6 Fin efficiency area ratio [-] The heat transfer coefficient uf (parameter 9 of this model) is
modified by the fin efficiency area ratio (fe) according to:
uf = uf *(1.+fe)
7 Back loss coefficient [kJ/hr-m2-K] Thermal loss coefficient (per unit top surface area) for thermal
for no-flow condition losses from the bottom and sides of the collector
8 Thermal conductance [kJ/hr-K] This parameter accounts for contact resistance between the PV
between cells and cells and the collector absorber plate. Set this value high to
absorber indicate good thermal conductivity between the two.
9 Heat transfer [kJ/hr-m2-K] The heat transfer coefficient between the collector plate and the
coefficient working fluid.
10 Cover plate [-] Ratio of radiation transmitted through the collector cover(s) to the
transmittance total radiation incident on the collector. Must be between 0 and 1.
Must be a constant for concentrating collectors modeled by this
Type.
11 Front loss coefficient [kJ/hr-m2-K] The total heat loss coefficient for thermal losses from the front of
for cells the collector.
12 Logical unit for [-] The integer assigned to the external data file containing PV cell
SOLCEL data file data.This is automatically assigned by TRNSYS and should not be
changed unless by an advanced TRNSYS user.
If mode =6 or 8 (concentrating collector, losses a function of temperature and windspeed, no cell operating voltage)
11 Number of glass [-] The number of covers (or glazings) over the collector surface
covers
12 Absorber plate [-] Ratio of radiation emitted by the absorber plate to that which would
emittance be emitted by a blackbody. Must be between 0 and 1.
13 Logical unit for [-] The integer assigned to the external data file containing PV cell
SOLCEL data file data.This is automatically assigned by TRNSYS and should not be
changed unless by an advanced TRNSYS user.
INPUTS
1 Inlet fluid temperature [°C] The temperature of the fluid entering the solar collector
2 Fluid mass flow rate [kg/hr] The mass flow rate of the fluid entering the solar collector
3 Ambient temperature [°C] The temperature of the ambient air surrounding the collector
4 Incident radiation [kJ/hr-m2] The total (beam + diffuse) radiation incident on the plane of the
solar collector, per unit area
If mode = 1
If mode = 2
4–518
TRNSYS 18 – Mathematical Reference
5 Windspeed [m/s] The speed of the wind over the collector surface
If mode = 3
5 Incident diffuse [kJ/hr-m2] The total (sky + ground-reflected) radiation incident on the plane of
radiation the solar collector per unit area.
7 Cell efficiency at [-] The rate at which the PV section of the collector converts solar
reference conditions radiation to electrical energy at a known cell temperature, 0-1 scale
If mode = 4
5 Incident diffuse [kJ/hr-m2] The total (sky + ground-reflected) radiation incident on the plane of
radiation the solar collector per unit area.
7 Windspeed [m/s] The speed of the wind over the collector surface
8 Cell efficiency at [-] The rate at which the PV section of the collector converts solar
reference conditions radiation to electrical energy at a known cell temperature, 0-1 scale
If mode = 6
5 Windspeed [m/s] The speed of the wind over the collector surface
6 Collector slope [degrees] The slope of the collector's absorbing surface measured from the
horizontal.
If mode = 7
If mode = 8
5 Windspeed [m/s] The speed of the wind over the collector surface
7 Collector slope [degrees] The slope of the collector's absorbing surface measured from the
horizontal.
DERIVATIVES
OUTPUTS
4–519
TRNSYS 18 – Mathematical Reference
1 Outlet temperature [°C] The temperature of the fluid exiting the solar collector array.
2 Fluid flowrate [kg/hr] The flowrate of the fluid exiting the solar collector array. In this
model, the outgoing flow rate will always equal the incoming
flowrate.
3 Useful energy gain [kJ/hr] The rate of useful energy gain by the solar collector fluid:
Qu = mdot * Cp * (Tout - Tin)
4 Collector loss [kJ/hr-m2-K] The total thermal energy loss coefficient for the collector. This
coefficient value does not account for the electrical energy generated by the
panel, which does not go into the fluid stream.
5 Transmittance- [-] The product of the collector cover's transmittance and absorbtance.
absorptance product
6 Electrical power output [kJ/hr] The rate at which electrical energy is generated by the photovoltaic
section of the collector.
8 Apparent thermal loss [kJ/hr-m2-K] The total thermal loss coefficient, accounting for the electrical
coefficient energy generated by the PV section of the collector, which does
not go into the fluid stream.
If mode = 5 or higher
9 Array voltage [V] The voltage at which the PV array is currently operating.
10 Array current [Amp] The current generated by the PV section of the collector.
11 Cell temperature at [°C] The PV cell temperature in the vicinity of the collector fluid inlet.
collector inlet
If mode = 5 or higher
TEXT FIELDS
4–520
TRNSYS 18 – Mathematical Reference
4.9.3.4. Nomenclature
Ncover [-] Number of covers (or glazings) over the absorber
[-] transmittance; ratio of radiation transmitted through the cover(s) to total
τ
radiation incident on the collector surface
KL [-] product of extinction coefficient and length (thickness) of collector cover
[degrees] angle of incidence between the solar beam radiation and the collector
θ
surface
n [-] refractive index of cover material (automatically set at 1.526)
Hbt [kJ/hr-m2] beam radiation on the tilted surface
Hdt [kJ/hr-m2] diffuse radiation on the tilted surface
Hr [kJ/hr-m2] total radiation on the tilted surface
hwind [W/m2-K] heat transfer coefficient due to wind
β [degrees] collector slope
[°C] Mean collector temperature (if followed by [K] = mean collector temperature
Tm
in degrees Kelvin)
[°C] Ambient air temperature (if followed by [K] = ambient air temperature in
Ta
degrees Kelvin)
εp [-] emittance of absorber plate
εg [-] emittance of cover glass
[kJ/hr-m2-K] Overall loss coefficient as provided in Parameters (before adjusting for
UL,ref
transmittance and cell temperature)
[kJ/hr-m2-K] Loss coefficient from back and edges of collector, per unit area collector
Ube
surface
PF [-] Packing factor; ratio of PV cell area to total absorber area
ηref [-] PV cell efficiency at the reference conditions
4–521
TRNSYS 18 – Mathematical Reference
𝜏1 = 0.920 𝑖𝑓 𝑁𝑐𝑜𝑣𝑒𝑟 = 1
𝜏1 = 0.845 𝑖𝑓 𝑁𝑐𝑜𝑣𝑒𝑟 = 2
𝜏1 = 0.785 𝑖𝑓 𝑁𝑐𝑜𝑣𝑒𝑟 = 3
If the incidence angle is greater than 40°, the starting transmittance becomes a function of both the number
of covers over the collector and the angle of incidence of beam radiation on the collector:
The value τ1 is further manipulated as follows below to obtain the beam transmittance:
−𝑁𝑐𝑜𝑣𝑒𝑟∙𝐾𝐿
( )
𝜏𝑏𝑒𝑎𝑚 = 𝜏1 ∙ 𝑒 cos 𝜃2
Eq. 4.9.3-1
sin 𝜃
where 𝜃2 = sin−1 ( )
𝑛
The diffuse transmittance is assumed equal to the beam transmittance at an angle of incidence of 60°:
𝜏𝑑𝑖𝑓𝑓 = 𝑒 (−1.21453∙𝑁𝑐𝑜𝑣𝑒𝑟∙𝐾𝐿) (𝜏1(60°)) Eq. 4.9.3-2
The overall transmittance is the weighted average of the beam and diffuse transmittance values:
𝐻𝑏𝑡 𝐻𝑑𝑡
𝜏= 𝜏𝑏𝑒𝑎𝑚 + 𝜏𝑑𝑖𝑓𝑓 Eq. 4.9.3-3
𝐻𝑟 𝐻𝑟
The transmittance-absorptance product is the product of this transmittance and the plate absorptance
(Parameter 5).
Thermal Losses
In modes 2 and 4, the wind coefficient is a linear function of the windspeed:
ℎ𝑤𝑖𝑛𝑑 = 5.7 + 3.8 ∙ 𝑤𝑖𝑛𝑑 Eq. 4.9.3-4
The factors C and F are calculated based on the windspeed coefficient and the collector slope, respectively:
2
𝐹 = (1 − 0.04ℎ𝑤𝑖𝑛𝑑 + 0.0005ℎ𝑤𝑖𝑛𝑑 )(1 + 0.091𝑁𝑐𝑜𝑣𝑒𝑟) Eq. 4.9.3-5
𝐶 = 365.9(1 − 0.00883𝛽 + 0.0001298𝛽 2 ) Eq. 4.9.3-6
Contributions to the overall loss coefficient due to convection and radiation from the top of the collector
(STF1 and STF2, respectively), are calculated from these factors as:
4–522
TRNSYS 18 – Mathematical Reference
−1
𝑁𝑐𝑜𝑣𝑒𝑟 1
𝑆𝑇𝐹1 = 1 + Eq. 4.9.3-7
ℎ𝑤𝑖𝑛𝑑 3
𝐶 𝑇 [𝐾] − 𝑇𝑎 [𝐾]
( ( 𝑚 ))
( 𝑇𝑚 [𝐾] 𝑁𝑐𝑜𝑣𝑒𝑟 + 𝐹 )
𝜎(𝑇𝑚 [𝐾]2 + 𝑇𝑎 [𝐾]2 )(𝑇𝑚 [𝐾] + 𝑇𝑎 [𝐾])
𝑆𝑇𝐹2 =
1 (2𝑁𝑐𝑜𝑣𝑒𝑟 + 𝐹 − 1) Eq. 4.9.3-8
⁄(𝜀 + 0.05𝑁𝑐𝑜𝑣𝑒𝑟(1 − 𝜀 )) + ⁄𝜀𝑔 − 𝑁𝑐𝑜𝑣𝑒𝑟
𝑝 𝑝
The overall loss coefficient is the sum of these contributions (converted from W to kJ/hr) plus the loss
coefficient from the back and edges of the collector:
For flat plate collectors, the reference overall loss coefficient is adjusted for both the transmittance and the
cell temperature:
1
𝑈𝐿 = 𝑈𝐿,𝑟𝑒𝑓 − 𝜏𝐻𝑟(𝜂𝑟𝑒𝑓 𝑃𝐹) (1 − 𝐶𝑐𝑒𝑙𝑙𝑡𝑒𝑚𝑝 (𝑇𝑎 − 𝑇𝑟𝑒𝑓 ))
𝑇𝑐 − 𝑇𝑎 Eq. 4.9.3-10
1
where 𝑇𝑐 = 𝑇𝑟𝑒𝑓 +
𝐶𝑐𝑒𝑙𝑙𝑡𝑒𝑚𝑝
Solar Gains
For concentrating collectors, solar gain is calculated from the total solar intensity, the transmittance-
absorptance product, and the aperture to absorber ratio:
𝑆 = 𝐻𝑟(𝜏𝛼)𝐴𝑟𝑎𝑡𝑖𝑜
Eq. 4.9.3-11
The initial reference cell temperature is calculated for collectors with flow as:
𝑈𝑓 (𝑇𝑝 −𝑇𝑖𝑛 )
𝑇𝑐𝑒𝑙𝑙,𝑟𝑒𝑓,𝑖𝑛𝑖𝑡 = + 𝑇𝑝 Eq. 4.9.3-12
𝐶𝑏
𝐶𝑏
𝑇𝑝 = Eq. 4.9.3-13
(𝑈𝑇 (𝐶𝑏 +𝑈𝑓 ) + 𝐶𝑏 𝑈𝑓 )
For collectors without flow (stagnant), the initial reference cell temperature is calculated as:
𝐶𝑏 𝑈𝑏
(𝑆 + 𝑇𝑎 (𝑈𝑇 + ))
𝐶𝑏 +𝑈𝑏 Eq. 4.9.3-14
𝑇𝑐𝑒𝑙𝑙,𝑟𝑒𝑓,𝑖𝑛𝑖𝑡 =
𝑈𝑇 + 𝐶𝑏 − 𝐶𝑏2 /(𝐶𝑏 +𝑈𝑏 )
From here, the collector model largely follows the Hottel-Willier analysis model for flat-plate and
concentrating collectors.
PV Performance
Modes 5 and 6 use the I-V curves through calls to the TRNSYS subroutine SolarCellPerformance() to
calculate solar cell performance at the peak power point. Therefore, data on the cells must be entered as
called for by SolarCellPerformance(). See the Programmer’s Guide manual for more information about
4–523
TRNSYS 18 – Mathematical Reference
SolarCellPerformance() and about the format of the data file required by Type50. Modes 7 and 8 allow a
cell operating voltage to be specified as an input, such as may be imposed by a battery.
4.9.3.6. References
1. Florschuetz L.W., "Extension of the Hottel-Whillier-Bliss Model to the analysis of Combined
Photovoltaic/Thermal Flat Plate Collectors," Sharing the Sun Joint Conference Proceedings,Vol. 6, pg.
79, Winnipeg, (1976).
2. "Combined Photovoltaic/Thermal System Studies," Report ERC-R-78017, Arizona State University,
Tempe, AZ (1978)
4–524
TRNSYS 18 – Mathematical Reference
1 Number in series [-] Specifies how many collectors are connected in a series
arrangement (outlet of first collector = inlet of second collector etc.).
Set this parameter to 1 if all collectors in the array are in parallel
(fed from a common manifold). The model assumes each parallel
chain of collectors (if any) has the same number of collectors in
series.
2 Collector area [m2] The total area of the solar collector array, consistent with the
supplied efficiency parameters (typically efficiency values are
calculated based on gross area, not net area).
3 Fluid specific heat [kJ/kg-K] The specific heat of the collector fluid.
1= the efficiency parameters are given as a function of the inlet
4 Efficiency mode [-]
temperature; 2= the efficiency parameters are given as a function
of the average temperature; 3= the efficiency parameters are given
as a function of the outlet temperature. Parameters are commonly
given as a function of inlet temperature in the United States and as
a function of average temperature in Europe.
5 Tested flow rate [kg/hr-m2] The flow rate (per unit collector area) at which the collector
efficiency test was performed.
The y-intercept (a0) of the following collector efficiency equation:
6 Intercept efficiency [-]
Efficiency = a0 - a1*(T-Tamb)/I_T- a2 * ((T-Tamb)2)/I_T , where
I_T = Insolation per unit area;
T_amb = ambient air temperature;
T=T_inlet (if Parameter 4, the efficiency mode, = 1), T_average (if
Parameter 4 = 2), or T_outlet (if Parameter 4 = 3).
a0 may also be called FrTan when the equation is a function of
collector inlet temperature.
The slope (a1) of the following collector efficiency equation:
7 Efficiency slope [kJ/hr-m2-K]
Efficiency = a0 - a1*(T-Tamb)/I_T- a2 * ((T-Tamb)2)/I_T , where
4–525
TRNSYS 18 – Mathematical Reference
9 Logical unit of file [-] The logical unit unit through which the biaxial incidence angle
containing biaxial IAM modifier data will be read. This number is automatically assigned
data and should not be changed unless by advanced TRNSYS users.
10 Number of longitudinal [-] Number of data points provided for incidence angle modifiers in the
angles for which IAMs longitudinal direction (see Detailed Description for the definitions of
are provided longitudinal and transverse directions).
11 Number of transverse [-] Number of data points provided for incidence angle modifiers in the
angles for which IAMs transverse direction (see Detailed Description for the definitions of
are provided longitudinal and transverse directions).
INPUTS
1 Inlet temperature [°C] The temperature of the fluid entering the solar collector
2 Inlet flowrate [kg/hr] The mass flow rate of the fluid entering the solar collector
3 Ambient temperature [°C] The temperature of the ambient air surrounding the collector
4 Incident radiation [kJ/hr-m2] The total (beam + diffuse) radiation incident on the plane of the
solar collector, per unit area
5 Incident diffuse [kJ/hr-m2] The total (sky + ground-reflected) radiation incident on the plane of
radiation the solar collector per unit area.
7 Solar zenith angle [degrees] The angle between the vertical and the line to the sun; the angle of
incidence of beam radiation on a horizontal surface.
8 Solar azimuth angle [degrees] The angular displacement from south of the projection of beam
radiation on the horizontal plane, with east negative and west
positive. 0° = from due south; -90° = from due east; 90° = from due
west.
9 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
4–526
TRNSYS 18 – Mathematical Reference
10 Collector azimuth [degrees] The deviation of the collector surface from the local meridian, with
zero due south, east negative, and west positive. 0° = facing due
south; -90° = facing due east; 90° = facing due west.
DERIVATIVES
OUTPUTS
1 Outlet temperature [°C] The temperature of the fluid exiting the solar collector array.
2 Outlet flowrate [kg/hr] The flowrate of the fluid exiting the solar collector array. In this
model, the outgoing flow rate will always equal the incoming
flowrate.
3 Useful energy gain [kJ/hr] The rate of useful energy gain by the solar collector fluid:
Qu = mdot * Cp * (Tout - Tin)
4 Collector efficiency [-] The ratio of the collector’s useful energy gain (Output 3) to the total
incident radiation (beam + diffuse) on the surface of the collector
5 Incidence angle [-] The ratio of the transmittance-absorptance product of the collector
modifier (overall) at the given incidence angle over the transmittance-absorptance
product at normal incidence; the ratio of the total absorbed
radiation to the radiation that would have been absorbed if the
beam radiation were normal to the collector surface.
TEXT FIELDS
4–527
TRNSYS 18 – Mathematical Reference
4–528
TRNSYS 18 – Mathematical Reference
4.9.4.4. Nomenclature
I [kJ/h-m²] Global (total) horizontal radiation
Id [kJ/h-m²] Diffuse horizontal radiation
IT [kJ/h-m²] Global radiation incident on the solar collector (Tilted surface)
IbT [kJ/h-m²] Beam radiation incident on the solar collector
[°] Collector slope above the horizontal plane
[°] Incidence angle for beam radiation
l [°] Incidence angle in the longitudinal direction
t [°] Incidence angle in the transverse direction
g [-] Ground reflectance
[-] Short-wave transmittance of the collector cover(s)
() [-] Product of the cover transmittance and the absorber absorptance
()b [-] () for beam radiation (depends on the incidence angle )
()n [-] () at normal incidence
()s [-] () for sky diffuse radiation
()g [-] () for ground reflected radiation
I bT
b I 1cos d
n d 2 n g
I
1cos
2
g
Eq. 4.9.4-1
n
n IT
4–529
TRNSYS 18 – Mathematical Reference
The transversal incidence angle is measured in a plane that is perpendicular to both the collector
aperture and the longitudinal plane. The corresponding IAM is referred to as the transversal IAM, or
azimuthal modifier.
Transversal
Plane
e a l
an in
Pl itud
ng
t
Lo
l
Sun Transversal
Direction
Collector
Plane
Longitudinal
Direction
Figure 4.9.4–1: Transversal and Longitudinal Directions
Note: The collector tube represented above is in the most common orientation, along a
North-South axis (assuming the collector faces due South). If the collector was tested in a
different configuration, or if it is mounted with the tubes along an East-West axis, the IAM
data obtained from a collector test may have to be adapted (by switching the longitudinal
and transversal directions). In TRNSYS, "longitudinal" and "transversal" always refer to the
plane of the collector and the sun as described here below, not to the tubes.
In most cases, collector test reports provide the transversal IAM for different transversal incidence angle
values (and longitudinal angle = 0) and longitudinal IAM for different longitudinal incident angles (and
transversal angle = 0). The data file requires the IAM for non-zero longitudinal and transversal angles. The
IAM for any l and t can be approximated by multiplying IAM(l,0) and IAM(0, t).
The principle of the data file is that the first line gives the values of the 2 independent variables (Transversal
and longitudinal incident angles) that will be used in the "IAM map". Then the dependent variable (IAM) is
provided for all values of the independent variables. The values of the last independent variable
4–530
TRNSYS 18 – Mathematical Reference
(Longitudinal angle) are first cycled through, then the 1st independent variable (Transversal angle). Data
are read in free format. The data are interpolated by the generic DYNAMICDATA routine, which does not
have any knowledge about IAM's. It is recommended to include values for angle = 0 (IAM=1) and angle =
90° (IAM=0) in the data.
Note: Typical test data give the IAM for transversal angle i and longitudinal angle =0 on one hand, and the
IAM for transversal angle = 0 and longitudinal angle j on the other hand. As discussed here above, IAM (i,j)
can be approximated by IAM (i,0) * IAM (0,j)
An example is provided below. This file includes IAM data for a hypothetical collector for which the following
data is available:
Direction | 0° | 15° | 30° | 45° | 60° | 75° | 90° |
-------------------------------------------------------------------
Transversal IAM | 1.00 | 1.01 | 1.03 | 1.05 | 1.04 | 1.02 | 0.00 |
Longitudinal IAM | 1.00 | 1.00 | 0.98 | 0.96 | 0.90 | 0.71 | 0.00 |
The value for both incidence angles different from zero may be obtained by multiplication (if not available
from direct measure), as explained here above. The file contents are:
0 15 30 45 60 75 90 ! 7 Incidence angle values (transversal)
0 15 30 45 60 75 90 ! 7 Incidence angle values (longitudinal)
1.00 ! IAM for ThetaT 1, ThetaL 1
1.00 ! IAM for ThetaT 1, ThetaL 2
0.98 ! IAM for ThetaT 1, ThetaL 3 ( 1.00 * 0.98 = 0.98)
...
0.00 ! IAM for ThetaT 1, ThetaL 7 ( 1.00 * 0.00 = 0.00)
1.01 ! IAM for ThetaT 2, ThetaL 1 ( 1.01 * 1.00 = 1.01)
1.01 ! IAM for ThetaT 2, ThetaL 2 ( 1.01 * 1.00 = 1.01)
0.99 ! IAM for ThetaT 2, ThetaL 3 ( 1.01 * 0.98 = 0.99)
...
0.00 ! IAM for ThetaT 2, ThetaL 7 ( 1.01 * 0.00 = 0.00)
1.03 ! IAM for ThetaT 3, ThetaL 1 ( 1.03 * 1.00 = 0.00)
...
0.00 ! IAM for ThetaT 7, ThetaL 1 ( 0.00 * 1.00 = 0.00)
0.00 ! IAM for ThetaT 7, ThetaL 2 ( 0.00 * 1.00 = 0.00)
...
There is also an example data file in the TRNSYS18 directory, in the Examples -> Data Files sub-directory.
ds 0 / 2 bn ( ) cos sin dd / 2 / 2 b
( ) cos sin dd
n Eq. 4.9.4-2
n / 2 /2 /2 sin 1 (cot / tan )
0
/2
cos sin dd
/ 2
/2
cos sin dd
For the ground-reflected diffuse radiation incidence angle modifiers, which are integrated over the surface
area of the ground projected onto the collector:
/2 /2 b ( ) cos( ) sin( ) dd
dg / 2 sin 1
(cot / tan )
n Eq. 4.9.4-3
n /2
/2
cos( ) sin( ) dd
/ 2 sin 1 (cot / tan )
These integrations are performed numerically, using the user-supplied IAM data for ()b/()n.
4–531
TRNSYS 18 – Mathematical Reference
4.9.4.6. References
1. Beckman, W.A., and Duffie, J. A. Solar Engineering of Thermal Processes. Second Edition. New
York: John Wiley & Sons, Inc, 1991.
2. Solar Ratings and Certification Corporation (Website). Available at https://secure.solar-
rating.org/Certification/Ratings/RatingsSummaryPage.aspx Last accessed August 2015. Last accessed
August 2015.
4–532
TRNSYS 18 – Mathematical Reference
1 Number in series [-] Specifies how many collectors are connected in a series
arrangement (outlet of first collector = inlet of second collector etc.).
Set this parameter to 1 if all collectors in the array are in parallel
(fed from a common manifold). The model assumes each parallel
chain of collectors (if any) has the same number of collectors in
series.
2 Collector area [m2] The total area of the solar collector array, consistent with the
supplied efficiency parameters (typically efficiency values are
calculated based on gross area, not net area).
3 Fluid specific heat [kJ/kg-K] The specific heat of the collector fluid.
1= the performance map data are given as a function of the
4 Efficiency mode [-]
collector inlet temperature; 2= the performance map data are given
as a function of the collector average temperature; 3= the
performance map data are given as a function of the collector
outlet temperature.
5 Logical unit [-] The logical unit through which the performance map data will be
read. This number is automatically assigned and should not be
changed unless by advanced TRNSYS users.
6 Number of T/IT points [-] The number of values of T/IT contained in the data file. (must be
in the data file between 1 and 10). T is defined as Tinlet – Tambient, Taverage –
Tambient, or Toutlet – Tambient, depending on the mode chosen
using Parameter 4.
7 Number of radiation [-] The number of values of radiation (IT) contained in the data file.
points in the data file (must be between 1 and 5).
4–533
TRNSYS 18 – Mathematical Reference
8 Number of windspeed [-] The number of values of windspeed contained in the data file.
points in the data file (must be between 1 and 5).
9 Optical mode [-] Sets how the incidence angle modifier (IAM) will be calculated by
the component. 1= no incidence angle modification; 2=incidence
angle modifiers will be determined by 2nd order equation as
function of collector slope; 3= incidence angle modifiers are to be
interpolated from an external data file as a function of incidence
angle; 4=incidence angle modifiers will be calculated from
properties of collector cover; 5= Biaxial (transverse and
longitudinal) incidence angle modifiers are each to be interpolated
from an external data file as a function of incidence angle; the
product of the transverse and longitudinal modifiers is
approximately the incidence angle modifier at each combination.
10 1st order IAM [-] This parameter is b0 in the equation IAM = 1 – b0 * S – b1 * S2,
where S = (1/cos(incidence angle)-1).
11 2nd order IAM [-] This parameter is b1 in the equation IAM = 1 – b0 * S – b1 * S2,
where S = (1/cos(incidence angle)-1).
10 Logical unit of data file [-] The logical unit through which the incidence angle modifier data
will be read. This number is automatically assigned and should not
be changed unless by advanced TRNSYS users.
11 Number of rows in file [-] The number of values of incidence angle, with associated IAM’s,
contained in the data file (must be between 2 and 10).
10 Plate absorptance [-] The absorptance of the collector absorber plate, or the ratio of
absorbed radiation to total radiation on the plate. Typical values of
plate absorptance can be found from: Solar Engineering of
Thermal Processes, Duffie and Beckman, Wiley-Interscience, New
York, 1980.
11 Number of identical [-] The number of identical glazings (or covers – typically glass or
covers plastic) on the solar collector; used to calculate the transmittance-
absorptance product.
12 Index of refraction [-] Index of refraction of one glazing covering the solar collector
13 Extinction [-] The product of the extinction coefficient and cover thickness for
one glazing covering the solar collector
10 Logical unit of data file [-] The logical unit through which the incidence angle modifier data
will be read. This number is automatically assigned and should not
be changed unless by advanced TRNSYS users.
11 Number of rows in file [-] The number of values of incidence angle, with their associated
biaxial modifier data, contained in the external data file (must be
between 2 and 10).
4–534
TRNSYS 18 – Mathematical Reference
INPUTS
1 Inlet temperature [°C] The temperature of the fluid entering the solar collector
2 Inlet flowrate [kg/hr] The mass flow rate of the fluid entering the solar collector
3 Ambient temperature [°C] The temperature of the ambient air surrounding the collector
4 Incident radiation [kJ/hr-m2] The total (beam + diffuse) radiation incident on the plane of the
solar collector, per unit area
6 Total horizontal [kJ/hr-m2] The total horizontal radiation (beam + diffuse) per unit area. This
radiation input is typically hooked to the fourth output of the TYPE 16
radiation processor.
7 Horizontal diffuse [kJ/hr-m2] The horizontal diffuse radiation. This input is typically hooked up to
radiation the fifth output of the TYPE 16 solar radiation processor.
8 Ground reflectance [-] The reflectance of the surface above which the solar collector is
positioned. Typical values are 0.2 for ground not covered by snow
and 0.7 for snow-covered ground. The reflectance is the ratio of
reflected radiation to total incident radiation and therefore must be
between 0 and 1.
10 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
6 Total diffuse radiation [kJ/hr-m2] The total (sky + ground-reflected) radiation incident on the plane of
the solar collector per unit area.This input is commonly connected
to the TYPE 16 "total diffuse radiation on surface 1" output.
8 Zenith angle [degrees] The angle between the vertical and the line to the sun; the angle of
incidence of beam radiation on a horizontal surface.
9 Solar azimuth [degrees] The angular displacement from south of the projection of beam
radiation on the horizontal plane, with east negative and west
positive. 0° = from due south; -90° = from due east; 90° = from due
west.
10 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
4–535
TRNSYS 18 – Mathematical Reference
11 Collector azimuth [degrees] The deviation of the collector surface from the local meridian, with
zero due south, east negative, and west positive. 0° = facing due
south; -90° = facing due east; 90° = facing due west.
DERIVATIVES
OUTPUTS
1 Outlet temperature [°C] The temperature of the fluid exiting the solar collector array.
2 Outlet flowrate [kg/hr] The flowrate of the fluid exiting the solar collector array. In this
model, the outgoing flow rate will always equal the incoming
flowrate.
3 Useful energy gain [kJ/hr] The rate of useful energy gain by the solar collector fluid:
Qu = mdot * Cp * (Tout - Tin)
4 Collector efficiency [-] The ratio of the collector’s useful energy gain (Output 3) to the total
incident radiation (beam + diffuse) on the surface of the collector
5 Incidence angle [-] The ratio of the transmittance-absorptance product of the collector
modifier (overall) at the given incidence angle over the transmittance-absorptance
product at normal incidence; the ratio of the total absorbed
radiation to the radiation that would have been absorbed if the
beam radiation were normal to the collector surface.
TEXT FIELDS
4–536
TRNSYS 18 – Mathematical Reference
4.9.5.4. Nomenclature
A [m²] Total collector array aperture or gross area (consistent with FR(),
FRUL, FRUL/T and Gtest)
4–537
TRNSYS 18 – Mathematical Reference
The efficiency of an individual module (or set of collectors in parallel) is determined from user supplied data
and a correction for off-normal incidence as follows:
j j ,n j ,n,0 1
Eq. 4.9.5-2
n
j,n is the efficiency at normal incidence at the current meteorological conditions and fluid temperature. j,n,o
is the efficiency at normal incidence for T/IT equal 0. The second term in the above equation represents
the difference between the efficiency at normal incidence and that at off-normal incidence.
As with Type 1, there are five options for determining the incidence modifier, )n. Please see
documentation of Type 1 for more information on supplying IAM data and/or data files.
In order to evaluate the efficiency for each module, the outlet temperature of one module is used as the
inlet to the next. In general:
A IT j
To, j Eq. 4.9.5-3
c C pf
Ns m
4–538
TRNSYS 18 – Mathematical Reference
If the efficiency data is based upon average or outlet temperature, an iterative solution for the fluid
temperature is required.
A complete thermal performance map of the collector consists of efficiency versus T/IT data for different
levels of radiation and wind speed. Explanations for data input for three possible cases follows.
Note: In the following, T refers to one of the 3 definitions described in the Type 1
description. Be careful to select the Efficiency Mode that matches the performance map!
This is also true for the collector area (which can be gross, aperture or absorber area).
DEPENDENCE ON IT OR W
In this situation, efficiency vs. T/IT data is to be provided for different levels of radiation or wind speed, but
not both. Either NIT or NW should be set to l in the parameter list. The first set of NIT or NW (whichever is
greater than 1) numbers in the data file should be the levels of radiation or wind speed for which efficiency
vs. T/IT data is provided. The second NT numbers should be increasing values of T/IT. For each value
of radiation or wind speed NT values of efficiency at the corresponding T/IT must follow.
4–539
TRNSYS 18 – Mathematical Reference
...
...
<Efficiency NW NIT NDT/IT> Efficiency for last Wind speed, last IT, last DT/IT
The principle of the data file is that the first lines give the values of the 3 independent variables that will be
used in the performance map. Then the dependent variable (Efficiency) is provided for all values of the
independent variables. The values of the last independent variable (T/IT) are first cycled through, then the
2nd independent variable (IT) and finally the values of the 1st independent variable (Wind speed). Data are
read in free format.
An example file is provided below. An example file is also available in the main TRNSYS18 directory, in the
Examples ->Data Files sub-directory. Note that this example serves only to illustrate the format and use of
Type 72; it is not intended to serve as typical values.
EXAMPLE
0.0 3.0 ! 2 Wind speed values, [m/s]
2880.0 3600.0 ! 2 Solar radiation values, [kJ/h-m²]
0.000 0.005 0.010 0.015 0.016 0.020 0.025 0.030 ! 8 dT/IT [K-h-m²/kJ]
0.959 ! Efficiency for Wind Speed 1, Radiation 1, dT/IT 1
0.799 ! Efficiency for Wind Speed 1, Radiation 1, dT/IT 2
0.638 ! Efficiency for Wind Speed 1, Radiation 1, dT/IT 3
0.478 ! Efficiency for Wind Speed 1, Radiation 1, dT/IT 4
0.446 ! Efficiency for Wind Speed 1, Radiation 1, dT/IT 5
0.317 ! Efficiency for Wind Speed 1, Radiation 1, dT/IT 6
0.157 ! Efficiency for Wind Speed 1, Radiation 1, dT/IT 7
0.000 ! Efficiency for Wind Speed 1, Radiation 1, dT/IT 8
0.959 ! Efficiency for Wind Speed 1, Radiation 2, dT/IT 1
0.799 ! Efficiency for Wind Speed 1, Radiation 2, dT/IT 2
0.638 ! Efficiency for Wind Speed 1, Radiation 2, dT/IT 3
0.478 ! Efficiency for Wind Speed 1, Radiation 2, dT/IT 4
0.446 ! Efficiency for Wind Speed 1, Radiation 2, dT/IT 5
0.317 ! Efficiency for Wind Speed 1, Radiation 2, dT/IT 6
0.157 ! Efficiency for Wind Speed 1, Radiation 2, dT/IT 7
0.000 ! Efficiency for Wind Speed 1, Radiation 2, dT/IT 8
0.937 ! Efficiency for Wind Speed 2, Radiation 1, dT/IT 1
0.655 ! Efficiency for Wind Speed 2, Radiation 1, dT/IT 2
0.374 ! Efficiency for Wind Speed 2, Radiation 1, dT/IT 3
0.092 ! Efficiency for Wind Speed 2, Radiation 1, dT/IT 4
0.000 ! Efficiency for Wind Speed 2, Radiation 1, dT/IT 5
0.000 ! Efficiency for Wind Speed 2, Radiation 1, dT/IT 6
0.000 ! Efficiency for Wind Speed 2, Radiation 1, dT/IT 7
0.000 ! Efficiency for Wind Speed 2, Radiation 1, dT/IT 8
0.937 ! Efficiency for Wind Speed 2, Radiation 2, dT/IT 1
0.655 ! Efficiency for Wind Speed 2, Radiation 2, dT/IT 2
0.374 ! Efficiency for Wind Speed 2, Radiation 2, dT/IT 3
0.092 ! Efficiency for Wind Speed 2, Radiation 2, dT/IT 4
0.000 ! Efficiency for Wind Speed 2, Radiation 2, dT/IT 5
0.000 ! Efficiency for Wind Speed 2, Radiation 2, dT/IT 6
0.000 ! Efficiency for Wind Speed 2, Radiation 2, dT/IT 7
0.000 ! Efficiency for Wind Speed 2, Radiation 2, dT/IT 8
4–540
TRNSYS 18 – Mathematical Reference
1 Number in series [-] Specifies how many collectors are connected in a series
arrangement (outlet of first collector = inlet of second collector etc.).
Set this parameter to 1 if all collectors in the array are in parallel
(fed from a common manifold). The model assumes each parallel
chain of collectors (if any) has the same number of collectors in
series.
2 Collector area [m2] The total area of the solar collector array, consistent with the
supplied fin efficiency and loss coefficient (see Parameters 4 and 5
below).
3 Fluid specific heat [kJ/kg-K] The specific heat of the collector fluid.
The fin efficiency is a measure of the heat transfer from the fin to
4 Collector fin efficiency [-]
factor the maximum possible heat transfer from the fin. The maximum
heat transfer from the fin would occur if the fin was uniformly at the
base temperature.
Refer to: ASHRAE Standard 93-77 for details on the fin efficiency
5 Bottom, edge loss [kJ/hr-m2-K] The loss coefficient for the bottom and edges of the solar collector,
coefficient per unit collector area (using the area specified in Parameter 2).
6 Absorber plate [-] The emittance of the absorber plate of the solar collector. The
emittance emittance, or emissivity, is defined as the ratio of the radiation
emitted by the surface in question to the radiation emitted by a
blackbody (the perfect emitter) at the same temperature. This
property is used to calculate radiation losses from the collector.
7 Absorptance of [-] The absorptance of the absorber plate of the solar collector. The
absorber plate absorptance is a ratio of the amount of radiation absorbed by a
surface to the total radiation incident on the surface.
8 Number of covers [-] The number of glass or plastic covers (or glazings) over the
collector’s absorber. Set this value to 0 if the collector is
uncovered. Multiple covers are assumed to each have identical
properties.
9 Index of refraction of [-] Index of refraction of one glazing covering the solar collector
cover
10 Product of cover [-] The product of the extinction coefficient and cover thickness for
thickness and one glazing covering the solar collector
extinction coefficient
INPUTS
4–541
TRNSYS 18 – Mathematical Reference
1 Inlet temperature [°C] The temperature of the fluid entering the solar collector
2 Inlet flowrate [kg/hr] The mass flow rate of the fluid entering the solar collector
3 Ambient temperature [°C] The temperature of the ambient air surrounding the collector
4 Incident radiation [kJ/hr-m2] The total (beam + diffuse) radiation incident on the plane of the
solar collector, per unit area
6 Total horizontal [kJ/hr-m2] The total horizontal radiation (beam + diffuse) per unit area. This
radiation input is typically hooked to the fourth output of the TYPE 16
radiation processor.
7 Horizontal diffuse [kJ/hr-m2] The horizontal diffuse radiation. This input is typically hooked up to
radiation the fifth output of the TYPE 16 solar radiation processor.
8 Ground reflectance [-] The reflectance of the surface above which the solar collector is
positioned. Typical values are 0.2 for ground not covered by snow
and 0.7 for snow-covered ground. The reflectance is the ratio of
reflected radiation to total incident radiation and therefore must be
between 0 and 1.
10 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
DERIVATIVES
OUTPUTS
1 Outlet temperature [°C] The temperature of the fluid exiting the solar collector array.
2 Outlet flowrate [kg/hr] The flowrate of the fluid exiting the solar collector array. In this
model, the outgoing flow rate will always equal the incoming
flowrate.
3 Useful energy gain [kJ/hr] The rate of useful energy gain by the solar collector fluid:
Qu = mdot * Cp * (Tout - Tin)
4 Collector efficiency [-] The ratio of the collector’s useful energy gain (Output 3) to the total
incident radiation (beam + diffuse) on the surface of the collector
5 Incidence angle [-] The ratio of the transmittance-absorptance product of the collector
modifier (overall) at the given incidence angle over the transmittance-absorptance
product at normal incidence; the ratio of the total absorbed
radiation to the radiation that would have been absorbed if the
beam radiation were normal to the collector surface.
4–542
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
4–543
TRNSYS 18 – Mathematical Reference
4.9.6.4. Nomenclature
A [m²] Total collector array aperture or gross area (consistent with
FR(), FRUL, FRUL/T and Gtest)
Where:
NsmcCpc F'U L,j A
FR,j = 1 - exp - Eq. 4.9.6-2
A UL, j NsmcCpc
The collector fin efficiency factor, F', can be determined in a manner given in reference 2. The overall loss
coefficient is a complicated function of the collector construction and its operating conditions. The following
expression, developed by Klein2,is used to approximate UL,j in kJ/h-m2-K:
4–544
TRNSYS 18 – Mathematical Reference
Where:
1 - cos
IbT b + Id 1 + cos s + I g Eq. 4.9.6-4
= 2 2
IT
The transmittance-absorptance products for beam radiation is determined with TRNSYS function routine
Tau_Alpha (see the Programmer’s Guide). Effective incidence angles for sky diffuse and ground reflected
radiation are as defined in the Type 1 collector description. The outlet temperature of one module is used
as the inlet to the next and is given as:
AFR,j IT() - UL,j Ti,j - Ta
To,j = + Ti Eq. 4.9.6-5
N smcCpc
If the collector flow is zero, the collector stagnation temperature is:
I ()
Tp = T + Ta Eq. 4.9.6-6
UL
4.9.6.6. References
1. Beckman, W.A., and Duffie, J. A. Solar Engineering of Thermal Processes. Second Edition.
New York: John Wiley & Sons, Inc, 1991.
2. Klein S.A., 1975. Calculation of flat-plate collector loss coefficients. Solar Energy, 17 (1). Pp.
79-80
4–545
TRNSYS 18 – Mathematical Reference
1 Number in series [-] Specifies how many collectors are connected in a series
arrangement (outlet of first collector = inlet of second collector etc.).
Set this parameter to 1 if all collectors in the array are in parallel
(fed from a common manifold). The model assumes each parallel
chain of collectors (if any) has the same number of collectors in
series.
2 Collector area [m2] The total area of the solar collector array. Use an area (gross or
aperture) consistent with the area used to define the overall loss
coefficient (Parameter 5).
3 Fluid specific heat [kJ/kg-K] The specific heat of the collector fluid.
The ratio of the actual useful energy gain to the useful gain that
4 Collector fin efficiency [-]
factor (or collector would result if the collector absorbing surface were at the local fluid
efficiency factor) temperature, or (heat transfer from fluid to air)/(heat transfer from
absorber to air). For a flat absorber, it is the heat transfer from the
fin over the maximum possible heat transfer from the fin.
Refer to: ASHRAE Standard 93-77 for details on the fin efficiency
5 Overall loss coefficient [kJ/hr-m2-K] The overall loss coefficient from the solar collector absorber to the
ambient air, per unit collector area (using the area specified in
Parameter 2).
6 Wall reflectivity [-] The reflectivity of the walls of the CPC collector. The reflectivity is
a ratio of the reflected radiation to the toal incident radiation.
7 Half-acceptance angle [degrees] The half-acceptance angle (or critical angle) of the CPC collector.
(critical angle) The CPC collects both beam and diffuse radiation which approach
the aperture within the critical angle.
8 Truncation ratio [-] A full CPC is one in which the walls extend upward to a height h
which gives an aperture area of 1/sin(half-acceptance angle) times
the absorber area. Optimal concentration is achieved in a full
CPC, but a very large reflector is required. Most CPCs are
truncated to some fraction of this height (hbar).
Truncation ratio = hbar/h
4–546
TRNSYS 18 – Mathematical Reference
10 Absorptance of [-] The absorptance of the absorber surface of the collector. The
absorber surface absorptance is a ratio of the amount of radiation absorbed by a
surface to the total radiation incident on the surface.
11 Number of covers [-] The number of glass or plastic covers (or glazings) over the
collector’s absorber. Set this value to 0 if the collector is
uncovered. Multiple covers are assumed to each have identical
properties.
12 Index of refraction of [-] Index of refraction of one glazing covering the solar collector
cover
13 Product of cover [-] The product of the extinction coefficient and cover thickness for
thickness and one glazing covering the solar collector
extinction coefficient
INPUTS
1 Inlet temperature [°C] The temperature of the fluid entering the solar collector
2 Inlet flowrate [kg/hr] The mass flow rate of the fluid entering the solar collector
3 Ambient temperature [°C] The temperature of the ambient air surrounding the collector
4 Incident radiation [kJ/hr-m2] The total (beam + diffuse) radiation incident on the plane of the
solar collector, per unit area
5 Total horizontal [kJ/hr-m2] The total horizontal radiation (beam + diffuse) per unit area. This
radiation input is typically hooked to the fourth output of the TYPE 16
radiation processor.
6 Horizontal diffuse [kJ/hr-m2] The horizontal diffuse radiation. This input is typically hooked up to
radiation the fifth output of the TYPE 16 solar radiation processor.
7 Ground reflectance [-] The reflectance of the surface above which the solar collector is
positioned. Typical values are 0.2 for ground not covered by snow
and 0.7 for snow-covered ground. The reflectance is the ratio of
reflected radiation to total incident radiation and therefore must be
between 0 and 1.
9 Zenith angle [degrees] The angle between the vertical and the line to the sun; the angle of
incidence of beam radiation on a horizontal surface.
10 Solar azimuth angle [degrees] The angular displacement from south of the projection of beam
radiation on the horizontal plane, with east negative and west
positive. 0° = from due south; -90° = from due east; 90° = from due
west.
11 Collector slope [degrees] The slope of the collector surface. The slope is defined as the
angle between the surface and the horizontal.0° = horizontal
surface, 90° = vertical surface. Slope is positive when surface is
tilted in the direction of the surface azimuth. As a general rule,
performance is somewhat optimized when the collector slope is set
to the latitude.
4–547
TRNSYS 18 – Mathematical Reference
12 Collector azimuth [degrees] The deviation of the collector surface from the local meridian, with
zero due south, east negative, and west positive. 0° = facing due
south; -90° = facing due east; 90° = facing due west.
DERIVATIVES
OUTPUTS
1 Outlet temperature [°C] The temperature of the fluid exiting the solar collector array.
2 Outlet flowrate [kg/hr] The flowrate of the fluid exiting the solar collector array. In this
model, the outgoing flow rate will always equal the incoming
flowrate.
3 Useful energy gain [kJ/hr] The rate of useful energy gain by the solar collector fluid:
Qu = mdot * Cp * (Tout - Tin)
4 Collector efficiency [-] The ratio of the collector’s useful energy gain (Output 3) to the total
incident radiation (beam + diffuse) on the surface of the collector
5 Incidence angle [-] The ratio of the transmittance-absorptance product of the collector
modifier (overall) at the given incidence angle over the transmittance-absorptance
product at normal incidence; the ratio of the total absorbed
radiation to the radiation that would have been absorbed if the
beam radiation were normal to the collector surface.
TEXT FIELDS
4–548
TRNSYS 18 – Mathematical Reference
4.9.7.4. Nomenclature
A [m²] Total collector array aperture or gross area (consistent with F R(),
FRUL, FRUL/T and Gtest)
4–549
TRNSYS 18 – Mathematical Reference
UL [kJ/h-m²-K] Overall thermal loss coefficient of the collector per unit area
[-] Short-wave absorptance of the absorber plate
[°] Collector slope above the horizontal plane
[°] Collector azimuth angle
s [°] Solar azimuth angle
[°] Incidence angle for beam radiation
c [°] Half-acceptance angle
l [°] Longitudinal acceptance angle
t [°] Transversal acceptance angle
g [-] Ground reflectance
[-] Short-wave transmittance of the collector cover(s)
() [-] Product of the cover transmittance and the absorber absorptance
()b [-] () for beam radiation (depends on the incidence angle )
()n [-] () at normal incidence
()s [-] () for sky diffuse radiation
()g [-] () for ground reflected radiation
In the second case (referred to as mode 2), the CPC’s long axis would ideally run N/S. If the CPC does not
track the solar azimuth then the plane of the receiver (and the long axis of the CPC) have a fixed slope that
4–550
TRNSYS 18 – Mathematical Reference
is taken as an input to the model. The long axis may not run due N/S in which case it would face a non-
south azimuth. In this case, beam radiation enters the CPC when t c where:
1 + cos
Fsky = Eq. 4.9.7-3
2CR
1 - cos
Fgnd = Eq. 4.9.7-4
2CR
and for the transverse receiver orientation:
Axis of
CPC
c
Axis of Parabola
Parabola
Focus of
Parabola Receiver (Absorber)
In discussing the reflector characteristics, it is helpful to use the coordinate system of Rabl shown on the
following page. As given by Rabl, a branch of the CPC satisfies:
y= x2
Eq. 4.9.7-8
2s (1 + sin c)
4–551
TRNSYS 18 – Mathematical Reference
and:
1 + sin c 1/2
x=s -sin c + 1 + h cot2 c Eq. 4.9.7-10
cos c h
Axis o f
Y CPC
(X,Y)
(Xs ,Ys )
c
The total radiation entering the collector aperture is I in . Aa. The total radiation incident on the absorber,
ignoring reflective loss, may be written IR . As. Therefore, in passing from the aperture to the absorber, the
radiation per unit area is increased by the concentration ratio:
A 2 sin c
CR = a = 2 xs cos c - xs + sin c - cos2 c Eq. 4.9.7-11
As sin c + 1
For full CPC's, i.e. when h /h = l, the concentration ratio is l/sinc. The concentration ratio falls off from
l/sinc as h /h decreases.
As radiation travels from the aperture to the absorber, some of it is reflected by the walls of the trough. If
the walls are not perfect reflectors, there is some loss of radiation. To account for this reflective loss, one
may define the effective reflectance of the reflector system as:
IR
eff = Eq. 4.9.7-12
Iin CR
As in the analysis of Rabl:
4–552
TRNSYS 18 – Mathematical Reference
where R is the wall reflectance and n is the average number of internal reflections.
I b + IdT d
= bT Eq. 4.9.7-17
IT
The transmittance-absorptance product for beam radiation is determined with TRNSYS function Tau_Alpha
using an effective absorptance of eff . .
The incidence angle modifiers for both diffuse sky radiation, ()s/()n, and ground reflected diffuse
radiation, ()g/()n, are determined in all modes by integrating beam IAMs over the sky dome and over
the ground projected onto the collector surface, respectively. Isotropic diffuse radiation is assumed for this
analysis. See the integration equation below for integrating sky diffuse incidence angle modifiers over the
sky dome:
/ 2 / 2 /2 sin (cot / tan )
1
ds 0 / 2 bn ( ) cos sin dd / 2 / 2 b
( ) cos sin dd
n Eq. 4.9.7-18
n / 2 /2 /2 sin 1 (cot / tan )
0
/2
cos sin dd
/ 2
/2
cos sin dd
For the ground-reflected diffuse radiation incidence angle modifiers, which are integrated over the surface
area of the ground projected onto the collector:
/2 /2 b ( ) cos( ) sin( ) dd
dg / 2 sin 1 (cot / tan ) n
Eq. 4.9.7-19
n /2
/2
cos( ) sin( ) dd
/ 2 sin 1 (cot / tan )
These integrations are performed numerically, using the TRNSYS function Tau_Alpha to calculate the
beam transmittance-absorptance product at each interval.
Outlet and stagnation temperatures are calculated as in Type 73.
4–553
TRNSYS 18 – Mathematical Reference
4.9.7.6. References
1. Beckman, W.A., and Duffie, J. A. Solar Engineering of Thermal Processes. Second Edition. New
York: John Wiley & Sons, Inc, 1991.
4–554
TRNSYS 18 – Mathematical Reference
4–555
TRNSYS 18 – Mathematical Reference
1 Specific heat of [kJ/kg.K] The specific heat of the fluid flowing through the rock bed
working fluid (typically air)
2 Length of rock bed [m] The length of the rock bed in the flow direction
3 Cross section area of [m2] The inside dimensions of the rock bed cross sectional area
rock bed (perpendicular to the flow direction)
4 Perimeter [m] The inside dimension of the rock bed perimeter (perpendicular to
the flow direction)
5 Specific heat of rock [kJ/kg.K] The specific heat of the the rock in the rock bed
6 Apparent density [kg/m3] The average density of the combination of rock and void space
in the rock bed.
7 Loss coefficient [kJ/hr.m2.K] The thermal loss coefficiency between the rock bed and its
surroundings.
8 Effective thermal [kJ/hr.m.K] The effective thermal conductivity of the rock bed in the flow
conductivity direction (including voids).
INPUTS
1 Inlet temperature 1 [C] The temperature of the air entering the rock bed from the top and
flowing down.
2 Inlet flowrate 1 [kg/h] The flowrate of air entering the rock bed from the top and flowing
down. *Note - the flowrate of air entering the bed from the top
(this input) and the flowrate of air entering the bed from the
bottom (input 4) cannot be greater than zero simultaneously.
3 Inlet temperature 2 [C] The temperature of the air entering the tank from the bottom and
flowing upwards.
4 Inlet flowrate 2 [kg/h] The flowrate of air entering the rock bed from the bottom and
flowing upwards. *Note - the flowrate entering the bottom (this
input) and the flow entering from the top of the tank (Input 2)
cannot be greater than zero simultaneously.
5 Environment [C] The temperature of the surroundings to which the rock bed is
temperature exposed. This input is used to calculate the thermal losses from
the rock bed.
4–556
TRNSYS 18 – Mathematical Reference
DERIVATIVES
The number of derivatives determines the number of isothermal segments (in the flow direction) into which the
rock bed will be divided. Values between 1 and 40 are permitted.
1 Initial temperature of [C] The initial temperature of the specified segment of the rock bed.
segment Segment 1 = top of rock bed; segment N = bottom of rock bed.
OUTPUTS
1 Bottom node [C] The temperature of the fluid/rock in the bottom segment of the
temperature tank.
2 Flow rate from the [kg/h] The flowrate of fluid entering the top of the rock bed and leaving
bottom node at the bottom of the rock bed.
3 Top node temperature [C] The temperature of the fluid/rock in the top segment of the tank.
4 Flow rate from the top [kg/h] The flowrate of fluid entering the bottom of the rock bed and
node exiting the top of the rock bed.
5 Internal energy change [kJ] The change in internal energy since the simulation began. This
output should not be integrated.
6 Rate of energy supply [kJ/h] The rate of energy supplied by the rock bed to the load stream
(the air entering from the bottom and leaving the top). The supply
rate is: Qsupply = mdot,b * Cpair * (T1 – Tin,bot)
7 Environment losses [kJ/h] The rate of energy lost to the surroundings from the rock bed.
Storage U-value [kJ/h.K] Parameter 7 multiplied byt the rock bed surface area
4–557
TRNSYS 18 – Mathematical Reference
4.10.1.4. Nomenclature
A cross-sectional area of the rock pile
Cp specific heat of air
Cr specific heat of rock
hv volumetric heat transfer coefficient between air and rocks
k effective thermal conductivity of the rock bed in the axial direction
L length of the rock bed in the flow direction
m air mass flow rate
P perimeter of rock bed wall
Qs rate at which energy is removed from the rock bed to meet the load
T average rock bed temperature
T air temperature
Tenv temperature of surroundings
Tin temperature of air entering the rock bed
Tr rock temperature
Ti temperature of air and rock in segment i
t time
U loss coefficient from the rock bed to the environment
V volume of rock bed = AL
E change in internal energy of the rock bed
hvV
= NTU of the rock bed
p
mC
r apparent rock density (accounting for voids)
V r C r
t p
mC
4–558
TRNSYS 18 – Mathematical Reference
Tr
= (T - Tr) Eq. 4.10.1-1
t
T
= Tr - T - UPL T - Te nv Eq. 4.10.1-2
(X/L) mCp
These equations can be solved by finite difference methods. However, small time steps and many nodes
are required to maintain accuracy. As a result, the use of this model in simulations for extended periods
(e.g., a heating season or a year) becomes expensive in terms of computing costs.
The results of many simulations of air heating systems in which Eq. 4.10.1-1 and Eq. 4.10.1-2 have been
used to describe the rock bed behavior, have shown that the system performance has an asymptotic
dependence upon . For values of e greater than ~10, (which is generally much lower than the values
encountered in most practical designs) the system performance is independent of (l); may be increased
without bound without affecting system performance significantly.
This observation indicates that a rock bed model in which may be applicable in most cases. The
equations describing the air and rock temperatures for are given in Eq. 4.10.1-3 and Eq. 4.10.1-4.
T T
-A rCr = mCp + UP(T - Tenv) Eq. 4.10.1-3
t X
Tr = T Eq. 4.10.1-4
Eq. 4.10.1-3 and Eq. 4.10.1-4 can be solved with significantly less computational effort than Eq. 4.10.1-1
and Eq. 4.10.1-2.
For rock bed designs in which > 10, the solution of Eq. 4.10.1-3 and Eq. 4.10.1-4 is nearly identical to that
of Eq. 4.10.1-1 and Eq. 4.10.1-2. In addition, it is possible to include axial conduction, since this situation is
easily handled as shown in the next section.
4–559
TRNSYS 18 – Mathematical Reference
T T 2T
A r C r mC
p UP(T Tenv ) kA 2 Eq. 4.10.1-5
t x x
In order to solve this equation, the rock bed is divided into segments, as shown in Figure 4.10.1–1, in a
manner analogous to that used for the thermally stratified fluid storage tank such as Type158. An ordinary
differential equation can then be written for each segment, using finite difference methods.
Top
Segment 1
N
B ottom
4–560
TRNSYS 18 – Mathematical Reference
for i = 1
VrCrdT1 = mCp T2- T1 - UPL T1 - Tenv - kA T2 - T1 Eq. 4.10.1-11
N dt N L/N
A value of N = 5 is recommended.
4.10.1.6. References
1. Hughes, P.M., Klein, S.A., and Close, D., "Packed Bed Thermal Storage Models for Solar Air Heating
and Cooling Systems", Journal of Heat Transfer, May (1976).
4–561
TRNSYS 18 – Mathematical Reference
1 Inlet position mode [-] The auxiliary storage tank may operate in one of two modes in
determining the inlet positions of the flow streams. Mode 1
indicates that the heat source flow enters the tank in a fixed
location and the flow mixes with adjacent segments if the
temperature is within 1/2 degree. In Mode 2, the tank has variable
inlet positions and new segments are inserted at the levels which
produce no temperature inversions. This allows for a maximum
degree of stratification.
2 Tank volume [m3] The actual volume of the storage tank (not the nominal value).
4 Height of collector [m] The vertical distance between the bottom of the storage tank and
return the inlet of the hot-side flow stream.
5 Fluid specific heat [kJ/kg.K] The specific heat of the fluid contained in the storage tank.
6 Fluid density [kg/m3] The density of the fluid contained in the storage tank.
7 Thermal conductivity [kJ/hr.m.K] The effective thermal conductivity of the fluid and the walls of the
thermal storage tank (0 = no conduction).
8 Tank configuration [-] The configuration of the thermal storage tank: 1 ---> Vertical
cylinder ; 2 ---> Horizontal cylinder
4–562
TRNSYS 18 – Mathematical Reference
9 Overall Loss [kJ/hr.K] The overall loss coefficient (UA) for the storage tank.
Coefficient
10 Insulation ratio [-] The ratio of the thickness of the top insulation to the side insulation
for vertical tanks, or the ratio of the insulation thickness of the top
insulation to the bottom insulation of a horizontal cylindrical tank
(set this ratio to 1 if the tank has a concentric insulation jacket).
11 Initial temperature [C] The initial temperature of the preheat portion of the thermal storage
tank.
12 Maximum heating rate [kJ/hr] The maximum rate at which energy can be added to the thermal
storage tank from the auxiliary heating element. If there is no
element present in the tank, set this parameter to 0.
13 Auxiliary height [m] The height of the auxiliary heater element above the bottom of the
storage tank.
14 Thermostat height [m] The height of the thermostat for the auxiliary heater above the
bottom of the storage tank.
15 Set point temperature [C] The set point temperature for the auxiliary heating element. The
thermostat will enable the heating element when the temperature of
the fluid in the node containing the thermostat falls below: Tset -
Tdb and continue to heat the fluid until it reaches the set point
temperature. Tset = this parameter; Tdb = temperature deadband
16 Temperature [deltaC] The dead band temperature difference for the auxiliary heating
deadband element. The thermostat will enable the heating element when the
temperature of the fluid in the node containing the thermostat falls
below: Tset - Tdb and continue to heat the fluid until it reaches the
set point temperature. (See manual for further information on
equation)
17 Flue loss coefficient [kJ/hr.K] The overall loss coefficient (UA) for heat loss to the flue when the
auxiliary heater is off. This parameter is used to model gas heated
storage tanks and should be set to zero if there is no flue.
INPUTS
1 Hot-side temperature [C] The temperature of the fluid flowing into the tank from the heat
source.
2 Hot-side flowrate [kg/hr] The flowrate of fluid into the storage tank from the heat source. An
equal flowrate of fluid leaves the bottom of the storage tank for
return to the heat source.
3 Cold-side temperature [C] The temperature of the replacement fluid flowing into the bottom of
the storage tank.
4 Cold-side flowrate [kg/hr] The flowrate of replacement fluid flowing into the bottom of the
storage tank. An equal amount of fluid is assumed to flow from the
top of the tank to meet the load.
5 Environment [C] The temperature of the environment in which the storage tank is
temperature located.
4–563
TRNSYS 18 – Mathematical Reference
6 Control signal [-] The control signal for the auxiliary heating element. The available
power for the heating element will be this input multiplied by the
maximum power for the element. If an auxiliary heater is not
desired for the simulation, set this input to a constant of 0.0 or set
the maximum power for the element to 0.0
OUTPUTS
The temperature of the fluid flowing from the bottom of the storage
1 Temperature to heat tank and returning to the heat source (the bottom node
source [C] temperature).
Flowrate to heat The flow rate of fluid exiting the bottom of the storage tank to return
2
source [kg/hr] to the heat source.
The temperature of the fluid flowing from the top of the storage tank
3
Temperature to load [C] to the load (the temperature of the top node).
4 Flowrate to load [kg/hr] The flow rate of fluid exiting the tank at the top to meet the load.
5 Thermal losses [kJ/hr] The rate of thermal energy loss to the environment.
The rate at which energy is removed from the tank to supply the
load. The energy rate to the load is calculated by: Qload =
6
mdot,load * Cp * (Ttop - Treplace) (See manual for further
Energy rate to load [kJ/hr] information on equation)
The rate at which energy was added to the thermal storage tank by
8
Auxiliary heating rate [kJ/hr] the auxiliary heater.
The rate of energy transfer from the heat source to the storage
9 Energy rate from heat tank. The rate is calculated from: Qin = mdot,source * Cp * (Thot -
source [kJ/hr] Ttosource) (See manual for further information on equation)
Average tank The average temperature of the fluid in the storage tank over the
10
temperature [C] timestep.
4–564
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
Inlet position mode [n/a] Either “fixed” or “variable” depending on the value of parameter 1
4.10.2.3. Nomenclature
Cp specific heat of fluid
Ha height of auxiliary heater above bottom of tank
Ht height of tank
Hth height of thermostat above bottom of tank
Hr height of entry of hot stream (above bottom of tank)
k thermal conductivity
mh mass flow rate of hot stream entering tank
mL mass flow rate of load
Qaux rate of auxiliary energy input to tank
Qenv rate of energy loss from tank
Qhe maximum rate of energy input to tank by auxiliary
Qin rate of energy input to tank from hot fluid stream
Qsup rate of energy supplied to load by tank
ri ratio of insulation thickness of top to sides of upright tanks or top to bottom insulation ratio for horizontal
tanks
TD temperature of water delivered by tank to load
Tenv environmental temperature for losses
Th temperature of hot fluid entering tank
Ti temperature of ith segment
TI initial temperature of preheat portion of tank
4–565
TRNSYS 18 – Mathematical Reference
TR = TL:
k 1
TD Vh Th Ti Vi aTk Vk / VL Eq. 4.10.2-2
i 1
where a and k must satisfy
0 a 1:
k 1
Vh Vi aVk VL Eq. 4.10.2-3
i 1
4–566
TRNSYS 18 – Mathematical Reference
TD = Th:
N
TR VL TL Ti Vi aTk Vk / Vh Eq. 4.10.2-4
i k 1
where a and k must satisfy
0 a 1:
N
VL T V aT V
i k 1
i i k k Vh Eq. 4.10.2-5
In mode 1, the average delivery and heat source return temperatures are computed after the profile has
been corrected for temperature inversions. Segments are combined until the equilibrium temperatures
result in no temperature inversions. This process begins at each inlet and proceeds in the direction of the
inversion.
The optional auxiliary heater is modeled as in the Type 4 component. If necessary, the segment containing
the auxiliary is split into two segments at the actual position of the auxiliary. The auxiliary is on if the
temperature of the segment containing the thermostat is either less than T set-tdb or if the auxiliary was
on for the previous time interval and the thermostat temperature is less than T set. The segment containing
the auxiliary is heated first, until it reaches the temperature of the segment above. These two segments are
then heated together until they reach the temperature of the segment above them. This process continues
until either the maximum heater input is used or the set temperature is reached. If a load flow is occurring
and auxiliary is able to heat the top segment, then the delivered fluid is heated with a linear temperature
profile.
Storage losses from the tank and conduction between segments are evaluated before the temperature
profile has been adjusted for flows and auxiliary heat input. This is accomplished by solving the following
differential equation for each segment:
dTi (T - T ) (T - T )
CpVi = -(UA)i (Ti - Tenv) + (kA)i-1 i-1 i - (kA)i i i+1 Eq. 4.10.2-6
dt h h
i-1 i+1
where hi-1 = separation between centers of segments i-1 and i, and hi+1 = separation between centers
of segments i and i+1.
4–567
TRNSYS 18 – Mathematical Reference
To p Bo tto m
T time = t 1
1
T
2 T3
T
4
V1 V V V
2 3 4
T
h
collecto r T s tep 1
1
flow T
2 T
3
V T
h
4
V1 V V V
2 3 4
T
T 1
h s tep 2
T1
T2 T
3
T V
4
TL lo a d flow
L
V V V V V
h 1 2 3 4
T time t = t + t
1 2 1
T T
2
3
T
4
T
5
Figure 4.10.2–1: Example of the Extended SOLSYS SYSTEM (adapted from ref. 1)
When conduction is included, the set of coupled differential equations is solved by successive substitution.
Conduction down the walls of the tank can be included by using an effective conductivity.
The overall conductance for heat loss from any segment, (UA) i, depends upon its surface area and a user-
supplied overall loss conductance UA. In addition an optional conductance for heat loss to a gas heater
flue when the auxiliary is not operating can also be specified.
The total loss from the tank is:
N
( UA) (T T )
Q Eq. 4.10.2-7
env i i env
i 1
The energy input to the tank due to the hot inlet stream is:
4–568
TRNSYS 18 – Mathematical Reference
N N
E C p Vi Ti Vi Ti Eq. 4.10.2-10
i 1 i 1
t TIME 0
4.10.2.5. References
1. Kuhn, J.K. VanFuchs, G.F., and Zob, A.P., "Developing and Upgrading of Solar System Thermal Energy
Storage Simulation Models," Draft Report for DOE, Boeing Computer Services Company, August 31
(1980).
4–569
TRNSYS 18 – Mathematical Reference
1 Tank operation mode [-] The operation mode of the storage tank when a full condition is
reched:
1 ---> Recirculate the fluid if the tank is full
2 ---> Divert the fluid stream if the tank is full
3 Minimum liquid volume [m3] The minimum volume of fluid allowed in the storage tank before the
load is modulated to maintain this minimum volume.
4 Maximum liquid [m3] The maximum volume of fluid allowed in the storage tank before
volume the fluid stream is either recirculated or diverted.
6 Cross sectional area [m2] The cross-sectional area of the variable volume storage tank.
7 Wetted loss coefficient [kJ/h.m2.K] The loss coefficient of that part of the tank which is in contact with
the liquid
8 Dry loss coefficient [kJ/h.m2.K] The loss coefficient of that part of the tank which is not in contact
with the liquid
9 Liquid specific heat [kJ/kg.K] The specific heat of the liquid contained in the storage tank
10 Liquid density [kg/m3] The density of the liquid contained in the storage tank
11 Initial liquid [C] The temperature of liquid in the storage tank at the beginning of the
temperature simulation
12 Initial liquid volume [m3] The volume of liquid in the storage tank at the beginning of the
simulation.
INPUTS
4–570
TRNSYS 18 – Mathematical Reference
1 Inlet temperature [C] The temperature of liquid entering the storage tank
2 Inlet flow rate [kg/h] The flow rate of liquid entering the storage tank
3 Flow rate to load [kg/h] The flow rate of liquid leaving the storage tank
4 Environment [C] The temperature of the environment in which the storage tank is
temperature located.
5 Auxiliary energy input [kJ/h] The rate at which auxiliary energy is added to the storage tank.
OUTPUTS
1 Liquid temperature [C] The temperature of liquid contained in the storage tank
2 Load flow rate [kg/h] The flow rate of fluid exiting the storage tank to meet the load. Note
- this may be different than the desired load flow rate due to
minimum and maximum volume considerations.
3 Excess flow [C] The temperature of the recirculated flow stream (mode 1) or the
temperature diverted flow stream (mode 2) if a maximum volume condition is
reached.
4 Excess flow rate [kg/h] The flow rate of fluid that is either recirculated (mode 1) or diverted
(mode 2) due to a maximum volume condition being reached.
6 Enthalpy difference [kJ/kg] The difference in enthalpies of the outgoing and the incoming flow
streams.
7 Environment losses [kJ/h] The rate at which energy is transferred to the environment from the
storage tank.
8 Internal energy change [kJ] The change in internal energy of the tank relative to the beginning
of the simulation. This term is an energy quantity and not an energy
rate and should not be integrated.
9 Level indicator [-] The level indicator for the storage tank:
-1 ---> Tank fluid is at minimum level
0 ---> Tank fluid is somewhere between minimum and maximum
levels
1 ---> Tank fluid is at maximum level
4–571
TRNSYS 18 – Mathematical Reference
TEXT FIELDS
Operation mode [n/a] “Recirculate the fluid if the tank is full” or “Divert the fluid stream if the
tank is full” depending on the value of parameter 1
4.10.3.3. Nomenclature
Ax cross-sectional area of tank
Cpf specific heat of fluid in tank
Cx circumference of tank
mh flow rate of incoming hot stream
mi net incoming flow rate; mh in mode 1; mh - mr in mode 2
mL flow rate required by load
mo net flow leaving tank; ms - mr in mode 1; ms in mode 2
mr flow rate of recirculation or diverted stream necessary to keep fluid level at the upper limit
ms actual flow rate supplied to load
M instantaneous mass of fluid in tank
M average mass of fluid in tank over the timestep
MI initial mass of fluid in tank
M mass of fluid in tank at end of timestep
M-t mass of fluid in tank at beginning of timestep
4–572
TRNSYS 18 – Mathematical Reference
.
m ,T m ,T
m ,T h h m r ,T h
h h h h
. m ,T
. m s ,T
m s ,T r m s ,T
4–573
TRNSYS 18 – Mathematical Reference
Simultaneous solution of Eq. 4.10.3-1 and Eq. 4.10.3-2 for final and average fluid temperatures for a
timestep gives:
b/c
a a ct
T T t 1 Eq. 4.10.3-5
b b M t
M-t T-t - a (1-b/c)
T= +a b 1 + Ct -1 Eq. 4.10.3-6
b (c - b)t M-t
where,
(𝑈𝐴)𝑡 𝑞̇ 𝑎𝑑𝑑
𝑎 = 𝑚𝑖 𝑇ℎ + 𝑇𝑒𝑛𝑣 +
𝐶𝑝𝑓 𝐶𝑝𝑓
(UA) t
b = mi +
Cpf
c = mi - mo
For the situation where the incoming flow equals the total outgoing flow (i.e. no net change in mass), the
following differential equation results:
(UA) t
M-tdT = mi Th - T - T-Tenv Eq. 4.10.3-7
dt Cpf
This equation is solved analytically.
The change internal energy, the difference in enthalpies per unit time between outgoing and incoming flow
streams, and energy loss rate are calculated as:
m
H i C pf Th m
o C pf T Eq. 4.10.3-9
The overall conductance for heat loss from the tank, (UA) t, is calculated based upon average wetted and
dry areas for the current timestep and user specified wet and dry loss coefficients.
4–574
TRNSYS 18 – Mathematical Reference
1 Fluid volume [m3] The internal volume of the tank. In U.S. applications, this volume is
typically 95% of the rated storage volume (80 gallon nameplate =
75 gallon fluid volume).
3 Tank heat loss [kJ/hr-m2-K] The effective heat loss coefficient for the storage tank. Thermal
coefficient losses through the top, bottom, and edges of the tank are a
function of this value and the temperature difference between the
tank nodes and the environment.
4–575
TRNSYS 18 – Mathematical Reference
4 Initial tank temperature [°C] The temperature of the fluid in the storage tank at the beginning of
the simulation. All nodes of the tank are at the same temperature
at the start of the simulation.
5 Rated heating capacity [kJ/hr] The rated heating capacity of the gas water heater heating source.
The amount of heat available to the fluid is simply this value
multiplied by the thermal efficiency of the heating device.
6 Heating efficiency [-] The efficiency of the heating device in converting fuel to useful
heat. The amount of heat available to the fluid is simply this value
multiplied by the heating capacity of the heating device.
7 Pilot light energy [kJ/hr] The rate at which the pilot light adds energy to the water heater
when the auxiliary heater is not firing. During periods when the
auxiliary heater is firing, the pilot light is assumed to be off.
8 Height fraction for [-] The fraction of the height from the bottom of the water heater to the
thermostat location of the thermostat (0=bottom, 1=top).
9 Setpoint deadband [°C] The temperature difference between the setpoint temperature and
the temperature at which the heating device becomes active. Note
that in this model, the setpoint is centered in the deadband; for
example, if the setpoint were 55 °C and the deadband were 6 °C,
the heating device would turn on at measured temperatures of
52 °C and lower and off at a measured temperature of 58 °C.
10 Fluid specific heat [kJ/kg-K] The specific heat of the fluid in the storage tank.
11 Fluid density [kg/m3] The density of the fluid in the storage tank.
12 Fluid conductivity [kJ/hr-m-K] The conductivity of the fluid in the storage tank.
INPUTS
1 Inlet temperature [°C] The temperature of the fluid entering the water heater (in this Type,
fluid always enters at the bottom of the storage tank).
2 Inlet flow rate [kg/hr] The flow rate of fluid entering the water heater, or the load flow on
the heater.
3 Environment [°C] The effective temperature of the tank’s environment, for calculating
temperature losses from the water heater.
4 Setpoint temperature [°C] The desired temperature of the water heater. Note: the water
heater will begin heating the water when the temperature at the
thermostat falls to this setpoint temperature minus ½ the deadband
temperature difference (Parameter 9).
OUTPUTS
1 Temperature at outlet [°C] The temperature of the fluid exiting the water heater.
2 Flow rate at outlet [kg/hr] The flow rate of the fluid exiting the water heater, or the load flow
on the heater. This is equal to the inlet flow rate to the water
heater.
4–576
TRNSYS 18 – Mathematical Reference
3 Average tank [°C] The average temperature of the fluid in the water heater.
temperature
4 Energy delivery rate to [kJ/hr] The net rate at which energy is removed from the storage tank due
fluid to fluid flowing through the water heater. This is simply: (flow rate
through the heater) x (specific heat of the fluid) x (temperature
difference between incoming fluid and outgoing fluid).
5 Auxiliary heating rate [kJ/hr] The rate at which auxiliary heat energy is added to the water heater
fluid. The amount of heat available to the fluid is simply this value
multiplied by the thermal efficiency of the heating device.
6 Tank losses [kJ/hr] The rate at which energy is lost to the environment through the
surfaces of the water heater.
7 Energy storage rate [kJ/hr] The rate at which energy is stored by the fluid in the water heater,
due to a rise in temperature of the fluid (capacitance effects).
8 Energy balance error [%] The percent energy balance error for the heat transfers in the water
heater. Due to the iterative solution nature of the model, nodal
temperatures are approximate to a degree, which can lead to
energy imbalances. These imbalances are usually small. Large
imbalances may indicate that the timestep of the simulation is too
large for the loads being modeled.
Delivered Energy [kJ] The total energy delivered to the working fluid. This is the cumulative
value over the simulation of: (flow rate through the heater) x (specific
heat of the fluid) x (temperature difference between incoming fluid and
outgoing fluid).
Auxiliary Energy [kJ] The total auxiliary energy supplied to the water heater fluid. The amount
of heat available to the fluid is simply this value multiplied by the thermal
efficiency of the heating device.
Thermal Losses [kJ] The total thermal energy lost to the environment through the surfaces of
the water heater.
Tank outlet [°C] The temperature of the fluid exiting the water heater.
temperature
Tank average [°C] The average temperature of the fluid in the water heater (average
temperature temperature of all nodes of the water heater).
4–577
TRNSYS 18 – Mathematical Reference
4.10.4.4. Nomenclature
Surface area of the bottom of node j in contact with the
Abottom,j [m2] bottom of the tank; = 𝜋𝐷2 /4 if j = Nnodes, = 0 for all other
nodes
Surface area of the edge of node j in contact with the wall of
Aedge,j [m2]
the tank; = 𝜋𝐷ℎ𝑡𝑎𝑛𝑘 /𝑁𝑛𝑜𝑑𝑒𝑠 for all nodes of the tank
Surface area of the top of node j in contact with the top of
Atop,j [m2]
the tank; = 𝜋𝐷2 /4 if j = 1, = 0 for all other nodes
cp [kJ/kg-K] Specific heat of tank fluid
4–578
TRNSYS 18 – Mathematical Reference
𝑄̇𝑚𝑎𝑠𝑠𝑓𝑙𝑜𝑤,𝑗 [kJ/hr] Rate of heat transfer through node j due to fluid flow
4–579
TRNSYS 18 – Mathematical Reference
Figure 4.10.4–1: Vertical, cylindrical, isothermally noded storage tank with one inlet (bottom) and one outlet
(top)
The tank is divided into N horizontal nodes of equal volume. Each of the tank nodes is assumed to be
isothermal. Node 1 is at the top of the storage tank, and the final node is at the bottom of the tank.
In this type of storage tank, energy can be transferred into and out of each node through mass flow, through
conductance to the node above or below, through thermal losses to the environment, or (in the case of the
bottommost node) through the auxiliary heater. Each of these heat transfer terms is elaborated in the
following sections.
THERMAL LOSSES
Thermal losses to the surrounding environment from each fluid node are calculated as follows:
𝑄̇𝑙𝑜𝑠𝑠,𝑗 = 𝑈𝑡𝑎𝑛𝑘 ∙ 𝐴𝑡𝑜𝑝,𝑗 ∙ (𝑇𝑗 − 𝑇𝑎𝑚𝑏 ) + 𝑈𝑡𝑎𝑛𝑘 ∙ 𝐴𝑏𝑜𝑡𝑡𝑜𝑚,𝑗 ∙ (𝑇𝑗 − 𝑇𝑎𝑚𝑏 )
Eq. 4.10.4-1
+ 𝑈𝑡𝑎𝑛𝑘 ∙ 𝐴𝑒𝑑𝑔𝑒,𝑗 ∙ (𝑇𝑗 − 𝑇𝑎𝑚𝑏 )
All tank nodes include edge losses. Losses through the top or bottom of the tank are only included if j = 1
or j = Nnodes, respectively.
AUXILIARY HEATING
Heat transfer through an auxiliary heater is calculated as follows:
𝑄̇𝑎𝑢𝑥,𝑗 = 𝐼𝑎𝑢𝑥 ∙ 𝑄̇𝑎𝑢𝑥,𝑟𝑎𝑡𝑒𝑑 ∙ 𝜂𝑎𝑢𝑥 Eq. 4.10.4-4
4–580
TRNSYS 18 – Mathematical Reference
where:
𝑏𝑎𝑣𝑒 = 𝑏(𝑇𝑎𝑣𝑒 ) Eq. 4.10.4-8
and:
1 𝑏 𝑏
𝑇𝑎𝑣𝑒 = (𝑇 + 𝑎𝑣𝑒⁄𝑎) ∙ (𝑒 𝑎∆𝑡 − 1) − 𝑎𝑣𝑒⁄𝑎 Eq. 4.10.4-9
𝑎∆𝑡 𝑖𝑛𝑖𝑡𝑖𝑎𝑙
With this assumption, the problem becomes straightforward to solve. Simply write the differential equation
in the correct form, determine a and bave and solve for Tfinal and Tave. Then recalculate bave and iterate until
the temperatures converge. The assumption that b is constant over the timestep (and equal to its average
value over the timestep) is a reasonable approximation for the small timesteps used in a TRNSYS
simulation.
The model will automatically check at the end of each timestep for thermal instability. If a thermal instability
is found, the model will calculate the time at which the offending nodes first became unstable and re-run
calculations at a sub-timestep, measured from the beginning of the timestep (or the end of the last sub-
timestep) up until the time of instability. The model will then immediately and thoroughly mix the offending
nodes and proceed with calculations from that time until the end of the full timestep. The process is repeated
if instability is encountered again. Figure 4.10.4–2 below illustrates the process through a simplified
example (with thermal losses and conduction effects neglected).
4–581
TRNSYS 18 – Mathematical Reference
(1) Example condition at the (2) Auxiliary heat is applied to (3) Since instability was found,
start of a timestep. This 40- bottom node; bottom node is calculations are re-run at a
gallon water tank has a hotter than node above at sub-timestep to the point the
setpoint of 55 °C, deadband the end of the timestep. nodes first become unstable
of 5 °C. (T4=T3, at 0.0194 [hr]).
(4) Unstable nodes are mixed. (5) Calculations continue until (6) Calculations are re-run at a
Nodes 3 and 4 are effectively the end of the timestep; sub-timestep until the nodes
one double-node, from now again, T3 (and T4) are hotter become unstable (T2=T3, at
until such time as T3 may be than T2 at the end of the 0.058 [hr]). The process
hotter than T4. timestep. repeats from step (4).
Figure 4.10.4–2: Illustration of thermal instability processing and rectification
For water (and fluids with similar properties), the ratio of buoyancy forces to viscous forces acting on the
fluid is typically very high, and the assumption of thorough and immediate mixing is reasonable. Other
models, such as Type 534 (in the TESS Storage Library) allow the user to define a flow rate at which
offending nodes will mix until stabilized, for cases where de-stratification may happen more slowly.
Most controller Types within TRNSYS require that only one control condition (on or off) may apply per
timestep. This necessitates using a timestep at least as small as the cycle time of the equipment being
controlled; large errors can result from using larger timesteps, especially if loads are large. One benefit of
Type 153’s integrated temperature controls is the ability to make control decisions at sub-timesteps smaller
than the simulation timestep.
4–582
TRNSYS 18 – Mathematical Reference
Once temperature instabilities have been checked and resolved (see Temperature Instability and
Resolution), the model checks to see if the auxiliary heat signal should be changed:
If the auxiliary heat is ON, and the temperature of the node containing the thermostat is above its
setpoint temperature plus ½ the deadband, the model will calculate the time at which the node with
the thermostat first reached its setpoint plus ½ the deadband and re-run calculations at a sub-
timestep, measured from the beginning of the timestep (or the end of the last sub-timestep) up until
the time the setpoint plus ½ the deadband is satisfied. The model will then turn the auxiliary control
to OFF and proceed with calculations from that time until the end of the full timestep. The process
is repeated if auxiliary heat is triggered ON again before the end of the timestep (see below).
If the auxiliary heat is OFF, and the temperature of the node containing the thermostat is below its
setpoint temperature minus ½ the deadband temperature difference, the model will calculate the
time at which the node with the thermostat first reached this temperature and re-run calculations at
a sub-timestep, measured from the beginning of the timestep (or the end of the last sub-timestep)
up until the time Tj = Tsetpoint – ½ ΔTdeadband. The model will then turn the auxiliary control to ON and
proceed with calculations from that time until the end of the full timestep. The process is repeated
if auxiliary heat is triggered OFF again before the end of the timestep (see above).
The procedure is similar to the handling of thermal instability at sub-timesteps. Note that thermal instabilities
are always addressed before auxiliary controls are addressed in the model. For example, in Figure 4.10.4–
2, diagram (2), the auxiliary heat would not turn off the first time the model reaches t=0.1 hr, even though
T4 = 59 [°C], because thermal instabilities have not yet been addressed.
4–583
TRNSYS 18 – Mathematical Reference
1 Fluid volume [m3] The internal volume of the tank. In U.S. applications, this volume is
typically 95% of the rated storage volume (80 gallon nameplate =
75 gallon fluid volume).
3 Tank heat loss [kJ/hr-m2-K] The effective heat loss coefficient for the storage tank. Thermal
coefficient losses through the top, bottom, and edges of the tank are a
4–584
TRNSYS 18 – Mathematical Reference
4 Initial tank temperature [°C] The temperature of the fluid in the storage tank at the beginning of
the simulation. All nodes of the tank are at the same temperature
at the start of the simulation.
5 Rated heating [kJ/hr] The rated heating capacity of the upper element. The amount of
capacity, upper heat available to the fluid is simply this value multiplied by the
element thermal efficiency of the heating device.
6 Heating efficiency, [-] The efficiency of the heating device in converting fuel to useful
upper element heat. The amount of heat available to the fluid is simply this value
multiplied by the rated heating capacity of the upper device.
7 Height fraction of upper [-] The fraction of the height from the bottom of the water heater to the
element location of the upper element (a value between 0(bottom of tank)
and 1(top of tank)).
8 Rated heating [kJ/hr] The rated heating capacity of the lower element. The amount of
capacity, lower heat available to the fluid is simply this value multiplied by the
element thermal efficiency of the heating device.
9 Heating efficiency, [-] The efficiency of the heating device in converting fuel to useful
lower element heat. The amount of heat available to the fluid is simply this value
multiplied by the rated heating capacity of the lower device.
10 Height fraction of lower [-] The fraction of the height from the bottom of the water heater to the
element location of the lower element (a value between 0(bottom of tank)
and 1(top of tank)).
11 Height fraction for [-] The fraction of the height from the bottom of the water heater to the
upper thermostat location of the upper thermostat (a value between 0(bottom of tank)
and 1(top of tank)).
12 Setpoint deadband, [°C] The temperature difference between the setpoint of the upper
upper thermostat element and the temperature at which the heating device becomes
active. Note that in this model, the setpoint is centered in the
deadband; for example, if the setpoint were 55 °C and the
deadband were 6 °C, the heating device would turn on at
measured temperatures of 52 °C and lower and off at a measured
temperature of 58 °C.
13 Height fraction for [-] The fraction of the height from the bottom of the water heater to the
lower thermostat location of the lower thermostat (a value between 0(bottom of tank)
and 1(top of tank)).
14 Setpoint deadband, [°C] The temperature difference between the setpoint of the upper
lower thermostat element and the temperature at which the heating device becomes
active. Note that in this model, the setpoint is centered in the
deadband; for example, if the setpoint were 55 °C and the
deadband were 6 °C, the heating device would turn on at
measured temperatures of 52 °C and lower and off at a measured
temperature of 58 °C.
15 Master/slave enabled? [0,1] If this value is 1, master-slave behavior of the heating elements will
be enabled. In this mode, the lower element (slave) has the ability
to be activated only when the upper element (master) is off. Only
4–585
TRNSYS 18 – Mathematical Reference
one element at a time will be active in this mode, with priority given
to satisfying the upper thermostat.
16 Fluid specific heat [kJ/kg-K] The specific heat of the fluid in the storage tank.
17 Fluid density [kg/m3] The density of the fluid in the storage tank.
18 Fluid conductivity [kJ/hr-m-K] The conductivity of the fluid in the storage tank.
INPUTS
1 Inlet temperature [°C] The temperature of the fluid entering the water heater (in this Type,
fluid always enters at the bottom of the storage tank).
2 Inlet flow rate [kg/hr] The flow rate of fluid entering the water heater, or the load flow on
the heater.
3 Environment [°C] The effective temperature of the tank’s environment, for calculating
temperature losses from the water heater.
4 Setpoint temperature, [°C] The desired temperature at the upper thermostat of the water
upper element heater. Note: auxiliary heat begins when the temperature at the
thermostat falls to this setpoint temperature minus ½ the deadband
temperature difference (Parameter 12).
5 Setpoint temperature, [°C] The desired temperature at the lower thermostat of the water
lower element heater. Note: auxiliary heat begins when the temperature at the
thermostat falls to this setpoint temperature minus ½ the deadband
temperature difference (Parameter 14).
OUTPUTS
1 Temperature at outlet [°C] The temperature of the fluid exiting the water heater.
2 Flow rate at outlet [kg/hr] The flow rate of the fluid exiting the water heater, or the load flow
on the heater. This is equal to the inlet flow rate to the water
heater.
3 Average tank [°C] The average temperature of the fluid in the water heater.
temperature
4 Energy delivery rate to [kJ/hr] The net rate at which energy is removed from the storage tank due
fluid to fluid flowing through the water heater. This is simply: (flow rate
through the heater) x (specific heat of the fluid) x (temperature
difference between incoming fluid and outgoing fluid).
5 Auxiliary heating rate, [kJ/hr] The rate at which auxiliary heat is added to the fluid through the
upper element upper element. The amount of heat available to the fluid is simply
this value multiplied by the thermal efficiency of the heating device.
6 Auxiliary heating rate, [kJ/hr] The rate at which auxiliary heat is added to the fluid through the
lower element lower element. The amount of heat available to the fluid is simply
this value multiplied by the thermal efficiency of the heating device.
4–586
TRNSYS 18 – Mathematical Reference
7 Total auxiliary heating [kJ/hr] The rate at which auxiliary heat is added to the fluid through both
rate heating elements.
8 Tank losses [kJ/hr] The rate at which energy is lost to the environment through the
surfaces of the water heater.
9 Energy storage rate [kJ/hr] The rate at which energy is stored by the fluid in the water heater,
due to a rise in temperature of the fluid (capacitance effects).
10 Energy balance error [%] The percent energy balance error for the heat transfers in the water
heater. Due to the iterative solution nature of the model, nodal
temperatures are approximate to a degree, which can lead to
energy imbalances. These imbalances are usually small. Large
imbalances may indicate that the timestep of the simulation is too
large for the loads being modeled.
11 Temperature at upper [°C] The temperature of the fluid at the height of the upper element of
auxiliary the storage tank for the current timestep.
12 Temperature at lower [°C] The temperature of the fluid at the height of the lower element of
auxiliary the storage tank for the current timestep.
Delivered Energy [kJ] The total energy delivered to the working fluid. This is the cumulative
value over the simulation of: (flow rate through the heater) x (specific
heat of the fluid) x (temperature difference between incoming fluid and
outgoing fluid).
Auxiliary Energy, [kJ] The auxiliary energy supplied to the water heater fluid through the upper
upper element element. The amount of heat available to the fluid is simply this value
multiplied by the thermal efficiency of the heating device.
Auxiliary Energy, lower [kJ] The auxiliary energy supplied to the water heater fluid through the lower
element element. The amount of heat available to the fluid is simply this value
multiplied by the thermal efficiency of the heating device.
Thermal Losses [kJ] The total thermal energy lost to the environment through the surfaces of
the water heater.
Tank outlet [°C] The temperature of the fluid exiting the water heater.
temperature
Tank average [°C] The average temperature of the fluid in the water heater (average
temperature temperature of all nodes of the water heater).
4–587
TRNSYS 18 – Mathematical Reference
4.10.5.3. Nomenclature
Surface area of the bottom of node j in contact with the
Abottom,j [m2] bottom of the tank; = 𝜋𝐷2 /4 if j = Nnodes, = 0 for all other
nodes
Surface area of the edge of node j in contact with the wall of
Aedge,j [m2]
the tank; = 𝜋𝐷ℎ𝑡𝑎𝑛𝑘 /𝑁𝑛𝑜𝑑𝑒𝑠 for all nodes of the tank
Surface area of the top of node j in contact with the top of
Atop,j [m2]
the tank; = 𝜋𝐷2 /4 if j = 1, = 0 for all other nodes
cp [kJ/kg-K] Specific heat of tank fluid
𝑄̇𝑚𝑎𝑠𝑠𝑓𝑙𝑜𝑤,𝑗 [kJ/hr] Rate of heat transfer through node j due to fluid flow
4–588
TRNSYS 18 – Mathematical Reference
4–589
TRNSYS 18 – Mathematical Reference
Tanks with internal fins, baffles, or other instruments which promote enhanced heat transfer
through the tank (beyond fluid-to-fluid conduction and bouyancy mixing);
Tanks with fluids other than pure water or glycol solutions, for which the ratio of bouyancy forces
to viscous forces may necessitate slower mixing between unstable thermal nodes.
Figure 4.10.5–1: Vertical, cylindrical, isothermally noded storage tank with one inlet (bottom) and one outlet
(top).
The tank is divided into N horizontal nodes of equal volume. Each of the tank nodes is assumed to be
isothermal. Node 1 is at the top of the storage tank, and the final node is at the bottom of the tank.
In this type of storage tank, energy can be transferred into and out of each node through mass flow, through
conductance to the node above or below, through thermal losses to the environment, or through the
auxiliary heaters. Each of these heat transfer terms is elaborated in the following sections.
THERMAL LOSSES
Thermal losses to the surrounding environment from each fluid node are calculated as follows:
𝑄̇𝑙𝑜𝑠𝑠,𝑗 = 𝑈𝑡𝑎𝑛𝑘 ∙ 𝐴𝑡𝑜𝑝,𝑗 ∙ (𝑇𝑗 − 𝑇𝑎𝑚𝑏 ) + 𝑈𝑡𝑎𝑛𝑘 ∙ 𝐴𝑏𝑜𝑡𝑡𝑜𝑚,𝑗 ∙ (𝑇𝑗 − 𝑇𝑎𝑚𝑏 )
Eq. 4.10.5-1
+ 𝑈𝑡𝑎𝑛𝑘 ∙ 𝐴𝑒𝑑𝑔𝑒,𝑗 ∙ (𝑇𝑗 − 𝑇𝑎𝑚𝑏 )
All tank nodes include edge losses. Losses through the top or bottom of the tank are only included if j = 1
or j = Nnodes, respectively.
4–590
TRNSYS 18 – Mathematical Reference
AUXILIARY HEATING
Heat transfer through the auxiliary heaters is calculated as follows:
𝑄̇𝑎𝑢𝑥,𝑗 = 𝐼𝑎𝑢𝑥,𝑢𝑝𝑝𝑒𝑟 ∙ 𝑄̇𝑟𝑎𝑡𝑒𝑑,𝑢𝑝𝑝𝑒𝑟 ∙ 𝜂𝑎𝑢𝑥,𝑢𝑝𝑝𝑒𝑟 + 𝐼𝑎𝑢𝑥,𝑙𝑜𝑤𝑒𝑟 ∙ 𝑄̇𝑟𝑎𝑡𝑒𝑑,𝑙𝑜𝑤𝑒𝑟 ∙ 𝜂𝑎𝑢𝑥,𝑙𝑜𝑤𝑒𝑟 Eq. 4.10.5-4
Auxiliary heat from the upper auxiliary is only input to node j of the tank if node j contains the upper element;
likewise, auxiliary heat from the lower auxiliary is only input to node j if node j contains the lower element.
where:
𝑏𝑎𝑣𝑒 = 𝑏(𝑇𝑎𝑣𝑒 ) Eq. 4.10.5-8
and:
1 𝑏 𝑏
𝑇𝑎𝑣𝑒 = (𝑇 + 𝑎𝑣𝑒⁄𝑎) ∙ (𝑒 𝑎∆𝑡 − 1) − 𝑎𝑣𝑒⁄𝑎 Eq. 4.10.5-9
𝑎∆𝑡 𝑖𝑛𝑖𝑡𝑖𝑎𝑙
With this assumption, the problem becomes straightforward to solve. Simply write the differential equation
in the correct form, determine a and bave and solve for Tfinal and Tave. Then recalculate bave and iterate until
the temperatures converge. The assumption that b is constant over the timestep (and equal to its average
value over the timestep) is a reasonable approximation for the small timesteps used in a TRNSYS
simulation.
The model will automatically check at the end of each timestep for thermal instability. If a thermal instability
is found, the model will calculate the time at which the offending nodes first became unstable and re-run
calculations at a sub-timestep, measured from the beginning of the timestep (or the end of the last sub-
timestep) up until the time of instability. The model will then immediately and thoroughly mix the offending
nodes and proceed with calculations from that time until the end of the full timestep. The process is repeated
if instability is encountered again. Figure 4.10.5–2 below illustrates the process through a simplified
example (with no mass flow and conduction effects neglected).
4–591
TRNSYS 18 – Mathematical Reference
(1) Example condition, start of a (2) Since upper aux is satisfied, (3) Since instability was found,
timestep. This 50-gallon tank heat is applied to the third calculations are re-run at a
has an upper setpoint of 57 node; the third node is hotter sub-timestep to the point the
°C, lower setpoint of 55 °C, than the second node at the nodes first become unstable
deadbands of 5 °C on both. end of the timestep. (T2=T3, at 0.0484 [hr]).
(4) Unstable nodes are mixed. (5) Calculations continue until (6) Calculations progress
Nodes 2 and 3 are effectively the end of the timestep; through the next timestep;
one double-node, from now since both auxiliaries are only thermal losses impact
until such time as T2 may be now off (and there is no flow the model. Since stability is
hotter than T3. Since the in this example), there may satisfied and thermostats are
lower thermostat is now at be little change through the not below (setpoint minus
setpoint, the lower heater end of the timestep. deadband), no sub-timesteps
turns off. or mixing are required.
Figure 4.10.5–2: Illustration of thermal instability processing and rectification.
For water (and fluids with similar properties), the ratio of buoyancy forces to viscous forces acting on the
fluid is typically very high, and the assumption of thorough and immediate mixing is reasonable. Other
models, such as Type 534 (in the TESS Storage Library) allow the user to define a flow rate at which
offending nodes will mix until stabilized, for cases where de-stratification may happen more slowly.
This storage tank relies on internal controls to add heat to the storage tank. Auxiliary heat is always added
to the node(s) which contain the heating elements (assigned based on the height of each element relative
4–592
TRNSYS 18 – Mathematical Reference
to the height of the tank); conduction and mixing with the unstable colder nodes above will drive temperature
changes throughout the rest of the tank. The user specifies the rated power of each auxiliary heater [kJ/hr],
the height of each thermostat (which determines which node’s temperature is used to trigger the heater
controls), the setpoints of the heaters [°C], and the deadbands of the thermostats [°C].
Most controller Types within TRNSYS require that only one control condition (on or off) may apply per
timestep. This necessitates using a timestep at least as small as the cycle time of the equipment being
controlled; large errors can result from using larger timesteps, especially if loads are large. One benefit of
Type 154’s integrated temperature controls is the ability to make control decisions at sub-timesteps smaller
than the simulation timestep.
Once temperature instabilities have been checked and resolved (see Temperature Instability and
Resolution), the model checks to see if either of the auxiliary heat signals should be changed. Conditions
of the upper auxiliary heater are checked first, followed by the conditions of the lower auxiliary heater. If
master-slave control is in effect, the lower element will not turn on as long as the upper element is not
satisfied, regardless of its setpoint or sensed temperature.
If the auxiliary heat is ON, and the temperature of the node containing the thermostat is above its
setpoint temperature + ½ the deadband temperature diffreence, the model will calculate the time
at which the node with the thermostat first reached this temperature and re-run calculations at a
sub-timestep, measured from the beginning of the timestep (or the end of the last sub-timestep) up
until the time the setpoint plus ½ the deadband temperature difference is satisfied. The model will
then turn the auxiliary control to OFF and proceed with calculations from that time until the end of
the full timestep. The process is repeated if auxiliary heat is triggered ON again before the end of
the timestep (see below).
If the auxiliary heat is OFF, and the temperature of the node containing the thermostat is below its
setpoint temperature minus ½ the deadband temperature difference, the model will calculate the
time at which the node with the thermostat first reached this temperature and re-run calculations at
a sub-timestep, measured from the beginning of the timestep (or the end of the last sub-timestep)
up until the time Tj = Tsetpoint – ½ ΔTdeadband. The model will then turn the auxiliary control to ON and
proceed with calculations from that time until the end of the full timestep. The process is repeated
if auxiliary heat is triggered OFF again before the end of the timestep (see above).
The procedure is similar to the handling of thermal instability at sub-timesteps. Note that thermal instabilities
are always addressed before auxiliary controls are addressed in the model. For example, in Figure 4.10.5–
2, diagram (2), the auxiliary heat would not turn off the first time the model reaches t=0.1 hr, even though
T3 = 60 [°C], because thermal instabilities have not yet been addressed.
4–593
TRNSYS 18 – Mathematical Reference
3 Number of Tank Nodes [-] The number of isothermal tank nodes into which the storage tank
will be divided (1=fully mixed tank).
4 Top Loss Coefficient [kJ/hr.m2.K] The heat loss coefficient for the top of the storage tank.
5 Edge Loss Coefficient [kJ/hr.m2.K] The heat loss coefficient for the vertical edges of the storage tank.
6 Bottom Loss [kJ/hr.m2.K] The heat loss coefficient for the bottom of the tank.
Coefficient
4–594
TRNSYS 18 – Mathematical Reference
7 Fluid Specific Heat [kJ/kg.K] The specific heat of the fluid in the tank.
11 Fluid Thermal [1/K] The volumetric expansion coefficient of the tank fluid
Expansion Coefficient
12 Height Fraction of Inlet [-] The relative height of the first inlet port into the storage tank (height
1 of inlet / tank height). In this model, the ports are matched such that
the outlet of port 1 has the same flow rate as the inlet into port 1. A
value of 0 signifies the bottom of the tank and a value of 1 signifies
the top of the tank.
13 Height Fraction of [-] The relative height of the first outlet port from the storage tank
Outlet 1 (height of outlet / tank height). In this model, the ports are matched
such that the outlet of port 1 has the same flow rate as the inlet into
port 1. A value of 0 signifies the bottom of the tank and a value of 1
signifies the top of the tank.
14 Height Fraction of Inlet [-] The relative height of the second inlet port into the storage tank
2 (height of inlet / tank height). In this model, the ports are matched
such that the outlet of port 2 has the same flow rate as the inlet into
port 2. A value of 0 signifies the bottom of the tank and a value of 1
signifies the top of the tank.
15 Height Fraction at [-] The relative height of the second outlet port from the storage tank
Outlet 2 (height of outlet / tank height). In this model, the ports are matched
such that the outlet of port 2 has the same flow rate as the inlet into
port 2. A value of 0 signifies the bottom of the tank and a value of 1
signifies the top of the tank.
16 Height Fraction of HX [-] The relative height of the heat exchanger inlet into the storage tank
Inlet (height of inlet / tank height). A value of 0 signifies the bottom of the
tank and a value of 1 signifies the top of the tank.
17 Height Fraction of HX [-] The relative height of the heat exchanger outlet from the storage
Outlet tank (height of outlet / tank height). A value of 0 signifies the bottom
of the tank and a value of 1 signifies the top of the tank.
18 Inner Diameter of HX [m] The inner diameter of the tube comprising the coiled tube heat
Tube exchanger.
19 Outer Diameter of HX [m] The outer diameter of the tube comprising the coiled tube heat
Tube exchanger.
20 Length of Coiled HX [m] The length of one of the identical coiled heat exchanger tubes.
Tubes
21 Number of HX Tubes [-] The number of identical coiled tubes for the heat exchanger.
22 HX Wall Thermal [kJ/h.m.K] The thermal conductivity of the heat exchanger tube wall material.
Conductivity
4–595
TRNSYS 18 – Mathematical Reference
23 HX Coil Diameter [m] The diameter of the coiled tube heat exchanger.
24 HX Coil Pitch [m] The vertical distance between identical points on consecutive coils
of the heat exchanger.
25 Multiplier for HX [-] The multiplier 'c' in the equation for the calculation of the Nusselt
Natural Convection number for the HX: Nusselt = c * Rayleigh ^ n
26 Exponent for HX [-] The exponent 'n' in the equation for the calculation of the Nusselt
Natural Convection number for the HX: Nusselt = c * Rayleigh ^ n
27 Number of HX Nodes [-] The number of isothermal nodes into which the heat exchanger will
be divided. The higher the number of nodes, the greater the
accuracy but the slower the simulation speed.
28 HX Fluid Specific Heat [kJ/kg.K] The specific heat of the fluid in the heat exchanger.
29 HX Fluid Density [kg/m3] The density of the fluid in the heat exchanger.
30 HX Fluid Thermal [kJ/h.m.K] The thermal conductivity of the heat exchanger fluid.
Conductivity
31 HX Fluid Viscosity [kg/m.h] The dynamic viscosity of the heat exchanger fluid.
32 Number of [-] The number of thermostats in the storage tank. For each
Thermostats thermostat desired, the user will have to specify the normalized
height of the thermostat location (a parameter). The temperature at
each thermostat location is provided as an output from the model.
33 Height Fraction of [-] The relative height of the thermostat location in the storage tank
Thermostat (height of thermostat / tank height). A value of 0 signifies the
bottom of the tank and a value of 1 signifies the top of the tank.
34 Number of Auxiliary [-] The number of auxiliary heat inputs into the storage tank. For each
Heat Inputs auxiliary heat input specified, the user must specify the location of
the auxiliary heat input (a parameter) and the rate at which auxiliary
heat is added to the location (an input).
35 Height Fraction of [-] The relative height of the auxiliary heat input into the storage tank
Auxiliary Input (height of input / tank height). A value of 0 signifies the bottom of
the tank and a value of 1 signifies the top of the tank.
INPUTS
1 Inlet Temperature for [C] The temperature of the fluid entering the storage tank through the
Port 1 first inlet port.
2 Inlet Flow Rate for Port [kg/h}: The flow rate of the fluid entering the storage tank through the first
1 inlet port.
3 Inlet Temperature for [C] The temperature of the fluid entering the storage tank through the
Port 2 second inlet port.
4–596
TRNSYS 18 – Mathematical Reference
4 Inlet Flow Rate for Port [kg/h] The flow rate of the fluid entering the storage tank through the
2 second inlet port.
5 Inlet Temperature for [C] The temperature of the fluid flowing into the immersed heat
HX exchanger in the storage tank.
6 Inlet Flow Rate for HX [kg/h] The flow rate of the fluid flowing into the immersed heat exchanger
in the storage tank.
7 Top Loss Temperature [C] The temperature of the environment for calculating losses from the
top of the storage tank.
8 Edge Loss [C] The temperature of the environment for calculating losses from the
Temperature edges of the storage tank.
9 Bottom Loss [C] The temperature of the environment for calculating losses from the
Temperature bottom of the storage tank.
10 Auxiliary Heat Input [kJ/h] The rate at which auxiliary energy is added (or removed) from the
storage tank for this location.
OUTPUTS
1 Temperature at Outlet [C] The temperature of the fluid exiting the storage tank through the
1 first outlet port.
2 Flow Rate at Outlet 1 [kg/h] The flow rate of the fluid exiting the storage tank through the first
outlet port.
3 Temperature at Outlet [C] The temperature of the fluid exiting the storage tank through the
2 second outlet port.
4 Flow Rate at Outlet 2 [kg/h] The flow rate of the fluid exiting the storage tank through the
second outlet port.
5 Temperature at HX [C] The temperaturte of the fluid exiting the storage tank through the
Outlet immersed heat exchanger.
6 HX Flow Rate [kg/h] The flow rate of fluid exiting the storage tank through the immersed
heat exchanger. This flow rate is set by the inlet flow rate to the
heat exchanger.
7 Average Tank [C] The average temperature of the fluid in the storage tank.
Temperature
8 Average HX [C] The average temperature of the fluid in the immersed heat
Temperature exchanger.
9 Energy Delivered via [kJ/h] The rate at which energy is removed from the tank through the first
Port 1 outlet port minus the rate at which energy is added to the tank
through the first inlet port.
10 Energy Delivered via [kJ/h] The rate at which energy is removed from the tank through the
Port 2 second outlet port minus the rate at which energy is added to the
tank through the second inlet port.
4–597
TRNSYS 18 – Mathematical Reference
11 Top Losses [kJ/h] The rate at which energy is lost to the environment through the top
surface of the storage tank.
12 Edge Losses [kJ/h] The rate at which energy is lost to the environment through the
edge surfaces of the storage tank.
13 Bottom Losses [kJ/h] The rate at which energy is lost to the environment through the
bottom surface of the storage tank.
14 Auxiliary Heating Rate [kJ/h] The rate at which auxiliary heat energy is added to the storage
tank.
15 Tank Energy Storage [kJ/h] The rate at which energy is stored by the fluid in the storage tank
Rate due to a rise in temperature of the fluid (capacitance effects).
16 HX Heat Transfer Rate [kJ/h] The rate at which energy is transferred from the fluid in the storage
tank to the fluid in the immersed heat exchanger.
17 HX Delivered Energy [kJ/h] The rate at which energy is removed from the immersed heat
exchanger due to the fluid flow exiting the heat exchanger at the
outlet minus the rate at which energy is added to the heat
exchanger by the fluid flow entering the storage tank at the heat
exchanger inlet.
18 HX Energy Storage [kJ/h] The rate at which energy is stored by the fluid in the immersed heat
Rate exchanger due to a temperarture rise of the fluid (capacitance
effects).
19 Tank Energy Balance [%] The percent energy balance error for the heat transfers in the
Error storage tank.
20 HX Energy Balance [%] The percent energy balance error for the heat transfers for the fluid
Error in the immersed heat exchanger.
21 Temperature at [C] The temperature of the tank at the location of the specified
Thermostat thermostat.
22 Tank Nodal [C] The average temperature of the fluid in the specified node of the
Temperature storage tank for the current timestep.
DERIVATIVES
1 Initial Tank [C] The temperature of the specified node of the storage tank at the
Temperature for Node beginning of the simulation (node 1 = top).
4–598
TRNSYS 18 – Mathematical Reference
4–599
TRNSYS 18 – Mathematical Reference
4–600
TRNSYS 18 – Mathematical Reference
exchanger nodes interact thermally only via the flow stream, conduction is not considered between heat
exchanger nodes.
For coiled tube heat exchangers, the tubes comprising the heat exchanger (there may be more than one
tube bundled together) are divided into N hx nodes along the flow direction. For each heat exchanger node,
the user must supply the fraction of the heat exchanger pipe length to be assigned to that node and the
tank node in which this heat exchanger node is completely located. It is possible to have more than one
heat exchanger node located within a tank node.
HEAT EXCHANGER:
The outlet temperature at any time during the simulation for the heat exchanger flow stream is the average
temperature of the heat exchanger node that contains the outlet (the last specified node) over the timestep.
The heat exchanger and storage tank interact thermally through natural convection heat transfer from the
heat exchanger outer surface to the tank fluid (or in this case from the outer surface of the heat exchanger
node to the tank fluid node). The overall heat transfer coefficient (UA) of the heat exchanger to tank heat
transfer for any heat exchanger node can be expressed as:
𝑛 1 1
= + 𝑅𝑤 + Eq. 4.10.6-7
𝑈𝐴 ℎ𝑜 𝐴𝑜 ℎ𝑖 𝐴𝑖
where:
n = number of identical tubes (pipes)
ho = outer surface heat transfer coefficient (tank fluid side)
Ao = outer surface area of the HX node
Rw = tube wall resistance
hi = inner surface heat transfer coefficient (in the tubes)
ai = inner surface area of the HX node
and:
𝑘
ℎ𝑜 = 𝑁𝑢𝑑 Eq. 4.10.6-8
𝑑𝑜
where:
Nud= Nusselt number based on tube diameter
k = fluid thermal conductivity
do = outer pipe diameter
and:
4–601
TRNSYS 18 – Mathematical Reference
𝑟
𝑙𝑛 ( 𝑜 ) Eq. 4.10.6-10
𝑟𝑖
𝑅𝑤 =
2𝜋𝐿𝑝𝑖𝑝𝑒 𝑘𝑤
where:
ro = outer pipe radius
ri = inner pipe radius
Lpipe = length of pipe node
kw = HX wall thermal conductivity
The inner surface heat transfer coefficient (hi) is dependent on the fluid properties. The flow is assumed to
be fully developed and the internal convection coefficient is based on the length of the tubes; and not on
the length of the node. For all cases the Reynolds number (Re hx) and Prandtl number (Prhx)are calculated
as:
4𝑚̇
𝑅𝑒ℎ𝑥 = Eq. 4.10.6-11
𝜋𝑑𝑖 𝜇
𝐶𝑝𝜇
𝑃𝑟ℎ𝑥 = Eq. 4.10.6-12
𝑘
where:
m = Flow rate through one tube of the HX
di = inner tube diameter
= fluid viscosity
k = fluid thermal conductivity
Cp = fluid specific heat
For coiled tube heat exchangers, the critical Reynolds number for transition from laminar flow to turbulent
flow is calculated as:
𝑑𝑖 0.32
𝑅𝑒𝑐𝑟𝑖𝑡 = 20000 ( ) Eq. 4.10.6-13
𝑑𝑐𝑜𝑖𝑙
where:
dcoil = diameter of the coiled tube heat exchanger
The Nusselt number correlation for laminar flow is:
1
3 3 Eq. 4.10.6-14
1.5
51
48 11 𝐻𝐸
𝑁𝑢ℎ𝑥 = + 2 + 1.816 ( )
11 1342⁄ 1.15
𝑃𝑟ℎ𝑥 1+
𝑃𝑟ℎ𝑥
1+( )
𝐻𝐸 2
[( ) ]
where:
𝑑𝑖 0.5
𝑅𝑒ℎ𝑥 ( ) Eq. 4.10.6-15
𝑑𝑐𝑜𝑖𝑙
𝐻𝐸 =
𝑃𝑖𝑡𝑐ℎ𝑐𝑜𝑖𝑙 2
1+( )
𝜋𝑑𝑖
4–602
TRNSYS 18 – Mathematical Reference
𝑑𝑖 0.1
𝑁𝑢ℎ𝑥 = 0.023𝑅𝑒ℎ𝑥 0.85 𝑃𝑟ℎ𝑥 0.4 ( ) Eq. 4.10.6-16
𝑑𝑐𝑜𝑖𝑙
The internal heat transfer coefficient is then:
𝑘
ℎ𝑖 = 𝑁𝑢ℎ𝑥 Eq. 4.10.6-17
𝑑𝑖
For cases where there is no flow through the heat exchanger, the Nusselt number is set to 1.0 for the
calculation of the internal heat transfer coefficient. Finally, the heat transfer between the tank node (j) and
heat exchanger node (k) can be calculated as:
𝑄ℎ𝑥,𝑗→𝑘 = 𝑈𝐴𝑗,𝑘 (𝑇𝑡𝑎𝑛𝑘,𝑗 − 𝑇ℎ𝑥,𝑘 )
Eq. 4.10.6-18
The other component of heat transfer for the heat exchanger node (besides the heat transfer to the storage
tank fluid) is via fluid flow through the heat exchanger:
𝑄𝑓𝑙𝑜𝑤 = 𝑚̇𝐶𝑝(𝑇ℎ𝑥,𝑘 − 𝑇𝑖𝑛 )
Eq. 4.10.6-19
where:
m = mass flow rate through the node (depends on HX flow rate and the number of tubes)
Cp = fluid specific heat
Tin = the inlet temperature to the heat exchanger node (this temperature may be the entering HX
temperature or the temperature of the node upstream of this node depending on the location of the
node)
Thx,k = the temperature of the heat exchanger node
The a and b terms for the differential equation (dT/dt = aT + b) for the heat exchanger heat transfer for the
node can be expressed as:
𝑚̇𝐶𝑝 − 𝑈𝐴𝑗,𝑘
𝑎ℎ𝑥,𝑘 = Eq. 4.10.6-20
𝐶𝑎𝑝𝑘
STORAGE TANK
The storage tank model accounts for the following component heat transfers:
thermal losses to the environment through the top of the storage tank
thermal losses to the environment through the sides of the storage tank
thermal losses to the environment through the bottom of the storage tank
heat exchange with flowing and stagnant fluid in the heat exchanger
conduction between adjacent tank nodes
mixing between nodes to eliminate thermal instabilities
mixing between nodes due to load flow through the storage tank
auxiliary heat input to the tank
4–603
TRNSYS 18 – Mathematical Reference
CONDUCTION EFFECTS:
The nodes in the storage tank of this model can interact thermally via conduction between nodes. The
formulation of the conductivity heat transfer from tank node j is:
𝑇𝑗 − 𝑇𝑗+1 𝑇𝑗 − 𝑇𝑗−1
𝑄𝑐𝑜𝑛𝑑,𝑗 = 𝑘𝑗 𝐴𝑗 + 𝑘𝑗−1 𝐴𝑗−1 Eq. 4.10.6-25
𝐿𝑐𝑜𝑛𝑑,𝑗 𝐿𝑐𝑜𝑛𝑑,𝑗−1
Tj = temperature of this node
Tj+1 = temperature of the node directly below the current node
Tj-1 = temperature of the node directly above the current node
kj = thermal conductivity of fluid in node j
kj-1 = thermal conductivity of fluid in node directly above the current node
Aj = conduction interface area between this node and the one below it (may be reduced by the
presence of a heat exchanger tube passing through the boundary between the tank nodes)
Aj-1 = conduction interface area between this node and the one above it (may be reduced by the
presence of a heat exchanger tube passing through the boundary between the tank nodes)
Lcond,j = vertical distance between the centroid of this node and the centroid of the node below
Lcond,j-1 = vertical distance between the centroid of this node and the centroid of the node above
4–604
TRNSYS 18 – Mathematical Reference
MIXING EFFECTS:
At times, the nodes in the storage tank may become thermally unstable (a node has a higher temperature
than the node above). If this happens, the model completely mix any nodes that are unstable at the end of
the timestep to avoid problems.
4–605
TRNSYS 18 – Mathematical Reference
4–606
TRNSYS 18 – Mathematical Reference
3 Number of Tank Nodes [-] The number of isothermal tank nodes into which the storage tank
will be divided (1=fully mixed tank).
4 Top Loss Coefficient [kJ/hr.m2.K] The heat loss coefficient for the top of the storage tank.
5 Edge Loss Coefficient [kJ/hr.m2.K] The heat loss coefficient for the vertical edges of the storage tank.
6 Bottom Loss [kJ/hr.m2.K] The heat loss coefficient for the bottom of the tank.
Coefficient
7 Fluid Specific Heat [kJ/kg.K] The specific heat of the fluid in the tank.
10 Height Fraction of Inlet [-] The relative height of the first inlet port into the storage tank (height
1 of inlet / tank height). In this model, the ports are matched such that
the outlet of port 1 has the same flow rate as the inlet into port 1. A
value of 0 signifies the bottom of the tank and a value of 1 signifies
the top of the tank.
11 Height Fraction of [-] The relative height of the first outlet port from the storage tank
Outlet 1 (height of outlet / tank height). In this model, the ports are matched
such that the outlet of port 1 has the same flow rate as the inlet into
port 1. A value of 0 signifies the bottom of the tank and a value of 1
signifies the top of the tank.
12 Height Fraction of Inlet [-] The relative height of the second inlet port into the storage tank
2 (height of inlet / tank height). In this model, the ports are matched
such that the outlet of port 2 has the same flow rate as the inlet into
4–607
TRNSYS 18 – Mathematical Reference
13 Height Fraction at [-] The relative height of the second outlet port from the storage tank
Outlet 2 (height of outlet / tank height). In this model, the ports are matched
such that the outlet of port 2 has the same flow rate as the inlet into
port 2. A value of 0 signifies the bottom of the tank and a value of 1
signifies the top of the tank.
14 Number of [-] The number of thermostats in the storage tank. For each
Thermostats thermostat desired, the user will have to specify the normalized
height of the thermostat location (a parameter). The temperature at
each thermostat location is provided as an output from the model.
15 Height Fraction of [-] The relative height of the thermostat location in the storage tank
Thermostat (height of thermostat / tank height). A value of 0 signifies the
bottom of the tank and a value of 1 signifies the top of the tank.
16 Number of Auxiliary [-] The number of auxiliary heat inputs into the storage tank. For each
Heat Inputs auxiliary heat input specified, the user must specify the location of
the auxiliary heat input (a parameter) and the rate at which auxiliary
heat is added to the location (an input).
17 Height Fraction of [-] The relative height of the auxiliary heat input into the storage tank
Auxiliary Input (height of input / tank height). A value of 0 signifies the bottom of
the tank and a value of 1 signifies the top of the tank.
INPUTS
1 Inlet Temperature for [C] The temperature of the fluid entering the storage tank through the
Port 1 first inlet port.
2 Inlet Flow Rate for Port [kg/h}: The flow rate of the fluid entering the storage tank through the first
1 inlet port.
3 Inlet Temperature for [C] The temperature of the fluid entering the storage tank through the
Port 2 second inlet port.
4 Inlet Flow Rate for Port [kg/h] The flow rate of the fluid entering the storage tank through the
2 second inlet port.
5 Top Loss Temperature [C] The temperature of the environment for calculating losses from the
top of the storage tank.
6 Edge Loss [C] The temperature of the environment for calculating losses from the
Temperature edges of the storage tank.
7 Bottom Loss [C] The temperature of the environment for calculating losses from the
Temperature bottom of the storage tank.
4–608
TRNSYS 18 – Mathematical Reference
8 Auxiliary Heat Input [kJ/h] The rate at which auxiliary energy is added (or removed) from the
storage tank for this location.
OUTPUTS
1 Temperature at Outlet [C] The temperature of the fluid exiting the storage tank through the
1 first outlet port.
2 Flow Rate at Outlet 1 [kg/h] The flow rate of the fluid exiting the storage tank through the first
outlet port.
3 Temperature at Outlet [C] The temperature of the fluid exiting the storage tank through the
2 second outlet port.
4 Flow Rate at Outlet 2 [kg/h] The flow rate of the fluid exiting the storage tank through the
second outlet port.
5 Average Tank [C] The average temperature of the fluid in the storage tank.
Temperature
6 Energy Delivered via [kJ/h] The rate at which energy is removed from the tank through the first
Port 1 outlet port minus the rate at which energy is added to the tank
through the first inlet port.
7 Energy Delivered via [kJ/h] The rate at which energy is removed from the tank through the
Port 2 second outlet port minus the rate at which energy is added to the
tank through the second inlet port.
8 Top Losses [kJ/h] The rate at which energy is lost to the environment through the top
surface of the storage tank.
9 Edge Losses [kJ/h] The rate at which energy is lost to the environment through the
edge surfaces of the storage tank.
10 Bottom Losses [kJ/h] The rate at which energy is lost to the environment through the
bottom surface of the storage tank.
11 Auxiliary Heating Rate [kJ/h] The rate at which auxiliary heat energy is added to the storage
tank.
12 Tank Energy Storage [kJ/h] The rate at which energy is stored by the fluid in the storage tank
Rate due to a rise in temperature of the fluid (capacitance effects).
13 Tank Energy Balance [%] The percent energy balance error for the heat transfers in the
Error storage tank.
14 Temperature at [C] The temperature of the tank at the location of the specified
Thermostat thermostat.
15 Tank Nodal [C] The average temperature of the fluid in the specified node of the
Temperature storage tank for the current timestep.
4–609
TRNSYS 18 – Mathematical Reference
DERIVATIVES
1 Initial Tank [C] The temperature of the specified node of the storage tank at the
Temperature for Node beginning of the simulation (node 1 = top).
4–610
TRNSYS 18 – Mathematical Reference
advantages over numerical solutions. First, the subroutine solves its own mathematical problem and does
not have to rely on non-standard numerical recipes that must be attached to the subroutine. Secondly,
some of the other solution methods (mainly the numerical solutions) are extremely dependent on the
simulation timestep and may not converge under certain circumstances commonly encountered in domestic
hot water systems (namely high flow rates for example). The analytical solution is timestep independent
but does require an iterative solution inside the subroutine to solve the coupled differential equations.
To solve the differential equations analytically, the equation is placed into the form:
𝑑𝑇
= 𝑎𝑇 + 𝑏 Eq. 4.10.7-2
𝑑𝑡
where T is the dependent variable, t is time, a is a constant and b may be a function of time or the dependent
variable. If b is a constant, than the solution of this differential equation can be readily solved. If b is not
constant, then a reasonable approximation to the analytical solution can be found by assuming that b is
constant over the timestep and equal to its average value over the timestep.
At any time (for a not equal to zero):
𝑏𝑎𝑣𝑒 𝑎∆𝑡 𝑏𝑎𝑣𝑒
𝑇𝑓𝑖𝑛𝑎𝑙 = (𝑇𝑖𝑛𝑖𝑡𝑖𝑎𝑙 + )𝑒 − Eq. 4.10.7-3
𝑎 𝑎
where:
𝑏𝑎𝑣𝑒 = 𝑏(𝑇𝑎𝑣𝑒 )
Eq. 4.10.7-4
and:
1 𝑏𝑎𝑣𝑒 𝑏𝑎𝑣𝑒
𝑇𝑎𝑣𝑒 = (𝑇𝑖𝑛𝑖𝑡𝑖𝑎𝑙 + ) (𝑒 𝑎∆𝑡 − 1) − Eq. 4.10.7-5
𝑎∆𝑡 𝑎 𝑎
With this assumption, the problem becomes straightforward to solve. Simply write the differential equation
in the correct form, determine a and bave and solve for Tfinal and Tave. Then recalculate bave and iterate until
the temperatures converge.
While the assumption that b is constant over the timestep (and equal to its average value) is not technically
correct, it is a reasonable approximation for the small timesteps used in TRNSYS simulations (maximum
timestep = 1 hour).
This subroutine allows the user to designate the level of stratification for the storage tank by specifying a
number of tank nodes (N). The tank is then divided into N horizontal nodes of equal. Each of the tank
nodes is assumed to be isothermal. Node 1 is assumed to be at the top of the storage tank. The greater
the number of nodes, the greater the stratification in the storage tank. Unreasonably increasing the number
of nodes may slow down the simulation dramatically.
STORAGE TANK
The storage tank model accounts for the following component heat transfers:
thermal losses to the environment through the top of the storage tank
thermal losses to the environment through the sides of the storage tank
thermal losses to the environment through the bottom of the storage tank
conduction between adjacent tank nodes
mixing between nodes to eliminate thermal instabilities
mixing between nodes due to load flow through the storage tank
auxiliary heat input to the tank
4–611
TRNSYS 18 – Mathematical Reference
environment temperatures for the top surface, bottom surface and edges in order to increase the flexibility
of the model. The heat transfer from the top, edges and the bottom of the storage for tank node j is:
𝑄𝑙𝑜𝑠𝑠,𝑡𝑜𝑝,𝑗 = 𝐴𝑡𝑜𝑝,𝑗 𝑈𝑡𝑜𝑝 (𝑇𝑡𝑎𝑛𝑘,𝑗 − 𝑇𝑒𝑛𝑣,𝑡𝑜𝑝 )
Eq. 4.10.7-6
CONDUCTION EFFECTS:
The nodes in the storage tank of this model can interact thermally via conduction between nodes. The
formulation of the conductivity heat transfer from tank node j is:
𝑇𝑗 − 𝑇𝑗+1 𝑇𝑗 − 𝑇𝑗−1
𝑄𝑐𝑜𝑛𝑑,𝑗 = 𝑘𝑗 𝐴𝑗 + 𝑘𝑗−1 𝐴𝑗−1 Eq. 4.10.7-9
𝐿𝑐𝑜𝑛𝑑,𝑗 𝐿𝑐𝑜𝑛𝑑,𝑗−1
Tj = temperature of this node
Tj+1 = temperature of the node directly below the current node
Tj-1 = temperature of the node directly above the current node
kj = thermal conductivity of fluid in node j
kj-1 = thermal conductivity of fluid in node directly above the current node
Aj = conduction interface area between this node and the one below it
Aj-1 = conduction interface area between this node and the one above it
Lcond,j = vertical distance between the centroid of this node and the centroid of the node below
Lcond,j-1 = vertical distance between the centroid of this node and the centroid of the node above
4–612
TRNSYS 18 – Mathematical Reference
MIXING EFFECTS:
At times, the nodes in the storage tank may become thermally unstable (a node has a higher temperature
than the node above). If this happens, the model completely mix any nodes that are unstable at the end of
the timestep to avoid problems.
4–613
TRNSYS 18 – Mathematical Reference
4–614
TRNSYS 18 – Mathematical Reference
4.11. Utility
4–615
TRNSYS 18 – Mathematical Reference
1 Mode - This parameter sets the mode of the data reader. The different
values (Modes 1 to 6) are explained hereunder:
1: The first line in the data file is the simulation start time. Initial
conditions are provided as instantaneous values for ALL variables
(including the ones that are given as average values over the time
step in the rest of the data file).
2: The first line in the data file is the simulation start time. Initial
conditions are provided as instantaneous or averaged values over
one timestep according to the options set for each variables.
3. The first line in the data file corresponds to the first time step of
the simulation. No initial values are provided in the file.
4: The first line in the data file corresponds to time = 0. If the
simulation start is not 0, lines are skipped accordingly in the data
file. Initial conditions are provided as instantaneous values for ALL
variables (including the ones that are given as average values over
the time step in the rest of the data file)
5: The first line in the data file corresponds to time = 0. If the
simulation start is not 0, lines are skipped accordingly in the data
file. Initial conditions are provided as instantaneous or averaged
values over one timestep according to the options set for each
variables
6. The first line in the data file corresponds to the first timestep in a
year. If the simulation does not start at the beginning of the year,
lines are skipped in the data file. No initial values are provided in
the file
2 Header Lines to Skip - Number of header lines to skip in the data file (e.g. Variable names,
units, or additional information not used by TRNSYS)
3 No. of values to read - This parameter specifies how many values are to be read from
each line of the data file. Note that even if some values are used,
the component must read all values up to the last one which is
used. E.g. if only the 1st, 2nd and 6th values are desired, this
parameter should be equal to 6.
4 Time interval of data hr Time interval used to record the data in the file (e.g. hourly = 1.0,
daily = 24.0). The data time interval must be an integer multiplier of
the simulation timestep. E.g. if the simulation timestep is 15
minutes, the data time interval could be 15 min, 30 min, 1h, etc.
4–616
TRNSYS 18 – Mathematical Reference
The next four parameters are cycled once for each column read from the data file (parameter 3)
5 Interpolate or not - This parameter indicates whether the values for the nth variable in
the data file are to be interpolated (1) or not (-1). Parameter 5 is for
the first column, Parameter 9 is for the second column, etc.
Radiation values should NOT be interpolated - this is the function
of the radiation processor.
6 Multiplication factor - Multiplication factor for the nth variable (column). Parameter 6 is for
the first column, Parameter 10 is for the second column, etc.
Output(n) = Value(n) * multiplication factor + addition factor
7 Addition factor - Addition factor for the nth variable (column). Parameter 7 is for the
first column, Parameter 11 is for the second column, etc. Output(n)
= Value(n) * multiplication factor + addition factor
9 Logical unit for input - This parameter sets the Fortran Logical Unit (File reference
file number) of the output file. It is used internally by TRNSYS to refer
to the file. This parameter will automatically be assigned to a
unique value by the TRNSYS Studio.
10 Free format mode - The value -1 for this parameter indicates that the data reader
should read data in free format mode. The values should be
separated by blanks (spaces, tabs) or commas (","). The value 1 for
this parameter indicates that a FORMAT statement will be provided
to show Type9 how to read the data file.
OUTPUTS
1 Output 1 [any] The first value read from data file (if at least n values are read).
99 Output 99 [any] The 99th value read from data file. If less than 99 values are read,
this output will have a value of 0.
100 Time of last read [hr] The time at which the values were last read from the data file. Note
when connecting a Type9 to a Type16 this output should be
connected to the appropriate Type16 input.
101 Time of next read [hr] The time at which the values will next be read from the data file.
Note when connecting a Type9 to a Type16 this output should be
connected to the appropriate Type16 input.
102 Value at next time [any] The value at the next timestep of the listed output.
4–617
TRNSYS 18 – Mathematical Reference
Data File Name n/a The name of the data file read by this component.
4.11.1.4. Nomenclature
Vi (n) ith value read from the nth line
mi multiplication factor for the ith value
ai addition factor for the ith value
Vi'(n) ith value of the nth line after application of the multiplication and addition factors
td1 time corresponding to values on the previous line
td2 time corresponding to values on the next line
4–618
TRNSYS 18 – Mathematical Reference
to using the time at the end of the time step. For example a hourly simulation over one year used to start
at 1 and end at 8760. In TRNSYS 16 and beyond it starts at 0 and ends at 8760.
New operation modes were added to Type 9 to cope with that new definition and provide more flexibility to
Type 9:
Mode 1
The first line in the data file is the simulation start time. Initial conditions are provided as instantaneous
values for ALL variables (including the ones that are given as average values over the time step in the rest
of the data file)
Mode 2
The first line in the data file is the simulation start time. Initial conditions are provided as instantaneous or
averaged values over one timestep according to the options set for each variables (i.e. is a variable is
provided as instantaneous values, initial conditions are assumed to be instantaneous as well).
Mode 3
The first line in the data file corresponds to the first time step of the simulation (not the initial time). No initial
values are provided in the file.
Mode 4
The first line in the data file corresponds to time = 0. If the simulation start is not 0, lines are skipped
accordingly in the data file. Initial conditions are provided as instantaneous values for ALL variables
(including the ones that are given as average values over the time step in the rest of the data file)
Mode 5
The first line in the data file corresponds to time = 0. If the simulation start is not 0, lines are skipped
accordingly in the data file. Initial conditions are provided as instantaneous or averaged values over one
timestep according to the options set for each variables
Mode 6
The first line in the data file corresponds to the first timestep in a year. If the simulation does not start at the
beginning of the year, lines are skipped in the data file. No initial values are provided in the file
4–619
TRNSYS 18 – Mathematical Reference
After interpolation and / or conversion to an average over the simulation time step, the variable can be
converted to a different set of units, if required, by a simple linear relationship (the multiplier m and addition
term a are provided as parameters):
𝑉𝑖 ′(𝑛) = 𝑚𝑖 𝑉𝑖 (𝑛) + 𝑎𝑖
EXAMPLE
Let us use a very simple data file to show how the different parameters of Type9 are interpreted by
TRNSYS. The following data points are given as input data file:
0
0
1
2
3
4
Figure 4.11.1–1: Data File
The first line contains the value during the initialization time step, and the next lines are the values during
the following timesteps.
HOURLY DATA
Figure 4.11.1–1 shows the contents of a basic data file, if they are assumed to be values given every hour.
Table 4.11.1–1 shows the parametes for Type 9, if the data is assumed to start from the first line, it contains
the information with 1-hour intervals and the data is to be interpreted as average values during the timestep.
4–620
TRNSYS 18 – Mathematical Reference
These parameters indicate TRNSYS to interpret the input data file as follows:
- T(0)=0, The initial value of the function
- Average value from 0 to 1 = 0, as specified in the data file, therefore the value at T(1)=0.
- Average value from 1 to 2 = 1, as specified in the data file, therefore the value at T(2)=2 in order to get an
average of 1.
- Average value from 2 to 3 = 2, as specified in the data file, therefore the value at T(3)=2 in order to get an
average of 2.
- Average value from 3 to 4 = 3, as specified in the data file, therefore the value at T(4)=4 in order to get an
average of 3
In order to have these averages, the following instantaneous values yield these averages:
T(0)=0
T(1)=0
T(2)=2
T(3)=2
T(4)=4
The values reported by TRNSYS are average values over the timestep reported at the end of the timestep
so we have:
- TRNSYS Time=0, Output=0
- TRNSYS Time=1,Output=0
- TRNSYS Time=2,Output=1
- TRNSYS Time=3,Output=2
- TRNSYS Time=4,Output=3
The resulting plot (see Figure 4.11.1–3) shows exactly the same values as the input data file, which is
consistent with the fact that the values reported by TRNSYS are average values over the timestep reported
at the end of the timestep.
4–621
TRNSYS 18 – Mathematical Reference
Table 4.11.1–2: Parameters for Type9, assuming data is spaced in 2-hour intevals
4–622
TRNSYS 18 – Mathematical Reference
These parameters indicate TRNSYS to interpret the input data file as follows:
- T(0)=0, The initial value of the function
- Average value from 0 to 2 = 0, as specified in your data file, therefore the value at T(2)=0
- Average value from 2 to 4 = 1, as specified in your data file, therefore the value at T(4)=2 in order to get
an average of 1
- Average value from 4 to 6 = 2, as specified in your data file, therefore the value at T(6)=2 in order to get
an average of 2
- Average value from 6 to 8 = 3, as specified in your data file, therefore the value at T(8)=4 in order to get
an average of 3
These average values can be the result of the following instantaneous values:
T(0)=0
T(2)=0
T(4)=0
T(6)=1
T(8)=2
T(10)=2
T(12)=2
The values reported by TRNSYS are average values over the timestep reported at the end of the timestep
so we have:
TRNSYS Time=0, Output=0
TRNSYS Time=1,Output=0
TRNSYS Time=2,Output=0
TRNSYS Time=3,Output=0.5
TRNSYS Time=4,Output=1.0
TRNSYS Time=5,Output=1.5
TRNSYS Time=6,Output=2.0
4–623
TRNSYS 18 – Mathematical Reference
Figure 4.11.1–5: On-line plotter for the data interpreted as average values given in 2-hour intervals.
Table 4.11.1–3: Parameters for Type9, assuming data is spaced in 2-hour intevals
With these parameters, the points for the 2-hour case would then be
T(0)=0
T(2)=0
T(4)=1
T(6)=2
4–624
TRNSYS 18 – Mathematical Reference
T(8)=3
The values reported by TRNSYS are average values over the timestep reported at the end of the timestep
so we have:
TRNSYS Time=0, Output=0
TRNSYS Time=1,Output=0
TRNSYS Time=2,Output=0
TRNSYS Time=3,Output=0.25
TRNSYS Time=4,Output=0.75
TRNSYS Time=5,Output=1.25
TRNSYS Time=6,Output=1.75
Figure 4.11.1–6: On-line plotter for the data interpreted as instantaneous values given in 2-hour
intervals.
4–625
TRNSYS 18 – Mathematical Reference
1 Initial value of time hr] The initial value of time for the function. If the cycle is to repeat, this
initial value of time must be set to 0.0.
2 Initial value of function [any] The value of the function at the initial value of time.
The next two parameters are cycled for as many points as are needed to define the forcing function.
3 Time at point [hr] The value of time at the specified data point.
4 Value at point [any] The value of the function at the specified data point.
OUTPUTS
1 Average value of any The average value of the function over the timestep. Since most
function TRNSYS outputs are the average value over the timestep, this is
the output that should be connected to the inputs of other
components.
2 Instantaneous value of any The instantaneous value of the function at the end of the timestep.
function over the
timestep
4–626
TRNSYS 18 – Mathematical Reference
Both the instantaneous value of the forcing function are available as outputs. When step-like functions
are to be defined, it is recommended to define the function by repeating each time value with two
different values of V, and then use the average value (output(1)) in the simulation. This will guarantee
the use of the exact same profile for any value of the time step. For example, to define an occupancy
in a building between 8 AM and 5PM (occupancy is 0 at night, 1 during the day, and must change
instantly from 0 to 1 and 1 to 0):
Define the origin (time = 0, V = 0)
Define the time at which the occupancy starts, repeating the value 0 (time = 8, V = 0)
Repeat the time at which the occupancy stops with the value 1 (time = 8, V = 1)
Define the time at which the occupancy stops, repeating the value 1 (time = 17, V = 1)
Repeat the time at which the occupancy stops with the value 1 (time = 17, V = 0)
Define the end of the period tc (after that the cycle is repeated) (time = 24, V = 0)
Use output(1) (average value over the time step)
4.11.2.4. Nomenclature
TIME current value of time in simulation
CT the cycle time (the time span after which the pattern repeats itself, which may be the total simulation
time)
N the number of segments defining the function (N+1 points must be specified)
V0 the initial value of the forcing function (occurs at TIME = 0, CT, 2CT, 3CT etc.)
Vi the value of the forcing function at point i
ti the elapsed time from the start of the cycle at which point i and Vi are reached
𝑉̅ the linearly interpolated average value of the function over the timestep
to the initial value of time. Must be zero if the function repeats itself. IF CT is the total simulation time,
to can be less than or equal to the initial simulation time
t the simulation timestep
4–627
TRNSYS 18 – Mathematical Reference
2 Relative or absolute [-] This parameter indicates whether values are relative or absolute.
time "0" indicates absolute time while a "1" indicates values relative to
the initial time.
OUTPUTS
4–628
TRNSYS 18 – Mathematical Reference
1 Integration period [-] The time interval over which the inputs are to be investigated. The
outputs are reset to zero after each reset time interval. If the reset
time is set to a negative value, then units of months are assumed
(if the reset time is set to -2, then the reset time will be two
months...)
2 Relative or absolute [-] This parameter controls whether the integration intervals are
time relative or absolute
0: integrate at time intervals relative to the simulation start time
1: integrate at absolute time intervals
For example, if the simulation start time is 0.5, the simulation time
step is 0.25 and the integration interval (or reset time) is 1: If this
parameter is set to 0, reset will occur at 0.5, 1.5, 2.5, etc. If this
parameter is set to 1, reset will occur at 1, 2, 3, etc.
INPUTS
The inputs are cycled based on the response to a question asked in the Simulation Studio Proforma
1 Input to be integrated [any] Leave the initial value at zero unless you wish to add a constant to
the integration results.
The constant added will be the initial value.
OUTPUTS
The outputs are cycled such that there will be one output for each input
1 Integration result [any] The result of the integration of the corresponding input. Output 1will
be the result of the integration of Input 1 with respect to time.
4–629
TRNSYS 18 – Mathematical Reference
4.11.4.4. Nomenclature
Xi the ith quantity or rate to be integrated
Yi the time integral of Xi
𝑌𝑖 = ∫ 𝑋𝑖 𝑑𝑡 Eq. 4.11.4-1
𝑡𝑖𝑚𝑒
If a reset time of -1 is entered then Type24 will automatically reset monthly, taking into account the different
lengths of each month.
4–630
TRNSYS 18 – Mathematical Reference
1 Number of profiles for [-] This parameter sets how many combined schedules (profiles)
each day Type41 will produce.
2 Input set for day 1 of [-] An index indicating which set of inputs will be set as the output for
the week the first day of each week.
3 Input set for day 2 of [-] An index indicating which set of inputs will be set as the output for
the week the second day of each week.
4 Input set for day 3 of [-] An index indicating which set of inputs will be set as the output for
the week the third day of each week.
5 Input set for day 4 of [-] An index indicating which set of inputs will be set as the output for
the week the fourth day of each week.
6 Input set for day 5 of [-] An index indicating which set of inputs will be set as the output for
the week the fifth day of each week.
7 Input set for day 6 of [-] An index indicating which set of inputs will be set as the output for
the week the sixth day of each week.
8 Input set for day 7 of [-] An index indicating which set of inputs will be set as the output for
the week the seventh day of each week.
9 Number of non [-] The number of non standard days that occur during the year.
standard days
10 Input set for non- [-] An index indicating which set of inputs will be set as the output for
standard days all of the non standard days
The next parameter is cycled based on the number of non-standard days specified by parameter 9
11 Day of the year for non [-] The day of the year on which this non-standard schedule should
standard day occur.
INPUTS
1 Input to be integrated [any] Leave the initial value at zero unless you wish to add a constant to
the integration results.
The constant added will be the initial value.
4–631
TRNSYS 18 – Mathematical Reference
OUTPUTS
1 Function output for [any] The value of each profile (specified as output 1) for the current day
current day of the simulation.
4–632
TRNSYS 18 – Mathematical Reference
etc…
4–633
TRNSYS 18 – Mathematical Reference
1 Logical unit [-] The logical unit number of the file containing data. Every
external file that TRNSYS reads to or writes from must be
assigned a unique integer (logical unit number) in the TRNSYS
input file. Simulation Studio assigns this number automatically
3 Number of dependent [-] The number of dependent variables to be read from the external
variables data file.
4 Number of values of [-] The number of values of the first independent variable for which
the 1st independent data is supplied in the external file. NOTE: These values should
variable be entered in the 3rd line of the data file.
The next parameter is only needed if the data file contains values for more than one independent variable. In other
words if the dependent values depend on two or more variables.
5 Number of values of [-] The number of values of the second independent variable for
the 2nd independent which data is supplied in the external file. NOTE: These values
variable should be entered in the 2nd line of the data file.
The next parameter is only needed if the data file contains values for more than two independent variables. In
other words if the dependent values depend on three variables.
6 Number of values of [-] The number of values of the third independent variable for which
the 3rd independent data is supplied in the external file. NOTE: These values should
variable be entered in the 1st line of the data file.
INPUTS
1 Control function [0/1] The control function for the interpolation. The outputs from this
component are simply the interpolated values from the data file
multiplied by this control function.
2 First independent [any] The value of the first independent variable on which the
variable value interpolated values depend. This is the independent variable
whose values are located in the 3rd line of the external data file.
3 Second independent [any] The value of the second independent variable on which the
variable value interpolated values depend. This is the independent variable
whose values are located in the 2nd line of the external data file.
4–634
TRNSYS 18 – Mathematical Reference
4 Third independent [any] The value of the third independent variable on which the
variable value interpolated values depend. This is the independent variable
whose values are located in the 1st line of the external data file.
OUTPUTS
One integrated value will be reported for each dependent variable in the data file.
Dependent variable [-] The integrated value of each dependent variable over the course of the
value simulation
One min/max value will be reported for each dependent variable in the data file.
Dependent variable [0..1] The minimum and maximum value of each dependent variable over the
value course of the simulation
One min/max value will be reported for each independent variable in the data file.
Independent variable [V] The minimum and maximum value of each independent variable over
value the course of the simulation
4–635
TRNSYS 18 – Mathematical Reference
energy absorbed, and COP at the lowest ambient temperature, followed by their values at the next air
temperature, and so on. The first input is the control signal and the second input is the current ambient
temperature. The first three outputs will be values of capacity, energy absorbed, and COP at the current
ambient temperature multiplied by the control signal. The data file might look like the following. Please note
that the data below is NOT realistic but is meant simply to give the user an idea of the format of the required
data file.
10 15 20 30 ! [C] values of ambient temperature
10000 8000 3.0 ! values of capacity [kJ/h] energy absorbed [kJ/h] and COP [-] at 10C
12000 9000 3.0 ! values of capacity [kJ/h] energy absorbed [kJ/h] and COP [-] at 15C
14000 10000 3.0 ! values of capacity [kJ/h] energy absorbed [kJ/h] and COP [-] at 20C
16000 11000 3.0 ! values of capacity [kJ/h] energy absorbed [kJ/h] and COP [-] at 30C
Air Conditioner
This example describes the use of the Type 42 to determine cooling capacity and COP of an air conditioner
in terms of ambient temperature and relative humidity. Both the numbers of independent and dependent
variables are two. Consider ambient temperature to be the primary independent variable. It is necessary to
supply capacity and COP versus ambient temperature data for different values of relative humidity. The
first NX2 numbers in the data file are the increasing values of relative humidity for which capacity and COP
versus temperature data is provided. The next NX1 values are increasing ambient temperatures at which
capacity and COP data are evaluated. Values of capacity and COP at the corresponding temperatures at
the lowest value of relative humidity are next, followed by capacity and COP values at these same
temperatures, at the next relative humidity and so on. The first input is the control signal and the second
and third inputs should be the current values of the ambient temperature and relative humidity. The first two
outputs are the values of capacity and COP at the current conditions multiplied by the control function. The
data file format in this case might look like the following (again, the values are NOT realistic)
25 50 75 ! [%] values of ambient relative humidity
10 15 20 30 ! [C] values of ambient temperature
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 25% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 25% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 25% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 25% RH and 30C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 50% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 50% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 50% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 50% RH and 30C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 75% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 75% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 75% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 75% RH and 30C
Chemical (Absorption) Heat Pump
The steady-state capacity and COP of an absorption heat pump may be characterized in terms of the
energy input rate to the generator, the evaporator fluid inlet temperature, and the condenser fluid inlet
temperature. In this case, there are three independent and two dependent variables. Consider the generator
energy as the primary independent variable and the evaporator and condenser inlet temperatures as the
secondary and tertiary independent variables, respectively. It is necessary to provide N X3 X NX2 sets of
capacity and COP data versus generator input energy. The first NX3 numbers in the data file are increasing
values of condenser inlet temperature. These are followed by N X2 values of increasing evaporator
temperature and NX1 values of increasing generator input energy. Values of capacity and COP for each
value of generator input at the lowest evaporator and condenser temperatures are next.
A set of these performance numbers is required for each evaporator temperature, still at the lowest
condenser temperature. This sequence of data entry is repeated for each value of condenser temperature.
The first input is the control signal and the current energy input to the generator, evaporator inlet
temperature, and condenser inlet temperature are the second, third, and fourth inputs to this component.
4–636
TRNSYS 18 – Mathematical Reference
The first two outputs are the products of the control function and the capacity and COP. The data file format
in this case might look like the following (again, the values are NOT realistic)
500 1000 ! [kg/h] values of air flow rate
25 50 75 ! [%] values of ambient relative humidity
10 15 20 30 ! [C] values of ambient temperature
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 25% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 25% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 25% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 25% RH and 30C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 50% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 50% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 50% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 50% RH and 30C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 75% RH and 10C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 75% RH and 15C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 75% RH and 20C
10000 3.0 ! values of capacity [kJ/h] and COP [-] at 500 kg/h, 75% RH and 30C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 25% RH and 10C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 25% RH and 15C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 25% RH and 20C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 25% RH and 30C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 50% RH and 10C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 50% RH and 15C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 50% RH and 20C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 50% RH and 30C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 75% RH and 10C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 75% RH and 15C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 75% RH and 20C
20000 2.0 ! values of capacity [kJ/h] and COP [-] at 1000 kg/h, 75% RH and 30C
4–637
TRNSYS 18 – Mathematical Reference
The parameters are cycled based on the number of inputs to be assessed (1-10)
1 Integrate or sum? [-] This parameter indicates to the periodic integrator component
whether this input should integrated with respect to time or
summed over the period of interest. If the input is to be integrated
set this parameter equal to the input number. If the input is to be
summed instead, set this parameter to the negative of the input
number. For example, if the first input is to be summed over the
time period and the second input is to be integrated with respect to
time, parameter 1 should be set to -1 and parameter 8 should be
set to 2.
2 Relative starting hour [hr] The relative starting hour of the period for the specified input
(referenced to midnight).
For example, if the simulation start time is set to 0, and this
parameter is set to 8, the periodic summary for this input will begin
at 8:00 am, not 9:00 am.
Example: The first input is to be investigated between 8 am and 10
am every day with monthly results expected for March and April.
Answer: the value of this parameter should be 8
3 Duration [hr] The length of time for which the specified input is to be evaluated
after the relative starting hour is reached. By specifying a value of -
1 for this parameter, the summary period will run from the starting
hour to the end of the month.
Example: The first input is to be investigated between 8 am and 10
am every day with results expected for March and April.
Answer: the value of this parameter should be 2
4–638
TRNSYS 18 – Mathematical Reference
4 Cycle repeat time [hr] The number of hours between the start of consecutive summary
periods for the specified input. Specifying a value of -1 indicates to
the component that the cycles should repeat monthly.
Example: The first input is to be evaluated between 8 am and 10
am every day with monthly results expected for March and April.
Answer: the value of this parameter should be 24
5 Reset time [hr] The time interval over which the specified input is to be
investigated before the outputs are reset to zero. Specifing a value
of -1 for this parameter indicates that the outputs are to be reset at
the end of each month.
Example: An input is to be investigated between 8 am and 10 am
every day with results expected for March and April
Answer: the value of this parameter should be -1 (monthly reset)
6 Absolute starting hour [hr] The absolute starting hour for the periodic summary. This feature
allows the periodic integrator to skip times at which no information
is desired for this input. For example, an input is to be investigated
only in December of an annual simulation. By setting this
parameter to the first hour in December, significant calculation time
is saved. Be careful to have the absolute starting time less than the
first hour of the year for which this input is to be investigated.
7 Absolute stopping hour [hr] The absolute stopping hour for the specified input. This parameter
allows the periodic integrator routine to skip times when no
summary information is desired for this input. For example, periodic
information is only desired for January of an annual simulation. By
setting this parameter to the last hour of January, significant
calculation time can be saved. Be sure to set this parameter
greater than the last hour for which summary information is
desired.
INPUTS
The inputs are cycled based on the number of values to be assessed (1-10)
1 Input value [any] The input to be evaluated over the period specified by parameters:
1+(i-1)*7 through 7+(i-1)*7.
Make sure to integrate a rate and sum a quantity!
OUTPUTS
The outputs are cycled based on the number of values to be assessed (1-10)
1 Integral [any] The integral of the specified input with respect to time over the
period specified by the parameter list.
2 Count [-] The number of times the specified input was evaluated over the
period specified by the parameter list.
3 Mean value [any] The average value of the specified input over the time period.
Mean = Sum of Input/Count
4–639
TRNSYS 18 – Mathematical Reference
4 Standard deviation [any] The sample standard deviation for the specified input over the time
period. The lower the standard deviation, the closer the inputs are
grouped around the mean.
SSD = ((Sum of (Input - Mean)^2)/(Count-1))^0.5
5 Variance [any] The variance of the specified input over the time period. The lower
the variance, the closer the inputs are grouped around the mean.
Variance = Sample Standard Deviation ^ 2
6 Sum of squares [any] The sum of squares of the specified input over the time period. The
sum of squares of an input is a measure of how closely the inputs
are grouped around the mean. The lower the SSQ, the closer the
inputs are grouped around the mean.
SSQ = Sum of (Inputs - Mean)^2
7 Minimum value [any] The minimum value of the specified input occurring in the specified
time period.
8 Time of minimum value [hr] The hour of the year during which the minimum value of the
specified input occurred in the time period.
9 Maximum value [any] The maximum value of the specified input occurring in the time
period.
10 Time of maximum [hr] The hour of the year at which the maximum value of the specified
value input occurred during the time period.
4.11.7.4. Nomenclature
Lengthi duration of period for Input i (hours)
Maxi maximum value of Input i over the time range
Meani mean value of Input i
Mini minimum value of Input i over the time range
Ni number of values of Input i per reset time
Repeati time interval between periods for Input i (hours)
Reseti time interval over which Input i should be investigated (hours)
Starti absolute starting time for summary of Input i (hour of year)
SSDi sample standard deviation of Input i
4–640
TRNSYS 18 – Mathematical Reference
where:
VALi = INPUTi if [Toni + n (Repeati)] TIME [Toni + lengthi n (Repeati)] n = 0,1,2,3…
VALi = 0 otherwise
The total number of values of Input i to be evaluated per reset time is defined as the count of Input i. For
the periodic integrator, the count of Input i may be expressed as:
𝐿𝑒𝑛𝑔𝑡ℎ𝑖 (ℎ𝑟𝑠) 𝑅𝑒𝑠𝑒𝑡𝑖 (ℎ𝑟𝑠)
𝑁𝑖 = ( )( ) Eq. 4.11.7-3
∆𝑡(ℎ𝑟𝑠) 𝑅𝑒𝑝𝑒𝑎𝑡𝑖 (ℎ𝑟𝑠)
The mean value of Input i is defined as the average value of Input i over the period of interest:
𝑆𝑡𝑜𝑝
∑𝑠𝑡𝑎𝑟𝑡𝑖𝑖 𝑉𝐴𝐿𝑖
𝑀𝑒𝑎𝑛𝑖 = Eq. 4.11.7-4
𝑁𝑖
To determine how the Inputs of i deviate from the mean value of Input i, the standard deviation of Input i is
calculated. The standard deviation of Input i is a measure of the degree to which the values of Input i vary
from the average value of Input i. The lower the standard deviation, the closer the values of Input i are
grouped around the mean.
The periodic integrator calculates the sample standard deviation (SSD) of Input i over the time period:
𝑠𝑡𝑜𝑝
∑𝑠𝑡𝑎𝑟𝑡𝑖 (𝑉𝐴𝐿𝑖 − 𝑀𝑒𝑎𝑛𝑖 )2
𝑆𝑆𝐷𝑖 = √ 𝑖 Eq. 4.11.7-5
𝑁𝑖 − 1
Another measure of the degree to which Input i is grouped around the mean value of Input i is the variance.
The variance is the summation of the squares of the difference between Input i and the mean value of Input
i. Similar to the standard deviation, the lower the variance, the less the individual values of Input i vary from
the mean. A lower value of variance also implies that the mean is a more reliable estimate of the entire
sample:
𝑠𝑡𝑜𝑝
∑𝑠𝑡𝑎𝑟𝑡𝑖 𝑖(𝑉𝐴𝐿𝑖 − 𝑀𝑒𝑎𝑛𝑖 )2
𝑉𝐴𝑅𝑖 = Eq. 4.11.7-6
𝑁𝑖 − 1
Note: The variance is simply the square of the sample standard deviation.
4–641
TRNSYS 18 – Mathematical Reference
The summation of the squares of Input i, another measure of the deviation of Input i from its mean, is also
kept by the periodic integrator and defined as:
𝑠𝑡𝑜𝑝𝑖
4–642
TRNSYS 18 – Mathematical Reference
The parameters are cycled based on the number of values whose units are to be converted
1 Table number for input [-] The table number corresponding to the dimension of the specified
input. Refer to section 4.11.8.6 for additional details.
Temperature=1; Length=2; Area=3; Volume=4; Specific Volume=5;
Velocity=6; Mass=7; Density=8; Force=9; Pressure=10;
Energy=11; Power=12; Specific Energy=13 (h,u); Specific
Heat=14; Flowrate=15; Volumetric Flowrate=16; Flux=17; Thermal
Conductivity=18; Heat Transfer Coeff.=19; Dynamic Viscosity=20;
Kinematic Viscosity=21; Misc.=22
2 ID number from table [-] The number corresponding to the units of the specified inputs from
for input the table specified in the previous parameter. Refer to section
4.11.8.6 for additional details.
3 ID number from table [-] The identification number corresponding to the desired output units
for output from the table specified two parameters previous.
INPUTS
The inputs are cycled based on the number of values whose units are to be converted
1 Input value [any] The specified input that it to have its units converted according to
parameters:
OUTPUTS
The outputs are cycled based on the number of values whose units are to be converted
1 Output value [any] Output i is equal to input i after the unit conversion process.
4–643
TRNSYS 18 – Mathematical Reference
4.11.8.4. Nomenclature
ai addition factor for converting input units to standard units
ao addition factor for converting standard units to desired output units
mi multiplication factor for converting input units to standard units
mo multiplication factor for converting standard units to output units
Ntable,i table number corresponding to input variable type
Vin,i variable type number specifying units of input variable from specified table
Vout,i variable type number specifying desired units of output variable from specified table
Xst input variable after conversion to standard units
Xi ith input variable
Yi output variable after conversion to desired output units
4–644
TRNSYS 18 – Mathematical Reference
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 m LE1 1 0
2 cm LE2 100 0
3 km LE3 1000 0
4 in LE4 39.3701 0
5 ft LE5 3.28084 0
6 miles LE6 6.21371 E-04 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 m2 AR1 1 0
2 cm2 AR2 1 E+04 0
3 km2 AR3 1 E-06 0
4 in2 AR4 1550 0
5 ft2 AR5 10.7639 0
6 mi2 AR6 3.86102 E-07 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 m3 VL1 1 0
2 l VL2 1000 0
3 ml VL3 1 E+06 0
4 in3 VL4 6.10237 E+04 0
5 ft3 VL5 35.3147 0
6 gal VL6 264.172 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 m3/kg SV1 1 0
2 l/kg SV2 1000 0
3 ft3/lbm SV3 16.0185 0
4 in3/lbm SV4 2.76799 E+04 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 m/s VE1 1.0 0
2 km/hr VE2 3.6 0
3 ft/s VE3 3.28084 0
4 ft/min VE4 196.85 0
5 mph VE5 2.23694 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kg MA1 1 0
4–645
TRNSYS 18 – Mathematical Reference
2 g MA2 1000 0
3 lbm MA3 2.20462 0
4 ounces MA4 35.274 0
5 ton MA5 1.10231 E-03 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kg/m3 DN1 1.0 0
2 kg/l DN2 0.001 0
3 lbm/ft3 DN3 6.2428 E-02 0
4 lbm/gal DN4 8.3454 E-03 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 N FR1 1.0 0
2 lbf FR2 0.224809 0
3 ounce FR3 3.59694 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 BAR PR1 1 0
2 kPa PR2 100 0
3 Pa PR3 1 E+05 0
4 ATM PR4 0.986923 0
5 psi PR5 14.5038 0
6 lbf/ft2 PR6 2.08854 E+03 0
7 in. H2O PR7 401.463 0
8 in. Hg PR8 29.53 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kJ EN1 1 0
2 kWh EN2 2.77778 E-04 0
3 Cal EN3 238.846 0
4 ft-lbf EN4 737.562 0
5 hp-hr EN5 3.72506 E-04 0
6 BTU EN6 0.947817 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kJ/hr PW1 1 0
2 W PW2 0.277778 0
3 kW PW3 2.77778 E-04 0
4 hp PW4 3.72505 E-04 0
5 BTU/hr PW5 0.947817 0
6 BTU/min PW6 1.57969 E-02 0
7 Tons PW7 7.89847 E-05 0
4–646
TRNSYS 18 – Mathematical Reference
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kJ/kg SE1 1 0
2 BTU/lbm SE2 0.429923 0
3 ft-lbf/lbm SE3 334.553 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kJ/kg-K CP1 1 0
2 W-hr/kg-K CP2 0.277778 0
3 BTU/lbm-R CP3 0.238846 0
Table 4.11.8–15: TABLE #15: FLOW RATE
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kg/hr MF1 1 0
2 kg/s MF2 2.77778 E-04 0
3 lbm/hr MF3 2.20462 0
4 lbm/s MF4 6.12395 E-04 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 m3/hr VF1 1 0
2 m3/s VF2 2.77778 E-04 0
3 l/hr VF3 1000 0
4 l/s VF4 0.277778 0
5 ft3/s VF5 9.80958 E-03 0
6 ft3/hr VF6 35.3144 0
7 gpm VF7 4.40286 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kJ/hr-m2 IR1 1 0
2 W/m2 IR2 0.277778 0
3 BTU/hr-ft2 IR3 8.8055 E-02 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kJ/hr-m-K KT1 1 0
2 W/m-K KT2 0.277778 0
3 BTU/hr-ft-R KT3 0.160497 0
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 kJ/hr-m2-K HT1 1 0
2 W/m2-K HT2 0.277778 0
3 BTU/hr-ft2-R HT3 4.89194 E-02 0
4–647
TRNSYS 18 – Mathematical Reference
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 N-s/m2 VS1 1 0
2 kg/m-s VS2 1 0
3 poise VS3 10 0
4 lbf-s/ft2 VS4 2.08854 E-02 0
5 lbf-hr/ft2 VS5 5.80151 E-06 0
6 lbm/ft-hr VS6 2419.08 0
Table 4.11.8–21: TABLE #21: KINEMATIC VISCOSITY
VAR. TYPE # VAR. UNITS VAR. TYPE MULT. FACTOR ADD. FACTOR
1 m2/s KV1 1 0
2 m2/hr KV2 3600 0
3 ft2/s KV3 10.7639 0
4 ft2/hr KV4 3.87501 E+04 0
VAR. TYPE
Dimensionless DM1
Degrees DG1
Percentage PC1
Month MN1
Day DY1
Hour TD1
Control function CF1
4–648
TRNSYS 18 – Mathematical Reference
2 Number of inputs [-] The number of input values that are expected by the Excel
spreadsheet and VB macro. The cells in the spreadsheet should be
named Input1 to InputN (where N is the value of parameter 2)
3 Number of outputs [-] The number of output values that will be passwed back to TRNSYS
by the Excel spreadsheet and VB macro. The cells in the
spreadsheet should be named Output1 to OutputN (where N is the
value of parameter 3)
4 Show Excel [0/1] Set this parameter to 1 if you want Excel to be visible during the
simulation. If this parameter is set to 0, Excel will run hidden in the
background.
INPUTS
OUTPUTS
4–649
TRNSYS 18 – Mathematical Reference
Type62 is coded to accept up to 15 inputs and 15 outputs. This number can be increased by modifying
the Type62 Fortran code, recompiling it, and relinking the TRNSYS dll (TRNDll).
4–650
TRNSYS 18 – Mathematical Reference
1 Input mode [-] This parameter specifies how the EES model will be called. If set to
1, the EES model will be called at every time step and at every
iteration. If set to 2, the first input is a control signal. The first input
will not be sent to EES. Please refer to parameter 2 for information
on the various ways that outputs can be treated in Input mode 2.
2 Control mode [-] This parameter is only used in Input mode 2 (parameter 1 set to 2).
In Input mode 2, the first input is not sent to EES but is a control
signal. When that control signal is set to 0, the EES model will not
be called. This parameter determines how outputs will be treated
when the EES model is not called.
1: outputs are set to 0 if Input Mode is 2 and the first input is 0
2: outputs are set to predefined (parameter) values if Input Mode is
2 and the first input is 0
3: output values are held from the previous time step if Input Mode
is 2 and the first input is 0
3 Allowable wait [s] The allowable amount of time that TRNSYS will allow EES before
deciding that EES is non responsive. (Not implemented yet)
4 Number of outputs [-] The number of outputs that EES will be returning.
INPUTS
The inputs are cycled based on the answer to a question in the Studio proforma
OUTPUTS
4–651
TRNSYS 18 – Mathematical Reference
4–652
TRNSYS 18 – Mathematical Reference
out2 = convertTemp(K,C,T_2)
out3= eta_isothermal
out4 = Q*convert(kJ/s,MJ/hr)
out5 = W_actual*convert(kJ/s,MJ/hr)
out6 = W_isothermal*convert(kJ/s,MJ/hr)
To this point there is nothing special about the EES file; nothing has been written in a specialized format
for TRNSYS’s sake. The output variable labels out1, out2, etc. are simply variable names. The only slightly
unusual feature of the EES file is that there are a number of “convert” statements included to take the units
of the various Input variables provided by TRNSYS and change them into the units expected by EES based
on the EES file’s settings. On the output side, a number of unit conversions are included to put the variables
back into TRNSYS’s system of units.
Once the EES model has been developed, two statements are added, one before the EES model equations
and one afterwards. These are the DDE statements that tell EES to get the Input variables from the
Windows clipboard before solving the equations and then to post the results back onto the clipboard. The
DDE statements inserted are of the form:
$Import 'CLIPBOARD' InputVariable1,InputVariable2,InputVariable3,...
and
$Export 'CLIPBOARD' OutputVariable1, OutputVariable2, OutputVariable3,...
For the example above, the DDE statements are:
$Import 'CLIPBOARD' p_1_TRNSYS,T1_TRNSYS,w1_TRNSYS,p2_TRNSYS,m_dot_TRNSYS,R,n
m_dot = m_dot_TRNSYS*convert(kg/hr,kg/s)
p_1 = p_1_TRNSYS*convert(atm,Pa)
... remainder of EES File removed ...
out5 = W_actual*convert(kJ/s,MJ/hr)
out6 = W_isothermal*convert(kJ/s,MJ/hr)
4–653
TRNSYS 18 – Mathematical Reference
1 The performance of the EES component will be calculated at each iteration based
exclusively on the contents of the EES file. Outputs are set based on the results of the
EES calculations.
2 When the device is OFF (control signal set to 0) EES will not be called. The Type66
outputs will be held at their last calculated values until the control signal switches to
ON (1) and EES is called again. The control signal Input is NOT sent to EES.
3 When the device is OFF (control signal set to 0) EES will not be called. The Type66
outputs will be set to values predefined amongst the Type66 parameter list until the
control signal switches to ON (1) and EES is called again. The control signal Input is
NOT sent to EES.
4 When the device is OFF (control signal set to 0) EES will not be called. The Type66
outputs will be set to 0 until the control signal switches to ON (1) and EES is called
again. The control signal Input is NOT sent to EES.
The third parameter to Type66 is intended to control the amount of time the EES is allowed to take before
TRNSYS decides that EES is not responding or that it cannot solve the system of equations. The allowable
wait time is specified in milliseconds. In the initial TRNSYS 16 release, this parameter was not implemented.
The user may enter any value they wish – TRNSYS will wait for a response from EES forever and may
become hung in certain instances.
The fourth Type66 parameter is the number of outputs that will be set by the EES model or, in the case of
a control signal set to 0, by Type66 itself.
If the second parameter (output mode) is set to 2, the model outputs are set to predefined values listed as
parameters following the four standard parameters. An example follows:
UNIT 7 TYPE 66 Call EES (Predefined Output Values)
PARAMETERS 10
2 ! 1 Input mode
2 ! 2 Output mode
10000 ! 3 Allowable wait
6 ! 4 Number of outputs
2 ! 5 Value when OFF for output-1
100 ! 6 Value when OFF for output-2
0.8 ! 7 Value when OFF for output-3
-9 ! 8 Value when OFF for output-4
40 ! 9 Value when OFF for output-5
40 ! 10 Value when OFF for output-6
...
In Input mode 1, Type66 requires as many Inputs as are expected by the EES model. In Input mode 2,
Type66 requires a control signal Input be provided before the list of Inputs that will be sent to the EES
model. This first Input is not sent to EES.
Type66 also requires two labels. The first label tells Type66 where the EES executable program can be
found. The second label tells Type66 where the EES file to be run can be found. As with other TRNSYS
label statements, path names may contain spaces as long as they are enclosed in quote marks. An example
follows:
...
LABELS 2
c:\EES32\ees.exe
“c:\TRNSYS17\Examples\Calling EES\compressor.ees”
4–654
TRNSYS 18 – Mathematical Reference
4.11.10.5. References
1. Klein, S.A., Alvarado, F.L., EES-Engineering Equation Solver, 2004, F-Chart Software, Middleton, WI
2. Bradley, D.E. and Blair, N.J., “Simulation Synergy, Interconnecting Simulation Programs,” Proceedings
of ASES Annual Meeting 1999, Portland ME, (1999).
4–655
TRNSYS 18 – Mathematical Reference
INPUTS
1 Delay time [s] Time by which to delay the simulation after each timestep. This
value may be set as a fraction of a second. Use -1 to indicate 'real
time' (1 hour takes 1 hour to simulate). Use 0 to indicate 'no delay'
(component will then have no effect)
4–656
TRNSYS 18 – Mathematical Reference
1 Mode [-] This parameter is not implemented and is reserved for future use.
2 Number of variables [-] The number of variables whose derivatives will be computed.
INPUTS
1 Input value [any] The input signal to be differentiated with respect to time.
OUTPUTS
1 Output value [any] The derivative with respect to time of each input variable.
4.11.12.3. Nomenclature
xi the ith quantity or rate whose derivative should be calculated.
t the time step
4–657
TRNSYS 18 – Mathematical Reference
1 Mode [-] This parameter is not implemented and is reserved for future use.
2 Number of variables [-] The number of variables for which a moving average will be
computed.
3 Number of timesteps [-] The number of time steps over which the moving average will be
computed.
INPUTS
1 Input value [any] The value of each input whose average is to be computed.
OUTPUTS
1 Output value [any] The average of each input value over the previous n timesteps
where n is set by parameter 3.
4.11.13.3. Nomenclature
t time step
N number of time steps
xi average of variable xi
4–658
TRNSYS 18 – Mathematical Reference
2 Initial year [-] The calendar year in which the simulation begins.
3 Initial hour [-] The hour of the year on which the simulation begins. This
parameter is ignored.
The remainder of the parameters are cycled based on the number of non standard holidays the users wishes to
define
5 Month of holiday [-] The month in which this user-defined holiday occurs.
6 Day of holiday [-] The day of the month on which this user-defined holiday occurs.
OUTPUTS
2 Hour of the year [-] This integer value ranges from 0 to 8759 in a normal year and from
0 to 8783 in leap years.
3 Day of the year [-] This integer value ranges from 1 to 365 during standard years and
from 1 to 366 during leapyears.
4 Day of the week [-] This integer ranges from 0 (Sunday) to 6 (Saturday)
6 Date [-] The day of the month (this integer value ranges from 1 to 31)
7 Year [-] The current simulation year (starting with the value entered as a
parameter).
4–659
TRNSYS 18 – Mathematical Reference
8 Weekend flag [-] This output has a value of 1 if the current day is a weekend day
and a value of 0 if the current day is a weekday. Simulations are
assumed to start on a Sunday.
9 Holiday flag [-] This output has a value of 1 if the current day is a holiday and a
value of 0 if not.
4.11.14.4. Nomenclature
Dhol,j Date (day-of-month) of user-defined holiday j
DOW Day-of-Week (0 = Sunday, 6 = Saturday)
DOY Day-of-Year (1-366)
FLAGDS Flag to enable daylight savings time
FLAGHOL Output flag indicating whether timestep falls on a holiday
FLAGWE Output flag indicating whether timestep falls on a weekend
HOD Hour-of-Day (0-23)
HOY Hour-of-Year (0-8783)
Mhol,j Month (1-12) of user-defined holiday j
YEARstart Year at start
4–660
TRNSYS 18 – Mathematical Reference
All of these holidays are included for Modes 0 and 1. Sometimes a holiday with a specific date, such as
Independence Day, falls on a Saturday or Sunday. If this happens, the holiday will be automatically “moved”
to Friday or Monday for that particular year. Easter is not included in the list because it always falls on a
Sunday.
When using Modes 1 and 2, the user may define additional holidays by adding values to the end of the
Parameter list. All user-defined holidays must be given a specific date, like Christmas or Independence
Day. Type 95 will support custom holidays that fall on a certain day of the week (1 st Monday in April, etc.)
Two numbers are added to the Parameter list for each additional user-defined holiday. These values are
the month of the holiday (1-12) and the date (1-31). If the user-defined holiday falls on the weekend, then
the holiday flag is set to the previous Friday or following Monday.
EXAMPLE: Two additional holidays are desired: October 31 st and December 24th. Eight Parameters are
used instead of the standard four. The additional four Parameters are 10, 31, 12, and 24.
ALGORITHMS
The calculations for month, year, and hour of day are fairly simple, relying on modular division along with
the length of each month. Montes [1998] gives a detailed explanation of computational methods for
electronic calendars. The calculation for the day of the week (Sunday, Monday, etc.) is given in the following
equation:
5𝑦
𝐷𝑂𝑊 = MOD (36 + 𝐷𝑂𝑌 + , 7) Eq. 4.11.14-1
4
where:
𝐷𝑂𝑌 = 𝐷𝑎𝑦 − 𝑜𝑓 − 𝑌𝑒𝑎𝑟
14 − 𝑚𝑜𝑛𝑡ℎ Eq. 4.11.14-2
𝑦 = 𝑦𝑒𝑎𝑟 −
12
Some holidays occur on specific days of the week rather than on set dates. President’s Day, for instance,
occurs on the third Monday in February. The formula for finding these “moving” holidays is:
4–661
TRNSYS 18 – Mathematical Reference
where:
𝐷𝑂𝑊𝑟𝑒𝑓 = 𝐷𝑂𝑊(𝑌𝑒𝑎𝑟, 𝑀𝑜𝑛𝑡ℎ, 𝐷𝑎𝑡𝑒 = 1 + 7(𝑁 − 1)) Eq. 4.11.14-4
Here, DOWhol is the day of the week for the holiday in question: 1 for Monday, 2 for Tuesday, and so on.
N is the number of occurrence for that day in the month, so N is set to 3 when solving for the third Monday
in the month.
4–662
TRNSYS 18 – Mathematical Reference
1 Logical unit number for [-] The integer assigned to the utility rate schedule file. This value is
rate schedule input file assigned automatically by the SimulationStudio
2 Logical unit number for [-] The integer assigned to the text format output file. This value is
text output assigned automatically by the SimulationStudio
3 Logical unit number for [-] The integer assigned to the spreadsheet format output file. This
spreadsheet output value is assigned automatically by the SimulationStudio
4 Switch to observe off- [0/1] If this value is set to 0 then off peak rates will not be considered on
peak weekend rates weekends. If this value is set to 1 then off peak rates will be applied
on weekends.
5 Switch to observe off- [0/1] If this value is set to 0 then off peak rates will not be considered on
peak holiday rates holidays. If this value is set to 1 then off peak rates will be applied
on holidays.
6 Maximum excess [W] The maximum grid resale power rate. If the excess power (beyond
power what is needed by the load) exceeds this value then that power is
assumed to be lost and not sold back to the utility.
4–663
TRNSYS 18 – Mathematical Reference
INPUTS
6 Flag indicating [-] A value of 1 indicates that the current simulation day is a weekend
weekend day. A value of 0 indicates that it is a week day.
8 [W] Power generated locally that can be used to offset building (or
Parallel generation system) electrical load before purchasing power from or sending
power to the grid.
OUTPUTS
1 Useage rate [currency/kW The cost of electricity (currency/kWh) at the present time in the
h] simulation.
2 Monthly demand rate [currency/kW] The demand rate ($/kW) for the current month in the simulation.
3 Net load [W] The system load minus any parallel generation
4 Power purchased from [W] Grid power purchased at the current time in the simulation.
utility
5 Power sold to utility [W] Excess power (beyond that required by the load) produced by
parallel generation at the current time in the simulation.
6 Instantaneous value of [currency] The current total price for power being consumed by the building
power purchased and coming from the utility grid.
7 Instantaneous value of [currency] The current total price for power being sold back to the utility grid.
power sold
8 Instantaneous savings [currency] The amount of currency saved at the present time by parallel
from parallel generation. This is the amount of parallel generation currently
generation being applied against the load and expressed as currency.
9 Instantaneous parallel [-] The fraction of the system load that is presently being met by
fraction parallel generation.
10 Total instantaneous [W] Total parallel generation losses due to the parameter that caps the
losses rate at which power can be sold back to the utility.
11 Instantaneous value of [currency] The value (in units of currency) of building load based on energy
load usage rate [currency]
4–664
TRNSYS 18 – Mathematical Reference
12 Cumulative utility bill [currency] Total cumulative utility bill over whole simulation, updated monthly
in currency units.
13 Useful parallel [W] The power from parallel generation which goes to satisfy building
generation load or is sold back to utility
4.11.15.4. Nomenclature
BILLTOT Total cumulative utility bill over whole simulation, updated monthly [$]
Chgdemand Monthly demand charge [$]
BILLTOT Total cumulative utility bill over whole simulation, updated monthly [$]
Chgdemand Monthly demand charge [$]
Chgratchet Ratchet charge based on greatest power consumption over last twelve months, assessed
monthly [$]
Chgusage Energy usage charge, assessed monthly [$]
DISOPHU Demand rate discount coefficient for low monthly on-peak hours of use [$/kW]
FLAGHOL Holiday flag: 1 indicates bank holiday, 0 indicates no holiday
FLAGWK Weekend flag: 1 indicates Saturday or Sunday, 0 indicates weekday
FRACpar Fraction of building load met by parallel generation
HOD Hour-of-day
HOY Hour-of-year
LUbill,text Logical unit number for utility bill output file (text-editor format)
LUbill,spread Logical unit number for utility bill output file (spreadsheet format)
LUsched Logical unit number for utility rate schedule input file
OPHU On-peak hours of use: Ratio of on-peak energy consumption to maximum instantaneous on-
peak load for a month
Pbuy Power purchased from utility [W]
Pgen Parallel generation [W]
Pload Electrical load of building [W]
Ploss Total parallel generation losses [W]
Pmaxsell Maximum excess generation to be sold back to utility through net metering [W]
Pnetload Building load after subtracting parallel generation [W]
Psell Parallel generation exceeding load, sold back to utility through net metering [W]
Puseful Parallel generation which goes to satisfy building load or is sold back to utility [W]
Ratedemand Monthly demand rate [$/kW]
Rateratchet Rate for twelve-month ratchet charge [$/kW]
Rateusage Energy usage rate [$/kWh]
SW HOL Switch to enable or disable off-peak rates for all holidays
SW WE Switch to enable or disable off-peak rates for all weekends
4–665
TRNSYS 18 – Mathematical Reference
Valbuy Value of purchased power at any timestep based on energy usage rate [$]
Valgen Value of parallel generation at any timestep based on energy usage rate [$]
Valload Value of building load based on energy usage rate [$]
Valsell Value of energy sold back to utility under net metering, based on energy usage rate [$]
Type 96 assumes net metering, so power may be sold back to the utility when generation exceeds load.
However, the user has the option to set Pmaxsell, a maximum grid resale power rate. The resale power is
calculated at each timestep as follows:
The monthly usage charge is found by totaling power purchases and sales over the course of the month
and multiplying by the usage rate at each timestep (the usage rate need not be constant):
Here, N is the number of timesteps in the month and t is the length of the timestep in hours, as assigned
in the TRNSYS SIMULATION statement.
Monthly demand charges are determined based on the largest single instantaneous product of net load
and demand rate over the course of the month. Like energy usage rates, demand schedule in Type 96
may include hourly or seasonal variations. This means that the demand charge may coincide with the
greatest single monthly load if the demand rate is greater at some other time. The monthly demand charge
for a month with a length of N timesteps is:
4–666
TRNSYS 18 – Mathematical Reference
Twelve-month ratchet charges are calculated similarly, except that the period of N timesteps represents the
last twelve months rather than a single month:
The usage, monthly demand, and ratchet rates are automatically found at each timestep. The rates are
based on the contents of a special rate schedule text file (detailed in a later section) and the Outputs of the
TRNSYS Rate Schedule Calendar, Type 95. The Calendar generates essential information such as the
hour of day and flags indicating whether a particular timestep falls on a weekend or holiday.
Energyon peak
OPHU Eq 4.11.15-8
Powermax,on peak
If the OPHU total is less than the user-defined value OPHUmax, the demand rate which would have been
used to assess the demand charge for that month will be reduced according to the OPHU value. The
“demand rate discount coefficient” DISOPHU acts as a multiplier for demand rate reduction as shown in the
following formula:
4–667
TRNSYS 18 – Mathematical Reference
Parameter 7 is the demand rate discount coefficient DISOPHU in $/kW. Parameter 8 is OPHUmax, the
maximum allowable number of on-peak hours of use for the customer to be eligible for the demand rate
discount. This discounting scheme is unusual; most utilities employ fixed demand rates. Setting either
Parameter 7 or Parameter 8 to zero will disable the demand rate discount.
Type 96 generates two output files as the simulation runs. These two files contain identical information on
the customer’s monthly utility bills. One of these files is formatted to be read using a text editor such as the
Microsoft Wordpad. The FORTRAN logical unit number for the text-editor file is given in Parameter 2. The
second file is meant to be opened from a spreadsheet as space-delimited text. Parameter 3 assigns the
logical unit number for the spreadsheet file. Figure 4.11.15–1 gives an example of the utility bill file output
in the text-editor format. The building simulated here is an office highrise with very large electrical loads.
4–668
TRNSYS 18 – Mathematical Reference
4–669
TRNSYS 18 – Mathematical Reference
weekends and holidays. However, this value is only used for weekends when Parameter 4 is set to 1. It is
used for holidays only when Parameter 5 is set to 1.
Next are 24 numbers defining the hourly demand schedule in $/kW. The last number on the long line is the
demand rate for weekends and holidays. The monthly demand charge is based on the greatest
instantaneous net load, multiplied by the demand rate at that hour, over the course of that month.
The final number in the file is the “12-month rolling demand” rate in $/kW. If this is a non-zero number, a
second demand charge (the “ratchet charge”) will be assessed each month based on the largest
instantaneous net load over the last 12-month period. Figure 4.11.15–2 summarizes the format of the rate
schedule file.
Figure 4.11.15–2 Type 96 Utility Bill Output File (Formatted for Text Editor)
4.11.15.6. References
4–670
TRNSYS 18 – Mathematical Reference
PARMAETERS
1 Logical Unit of the [-] The integer assigned to the name and location of the *.air file that
CONTAM input file contains the description of the building’s airflow elements. This file
is generated by CONTAM.
4–671
TRNSYS 18 – Mathematical Reference
4–672
TRNSYS 18 – Mathematical Reference
With the release of TRNSYS 17, users are able to simulate hybrid (mechanical and natural) airflow systems.
To do so, the user adds an AHS (air handling system) to the CONTAM model of the building. The AHS
consists of the air handler unit and any number of supplies and returns. There is no need to specify the
minimum outdoor air amount or the supply or return volume requested by the AHS component nor the
design flow rate for either the supply or return components; all of these values will come from the ventilation
system in TRNSYS. On the TRNBuild side, the user adds a new VENTILATION type to each zone that
contains a supply. The air flow rate calculated by the ventilation system components in TRNSYS will need
to be passed to both Type56 and to Type97. The interzonal air flow rates and infiltration air flow rates are
now affected by what is going on in the mechanical ventilation system.
The wind direction convention in CONTAM is N=0°, E=90°, etc. Pressure is expected in Pascals. Infiltration
flow rates are calculated in airchanges and interzonal air flow rates are calculated in kg/h. Note that there
is a typographical error in the CONTAM help files, which state that flow rates are calculated in kg//s; they
are not.
4.11.16.5. References
1. W. Stuart Dols, George N. Walton, 2002. CONTAMW 2.0 User Manual. Multizone Airflow and
Contaminant Transport Analysis Software. National Institute of Standards and Technology. Report NISTIR
6921. http://www.bfrl.nist.gov/IAQanalysis/index.htm
2. George N. Walton and W. Stuart Dols, 2003. CONTAM 2.1 Supplemental User Guide and Program
Documentation. National Institute of Standards and Technology. Report NISTIR 7049.
http://www.bfrl.nist.gov/IAQanalysis/index.htm
4–673
TRNSYS 18 – Mathematical Reference
4–674
TRNSYS 18 – Mathematical Reference
INPUTS
OUTPUTS
1 Mean value [any] mean value for the specified time period
2 Final mean value [any] mean value at the end at the specified stopping time
4.11.18.4. Nomenclature
mean - mean value of the input
val - input
start - starting time for calculation of the mean value of INPUT
stop - stopping time for calculation of the mean value of INPUT
T - simulation time step
N - number of time steps within the time period
4–675
TRNSYS 18 – Mathematical Reference
Val i
Eq. 4.11.18-1
Mean i 1
N
where:
Stop Start
N Eq. 4.11.18-2
t
The floating mean temperature rm for the actual day is calculated based on EN 15251:2007:
rm ed1 0.8ed2 0.6ed3 0.5ed4 0.4ed5 0.3ed6 0.2ed7/ 3.8 Eq. 4.11.18-3
Where ed-1 through ed-7 are the daily mean temperatures for the day before until 7 days back.
4.11.18.6. References
German Title: “Eingangsparameter für das Raumklima zur Auslegung und Bewertung der Energieeffizienz
von Gebäuden - Raumluftqualität, Temperatur, Licht und Akustik,” DIN EN 15251, 2007
English title:
“Indoor environmental input parameters for design and assessment of energy performance of buildings
addressing indoor air quality, thermal environment, lighting and acoustics,” DIN EN 15251, 2007
4–676
TRNSYS 18 – Mathematical Reference
4–677
TRNSYS 18 – Mathematical Reference
2 Number of inputs [-] The number of input values that are to be passed by TRNSYS to
the Matlab engine
3 Number of outputs [-] The number of output values that will be returned to TRNSYS by
the Matlab engine.
4 Calling Mode [any] This parameter describes the iterative behavior of this component.
Currently, the values 0 and 10 are defined.
0: Standard Iterative component (called at each call of each time
step)
10: Non-iterative component called at the end of each time step,
after integrators and printers - This is suitable for a controller that
calculates its outputs for one time step based on the converged
("measured") values of previous time step.
5 Keep Matlab open after If this parameter is 1 for at least one unit of Type 155 in the
simulation simulation, the Matlab engine will not be closed when TRNSYS
exits. This can be useful for further data analysis or debugging
purposes.
Please note that the Matlab instance launched by TRNSYS will exit
by itself after a certain time, so you should save your session and
re-open it in another Matlab instance if you want to keep working
on the data
INPUTS
4–678
TRNSYS 18 – Mathematical Reference
1 Input value any The value of each input to be passed by TRNSYS to the Matlab
engine
OUTPUTS
1 Output value any The value of each output computed by Matlab and passed back to
TRNSYS.
LABELS
1 m-file name any The name and the location of the m-file to be run by Matlab.
MATLAB M-FILE
The path and filename of your Matlab file are provided in a LABEL statement. Type 155 will understand the
following kind of pathnames (Note that Matlab m-files cannot have spaces or special characters in their
names):
Relative to the deck (default if no path is specified)
E.g. "My_M_File.m"
Absolute (if the path starts with "\" or if the second character is ":")
E.g. "C:\Trnsys18\Examples\Data Files\Type155_CallingMatlab.m"
Relative to the TRNSYS root directory (if the path starts with ".\")
E.g. ".\Examples\Data Files\Type155_CallingMatlab.m", which is equivalent to the second example
here above if TRNSYS is installed in "C:\Trnsys18"
4–679
TRNSYS 18 – Mathematical Reference
% Type155_CallingMatlab.m
% -----------------------------------------------------------------------------
%
% Example M-file called by TRNSYS Type 155
%
% Data passed from / to TRNSYS
% ----------------------------
%
% trnTime (1x1) : simulation time
% trnInfo (15x1) : TRNSYS info array
% trnInputs (nIx1) : TRNSYS inputs
% trnStartTime (1x1) : TRNSYS Simulation Start time
% trnStopTime (1x1) : TRNSYS Simulation Stop time
% trnTimeStep (1x1) : TRNSYS Simulation time step
% mFileErrorCode (1x1) : Error code for this m-file. It is set to 1 by TRNSYS
% and the m-file should set it to 0 at the
% end to indicate that the call was successful. Any non-
% zero value will stop the simulation
% trnOutputs (nOx1) : TRNSYS outputs
%
4–680
TRNSYS 18 – Mathematical Reference
%
% Notes:
% ------
%
% You can use the values of trnInfo(7), trnInfo(8) and trnInfo(13) to identify
% the call (e.g. first iteration, etc.)
% Real-time controllers (callingMode = 10) will only be called once per time
% step with trnInfo(13) = 1 (after convergence)
%
% The number of inputs is given by the size of trnInputs and by trnInfo(3)
% The number of expected outputs is given by trnInfo(6)
% -----------------------------------------------------------------------------
% This example implements a very simple component. The component is iterative
% (should be called at each TRNSYS call)
% -----------------------------------------------------------------------------
MyInput = trnInputs(1);
% --- First call of the simulation: initial time step (no iterations) ---------% -----
------------------------------------------------------------------------% (note that
Matlab is initialized before this at the info(7) = -1 call, but
% the m-file is not called)
% This is the first call (Counter will be incremented later for this very
% first call)
iCall = 0;
% This is the first time step
iStep = 1;
% Do some initialization stuff, e.g. initialize history of the variables
% for plotting at the end of the simulation
% (uncomment lines if you wish to store variables)
nTimeSteps = (trnStopTime-trnStartTime)/trnTimeStep + 1;
history.inputs = zeros(nTimeSteps,nI);
% No return, normal calculations are also performed during this call
mFileErrorCode = 120 % After initialization call
end
% --- Very last call of the simulation (after the user clicks "OK") -----------% -----
------------------------------------------------------------------------
if ( trnInfo(8) == -1 )
4–681
TRNSYS 18 – Mathematical Reference
mFileErrorCode = 1000;
% Do stuff at the end of the simulation, e.g. calculate stats, draw plots,
% etc...
mFileErrorCode = 0; % Tell TRNSYS that we reached the end of the m-file
% without errors
return
end
if (trnInfo(13) == 1)
end
% --- If this is a first call in the time step, increment counter ---
if ( trnInfo(7) == 0 )
iStep = iStep+1;
end
% Do calculations here
MyResult = MyInput*2;
% --- Set outputs ---
trnOutputs(1) = MyResult;
mFileErrorCode = 0; % Tell TRNSYS that we reached the end of the m-file without
% errors
return
GENERAL TROUBLESHOOTING
Each time a new version of MATLAB is released, the TRNSYS developers need to recompile and relink the
Type155.dll file against the latest MATLAB libraries. If you have MATLAB installed and the Calling MATLAB
example does not run, it may be that you have a version of Type155.dll that does not correspond to your
4–682
TRNSYS 18 – Mathematical Reference
version of MATLAB. DLLs compatible with various versions of MATLAB are located in .\SourceCode\DLLs\.
Always check the description result file (listing and log file) if an error is prompted executing a simulation.
A 32-bit version of Trnsys 18 is available and it can only call the 32-bit of Matlab. If you are using the 32-bit
version of TRNSYS, in order to use Type 155 you need to install the 32-bit version of Matlab. To install the
32-bit version of Matlab:
On your Matlab DVD, browse to the bin\win32 directory and run setup.exe. Note that if you run the
setup program in the root directory on a Windows 7 64-bit machine, it will install the 64-bit Matlab
version without asking for any confirmation. So you have to run the 32-bit setup program located in
bin\win32.
Install Matlab and your toolboxes. Do not install into the default directory but rather in a directory
outside of Program Files, e.g. C:\Matlab.
Add the path to libeng.dll, which is normally located in C:\Matlab\bin\win32, to your windows search
path (assuming you installed in C:\Matlab, otherwise adapt)
To do this, in Control Panel, System, Advanced System Settings, Environment variables, edit the
Path variable (we recommend that you edit the one in System Variables rather than User
Variables). Add “C:\Matlab\bin\win32;” (without the quotes but with the trailing semicolon) at the
beginning of the search path. You will notice that Matlab has added other subdirectories of
C:\Matlab to the path but not that one (and you thought TRNSYS was bad…).
If you also install the 64-bit version of Matlab you should make sure this directory is before all other
references to Matlab in the path.
Note that if you change the path while the TRNSYS Studio is running you will need to restart the
TRNSYS Studio
4–683
TRNSYS 18 – Mathematical Reference
A new project can be created using the “File/New project/Coupled MATHIS project” feature in Simulation
Studio.
To edit the air flow network, right click the type 159 and select “Edit air flow network”.
DEMO version comes with the default Trnsys installer. If you wish to get a full commercial version, please
contact your distributor or go to http://software.cstb.fr
4–684
TRNSYS 18 – Mathematical Reference
1 Number of parameters [-] This number of parameters (constant during the simulation) that will
be passed by TRNSYS to the Python script.
2 Number of inputs [-] The number of input values that are to be passed by TRNSYS to
the Python script.
3 Number of outputs [-] The number of output values that will be returned to TRNSYS by
the Python script.
4 Value of parameter The value of the parameter that will be passed by TRNSYS to the
Python script.
INPUTS
1 Input value any The value of each input to be passed by TRNSYS to the Python
script.
OUTPUTS
1 Output value any The value of each output computed by the Python script and
passed back to TRNSYS.
LABELS
1 Python script file name any The name and the location of the Python script to be executed.
4–685
TRNSYS 18 – Mathematical Reference
out = list()
out.append(Ins[0]+Ins[1])
out.append(Ins[2]**Pars[0])
f = open("py_outputs.dat",'w')
outline = " ".join(str(x) for x in out)
f.write(outline)
f.close
4–686
TRNSYS 18 – Mathematical Reference
1 Number of inputs [-] The number of input values that are to be passed by TRNSYS to
the Python script.
2 Number of outputs [-] The number of output values that will be returned to TRNSYS by
the Python script.
INPUTS
1 Input value any The value of each input to be passed by TRNSYS to the Python
script.
OUTPUTS
1 Output value any The value of each output computed by the Python script and
passed back to TRNSYS.
LABELS
1 Python script file name any The name and the location of the Python script to be executed.
2 Python function name any The name of the function in the Python script that will be called by
TRNSYS at each iteration.
4–687
TRNSYS 18 – Mathematical Reference
def PythonExample():
# retrieve values from the Parameters and Inputs
inp1 = TRNSYS.getInputValue(1)
inp2 = TRNSYS.getInputValue(2)
inp3 = TRNSYS.getInputValue(3)
inp4 = TRNSYS.getInputValue(3)
# processing
out1 = inp2+inp3
out2 = inp4**inp1
# return the new values to the Outputs
TRNSYS.setOutputValue(1,out1)
TRNSYS.setOutputValue(2,out2)
return
4–688
TRNSYS 18 – Mathematical Reference
4.12. Weather
4–689
TRNSYS 18 – Mathematical Reference
1 File Type [-] The type of file which is to be read: 1 = TMY format, 2 = TMY2
format, 3 = Energy+ format, 4 = IWEC format, 5 = CWEC format,
6=Metoenorm for TRNSYS format, 7 = TMY3 format, 8 = German
TRY 2004 format, 9 = German TRY 2010 format
2 Logical unit [-] The logical unit through which the data reader will read the external
weather file.
3 Tilted Surface [-] The radiation processing mode that will be used to calculate the
Radiation Mode radiation components on a tilited surface: 1= Isotropic Sky Model, 2
= Hay and Davies Model, 3 = Reindl Model, 4 = Perez 1988 Model.
5 = Perez 1999 Model. Refer to the documentation for the Type 16
model for more information.
4 Ground reflectance - [-] The ground reflectance for the periods of the year in which there is
no snow no snow cover.
5 Ground reflectance - [-] The ground reflectance for the periods of the year in which there is
snow cover snow cover.
6 Number of surfaces [-] The number of surfaces for which tilted surface radiation
calculations will be performed.
7 Tracking mode [-] The type of surface for the radiation calculations: 1 = fixed surface
(no tracking), 2 = the surface rotates about a vertical axis in order
to track the sun, 3 = the surface rotates about a fixed (user-defined)
axis, 4 = the surface 2-axis tracks such that the beam radiation is
always normal to the surface.
8 Slope of surface [degrees] The slope of the surface or axis of rotation. For tracking mode 1,
this input is the fixed slope of the surface. For tracking mode 2, this
input is the slope of surface (which does not change as the
collector rotates). For tracking mode 3, this slope is the slope of the
axis around which the collector rotates. For tracking mode 4 this
input is not used.
4–690
TRNSYS 18 – Mathematical Reference
9 Azimuth of surface [degrees] The azimuth of the surface or axis of rotation. For tracking mode 1,
this input is the fixed azimuth of the surface. For tracking mode 2,
this input is not used. For tracking mode 3, this input is the azimuth
of the axis around which the collector rotates. For tracking mode 4
this input is not used.
Azimuths are defined positive when facing the equator: 0 = facing
the equator, 90 = facing west, -90 = facing east.
10 Latitude [degrees] The latitude of the city for which the external weather data will be
read.
2 Logical unit [-] The logical unit through which the data reader will read the external
weather file.
3 Tilted Surface [-] The radiation processing mode that will be used to calculate the
Radiation Mode radiation components on a tilited surface: 1= Isotropic Sky Model, 2
= Hay and Davies Model, 3 = Reindl Model, 4 = Perez 1988 Model.
5 = Perez 1999 Model. Refer to the documentation for the Type 16
model for more information.
5 No Used [-] This parameter must be present but is not used by the component.
9 Number of surfaces [-] The number of surfaces for which tilted surface radiation
calculations will be performed.
10 Tracking mode [-] The type of surface for the radiation calculations: 1 = fixed surface
(no tracking), 2 = the surface rotates about a vertical axis in order
to track the sun, 3 = the surface rotates about a fixed (user-defined)
axis, 4 = the surface 2-axis tracks such that the beam radiation is
always normal to the surface.
11 Slope of surface [degrees] The slope of the surface or axis of rotation. For tracking mode 1,
this input is the fixed slope of the surface. For tracking mode 2, this
input is the slope of surface (which does not change as the
collector rotates). For tracking mode 3, this slope is the slope of the
axis around which the collector rotates. For tracking mode 4 this
input is not used.
4–691
TRNSYS 18 – Mathematical Reference
12 Azimuth of surface [degrees] The azimuth of the surface or axis of rotation. For tracking mode 1,
this input is the fixed azimuth of the surface. For tracking mode 2,
this input is not used. For tracking mode 3, this input is the azimuth
of the axis around which the collector rotates. For tracking mode 4
this input is not used.
Azimuths are defined positive when facing the equator: 0 = facing
the equator, 90 = facing west, -90 = facing east.
OUTPUTS
1 Dry bulb temperature [C] The dry bulb (ambient) temperature. (Interpolated at timestep less
than one hour)
2 Dew point temperature [C] The dew point temperature of the ambient air.
3 Wet bulb temperature [C] The wet bulb temperature of the ambient air.
4 Effective sky [C] The effective sky temperature for long wave radiation calculations.
temperature
5 Mains water [C] The temperature of the water available from the water main.
temperature
6 Humidity ratio [-] The absolute humidity ratio of the ambient air. (Interpolated at
timesteps of less than one hour)
7 Percent relative [-] The relative humidity of the ambient air (percentage).
humidity
8 Wind velocity [m/s] The velocity of the wind. (Interpolated at timesteps of less than one
hour)
9 Wind direction [degrees] The direction from which the wind originates. (Interpolated for
timesteps of less than one hour)
0 = North, 90 = East, 180 = South, 270 = West
11 Total sky cover [-] Amount of sky dome covered by clouds or obscuring phenomena
12 Opaque sky cover [-] Amount of sky dome covered by clouds or obscuring phenomena
that prevent observing the sky or higher cloud layers
14 Global horizontal [kJ/hr.m^2] The global solar radiation on a horizontal surface integrated over
radiation (not the previous hour (not interpolated at timesteps less than one
interpolated) hour). For global horizontal solar radiation define a horizontal
surface and use the radiation outputs for that surface.
4–692
TRNSYS 18 – Mathematical Reference
15 Direct normal radiation [kJ/hr.m^2] The direct normal solar radiation integrated over the previous hour
(not interpolated) (not interpolated at timesteps less than one hour). For interpolated
direct normal radiation define a two-axis tracking surface and use
the beam radiation outputs for that surface.
18 Total horizontal [kJ/hr.m^2] The total radiation (beam + diffuse) incident upon a horizontal
radiation surface.
19 Horizontal beam [kJ/hr.m^2] The beam radiation incident upon a horizontal surface.
radiation
20 Sky diffuse radiation on [kJ/hr.m^2] The sky diffuse incident on a horizontal surface.
the horizontal
22 Total diffuse radiation [kJ/hr.m^2] The total diffuse radiation (sky + ground reflected) incident upon a
on the horizontal horizontal surface.
23 Angle of incidence for [degrees] The angle of incidence for the beam radiation relative to a
horizontal horizontal surface.
24 Total tilted surface [kJ/hr.m^2] The total (beam + diffuse) radiation incident upon the specified
radiation for surface surface.
25 Beam radiation for [kJ/hr.m^2] The beam radiation incident upon the specified surface.
surface
26 Sky diffuse radiation [kJ/hr.m^2] The incident sky diffuse radiation on the specified surface.
for surface
27 Ground reflected [kJ/hr.m^2] The incident ground reflected diffuse radiation on the specified
diffuse radiation for surface.
surface
28 Total diffuse radiation [kJ/hr.m^2] The incident diffuse radiation (ground reflected + sky) on the
for surface specified surface.
29 Angle of incidence for [degrees] The angle of incidence between incident beam radiation and the
surface specified surface.
32 Latitude [degrees] The latitude of the city for the chosen weather file.
33 Longitude [degrees] The longitude of the city represented by the weather data file.
4–693
TRNSYS 18 – Mathematical Reference
34 Shift in solar time hour [degrees] The shift in solar time hour angle required to proces the weather
angle data. This value is calculated by subtracting the longitude of the
weather location from the standard longitude for the location.
35 Site elevation [m] The elevation of the city above sea level.
36 Heating season [-] This output indicates whether heating devices are typically enabled
indicator for the month: 1= enabled, 0 = disabled.
37 Cooling season [-] This output indicates whether cooling devices are typically enabled
indicator for the month: 1= enabled, 0 = disabled.
38 Monthly average [C] The average temperature of the ambient air in the current month.
temperature
39 Monthly minimum [C] The minimum temperature of the ambient air in the current month.
temperature
40 Monthly maximum [C] The maximum temperature of the ambient air in the current month.
temperature
41 Annual average [C] The average temperature of the ambient air over the year.
temperature
42 Annual minimum [C] The minimum temperature of the ambient air over the year.
temperature
43 Annual maximum [C] The maximum temperature of the ambient air over the year.
temperature
44 Global horizontal Average total amount of direct and diffuse illuminance received on
illuminance a horizontal surface.
45 Direct normal Average amount of direct normal illuminance received within a 5.7°
illuminance field of view centered on the sun.
46 Diffuse illuminance on Average amount of illuminance received from the sky (excluding
horizontal the solar disk) on a horizontal surface.
51 Aerosol optical depth [-] Broadband aerosol optical depth (broad-band turbidity).
4–694
TRNSYS 18 – Mathematical Reference
59 Ground reflectance [0..1] The reflectance of the ground under current conditions.
Weather file format [n/a] An indication of which standard file format (TMY, TMY2, IWEC, etc.) is
being read
Weather file name [n/a] The name and location of the weather file.
4.12.1.4. Nomenclature
Eo,sky [0..1] Clear sky emissivity
Tdewpt [ºC] Dew point temperature
time [hr] The hour of the year (simulation time)
pressure [millibars] Atmospheric pressure
Esky [0..1] Emissivity of the sky in the presence of clouds
fcloud [0..1] Fraction of sky covered by opaque clouds
Ecloud [0..1] Emissivity of clouds
Tamb [ºC] Ambient temperature
Tmains [ºC] Mains temperature
[ºC] Average annual air temperature
Tamb
Tamb,max [ºC] Maximum difference between monthly average ambient temperatures
4–695
TRNSYS 18 – Mathematical Reference
(Type575). In addition to these three main components, Type15 also calculates a number of other useful
weather related values based on algorithms published by the United States Department of Energy’s
Building America Program [6]. This section is devoted to a discussion of the sky temperature model [7],
Building America algorithms, and other Type15 outputs. Please refer to the getIncidentRadiation section of
the 07-Programmer’s Guide manual for information about Type15’s solar radiation processing algorithms.
NOTE: Fundamentaly, the wind direction in TRNSYS depends on the convention given in the weather
data file. The standard file-formats indicated in the above table use as convention N=0°, E=90°, etc.
The user must check that this convention is in accordancd with the specific component that will use
the information later in the simulation (i.e., COMIS or CONTAM).
SKY TEMPERATURE
Calculation of the sky temperature begins with an estimation of the clear sky emissivity based on the dew
point temperature. The dew point correlation for clear sky emissivity is:
2
Tdewpt T
E o, sky 0.711 0.56 0.73 * dewpt Eq. 4.12.1-1
100 100
The clear sky emissivity is then corrected for time of day in order to account for the differences in radiative
transfer between the night time black sky and the day time blue sky, as shown in the following equation in
which time is the hour of the year:
MODtime,24
Eo,sky Eo,sky 0.013 cos 2 Eq. 4.12.1-2
24
4–696
TRNSYS 18 – Mathematical Reference
The clear sky emissivity is then corrected for atmospheric pressure. While Type15 reads pressure from
data files in Pascals or atmospheres (depending on the file format), the model takes makes an internal
conversion to millibars, the pressure units for which the equation was developed:
The emissivity of the sky in the presence of clouds is calculated by multiplying the clear sky emissivity by
the fraction of the sky that is covered by clouds and by the emissivity of the clouds themselves, as shown
in the following equation. The fraction of sky covered by opaque clouds has a value between 0 (no cloud
cover) and 1 (complete cloud cover). Depending upon the mode of this component, the fraction of sky
covered by opaque clouds may be entered either as a value between 0 and 1 or as a percentage (0 to
100) :
Finally, the sky temperature is computed using the correlation shown in the equation:
Tsky Esky
1/ 4
Tamb 273.13 273.13 Eq. 4.12.1-5
T 360
Tmains Tamb offset ratio amb,max sin day 15 lag 90 Eq. 4.12.1-6
2 365
In which offset is defined as 3 ºC (6 ºF), ratio is defined by the equation:
The offset, lag, and ratio values were obtained by fitting data compiled by Abrams and Shedd [8], the Florida
Solar Energy Center [9], and Sandia National Labs [10].
GROUND REFLECTANCE
The user is asked to supply values of ground reflectance for snow covered and non-snow covered ground
among Type15’s parameters. Because all of the standard data file formats include data fields for whether
or not the ground is covered by snow, it is relatively easy for Type15 to change the ground reflectance
accordingly. The ground reflectance computed by Type15 follows a step function and depends only on the
value of the “snow covered ground” flag in the data file being read. The ground reflectance is set as its own
output and is also used in calculating the amount of ground reflected solar radiation that falls on each
surface defined in Type15.
4–697
TRNSYS 18 – Mathematical Reference
The heating system is typically enabled during a month in which the monthly average temperature is less
than 21.94 C and during December and January if the annual minimum air temperature is less than 15 C.
The cooling system is typically enabled during a month in which the monthly average temperature is above
18.89 C and during July and August. Lastly, if there are two consecutive months during which the heating
system is enabled the first month and the cooling system is enabled the second month (or vice versa) then
both systems should be allowed to operate during both months.
4.12.1.6. References
[1] National Renewable Energy Laboratory. 1995. User's Manual for TMY2s (Typical Meteorological
Years), NREL/SP-463-7668, and TMY2s, Typical Meteorological Years Derived from the 1961-1990
National Solar Radiation Data Base, June 1995, CD-ROM. Golden: NREL.
[2] Crawley, Drury B., Jon W. Hand, Linda K. Lawrie. 1999. “Improving the Weather Information Available
to Simulation Programs,” in Proceedings of Building Simulation ’99, Volume II, pp. 529-536, Kyoto,
Japan, September 1999. IBPSA.
[3] ASHRAE. 2001. International Weather for Energy Calculations (IWEC Weather Files) Users Manual
and CD-ROM, Atlanta: ASHRAE
[4] National Climatic Data Center. 1981. Typical Meteorological Year User's Manual, TD-9734, Hourly
Solar Radiation—Surface Meteorological Observations, May 1981. Asheville: National Climatic Data
Center, U.S. Department of Commerce.
[5] Numerical Logics. 1999. Canadian Weather for Energy Calculations, Users Manual and CD-ROM.
Downsview, Ontario: Environment Canada.
[6] Hendron, R. et. al., “Building America Performance Analysis Procedures” (revision 1), Building
America, U.S. Department of Energy, NREL/TP-550-35567
[7] Berdahl, Martin M., “Characteristics of Infrared Sky Radiation in the U.S.A.”, Solar Energy Journal,
33.4 (1984): 321.
[8] Abrams, D.W., and Shedd, A.C., 1996. “Effect of Seasonal Changes in Use Patterns and Cold Inlet
Water Temperature on Water Heating Load”, ASHRAE Transactions, AT-96-18-3.
[9] Parker, D., 2002. “Research Highlights from a Large Scale Residential Monitoring Study in a Hot
Climate”. FSEC-PF369-02. Cocoa, FL, Florida Solar Energy Center.
[10] Kolb, G., 2003. Private communication. Sandia National Laboratories, Albuquerque, NM.
4–698
TRNSYS 18 – Mathematical Reference
1 Logical unit [-] This parameter sets the Fortran Logical Unit (File reference
number) of the output file. It is used internally by TRNSYS to refer
to the file. This parameter will automatically be assigned to a
unique value by the TRNSYS Studio
2 Sky model for diffuse [-] This parameter selects the sky model used to calculate diffuse
radiation radiation on tilted surfaces: 1: Isotropic sky model, 2: Hay and
Davies model, 3: Reindl model, 4: Perez 1988 model, 5: Perez
1999 model.
Note: The Perez 1999 model is usually considered to be the best
available model
3 Tracking mode [-] This parameter is used to indicate that the surfaces on which the
tilted surface radiation is calculated are tracking the sun: 1: Fixed
surface, 2: Single axis tracking, vertical axis (fixed slope, variable
azimuth), 3: Single-axis tracking, axis is in the plane of the surface,
4: Two-axis tracking
INPUTS
1 Ground reflectance [-] The reflectance of the ground above which the surface is
located.Typical values are 0.2 for ground not covered by snow and
0.7 forground covered by snow.
2 Slope of surface [degress] The slope of the surface or tracking axis. The slope is positive
when tilted in the direction of the azimuth. 0 = Horizontal, 90 =
Vertical facing toward azimuth. Refer to the abstract for details on
slope specification for tracking surfaces.
3 Azimuth of surface [degrees] The solar azimuth angle is the angle between the local meridian
and the projection of the line of sight of the sun onto the
horizontalplane. 0 = Facing equator, 90 = Facing west, 180 =
4–699
TRNSYS 18 – Mathematical Reference
Facing north, 270 = Facing east. Refer to the manual for details on
the azimuth parameter for tracking surfaces.
OUTPUTS
The outputs are cycled based on the number of values to be assessed (1-10)
5 User Defined Data 1 [any] The fifth value read from the data file
6 User Defined Data 2 [any] The sixth value read from the data file
7 User Defined Data 3 [any] The seventh value read from the data file
8 User Defined Data 4 [any] The eighth value read from the data file
9 Extraterrestrial [kJ/hr.m^2] Ninth value read from data file (if PAR 2 > 8).
Radiation on Horizontal
10 Solar Zenith Angle [degrees] Tenth value read from data file (if PAR 2 > 9).
11 Solar Azimuth Angle [degrees] Eleventh value read from data file (if PAR 2 > 10).
12 Total Radiation on the [kJ/hr.m^2] Twelfth value read from data file (if PAR 2 > 11).
Horizontal
13 Beam Radiation on the [kJ/hr.m^2] Thirteenth value read from data file (if PAR 2 > 12).
Horizontal
14 Sky Diffuse Radiation [kJ/hr.m^2] Fourteenth value read from data file (if PAR 2 > 13).
on the Horizontal
15 Ground Relected [kJ/hr.m^2] Fifteenth value read from data file (if PAR 2 > 14).
Diffuse Radiation on
the Horizontal
16 Angle of Incidence for [degrees] Sixteenth value read from data file (if PAR 2 > 15).
the Horizontal
17 Slope of the Horizontal [degrees] Seventeenth value read from data file (if PAR 2 > 16).
18 Total Radiation on [kJ/hr.m^2] Eighteenth value read from data file (if PAR 2 = 18).
Tilted Surface
4–700
TRNSYS 18 – Mathematical Reference
4.12.2.4. Nomenclature
AI Anisotropy index
Io Extraterrestrial radiation
4–701
TRNSYS 18 – Mathematical Reference
<userdefined>
<longitude> -9.9 ! East of greenwich: negative
<latitude> 49.8
<gmt> 1 !time shift from GMT, east: positive (hours)
<interval> 1 !Data file time interval between consecutive lines (hours)
<firsttime> 1 !Time corresponding to first data line (hours)
<var> IBEAM_H <col> 5 <interp> 0 <add> 0 <mult> 1 <samp> -1 !...to get radiation in W/m²
<var> IBEAM_N <col> 0 <interp> 0 <add> 0 <mult> 1 <samp> 0 !...to get radiation in W/m²
<var> IDIFF_H <col> 6 <interp> 0 <add> 0 <mult> 1 <samp> -1 !...to get radiation in W/m²
<var> IGLOB_H <col> 0 <interp> 0 <add> 0 <mult> 1 <samp> 0 !...to get radiation in W/m²
<var> TAMB <col> 3 <interp> 2 <add> 0 <mult> 1 <samp> 0 !...to get °C
<var> RHUM <col> 4 <interp> 1 <add> 0 <mult> 100 <samp> 0 !...to get rel. hum. in %
<var> WSPEED <col> 2 <interp> 1 <add> 0 <mult> 1 <samp> 0 !...to get wind speed in m/s
<var> WDIR <col> 1 <interp> 1 <add> 0 <mult> 1 <samp> 0 !...to get wind dir. in degr.
<var> udef1 <col> 12 <interp> 0 <add> 0 <mult> 100 <samp> 0 !...to get ... in ...
<var> test <col> 9 <interp> 1 <add> 0 <mult> 100 <samp> 0 !...to get ... in ...
<var> idefix <col> 8 <interp> 2 <add> 0 <mult> 100 <samp> 0 !...to get ... in ...
<var> udef4 <col> 11 <interp> 0 <add> 0 <mult> 100 <samp> 0 !...to get ... in ...
<data>
4–702
TRNSYS 18 – Mathematical Reference
The whole header is enclosed by two keywords <userdefined> and <data>, marking the beginning and end
of the header section:
<userdefined>
.
.
.
<data>
Inside this header, the following keywords must appear:
It is extremely important to specify the correct values. Any difference in geographical data or time will lead
to an artificial time shift. For radiation data, this results in a wrong amount of direct or diffuse radiation on
tilted surfaces. This will cause warnings in the listing file:
***** WARNING FROM UNIT 12 TYPE 99 DATA READER
RADIATION AT TIME 6.25 HAS A VALUE OF 23 BUT SUN IS DOWN
IN DATA COLUMN 5 -- SUNRISE AT 6.67, SUNSET AT 17.21
Weather data variables are indicated by the keyword <var>, followed by specific names:
One or more of these variables have to appear in the user defined data header. Please use the variable
names like indicated in the listing above, when the corresponding physical variable is available. There is
special type of interpolation for radiation data, which can’t be changed by the user, since behavior at sunrise
and sunset has to be taken into account. Thus the values of the keyword <interp> are ignored for radiation
data.
Up to 4 extra quantities can be read in, like “udef1” in the Würzburg example.
If the column number equals 0 inside a <var> definition line, this indicates to skip the information.
4–703
TRNSYS 18 – Mathematical Reference
Moreover, information about the columns containing the respective values, the interpolation mode, the
ability of data manipulation through addition and multiplication factors as well as the value which determines
the data corresponding time interval are indicated by additional keywords. The keywords belong to a certain
variable and have to appear in a one line statement and in a fixed order:
<var> NAME <col> VALUE <interp> VALUE <add> VALUE <mult> VALUE <samp> VALUE
<samp> -1 column value is a mean value related to the time interval td ending
at the time corresponding to actual data line
0 column value is a mean value related to the time interval td/2 before
and after the time corresponding to actual data line
1 column value is a mean value related to the time interval td starting
at the time corresponding to actual data line
Addition and multiplication factors have to be chosen in a way that values have the following units:
Variable Unit
Radiation [W/m²]
Temperature [°C]
Relative humidity [%]
Wind speed [m/s]
Wind direction [degrees]
It is recommended to avoid spline interpolation for relative humidity data, because the smoothing of data
may result in a relative humidity of more than 100% for data with a sudden increase from 90 to 99% for
example. The same is valid for wind speed to avoid negative values. So spline interpolation is applicable in
the case of temperature or additional user defined data columns.
4.12.2.6. References
1. SOLMET, Volume 2 - Final Report, "Hourly Solar Radiation Surface Meteorological Observations,"
TD-9724, (l979).
2. Randall, C.M. and Whitson, M.E., Final Report, "Hourly Insolation and Meteorological Data Bases
Including Improved Direct Insolation Estimates," Aerospace Report No. ATR-78(7592)-l, (l977).
3. Duffie, J.A. and Beckman, W.A., Solar Energy Thermal Processes, Wiley, New York, l974.
4. ASHRAE Handbook of Fundamentals, American Society of Heating, Refrigerating, and Air-
Conditioning Engineers, l972.
5. Braun, J.E. and Mitchell, J.C., "Solar Geometry for Fixed and Tracking Surfaces," Solar Energy, vol.
4–704
TRNSYS 18 – Mathematical Reference
4–705