blockCombiTable1Factor

CombiTable 1Ds, with input and output factors

Information

Blocks CombiTable1Factor and CombiTable2Factor implement the way EHTPlib uses matrices to determine components' behaviour such as torque limitation, optimal speeds, ICE consumptions, etc.
CombiTable1Factor is based on a MSL CombiTable1Ds,  CombiTable2Factor on CombiTable2Ds.

These matrices can be directly written on the input mask, or taken from a file.

When they are taken from a file, it is very convenent to use factors on matrix inputs and output. This allows for instance to compensate usage of rpm instead of rad/s for speeds, or to re-use matrices in machines different from those they were originally written for, scaling input axes and ouptut.
For instance one could have a fuel consumption map of an ICE; which is adequate for a full family of engines: using these factors, it can be scaled to different speed/torque ranges, and omothetically varied also vertically (e.g. consumptions can be reduced to 90% by multiplication with an output factor equal to 0.9).

When matrix is not from a file, factors are automatically set to 1, and the input matrix is used without changes. When, instead, it is taken from a file, the two inputs are mutiplied by u1Factor and u2Factor respectively, and output by yFactor.

Parameters

TypeNameDefaultDescription
IntegernOut1size of the output vector
RealuFactor1Multiplies input before entering table
RealyFactor1multiplies table outputs exiting the block
BooleantableOnFilefalse=true, if table is defined in a txt file
Realtable[0, 0; 1, 1; 2, 4]Table matrix (as per CombiTable1ds)
StringtableName"NoName"Table name in txt file
StringfileName"NoName"Txt file where matrix is stored
RealuFactor_
RealyFactor_

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu
Modelica.Blocks.Interfaces.RealOutput[nOut]y

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.GaintoIn
Modelica.Blocks.Math.Gain[nOut]toOut
Modelica.Blocks.Tables.CombiTable1DscombiTable1Ds