Skip to content

Commit

Permalink
Merge pull request #471 from SPF-OST/465-automate-production-of-diagr…
Browse files Browse the repository at this point in the history
…am-pdfs-for-all-regimes-in-a-given-hydraulic-scheme

465 automate production of diagram pdfs for all regimes in a given hydraulic scheme
  • Loading branch information
ahobeost authored Jul 3, 2024
2 parents b43943f + b11b53f commit 94aef9d
Show file tree
Hide file tree
Showing 53 changed files with 5,847 additions and 814 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Add Inkscape to the path
run: echo "C:\CI-Progams\Inkscape\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Remove old venv
run: |
Expand Down
14 changes: 14 additions & 0 deletions tests/trnsysGUI/data/diagramForRegimes/ddck/generic/end.ddck
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*******************************
**BEGIN Head.ddck
*******************************

*****************************************
** Contact person: Dani Carbonell
** Date: 30.09.2016
*****************************************

END

*******************************
**END End.ddck
*******************************
110 changes: 110 additions & 0 deletions tests/trnsysGUI/data/diagramForRegimes/ddck/generic/head.ddck
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
*******************************
**BEGIN Head.ddck
*******************************

*****************************************
** Contact person: Dani Carbonell
** Date: 30.09.2016
*****************************************

***************************************************************************
** Description:
** Basic TRNSYS variables including fluid properties
***************************************************************************

VERSION 17

**************************************
***Simulation time ******
**************************************

CONSTANTS 3
START = 0
STOP = 8760
dtSim = 1/30. ! time step in hours

**************************************
***TRNSYS SIMULATION constants ******
**************************************

CONSTANTS 13
nIteTrnsys = 30 ! TRNSYS Limit of iterations
nWarnTrnsys = 12000 ! TRNSYS Limit of warnings
nCallTraceTrnys = 31 ! TRNSYS limit of calls to a component before it will be traced
FrInte_Tol = 0.003 ! TRNSYS solver tolerances
FrConv_Tol = 0.0005 ! TRNSYS solver tolerances
nan_check_bool = 1 ! TRNSYS nan check boolean
time_report = 1 ! TRNSYS time report
solver_equation = 0 ! TRNSYS EQUATION SOLVER statement
debug_statement = 0 ! TRNSYS Overwrite DEBUG statement
solver_statement = 0 ! TRNSYS Solver statement
min_relax_factor = 1 ! TRNSYS Minimum relaxation factor
max_relac_factor = 1 ! TRNSYS Maximum relaxation factor
solver_integration = 1 ! TRNSYS numerical integration solver method


**************************************
***TRNSYS SIMULATION SET-UP ******
**************************************

SIMULATION START STOP dtSim
TOLERANCES FrInte_Tol FrConv_Tol
LIMITS nIteTrnsys nWarnTrnsys nCallTraceTrnys ! Limit of Iterations, limit of warnings, limit of calls to a component before it will be traced
DFQ solver_integration ! TRNSYS numerical integration solver method
WIDTH 132 ! TRNSYS output file width, number of characters
LIST ! NOLIST statement

SOLVER solver_statement min_relax_factor max_relac_factor ! Solver statement, Minimum relaxation factor, Maximum relaxation factor
NAN_CHECK nan_check_bool ! Nan DEBUG statement
OVERWRITE_CHECK debug_statement ! Overwrite DEBUG statement
EQSOLVER solver_equation ! EQUATION SOLVER statement
TIME_REPORT time_report


**************************************
*** MASS FLOW SOLVER CONSTANTS ******
**************************************

CONSTANTS 3
mfrSolverAbsTol = 1e-8
mfrSolverRelTol = 1e-8
mfrTolSwitchThreshold = 1e2

**************************************
***User defined printer settings******
**************************************

CONSTANTS 3

tStrtUser = START ! START start time of user defined printer
tEndUser = STOP ! END time of user defined printer
dtPrUser = dtSim ! timestep of user defined printer

**************************************
***Generic Constants ******
**************************************

CONSTANTS 6
versionDeck = 1 !can be changed from config file to adapt processes and so on
PI = 3.1415926
Zero = 0
Nix = 0
notused = 0
NPlotsPerSim = 18

**************************************
***Constant fluid properties ******
**************************************

CONSTANTS 7
CPBRI = 3.8160 ! spec. heat of Glycol [kJ/kgK]; Value for an average pipe temperature with 55 �C Tyfocor LS
RHOBRI = 1016.0 ! density Glycol [kg/m�]; Value for an average pipe temperature with 55 �C Tyfocor L
CPWAT = 4.19 ! spec. heat of Water [kJ/kgK] at 20 �C
RHOWAT = 998.0 ! density of Water [kg/m�] at20 �C
LAMWAT = 0.58 ! heat conductivity W/(mK)
CPWAT_SI = CPWAT*1000 ! J/(kgK)
CPBRI_SI = CPBRI*1000 ! J/(kgK)

*******************************
**END Head.dck
*******************************
Loading

0 comments on commit 94aef9d

Please sign in to comment.