Calculation Objects Palette

The Calculation Objects Palette contains objects for building continuous type models and mixed discrete-event/continuous models.  As the name suggests, a continuous model changes state continuously as time advances.  JaamSim is able to model this type of behaviour very efficiently using outputs, Attributes, and Expressions.

The 'Create Entity Links' button can be used to make connections between Calculation objects in the same way as the Process Flow objects.  Clicking on one Calculation object followed by another sets the second object's inputs for Controller, UnitType, and Input Value.

The following objects are provided in the Calculation Objects palette.

Calculation Objects Palette

Object

Description

WeightedSum

Calculates the weighted sum of the input values.

Polynomial

Evaluates a polynomial function of the input value.

Integrator

Integrates the input value over time.

Differentiator

Differentiates the input value over time.

PIDController

Proportional-Integral-Differential controller.

Lag

Calculates the LAG operation for the input value.

MovingAverage

Calculates a moving average of the input value over a specified range of time.

SineWave

Generates a sinusoidal wave.

SquareWave

Generates a square wave.

UnitDelay

Delays the input value by one Controller time step.

Many calculation objects use the following inputs and outputs.

Calculation Object Inputs

Keyword

Description

Controller

The Controller object that signals the updating of the calculation.

SequenceNumber

The sequence number used by the Controller to determine the order in which calculations are performed. A calculation with a lower value is executed before one with a higher value.

UnitType

The unit type for the input value(s) to the calculation.

InputValue

The input value for the present calculation.

Calculation Object Outputs

Output Name

Description

Value

The result of the calculation at the present time.