blockConstantConverterRate
A constant rate is turned into a constant-valued signal
Extends from Icons.ConstantConverter (Icon for constant converter elements), Interfaces.Basics.OutputTypeChoice_Rate (Partial model to set the output type to some kind of rate).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The parameter value is used to set the continous output y making it a constant-valued signal. The output will always give rates per second, but rates can be entered in non-SI-units of time using the parameter timeBaseString.
Notes
- In the default setting
ValueTypeis chosen to beTypes.Realsso that the entered rate will be a fractional rate (1 per unit of time). A different choice forValueTypemay give more convenience: SelectingValueType = Amountallows to use `displayUnit = "thousand"` and we can entervalue = 1andtimeBaseString = "year"to come up with a rate of1 thousand per yearnicely converted internally into an equivalent rate per second. - One can further use
ValueTypeto select say a basic physical quantity like energy (not EnergyFlowRate!). Withvalue = 1000,displayUnit = "kW.h", andtimeBaseString = "year"we will thus obtain a rate of1000 kw.H per yearthat is internally converted into SI-units of114.155 J/s. - There is no direct link between
OutputType(default =Rate) andValueType. Thevalueentered will haveunit = ValueType.unit/sand the selectedOutputTypeshould be set to make sure thaty.unitreflects this: In the energy example above, the user should have selectedOutputType = EnergyFlowRateto have units for input and output match.
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| ValueType | value | Constant rate given in unit and displayUnit pertaining to ValueType per time base | |
| Parameters | |||
| String | timeBaseString | "second" | Time base of the rate entered (default = second) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y | Constant output signal |
Contents
| Name | Description |
|---|---|
| ValueType |