Skip to content

Commit

Permalink
Merge pull request #531 from SPF-OST/proforma-two-conns-fix
Browse files Browse the repository at this point in the history
Proforma two conns fix
  • Loading branch information
zuckerruebe authored Aug 4, 2024
2 parents 8e41925 + 3056ec3 commit d402ad2
Show file tree
Hide file tree
Showing 24 changed files with 2,209 additions and 1,570 deletions.
Empty file.
141 changes: 0 additions & 141 deletions tests/trnsysGUI/proforma/data/expected/Type137.ddck

This file was deleted.

158 changes: 158 additions & 0 deletions tests/trnsysGUI/proforma/data/expected/Type5b.ddck
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
*******************************
** BEGIN Type5b.ddck
*******************************

************************************************************************************************************************
** Description:
** Heat Exchanger: Counter Flow
************************************************************************************************************************

************************************************************************************************************************
** Details:
** A zero capacitance sensible heat exchanger is modeled in various configurations. In this instance, a counter flow
** heat exchanger is modeled. Given the hot and cold side inlet temperatures and flow rates, the effectiveness is
** calculated for a given fixed value of the overall heat transfer coefficient.
************************************************************************************************************************

***********************************
** inputs from hydraulic solver
***********************************
EQUATIONS 6
CpHot = @cp(HotIn)
CpCold = @cp(ColdIn)
THotIn = @temp(HotIn)
MHot = @mfr(HotIn)
TColdIn = @temp(ColdIn)
MCold = @mfr(ColdIn)

***********************************
** outputs to hydraulic solver
***********************************
EQUATIONS 2
@temp(HotOut) = THotOut
@temp(ColdOut) = TColdOut

***********************************
** outputs to other ddck
***********************************


******************************************************************************************
** outputs to energy balance in kWh and ABSOLUTE value
******************************************************************************************


***********************************
** Dependencies with other ddck
***********************************


***********************************
** Begin CONSTANTS
***********************************


***********************************
** Begin TYPE
***********************************
UNIT 1 TYPE 5
PARAMETERS 4
** The general heat exchanger model may operate in various configuration modes. Setting this parameter to 2 indicates a
** counter flow arrangement. Do not change this parameter.
2.0 ! 1: Counter flow mode [-] ([2,2])

** The specific heat of the fluid flowing through the source side of the counter flow heat exchanger. NOTE: "source" and
** "load" are merely convenient designations; energy will be transfered from the source side to the load side if the
** source side is hotter than the load side. It will be transfered from the load side to the source side if the load
** side is hotter than the source side.
CpHot ! 2: Specific heat of source side fluid [kJ/kg.K] ([0,+Inf])

** The specific heat of the fluid flowing through the load side of the counter flow heat exchanger. NOTE: "source" and
** "load" are merely convenient designations; energy will be transfered from the source side to the load side if the
** source side is hotter than the load side. It will be transfered from the load side to the source side if the load
** side is hotter than the source side.
CpCold ! 3: Specific heat of load side fluid [kJ/kg.K] ([0,+Inf])

0.0 ! 4: Not used [-] ([0,+Inf])

INPUTS 5
** The temperature of the fluid flowing into the source side of the counter flow heat exchanger. NOTE: "source" and
** "load" are merely convenient designations; energy will be transfered from the source side to the load side if the
** source side is hotter than the load side. It will be transfered from the load side to the source side if the load
** side is hotter than the source side.
THotIn ! 1: Source side inlet temperature [C] ([-Inf,+Inf])

** The flow rate of the fluid flowing through the source side of the counter flow heat exchanger. NOTE: "source" and
** "load" are merely convenient designations; energy will be transfered from the source side to the load side if the
** source side is hotter than the load side. It will be transfered from the load side to the source side if the load
** side is hotter than the source side.
MHot ! 2: Source side flow rate [kg/hr] ([0,+Inf])

** The temperature of the fluid flowing into the load side of the counter flow heat exchanger. NOTE: "source" and "load"
** are merely convenient designations; energy will be transfered from the source side to the load side if the source
** side is hotter than the load side. It will be transfered from the load side to the source side if the load side is
** hotter than the source side.
TColdIn ! 3: Load side inlet temperature [C] ([-Inf,+Inf])

** The flow rate of the fluid flowing through the load side of the counter flow heat exchanger. NOTE: "source" and
** "load" are merely convenient designations; energy will be transfered from the source side to the load side if the
** source side is hotter than the load side. It will be transfered from the load side to the source side if the load
** side is hotter than the source side.
MCold ! 4: Load side flow rate [kg/hr] ([0,+Inf])

** Overall heat transfer coefficient of the counter flow heat exchanger.
0,0 ! 5: Overall heat transfer coefficient of exchanger [kJ/hr.K] ([0,+Inf])

** initial values
20.0 ! 1: Source side inlet temperature initial value
100.0 ! 2: Source side flow rate initial value
20.0 ! 3: Load side inlet temperature initial value
100.0 ! 4: Load side flow rate initial value
10.0 ! 5: Overall heat transfer coefficient of exchanger initial value

EQUATIONS 2 ! 6
** The temperature of the fluid leaving the source side of the counter flow heat exchanger. NOTE: "source" and "load"
** are merely convenient designations; energy will be transfered from the source side to the load side if the source
** side is hotter than the load side. It will be transfered from the load side to the source side if the load side is
** hotter than the source side.
THotOut = [1, 1] ! Source side outlet temperature [C] ([-Inf,+Inf])

** The flow rate of fluid exiting the source side of the counter flow heat exchanger. NOTE: "source" and "load" are
** merely convenient designations; energy will be transfered from the source side to the load side if the source side is
** hotter than the load side. It will be transfered from the load side to the source side if the load side is hotter
** than the source side.
! XXX = [1, 2] ! Source side flow rate [kg/hr] ([-Inf,+Inf])

** The temperature of the fluid leaving the load side of the counter flow heat exchanger. NOTE: "source" and "load" are
** merely convenient designations; energy will be transfered from the source side to the load side if the source side is
** hotter than the load side. It will be transfered from the load side to the source side if the load side is hotter
** than the source side.
TColdOut = [1, 3] ! Load side outlet temperature [C] ([-Inf,+Inf])

** The flow rate of fluid exiting the load side of the counter flow heat exchanger. NOTE: "source" and "load" are merely
** convenient designations; energy will be transfered from the source side to the load side if the source side is hotter
** than the load side. It will be transfered from the load side to the source side if the load side is hotter than the
** source side.
! XXX = [1, 4] ! Load side flow rate [kg/hr] ([-Inf,+Inf])

** The total heat transfer rate between the fluids in the counter flow heat exchanger.
! XXX = [1, 5] ! Heat transfer rate [kJ/hr] ([-Inf,+Inf])

** The effectiveness of the counter flow heat exchanger.
! XXX = [1, 6] ! Effectiveness [-] ([-Inf,+Inf])


***********************************
** Monthly printer
***********************************


***********************************
** Hourly printer
***********************************


***********************************
** Online Plotter
***********************************

Loading

0 comments on commit d402ad2

Please sign in to comment.