[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TRNSYS-users] control problem for type 927



Hi trnsys users
I have a new problem. :) 

I m heating a greenhouse with a heat pump.I m currently trying to control this heat pump. I want to work  this heat pump when temperature is below 8 degree and stop that heat pump when temperature rises 8 degree in the greenhouse. To make it I used five stage room thermostat. I connected grenhouse temp to monitoring temperature of thermostat and entered 8 degree value for 1 stage heating setpoint. But I got this error messagas in the figure.
I connected control signal for 1 st stage heating in the thermostat to fan coil and heat pump as you see in the picture.

Now how can ı control to start and stop of this heat pump as I want. Because I don't want this heat pump to work for 24 hours. I tried the differentual equation control but I got the same error messages.

I added also my deck file.
Please help me.
Thanks
Regards



VERSION 17
*******************************************************************************
*** TRNSYS input file (deck) generated by TrnsysStudio
*** on Cumartesi, Aðustos 17, 2019 at 17:26
*** from TrnsysStudio project: C:\Users\irfan\Desktop\Sdas\control heat.tpf
*** 
*** If you edit this file, use the File/Import TRNSYS Input File function in 
*** TrnsysStudio to update the project. 
*** 
*** If you have problems, questions or suggestions please contact your local 
*** TRNSYS distributor or mailto:software@cstb.fr 
*** 
*******************************************************************************


*******************************************************************************
*** Units 
*******************************************************************************

*******************************************************************************
*** Control cards
*******************************************************************************
* START, STOP and STEP
CONSTANTS 3
START=0
STOP=744
STEP=1
SIMULATION 	 START	 STOP	 STEP	! Start time	End time	Time step
TOLERANCES 0.001 0.001			! Integration	 Convergence
LIMITS 30 30 30				! Max iterations	Max warnings	Trace limit
DFQ 1					! TRNSYS numerical integration solver method
WIDTH 72				! TRNSYS output file width, number of characters
LIST 					! NOLIST statement
					! MAP statement
SOLVER 0 1 1				! Solver statement	Minimum relaxation factor	Maximum relaxation factor
NAN_CHECK 0				! Nan DEBUG statement
OVERWRITE_CHECK 0			! Overwrite DEBUG statement
TIME_REPORT 0			! disable time report
EQSOLVER 0				! EQUATION SOLVER statement
* User defined CONSTANTS 


* EQUATIONS "Wizard settings"
* 
EQUATIONS 8
TURN = 0   !Rotation angle for building used for adapting azimuth angles
SHADE_CLOSE = 140 * 3.6! Close blinds - radiation on facade in [W/m2 * 3.6]=[kJ/hr]
SHADE_OPEN = 120 * 3.6! Open blinds - radiation on facade in [W/m2 * 3.6]=[kJ/hr]
MAX_ISHADE = 70/100 ! Maximum opaque fraction of internal shading device
MAX_ESHADE = 70/100 ! Maximum opaque fraction of external shading device
IT_LIGHT_ON = (-120) * 3.6 ! turn light on (radiaton on the horizontal in [W/m² * 3.6]=[kJ/hr]
IT_LIGHT_OFF = (- 200) * 3.6 ! turn light on (radiaton on the horizontal in [W/m² * 3.6]=[kJ/hr]
BRIGHT = [200,1] !Input for light control
*$UNIT_NAME Wizard settings
*$LAYER Main
*$POSITION 53 223

*------------------------------------------------------------------------------


* EQUATIONS "AzimuthAngles"
* 
EQUATIONS 8
AA_H_0_0 = 0 + TURN ! azimuth angle of orientation
AA_S_0_15 = 0 + TURN ! azimuth angle of orientation
AA_S_0_90 = 0 + TURN ! azimuth angle of orientation
AA_W_90_90 = 90 + TURN ! azimuth angle of orientation
AA_N_180_15 = 180 + TURN ! azimuth angle of orientation
AA_N_180_90 = 180 + TURN ! azimuth angle of orientation
AA_E_270_90 = 270 + TURN ! azimuth angle of orientation
AAZM_TYPE56 = AAZM - (TURN) ! solar azimuth corrected by building rotation - Input for Type 56 sun position for SHM and ISM
*$UNIT_NAME AzimuthAngles
*$LAYER Main
*$POSITION 149 31

*------------------------------------------------------------------------------


* EQUATIONS "Radiation"
* 
EQUATIONS 24
AZEN = [15,16]
AAZM = [15,17]
IT_H_0_0 = [15,24]
IB_H_0_0 = [15,31]
AI_H_0_0 = [15,59]
IT_S_0_15 = [15,25]
IB_S_0_15 = [15,32]
AI_S_0_15 = [15,60]
IT_S_0_90 = [15,26]
IB_S_0_90 = [15,33]
AI_S_0_90 = [15,61]
IT_W_90_90 = [15,27]
IB_W_90_90 = [15,34]
AI_W_90_90 = [15,62]
IT_N_180_15 = [15,28]
IB_N_180_15 = [15,35]
AI_N_180_15 = [15,63]
IT_N_180_90 = [15,29]
IB_N_180_90 = [15,36]
AI_N_180_90 = [15,64]
IT_E_270_90 = [15,30]
IB_E_270_90 = [15,37]
AI_E_270_90 = [15,65]
hour_of_day = MOD(TIME,24)
*$UNIT_NAME Radiation
*$LAYER Main
*$POSITION 245 84

*------------------------------------------------------------------------------


* Model "Van iklim veri" (Type 15)
* 

UNIT 15 TYPE 15	 Van iklim veri
*$UNIT_NAME Van iklim veri
*$MODEL .\Weather Data Reading and Processing\Standard Format\TMY2\Type15-2.tmf
*$POSITION 150 159
*$LAYER Main # 
PARAMETERS 27
2		! 1 File Type
30		! 2 Logical unit
5		! 3 Tilted Surface Radiation Mode
0.2		! 4 Ground reflectance - no snow
0.7		! 5 Ground reflectance - snow cover
7		! 6 Number of surfaces
1		! 7 Tracking mode-1
0		! 8 Slope of surface-1
AA_H_0_0		! 9 Azimuth of surface-1
1		! 10 Tracking mode-2
15		! 11 Slope of surface-2
AA_S_0_15		! 12 Azimuth of surface-2
1		! 13 Tracking mode-3
90		! 14 Slope of surface-3
AA_S_0_90		! 15 Azimuth of surface-3
1		! 16 Tracking mode-4
90		! 17 Slope of surface-4
AA_W_90_90		! 18 Azimuth of surface-4
1		! 19 Tracking mode-5
15		! 20 Slope of surface-5
AA_N_180_15		! 21 Azimuth of surface-5
1		! 22 Tracking mode-6
90		! 23 Slope of surface-6
AA_N_180_90		! 24 Azimuth of surface-6
1		! 25 Tracking mode-7
90		! 26 Slope of surface-7
AA_E_270_90		! 27 Azimuth of surface-7
*** External files
ASSIGN "C:\Users\irfan\Desktop\Sdas\Van-hour.tm2" 30
*|? Which file contains the TMY-2 weather data? |1000
*------------------------------------------------------------------------------

* Model "Lights" (Type 2)
* 

UNIT 200 TYPE 2	 Lights
*$UNIT_NAME Lights
*$MODEL .\Controllers\Differential Controller w_ Hysteresis\generic\Solver 0 (Successive Substitution) Control Strategy\Type2d.tmf
*$POSITION 463 255
*$LAYER Controls # 
*$# NOTE: This controller can only be used with Solver 0 (Successive substitution)
*$# 
*$# 
*$# 
*$# 
*$# 
*$# 
*$# 
*$# 
*$# 
PARAMETERS 2
5		! 1 No. of oscillations
40000		! 2 High limit cut-out
INPUTS 6
0,0		! [unconnected] Upper input value
IT_H_0_0		! Radiation:IT_H_0_0 ->Lower input value
0,0		! [unconnected] Monitoring value
200,1 		! Lights:Output control function ->Input control function
IT_LIGHT_ON		! [equation] Upper dead band
IT_LIGHT_OFF		! [equation] Lower dead band
*** INITIAL INPUT VALUES
0 0 0 0 IT_LIGHT_ON IT_LIGHT_OFF 
*------------------------------------------------------------------------------

* Model "Sera" (Type 56)
* 

UNIT 56 TYPE 56	 Sera
*$UNIT_NAME Sera
*$MODEL .\Loads and Structures\Multi-Zone Building\Type56.tmf
*$POSITION 771 247
*$LAYER Main # # 
*$#   
PARAMETERS 3
31		! 1 Logical unit for building description file (*.b17, *.bui)
1		! 2 Star network calculation switch
0.5		! 3 Weighting factor for operative temperature
INPUTS 19
15,1 		! Van iklim veri:Dry bulb temperature -> 1- TAMB
15,7 		! Van iklim veri:Percent relative humidity -> 2- RELHUMAMB
15,4 		! Van iklim veri:Effective sky temperature -> 3- TSKY
15,1 		! Van iklim veri:Dry bulb temperature -> 4- TSGRD
15,16 		! Van iklim veri:Solar zenith angle -> 5- AZEN
AAZM_TYPE56		! AzimuthAngles:AAZM_TYPE56 -> 6- AAZM
15,107 		! Van iklim veri:Ground reflectance -> 7- GRDREF
0,0		! [unconnected]  8- TGROUND
0,0		! [unconnected]  9- TBOUNDARY
BRIGHT		! Wizard settings:BRIGHT -> 10- BRIGHT
SHADE_CLOSE		! Wizard settings:SHADE_CLOSE -> 11- SHADE_CLOSE
SHADE_OPEN		! Wizard settings:SHADE_OPEN -> 12- SHADE_OPEN
MAX_ISHADE		! Wizard settings:MAX_ISHADE -> 13- MAX_ISHADE
MAX_ESHADE		! Wizard settings:MAX_ESHADE -> 14- MAX_ESHADE
13,6 		! Type600:Outlet Air Flowrate -> 15- MD_HEAT
13,3 		! Type600:Outlet Air Temperature -> 16- T_AIR
0,0		! [unconnected]  17- RH
0,0		! [unconnected]  18- MD_COOL
0,0		! [unconnected]  19- T_COOL
*** INITIAL INPUT VALUES
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
*** External files
ASSIGN "zone.b17" 31
*|? Building description file (*.b17, *.bui) |1000
*------------------------------------------------------------------------------

* Model "Irradiation" (Type 65)
* 

UNIT 65 TYPE 65	 Irradiation
*$UNIT_NAME Irradiation
*$MODEL .\Output\Online Plotter\Online Plotter Without File\Type65d.tmf
*$POSITION 915 84
*$LAYER Main # # 
PARAMETERS 12
10		! 1 Nb. of left-axis variables
10		! 2 Nb. of right-axis variables
0		! 3 Left axis minimum
3600		! 4 Left axis maximum
0		! 5 Right axis minimum
3600		! 6 Right axis maximum
1		! 7 Number of plots per simulation
12		! 8 X-axis gridpoints
0		! 9 Shut off Online w/o removing
-1		! 10 Logical unit for output file
0		! 11 Output file units
0		! 12 Output file delimiter
INPUTS 20
IT_H_0_0		! Radiation:IT_H_0_0 ->Left axis variable-1
IT_S_0_15		! Radiation:IT_S_0_15 ->Left axis variable-2
IT_S_0_90		! Radiation:IT_S_0_90 ->Left axis variable-3
IT_W_90_90		! Radiation:IT_W_90_90 ->Left axis variable-4
IT_N_180_15		! Radiation:IT_N_180_15 ->Left axis variable-5
IT_N_180_90		! Radiation:IT_N_180_90 ->Left axis variable-6
IT_E_270_90		! Radiation:IT_E_270_90 ->Left axis variable-7
0,0		! [unconnected] Left axis variable-8
0,0		! [unconnected] Left axis variable-9
0,0		! [unconnected] Left axis variable-10
IB_H_0_0		! Radiation:IB_H_0_0 ->Right axis variable-1
IB_S_0_15		! Radiation:IB_S_0_15 ->Right axis variable-2
IB_S_0_90		! Radiation:IB_S_0_90 ->Right axis variable-3
IB_W_90_90		! Radiation:IB_W_90_90 ->Right axis variable-4
IB_N_180_15		! Radiation:IB_N_180_15 ->Right axis variable-5
IB_N_180_90		! Radiation:IB_N_180_90 ->Right axis variable-6
IB_E_270_90		! Radiation:IB_E_270_90 ->Right axis variable-7
0,0		! [unconnected] Right axis variable-8
0,0		! [unconnected] Right axis variable-9
0,0		! [unconnected] Right axis variable-10
*** INITIAL INPUT VALUES
IT_H_0_0 IT_S_0_15 IT_S_0_90 IT_W_90_90 IT_N_180_15 IT_N_180_90 IT_E_270_90
label label label IB_H_0_0 IB_S_0_15 IB_S_0_90 IB_W_90_90 IB_N_180_15
IB_N_180_90 IB_E_270_90 label label label 
LABELS  3
"Total  Incident Solar Radition [kJ/hr m²]"
"Beam  Incident Solar Radition [kJ/hr m²]"
"Irradition"
*------------------------------------------------------------------------------

* Model "Temperature" (Type 65)
* 

UNIT 66 TYPE 65	 Temperature
*$UNIT_NAME Temperature
*$MODEL .\Output\Online Plotter\Online Plotter Without File\Type65d.tmf
*$POSITION 927 244
*$LAYER Main # # 
PARAMETERS 12
10		! 1 Nb. of left-axis variables
10		! 2 Nb. of right-axis variables
-30		! 3 Left axis minimum
80		! 4 Left axis maximum
0.0		! 5 Right axis minimum
5000		! 6 Right axis maximum
1		! 7 Number of plots per simulation
12		! 8 X-axis gridpoints
0		! 9 Shut off Online w/o removing
-1		! 10 Logical unit for output file
0		! 11 Output file units
0		! 12 Output file delimiter
INPUTS 20
15,1 		! Van iklim veri:Dry bulb temperature ->Left axis variable-1
56,1 		! Sera: 1- TAIR_ZONEE ->Left axis variable-2
0,0		! [unconnected] Left axis variable-3
16,1 		! Type108:Control signal for 1st stage heating ->Left axis variable-4
0,0		! [unconnected] Left axis variable-5
0,0		! [unconnected] Left axis variable-6
0,0		! [unconnected] Left axis variable-7
0,0		! [unconnected] Left axis variable-8
0,0		! [unconnected] Left axis variable-9
0,0		! [unconnected] Left axis variable-10
0,0		! [unconnected] Right axis variable-1
56,2 		! Sera: 2- TOP_ZONEE ->Right axis variable-2
0,0		! [unconnected] Right axis variable-3
0,0		! [unconnected] Right axis variable-4
0,0		! [unconnected] Right axis variable-5
0,0		! [unconnected] Right axis variable-6
0,0		! [unconnected] Right axis variable-7
0,0		! [unconnected] Right axis variable-8
0,0		! [unconnected] Right axis variable-9
0,0		! [unconnected] Right axis variable-10
*** INITIAL INPUT VALUES
Tamb TAIR_Sera Output Control Conditioning label label label label label
label TOP_zonee label label label label label label label label 
LABELS  3
"Temperatures   [deg C]"
"Temperatures   [deg C]"
"Temperatures"
*------------------------------------------------------------------------------

* Model "Type927" (Type 927)
* 

UNIT 10 TYPE 927	 Type927
*$UNIT_NAME Type927
*$MODEL .\HVAC Library (TESS)\Water-Water Heat Pump\Single-Stage\Type927.tmf
*$POSITION 625 458
*$LAYER Main # 
PARAMETERS 19
4.190		! 1 Source Fluid Specific Heat
4.190		! 2 Load Fluid Specific Heat
1000.		! 3 Source Fluid Density
1000.		! 4 Load Fluid Density
32		! 5 Logical Unit Number for Cooling Data File
8		! 6 Number of Source Temperatures - Cooling
4		! 7 Number of Load Temperatures - Cooling
33		! 8 Logical Unit for Heating Data
6		! 9 Number of Source Temperatures - Heating
4		! 10 Number of Load Temperatures - Heating
3		! 11 Number of Source Flowrates
3		! 12 Number of Load Flowrates
30000		! 13 Rated Cooling Capacity per Heat Pump
6000		! 14 Rated Cooling Power per Heat Pump
58320		! 15 Rated Heating Capacity per Heat Pump
15120		! 16 Rated Heating Power per Heat Pump
0.4		! 17 Rated Source Flowrate per Heat Pump
0.4		! 18 Rated Load Flowrate per Heat Pump
1		! 19 Number of Identical Heat Pumps
INPUTS 8
11,1 		! Type114:Outlet fluid temperature ->Inlet Source Temperature
11,2 		! Type114:Outlet flow rate ->Source Flowrate
14,1 		! Type110:Outlet fluid temperature ->Inlet Load Temperature
14,2 		! Type110:Outlet flow rate ->Load Flowrate
0,0		! [unconnected] Cooling Control Signal
16,1 		! Type108:Control signal for 1st stage heating ->Heating Control Signal
0,0		! [unconnected] Scale Factor
16,1 		! Type108:Control signal for 1st stage heating ->Number of Heat Pumps On
*** INITIAL INPUT VALUES
40.0 1440.0 20.0 1440.0 0 1 1 1 
*** External files
ASSIGN "C:\Trnsys17\Tess Models\SampleCatalogData\Water-to-WaterHeatPump\Normalized\WWHP_Cooling-Normalized.dat" 32
*|? Which file contains the cooling performance data? |1000
ASSIGN "C:\Trnsys17\Tess Models\SampleCatalogData\Water-to-WaterHeatPump\Normalized\WWHP_Heating-Normalized.dat" 33
*|? Which file contains the heating performance data? |1000
*------------------------------------------------------------------------------

* Model "Type114" (Type 114)
* 

UNIT 11 TYPE 114	 Type114
*$UNIT_NAME Type114
*$MODEL .\Hydronics\Pumps\Single Speed\Type114.tmf
*$POSITION 433 575
*$LAYER Main # 
*$# SINGLE-SPEED PUMP
PARAMETERS 4
1500		! 1 Rated flow rate
4.19		! 2 Fluid specific heat
2684.0		! 3 Rated power
0.0		! 4 Motor heat loss fraction
INPUTS 5
12,1 		! Type14e:Average temperature ->Inlet fluid temperature
0,0		! [unconnected] Inlet fluid flow rate
0,0		! [unconnected] Control signal
0,0		! [unconnected] Overall pump efficiency
0,0		! [unconnected] Motor efficiency
*** INITIAL INPUT VALUES
20.0 1500 1.0 0.6 0.9 
*------------------------------------------------------------------------------

* Model "Type14e" (Type 14)
* 

UNIT 12 TYPE 14	 Type14e
*$UNIT_NAME Type14e
*$MODEL .\Utility\Forcing Functions\Temperature\Type14e.tmf
*$POSITION 166 577
*$LAYER Main # 
PARAMETERS 4
0		! 1 Initial value of time
4		! 2 Initial temperature
1.0		! 3 Time at point
4		! 4 Temperature at point 
*------------------------------------------------------------------------------

* Model "Type600" (Type 600)
* 

UNIT 13 TYPE 600	 Type600
*$UNIT_NAME Type600
*$MODEL .\HVAC Library (TESS)\2-Pipe Fan Coil\Mass Flow Based\Type600.tmf
*$POSITION 923 404
*$LAYER Main # 
PARAMETERS 10
4.190		! 1 Specific Heat of Liquid Stream
2		! 2 Humidity Mode
900		! 3 Rated Air Flowrate
671.1		! 4 Rated Fan Power
0.9		! 5 Motor Efficiency
1.		! 6 Motor Heat Loss Fraction
3		! 7 Number of Power Coefficients
1.		! 8 Power Coefficient-1
1.		! 9 Power Coefficient-2
1.		! 10 Power Coefficient-3
INPUTS 14
10,3 		! Type927:Outlet Load Temperature ->Inlet Liquid Temperature
10,4 		! Type927:Load Flowrate ->Inlet Liquid Flowrate
56,1 		! Sera: 1- TAIR_ZONEE ->Return Air Temperature
0,0		! [unconnected] Return Air Humidity Ratio
56,5 		! Sera: 5- RELHUM_ZONEE ->Return Air % Relative Humidity
0,0		! [unconnected] Return Air Pressure
0,0		! [unconnected] Fan Control Signal
0,0		! [unconnected] Fan Pressure Rise
0,0		! [unconnected] Coil Pressure Drop
15,1 		! Van iklim veri:Dry bulb temperature ->Fresh Air Temperature
0,0		! [unconnected] Fresh Air Humidity Ratio
15,7 		! Van iklim veri:Percent relative humidity ->Fresh Air % Relative Humidity
0,0		! [unconnected] Damper Position
0,0		! [unconnected] Coil Bypass Fraction
*** INITIAL INPUT VALUES
20.0 1000.0 20.0 0.008 50.0 1.0 1 0. 0 20.0 0.008 50. 0. 0.1 
*------------------------------------------------------------------------------

* Model "Type110" (Type 110)
* 

UNIT 14 TYPE 110	 Type110
*$UNIT_NAME Type110
*$MODEL .\Hydronics\Pumps\Variable Speed\Type110.tmf
*$POSITION 838 575
*$LAYER Main # 
*$# VARIABLE-SPEED PUMP
PARAMETERS 6
2000		! 1 Rated flow rate
4.19		! 2 Fluid specific heat
2684.0		! 3 Rated power
0.0		! 4 Motor heat loss fraction
1		! 5 Number of power coefficients
1.0		! 6 Power coefficient
INPUTS 5
13,1 		! Type600:Exiting Fluid Temperature ->Inlet fluid temperature
13,2 		! Type600:Exiting Fluid Flowrate ->Inlet fluid flow rate
0,0		! [unconnected] Control signal
0,0		! [unconnected] Total pump efficiency
0,0		! [unconnected] Motor efficiency
*** INITIAL INPUT VALUES
20.0 2000 1.0 0.6 0.9 
*------------------------------------------------------------------------------

* Model "Type108" (Type 108)
* 

UNIT 16 TYPE 108	 Type108
*$UNIT_NAME Type108
*$MODEL .\Controllers\5-Stage Room Thermostat\Type108.tmf
*$POSITION 1115 362
*$LAYER Main # 
PARAMETERS 6
5		! 1 No of oscillations permitted
1		! 2 1st stage heating in 2nd stage?
1		! 3 2nd stage heating in 3rd stage?
1		! 4 1st stage heating in 3rd stage?
1		! 5 1st stage cooling in 2nd stage?
2.0		! 6 Temperature dead band
INPUTS 6
56,1 		! Sera: 1- TAIR_ZONEE ->Monitoring temperature
0,0		! [unconnected] 1st stage heating setpoint
0,0		! [unconnected] 2nd stage heating setpoint
0,0		! [unconnected] 3rd stage heating setpoint
0,0		! [unconnected] 1st stage cooling setpoint
0,0		! [unconnected] 2nd stage cooling setpoint
*** INITIAL INPUT VALUES
20.0 8 4 2 24 26 
*------------------------------------------------------------------------------

END

Attachment: heatpump4.jpg
Description: JPEG image

Attachment: heat5.jpg
Description: JPEG image

Attachment: heatpump1.jpg
Description: JPEG image

Attachment: heatpump2.jpg
Description: JPEG image

Attachment: heatpump3.jpg
Description: JPEG image