-
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 #535 from SPF-OST/dont-crash-as-much
Just don't crash as much.
- Loading branch information
Showing
32 changed files
with
178,772 additions
and
177 deletions.
There are no files selected for viewing
Empty file.
19 changes: 19 additions & 0 deletions
19
tests/trnsysGUI/testConfigFileUpdater/data/existing/expected/run.config
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,19 @@ | ||
string nameRef "TTES" | ||
|
||
"##################PATHS##################" | ||
|
||
string PROJECT$ "C:\actions-runner\_work\pytrnsys_gui\pytrnsys_gui\tests\trnsysGUI\testConfigFileUpdater\data\existing\actual\TTES\ddck" | ||
string projectPath "C:\actions-runner\_work\pytrnsys_gui\pytrnsys_gui\tests\trnsysGUI\testConfigFileUpdater\data\existing\actual\TTES" | ||
|
||
#############USED DDCKs################## | ||
|
||
PROJECT$ generic\head | ||
PROJECT$ Bolr\type6 | ||
PROJECT$ Coll\type1 | ||
PROJECT$ Coll\type1_constants_CobraAK2_8V | ||
PROJECT$ Hx\type991 | ||
PROJECT$ QSink\QSink | ||
PROJECT$ Tes\Tes | ||
PROJECT$ weather\SMA_hourly | ||
PROJECT$ weather\weather_data_base | ||
PROJECT$ generic\end |
145 changes: 145 additions & 0 deletions
145
tests/trnsysGUI/testConfigFileUpdater/data/existing/input/TTES/ddck/Bolr/type6.ddck
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,145 @@ | ||
******************************* | ||
**BEGIN Type6.ddck | ||
******************************* | ||
|
||
***************************************** | ||
** Contact person : Mattia Battaglia | ||
** Creation date : 10.01.2010 | ||
** Last changes : 18.05.2022 | ||
***************************************** | ||
|
||
*************************************************************************** | ||
** Description: | ||
** Simple Boiler model | ||
*************************************************************************** | ||
|
||
*********************************** | ||
** inputs from hydraulic solver | ||
*********************************** | ||
EQUATIONS 2 | ||
TBoilerIn = @temp(In, TPiAuxIn) | ||
MfrBoilerIn = ABS(@mfr(In, MfrPiAuxIn)) | ||
|
||
*********************************** | ||
** outputs to hydraulic solver | ||
*********************************** | ||
EQUATIONS 1 | ||
@temp(Out, TBoilerOut) = TBOut | ||
|
||
****************************************************************************************** | ||
** outputs to energy balance in kWh and ABSOLUTE value | ||
** Following this naming standard : qSysIn_name, qSysOut_name, elSysIn_name, elSysOut_name | ||
****************************************************************************************** | ||
EQUATIONS 1 | ||
qSysIn_Boiler = PBoiler_kW | ||
|
||
*********************************** | ||
** Dependencies with other ddck | ||
*********************************** | ||
EQUATIONS 2 | ||
BoilerOn = auxOnRc | ||
mytRoomStore = tRoomStore | ||
|
||
*********************************** | ||
** Beginning TYPE | ||
*********************************** | ||
CONSTANTS 2 | ||
PBoilerNom = 3600*10 | ||
MflowBoilerNom = 3000 | ||
|
||
UNIT 219 TYPE 6 | ||
PARAMETERS 4 | ||
PBoilerNom ! 1: Rated Capacity kJ/h | ||
CPWAT ! 2: Fluid Specific Heat kJ/kgK | ||
0 ! 3: Loss UA value | ||
1 ! 4: Efficiency | ||
INPUTS 5 | ||
TBoilerIn ! 1: Inlet Fluid Temperature C | ||
MfrBoilerIn ! 2: Inlet Fluid Flow Rate kg/h | ||
BoilerOn ! 3: Input Control Signal (between 0 and 1) | ||
tSetBoiler ! 4: Setpoint Temperature C | ||
mytRoomStore ! 5: Boiler Efficiency Fraction | ||
**** INITIAL INPUT VALUES | ||
50 0.0 0.0 95 0.78 | ||
|
||
*********************************** | ||
** Outputs | ||
*********************************** | ||
EQUATIONS 6 | ||
TBout = [219,1] ! Outlet Fluid Temperature | ||
MfrBout = [219,2] ! Outlet Fluid Flow Rate | ||
PBoilerIn_kW = [219,3]/3600 ! Fluid Energy | ||
PBoilerLoss_kW = [219,4]/3600 ! Losses to Surroundings | ||
Pout = [219,5] ! Exhaust Energy | ||
PBoiler_kW = Pout/3600 | ||
|
||
UNIT 89 TYPE 65 ! Online Plotter Auxiliary (Element Hp) | ||
PARAMETERS 12 | ||
3 ! 1: Nb. of left-axis variables | ||
5 ! 2: Nb. of right-axis variables | ||
-10 ! 3: Left axis minimum | ||
100 ! 4: Left axis maximum | ||
0 ! 5: Right axis minimum | ||
50 ! 6: Right axis maximum | ||
nPlotsPerSim ! 7: Number of plots per simulation | ||
12 ! 8: X-axis gridpoints | ||
1 ! 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 8 | ||
TBoilerIn TBoilerOut tSetBoiler PBoiler_kW PBoilerIn_kW PBoilerLoss_kW MfrBoilerIn BoilerOn | ||
** | ||
TBoilerIn TBoilerOut tSetBoiler PBoiler_kW PBoilerIn_kW PBoilerLoss_kW MfrBoilerIn BoilerOn | ||
LABELS 3 | ||
Temperatures | ||
Power | ||
Boiler | ||
|
||
*********************************** | ||
** Monthly printer | ||
*********************************** | ||
CONSTANTS 1 | ||
unitPrintBoiler = 31 | ||
|
||
ASSIGN temp\Boiler_MO.Prt unitPrintBoiler | ||
|
||
UNIT 32 TYPE 46 | ||
PARAMETERS 6 | ||
unitPrintBoiler ! 1: Logical unit number, - | ||
-1 ! 2: Logical unit for monthly summaries, - | ||
1 ! 3: Relative or absolute start time. 0: print at time intervals relative to the simulation start time. 1: print at absolute time intervals. No effect for monthly integrations | ||
-1 ! 4: Printing & integrating interval, h. -1 for monthly integration | ||
1 ! 5: Number of inputs to avoid integration, - | ||
1 ! 6: Output number to avoid integration | ||
INPUTS 4 | ||
Time PBoiler_kW PBoilerIn_kW PBoilerLoss_kW | ||
** | ||
Time PBoiler_kW PBoilerIn_kW PBoilerLoss_kW | ||
|
||
*********************************** | ||
** Hourly printer | ||
*********************************** | ||
CONSTANTS 1 | ||
unitPrintBoilerHr = 33 | ||
|
||
ASSIGN temp\Boiler_HR.Prt unitPrintBoilerHr | ||
|
||
UNIT 34 TYPE 46 ! Printegrator Monthly Values for System | ||
PARAMETERS 8 | ||
unitPrintBoilerHr ! 1: Logical unit number, - | ||
-1 ! 2: Logical unit for monthly summaries, - | ||
1 ! 3: Relative or absolute start time. 0: print at time intervals relative to the simulation start time. 1: print at absolute time intervals. No effect for monthly integrations | ||
1 ! 4: Printing & integrating interval, h. -1 for monthly integration | ||
3 ! 5: Number of inputs to avoid integration, - | ||
1 ! 6: Output number to avoid integration | ||
5 ! 7: Output number to avoid integration | ||
6 ! 8: Output number to avoid integration | ||
INPUTS 6 | ||
Time PBoiler_kW PBoilerIn_kW PBoilerLoss_kW TBoilerIn TBoilerOut | ||
** | ||
Time PBoiler_kW PBoilerIn_kW PBoilerLoss_kW TBoilerIn TBoilerOut | ||
|
||
******************************* | ||
**END Type6.dck | ||
******************************* |
181 changes: 181 additions & 0 deletions
181
tests/trnsysGUI/testConfigFileUpdater/data/existing/input/TTES/ddck/Coll/type1.ddck
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,181 @@ | ||
******************************* | ||
**BEGIN Type1.ddck | ||
******************************* | ||
|
||
***************************************** | ||
** Contact person : Dani Carbonell | ||
** Creation date : 10.01.2010 | ||
** Last changes : 20.05.2022 | ||
***************************************** | ||
|
||
*************************************************************************** | ||
** Description: | ||
** Collector model using efficiency curve efficiency | ||
*************************************************************************** | ||
|
||
*********************************** | ||
** inputs from hydraulic solver | ||
*********************************** | ||
EQUATIONS 2 | ||
TCollIn = @temp(In, TPiColIn) | ||
MfrColl = ABS(@mfr(In, MfrPiColIn)) | ||
|
||
*********************************** | ||
** outputs to hydraulic solver | ||
*********************************** | ||
EQUATIONS 1 | ||
@temp(Out, TCollOut) = [28,1] | ||
|
||
*********************************** | ||
** outputs to other ddck | ||
*********************************** | ||
|
||
****************************************************************************************** | ||
** outputs to energy balance in kWh and ABSOLUTE value | ||
** Following this naming standard : | ||
** qSysIn_name, qSysOut_name, elSysIn_name, elSysOut_name | ||
****************************************************************************************** | ||
EQUATIONS 1 | ||
qSysIn_Collector = PColl_kW | ||
|
||
*********************************** | ||
** Dependencies with other ddck | ||
*********************************** | ||
EQUATIONS 1 | ||
pumpColOn = puColOn | ||
|
||
CONSTANTS 2 | ||
C_tilt = slopeSurfUser_1 ! @dependencyDdck Collector tilt angle / slope [°] | ||
C_azim = aziSurfUSer_1 ! @dependencyDdck Collector azimuth (0:s, 90:w, 270: e) [°] | ||
|
||
EQUATIONS 4 | ||
**surface-8 | ||
IT_Coll_kJhm2 = IT_surfUser_1 ! Incident total radiation on collector plane, kJ/hm2 | ||
IB_Coll_kJhm2 = IB_surfUser_1 ! incident beam radiation on collector plane, kJ/hm2 | ||
ID_Coll_kJhm2 = ID_surfUser_1 ! diffuse and ground reflected irradiance on collector tilt | ||
AI_Coll = AI_surfUser_1 ! incident angle on collector plane, ° | ||
|
||
EQUATIONS 5 | ||
IT_Coll_kW = IT_Coll_kJhm2/3600 ! Incident total radiation on collector plane, kW/m2 | ||
IB_Coll_kW = IB_Coll_kJhm2/3600 ! incident beam radiation on collector plane, kW/m2 | ||
ID_Coll_kW = ID_Coll_kJhm2/3600 ! diffuse and ground reflected irradiance on collector tilt (kW/m2) | ||
IT_Coll_Wm2 = IT_surfUser_1/3.6 | ||
IT_Coll_kWm2 = IT_surfUser_1/3600 | ||
|
||
*********************************** | ||
** Begin CONSTANTS | ||
*********************************** | ||
CONSTANTS 3 | ||
MfrCPriSpec = 15 ! Coll. Prim. loop spec. mass flow [kg/hm2] | ||
AcollAp = 5 ! Collector area | ||
MfrCPriNom = MfrCPriSpec*AcollAp | ||
|
||
*********************************** | ||
** Begin TYPE | ||
*********************************** | ||
UNIT 28 TYPE 1 | ||
PARAMETERS 11 | ||
nSeries ! number in series | ||
AcollAp ! collector area | ||
cpBri ! fluid specific heat kj(kgK | ||
efficiencyMode ! efficiency mode | ||
testedMfr ! tested flow rate kg/(hm2) | ||
Eta0 ! intercept efficiency | ||
a1 ! efficiency slope kJ/hm^2K | ||
a2 ! efficiency curvature kJ/hm^2K^2 | ||
2 ! optical mode | ||
FirstOrderIAM ! 1st order IAM | ||
SecondOrderIAM ! 2nd order IAM | ||
INPUTS 9 | ||
TCollIn | ||
MfrColl | ||
Tamb | ||
IT_Coll_kJhm2 | ||
IT_H | ||
ID_Coll_kJhm2 | ||
0,0 | ||
AI_Coll !Flo check ! JS: This was defined wrong before (C_azim, even though it is incident angle input). Now it should be correct. | ||
C_tilt !Flo check ! JS: This should be correct | ||
*** INITIAL INPUT VALUES | ||
20 0 10 0 0 0 GroundReflectance 45 0 | ||
|
||
EQUATIONS 4 | ||
**MfrCout = [700,2] | ||
Pcoll = [28,3] !kJ/h | ||
PColl_kW = Pcoll/3600 | ||
PColl_kWm2 = PColl_kW/(AcollAp+1e-30) | ||
PColl_Wm2 = PColl_kWm2*1000 | ||
|
||
*********************************** | ||
** Monthly printer | ||
*********************************** | ||
CONSTANTS 1 | ||
unitPrintSol = 31 | ||
|
||
ASSIGN temp\SOLAR_MO.Prt unitPrintSol | ||
|
||
UNIT 32 TYPE 46 | ||
PARAMETERS 6 | ||
unitPrintSol ! 1: Logical unit number, - | ||
-1 ! 2: Logical unit for monthly summaries, - | ||
1 ! 3: Relative or absolute start time. 0: print at time intervals relative to the simulation start time. 1: print at absolute time intervals. No effect for monthly integrations | ||
-1 ! 4: Printing & integrating interval, h. -1 for monthly integration | ||
1 ! 5: Number of inputs to avoid integration, - | ||
1 ! 6: Output number to avoid integration | ||
INPUTS 4 | ||
Time Pcoll_kW PColl_kWm2 IT_Coll_kWm2 | ||
** | ||
Time Pcoll_kW PColl_kWm2 IT_Coll_kWm2 | ||
|
||
*********************************** | ||
** Hourly printer | ||
*********************************** | ||
CONSTANTS 1 | ||
unitHourlyCol = 33 | ||
|
||
ASSIGN temp\SOLAR_HR.Prt unitHourlyCol | ||
|
||
UNIT 34 TYPE 46 ! Printegrator Monthly Values for System | ||
PARAMETERS 7 | ||
unitHourlyCol ! 1: Logical unit number, - | ||
-1 ! 2: Logical unit for monthly summaries, - | ||
1 ! 3: Relative or absolute start time. 0: print at time intervals relative to the simulation start time. 1: print at absolute time intervals. No effect for monthly integrations | ||
1 ! 4: Printing & integrating interval, h. -1 for monthly integration | ||
2 ! 5: Number of inputs to avoid integration, - | ||
4 ! 6: Output number to avoid integration | ||
5 ! 7: Output number to avoid integration | ||
INPUTS 6 | ||
Pcoll_kW PColl_kWm2 IT_Coll_kWm2 TCollOut TCollIn MfrColl | ||
** | ||
Pcoll_kW PColl_kWm2 IT_Coll_kWm2 TCollOut TCollIn MfrColl | ||
|
||
*********************************** | ||
** Online Plotter | ||
*********************************** | ||
UNIT 103 TYPE 65 !Changed automatically | ||
PARAMETERS 12 | ||
4 ! 1: Nb. of left-axis variables | ||
2 ! 2: Nb. of right-axis variables | ||
0 ! 3: Left axis minimum | ||
10 ! 4: Left axis maximum | ||
0 ! 5: Right axis minimum | ||
100 ! 6: Right axis maximum | ||
nPlotsPerSim ! 7: Number of plots per simulation | ||
12 ! 8: X-axis gridpoints | ||
1 ! 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 6 | ||
Pcoll_kW PColl_kWm2 IT_Coll_kWm2 MfrColl | ||
TCollOut TCollIn | ||
Pcoll_kW PColl_kWm2 IT_Coll_kWm2 MfrColl | ||
TCollOut TCollIn | ||
LABELS 3 | ||
Power_and_Mfr | ||
Temperatures | ||
Collector | ||
|
||
******************************* | ||
**END Type1.ddck | ||
******************************* |
30 changes: 30 additions & 0 deletions
30
...testConfigFileUpdater/data/existing/input/TTES/ddck/Coll/type1_constants_CobraAK2_8V.ddck
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,30 @@ | ||
****************************** | ||
**BEGIN Type1_Constants_CobraAK2_8V.ddck | ||
******************************* | ||
|
||
***************************************** | ||
** Solar Thermal Data for covered collector. | ||
** Very well performing collector Cobra AK 2.8V | ||
** Version : v0.0 | ||
** Last Changes: Jeremias Schmidli | ||
** Date: 10.03.2020 | ||
****************************************** | ||
|
||
CONSTANTS 11 | ||
|
||
Eta0= 0.857 ! Eta0 (a0) of collector (zero heat loss efficiency) | ||
a1 = 4.16*3.6 ! linear heat loss coefficient of collector [kJ/hm^2K] ![W/m2K]*3.6 | ||
a2 = 0.0089*3.6 ! quadratic heat loss coefficient of collector [kJ/hm^2K^2] ![W/m2K2]*3.6 | ||
|
||
AbsorberArea = 2.435 !m2 | ||
TotArea = 2.768 !m2 | ||
|
||
nSeries = 1 | ||
efficiencyMode = 1 | ||
testedMfr = 200/AbsorberArea !l/hm2 | ||
|
||
GroundReflectance = 0.2 | ||
|
||
FirstOrderIAM = 0.108 | ||
SecondOrderIAM = 0 | ||
|
Oops, something went wrong.