global_scalar command

Purpose

Command for setting a global scalar property that can be accessed by the user or other commands.

Warning

GPU support for this command has not been tested and may not work as expected.

Syntax

global_scalar id property_name value property_value
  • id = obligatory keyword

  • property_name = name of the global property (must be a valid C++ string)

  • value = obligatory keyword

  • property_value = default numerical value of the global property

Examples

global_scalar id characteristicVelocity value 2.

Description

This command reserves a global scalar property to be accessed by the user or other commands. The property value is a floating point number used as default value for the property.

An example for the usage of this command is the setting of the characteristicVelocity for the normal model hooke.