•
|
A space-separated or comma-separated list of values: 10, 15, 23, 29.7, 30.
|
•
|
A delimited space-separated list using curly braces; for example, using it as an argument to a function such as a mathematical function or a user-defined function: cos({0 pi/4 pi/2}) or an1({1, 2, pi, 14/2}). The curly braces can also be used to create a scalar-vector multiplication such as {0, 1,2}*10 or as an elementwise array multiplication such as {0,1,2}*{10,11,13}, which results in the array {0,11,26}.
|
•
|
Equally-spaced values using the range function as in range(start value,step_size,end value). For example, range(0,0.2,3) creates the values 0, 0.2, 0.4,..., 2.6, 2.8, and 3.0. The step size is 1 if you provide only start and end values and skip the step value. You can also use the range function as input to a used-defined function, for example: an1(range(0,1,12)).
|
start_value can be either smaller or larger than end_value. In the latter case, the step size must be negative. For example, range(0,-5,-100) creates the values 0, −5, −10, ..., −95, −100, while range(0,5,-100) is an empty set of values.
|
•
|
•
|
•
|
•
|
Select Number of values to define range using a specified number of values. See Step and Number of Values.
|
•
|
•
|
Select ISO preferred frequencies to define the range using an octave or other interval of ISO preferred frequencies. To show this option, click the Show More Options button () and select Advanced Study Options in the Show More Options dialog box. It also appears if the model contains a physics interface that requires the Acoustics Module.
|
•
|
The default value None, which means linear spacing using the range function directly with the values specified.
|
•
|
The exponential functions exp10 (base-10 exponential function) and exp (base-e exponential function), which create exponentially-spaced values using the specified range of values as powers of 10 and of the mathematical constant e, respectively.
|
•
|
•
|
The square root function sqrt, which creates a vector with values that are the square roots of the values specified.
|
•
|
•
|
•
|
•
|
The times for output from the time-dependent solver and the list of parameter values in the Settings windows for study step nodes for time-dependent and stationary solvers and for parametric sweeps.
|
•
|
The contour levels, the streamline start-point coordinates, and the coordinates in arrow plots. Whenever you specify a number of coordinates in Settings windows for plots, the COMSOL Multiphysics software uses scalar expansion — if one component is the same for all coordinates, enter a single number in the corresponding text field. For example, to get 101 linearly spaced coordinates from y = 6 to y = 7 along x = 3, enter it as the single scalar 3 for x and then range(6,0.01,7) for y. Thus, you need not enter 101 similar values for x.
|
Because the range function returns a list of values, it is a vector-valued function that you cannot use in a definition of a variable, for example. Variables must return a scalar value.
|