packageIO_Bus

Subsystem outputs manipulation

Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).

Information

Subsystem initial and terminal data manipulations using busConnector (Physiomodel expandable connector).

Be surre, that the directory "io" is in working directory (File->Change Directory...)!

Implementation:

Model should be divided into subsystems, which has output variables grouped to busConnector (variables, which are inputs to other subsystems). For each subsystem S: all these variables should be defined in extended redeclared class S.IO_Bus.Variables, where package S.IO_Bus is extended from Physiolibrary.Types.IO_Bus.

Usage:

For loading values in SI units of these variables from file "io/input_SI.txt" use block S.IO_Bus.InputFromFile_SI.

For loading values in non-SI units of these variables from file "io/input.txt" use block S.IO_Bus.InputFromFile.

For storing values in SI units of these variables from file "io/output_SI.txt" use block S.IO_Bus.OutputToFile_SI.

For storing values in non-SI units of these variables from file "io/output.txt" use block S.IO_Bus.OutputToFile.

For comparison values in SI units of these variables with file "io/input_SI.txt" use block S.IO_Bus.OutputComparison_SI and result will be stored as "io/comparison_SI.txt".

For comparison values in non-SI units of these variables with file "io/input.txt" use block S.IO_Bus.OutputComparison and result will be stored as "io/comparison.txt".

Contents

NameDescription
PhysiolibTypesRealTypesRedefine this package only if there are not possible to use Physiolibrary types for variables!
VariablesSubsystem output busConnector variables
InputFromFileLoad values in non-SI units from file io/input.txt
OutputToFileStore values in non-SI units to file io/output.txt
OutputComparisonCompare values in non-SI units with file io/input.txt and store results to io/comparison.txt
InputFromFile_SILoad values in SI units from file io/input_SI.txt
OutputToFile_SIStore values in SI units to file io/output_SI.txt
OutputComparison_SICompare values in SI units with file io/input_SI.txt and store results to io/comparison_SI.txt

Revisions