ConstantConverterRate

A constant rate is turned into a constant-valued signal

Diagram

Information

This information is part of the Business Simulation Library (BSL).

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 ValueType is chosen to be Types.Reals so that the entered rate will be a fractional rate (1 per unit of time). A different choice for ValueType may give more convenience: Selecting ValueType = Amount allows to use `displayUnit = "thousand"` and we can enter value = 1 and timeBaseString = "year" to come up with a rate of 1 thousand per year nicely converted internally into an equivalent rate per second.

  • One can further use ValueType to select say a basic physical quantity like energy (not EnergyFlowRate!). With value = 1000, displayUnit = "kW.h", and timeBaseString = "year" we will thus obtain a rate of 1000 kw.H per year that is internally converted into SI-units of 114.155 J/s.

  • There is no direct link between OutputType (default = Rate) and ValueType. The value entered will have unit = ValueType.unit/s and the selected OutputType should be set to make sure that y.unit reflects this: In the energy example above, the user should have selected OutputType = EnergyFlowRate to have units for input and output match.

See also

ConstantConverterConstantConverterTime

Parameters (1)

value

Value:

Type: ValueType

Description: Constant rate given in unit and displayUnit pertaining to ValueType per time base

Connectors (1)

y

Type: RealOutput

Description: Constant output signal

Components (2)

rateInTimeBase

Type: ConstantConverter

convertRate

Type: RateConversion

Description: Convert the rate input to a rate per seconds

Used in Examples (2)

SimpleProductionChain

BusinessSimulation.Examples

A first example

ManagingEmployment

BusinessSimulation.Examples

Human resource planning

Used in Components (11)

ProportionalTransition

BusinessSimulation.Flows.Unidirectional

Rate of transition is proportional to the amount in stock A

BrokenTransition

BusinessSimulation.Flows.Interaction

The inflow to B is proportional to the outflow from A

BrokenTransitionPull

BusinessSimulation.Flows.Interaction

The outflow from A is proportional to the inflow to B

LinearInteraction

BusinessSimulation.Flows.Interaction

Linear model of interaction between two stocks

LotkaVolterra

BusinessSimulation.Flows.Interaction

The Lotka-Volterra equations to model predator-prey-dynamics

NonlinearInteraction

BusinessSimulation.Flows.Interaction

Outflows depend upon the product of the stocks and a factor

PresentValue

BusinessSimulation.MoleculesOfStructure.InformationProcessing

Calculates the present value of a stream of cash flows

TimeValueOfMoney

BusinessSimulation.MoleculesOfStructure.InformationProcessing

Calculate the time value of money (TVM) using continuous compounding

Account

BusinessSimulation.MoleculesOfStructure.Incubators

Basic model of an account with optional interest

Diffusion

BusinessSimulation.MoleculesOfStructure.Actuators

Social diffusion via direct contacts and/or a basic conversion rate

SourceOrSink

BusinessSimulation.Interfaces.PartialCLD

Partial source or sink for causal loop diagramming