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

For printers, must remove inputs and initial input values that are in excess of those connected #28

Open
Florent-H opened this issue Apr 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@Florent-H
Copy link
Collaborator

If the user sets the input 'How_many_variables_are_to_be_printed_by_this_component_' of a Type 25c printer to a number greater than the variables that are ultimately connected, an excess number of lines are printed in the deck file.

printer_path = "district/xmltypes/Type25c.xml"
printer = TrnsysModel.from_xml(printer_path)
printer.inputs['How_many_variables_are_to_be_printed_by_this_component_'] = 90
INPUTS 90
PLF_1               ! HeatPump_1:PLF_1 -> Printer - No units printed to output file:Input to be printed-1
workHP_1            ! HeatPump_1:workHP_1 -> Printer - No units printed to output file:Input to be printed-2
outletWaterTemp_1   ! HeatPump_1:outletWaterTemp_1 -> Printer - No units printed to output file:Input to be printed-3
[...]
14,11               ! pipe_1 - section_2 - unit_14:Thermal Losses - Pipe 1 -> Printer - No units printed to output file:Input to be printed-86
14,12               ! pipe_1 - section_2 - unit_14:Thermal Losses - Pipe 2 -> Printer - No units printed to output file:Input to be printed-87
0,0                 ! [unconnected] Printer - No units printed to output file:Input to be printed-88 (remove this line)
0,0                 ! [unconnected] Printer - No units printed to output file:Input to be printed-89 (remove this line)
0,0                 ! [unconnected] Printer - No units printed to output file:Input to be printed-90 (remove this line)
*** INITIAL INPUT VALUES
label  ! Input to be printed-1
label  ! Input to be printed-2
label  ! Input to be printed-3
[...]
label  ! Input to be printed-86
label  ! Input to be printed-87
label  ! Input to be printed-88 (remove this line)
label  ! Input to be printed-89 (remove this line)
label  ! Input to be printed-90 (remove this line)

The three lines at the end of INPUTS and at the end of INITIAL VALUES must be removed when creating the deck file.

@Florent-H Florent-H added the bug Something isn't working label Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant