-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #531 from SPF-OST/proforma-two-conns-fix
Proforma two conns fix
- Loading branch information
Showing
24 changed files
with
2,209 additions
and
1,570 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*********************************** | ||
|
Oops, something went wrong.