TABLE

Parameters and functions
*TABLE
"Optional title"
coid, N
$x_{11}$, ..., $x_{1N}$
.
$x_{n1}$, ..., $x_{nN}$
Parameter definition
VariableDescription
coid Command ID
N Number of data columns
$x_{11}$, ..., $x_{1N}$ First row of data
.
$x_{n1}$, ..., $x_{nN}$ Last row of data
Description

This command is used to define a data table. Tables are referenced by other commands, but the data points can also be accessed in FUNCTION and when defining PARAMETER values. table(coid,rowid,colid) returns the value at row=rowid and column=colid in table with ID=coid.

Example
Table with coordinates

A simple case where table data points are used to define parameter values.

*TABLE
"Coordinates"
100, 3
0.0, 0.0, 0.0
1.2, 3.4, 5.5
4.7, 2.2, 6.2
8.0, 1.1, 9.2
#
# Include mesh.k four times (r1 runs from 1 to 4)
#
~repeat 4
*PARAMETER
x0 = table(100, r1, 1), "x-position"
y0 = table(100, r1, 2), "y-position"
z0 = table(100, r1, 3), "z-position"
*INCLUDE
"Component [r1]"
mesh.k
1, 1, 1, [r1*10000], [r1*10000]
0, 0, 0, [%x0], [%y0], [%z0]
~end_repeat
*END