trnsystor.typevariable.Output

class trnsystor.typevariable.Output(val, **kwargs)[source]

A subclass of TypeVariable specific to outputs.

A subclass of TypeVariable specific to outputs.

property is_connected

Return True of self has any successor.

property successors

Other TypeVariables to which this TypeVariable is connected. Successors.

connect_to(other, link_style_kwargs=None)

Connect a single TypeVariable to TypeVariable other.

Important

Keep in mind that since python traditionally uses 0-based indexing, the same logic is used in this package even though TRNSYS uses traditionally 1-based indexing. The package will internally handle the 1-based index in the output .dck file.

Examples

Connect two TypeVariable objects together

>>> pipe_1.outputs['Outlet_Air_Temperature'].connect_to(
>>>     other=pipe2.intputs['Inlet_Air_Temperature']
>>> )
Parameters

other (TypeVariable) – The other object.

Raises

TypeError – When trying to connect to anything other than a TrnsysModel.

copy()

TypeVariable: Make a copy of self.

classmethod from_tag(tag, model=None)

Class method to create a TypeVariable from an XML tag.

Parameters
  • tag (Tag) – The XML tag with its attributes and contents.

  • model (TrnsysModel) – The model.

property idx

Get the 0-based variable index of self.

property one_based_idx

Get the 1-based variable index of self such as it appears in Trnsys.

property predecessor

Other TypeVariable from which this Input TypeVariable is connected.

Predecessors