Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Numerical Variables

  • Last UpdatedDec 03, 2025
  • 1 minute read

In the input schemes numerical constants of type <real> may be replaced by numerical variables. These variables are numbered and are identified when used by N followed by its number. To put it formally:

<numerical_variable>::= N<i> (0< i <100 | -100< I <0)

A negative number means that the values assigned to the numerical variable should be negated when used.

A numerical variable may used in combination with an offset, for example,

U = N5 +100

This means that numerical variables are used very much in the same way as variables in programming languages. However, once they have been given a value they must not be reused by re-definition in another statement.

Numerical variables are given values in statements of their own.

Numerical variables may get their values in three different ways:

  • By explicitly given constants

  • By picking of a coordinate from a topology point.

  • By calculation via an expression

The options for the expression are described in detail in the specification of the statement for Numerical Variables.

It should be observed that numerical variables can be used only in places where the Design Language of Hull Planar Modelling allows real numbers to used, that means, they cannot be used for integers and strings.

Example:

.

NUM, NO=1, VAL=7.5;

PLA, MAT=N1, N-1;

.

These two statements will have the same effect as the statement below:

.

PLA, MAT=7.5,-7.5;

.

TitleResults for “How to create a CRG?”Also Available in