Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proforma two conns fix #531

Merged
merged 10 commits into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading