The function mphevalpoint returns the result of a given expression evaluated at the geometry points:
where e1, … are the COMSOL expressions to evaluate. The output
d1, … is an
N-by-
P double array, where
N is the number of evaluation points and
P the length of the inner solution.
The function mphevalpoint supports the following properties to set the data of the evaluation to perform:
<dsettag> is the tag of a solution dataset. The default value is the current solution dataset of the model.
where <seltag> is the tag of a selection node to use for the data evaluation.
<seltag> can also be a positive integer array that corresponds to the domain index list. The default selection is all domains where the expression is defined. If the evaluation point does not belong to the specified domain selection, the output value is NaN.
where <solnum> is an integer array corresponding to the inner solution index.
<solnum> can also be a string:
'end' or
'all' to evaluate the expression for the last inner solution, or all inner solution respectively. By default the evaluation is performed on all inner solution.
where <outersolnum> is a positive integer corresponding to the outer solution index.
<outersolnum> can also be a string,
'all' or
'end', to evaluate the expression for all or the last outer solution respectively. The default settings use the first outer solution for the data evaluation.
where <time> is a double array. The default value corresponds to all the stored time steps.
where dataseries is either
'mean',
'int',
'max',
'min',
'rms',
'std', or
'var'. Depending on the property value,
mphevalpoint performs the following operations — mean, integral, maximum, minimum, root mean square, standard deviation, or variance, respectively.
The function mphevalpoint supports other output formats.
with unit is a 1xN cell array where N is the number of expressions to evaluate.
By default, mphevalpoint returns the results as a squeezed singleton. To get the full singleton set the
squeeze property to
off:
Set the property matrix to
off to return the data as a cell array instead of a double array: