Commit 866462da authored by Christophe Geuzaine's avatar Christophe Geuzaine

doc NodeTable/ElementTable + ValueFromIndex + ValueFromTable

parent c58b11f2
Pipeline #1070 passed with stage
in 27 minutes and 50 seconds
......@@ -4030,6 +4030,28 @@ Gets the value of the runtime variable @code{$@var{variable-id}}. If
the optional @var{expression}s are provided, they are appended to the
variable name, separated by @code{_}.
@item ValueFromIndex
@code{[ ]@{ @var{expression-cst-list} @}}
Treats @var{expression-cst-list} as a map of (@var{entity}, @var{value})
pairs. Useful to specify nodal or element-wise constraints, where
@var{entity} is the node (mesh vertex) or element number (tag).
@item VectorFromIndex
@code{[ ]@{ @var{expression-cst-list} @}}
Same @code{ValueFromIndex}, but with 3 scalar values per @var{entity}.
@item ValueFromTable
@code{[ @var{expression} ]@{ @var{char-expression} @}}
Accesses the map @var{char-expression} created by a @code{NodeTable} or
@code{ElementTable} @code{PostOperation}. If the map is not available
(e.g. in pre-processing), or if the entity is not found in the map, use
@var{expression} as default value. Useful to specify nodal or
element-wise constraints, where @var{entity} is the node (mesh vertex)
or element number (tag).
@end ftable
@c -------------------------------------------------------------------------
......@@ -5640,9 +5662,22 @@ Graph, etc. The columns are: @var{time-step} @var{time} @var{x-coord}
@dots{} @var{value}.
@item NodeTable
Table of node values. The first value corresponds to the number of listed
nodes. The columns of the following lines are: @var{node-number}
@var{node-value}(s)
Table of nodal values, in the form @var{node-number}
@var{node-value}(s). When exported to a file, the total number of nodal
values is printed first. The data is automatically exported as a
run-time accessible list as well as a ONELAB variable, with the name of
the @code{PostOperation} quantity. The values are also directly usable
by the @code{ValueFromTable} function, which allows to use them as
values in a nodal @code{Constraint}.
@item ElementTable
Table of element values, in the form @var{element-number}
@var{element-node-value}(s). When exported to a file, the total number
of element values is printed first. The data is automatically exported
as a run-time accessible list as well as a ONELAB variable, with the
name of the @code{PostOperation} quantity. The values are also directly
usable by the @code{ValueFromTable} function, which allows to use them
as values in an element-wise @code{Constraint}.
@item Gnuplot
Space oriented column output similar to the @code{Table} format, except that
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment