model.result().numerical().create(<ftag>,"Eval");model.result().numerical(<ftag>).selection(...);model.result().numerical(<ftag>).getData();model.result().numerical(<ftag>).getImagData();model.result().numerical(<ftag>).isComplex();model.result().numerical(<ftag>).getNData();model.result().numerical(<ftag>).getCoordinates();model.result().numerical(<ftag>).getElements();model.result().numerical(<ftag>).getVertexElements();model.result().numerical(<ftag>).run();model.result().numerical().create(<ftag>,"Eval") creates an evaluation feature with the name <ftag>.Eval is a feature made specifically for users of the COMSOL API and does not appear in the COMSOL Multiphysics GUI. It is used to evaluate results directly on the solution.result = model.result().numerical(<ftag>).getData() returns the real part of the result, recomputing the feature if necessary. result is a three-dimensional double matrix ordered result[expression][solnum][coordinates].model.result().numerical(<ftag>).getData(<expressionIndex>) returns the real part of the result for one expression, equivalent to result[expressionIndex].result = model.result().numerical(<ftag>).getImagData() returns the imaginary part of the result, recomputing the feature if necessary. result is a three-dimensional double matrix ordered result[expression][solnum][coordinates].model.result().numerical(<ftag>).getImagData(<expressionIndex>) returns the imaginary result for one expression, equivalent to result[expressionIndex].model.result().numerical(<ftag>).isComplex() returns true if the result is complex. The resulting value is a scalar, which true if any of the expressions in an array is complex-valued.model.result().numerical(<ftag>).isComplex(<outersolnum>) returns true if the result is complex for the given outer solution. <outersolnum> is applicable only for parametric sweep solutions and is the index of each outer parametric solution.model.result().numerical(<ftag>).getVertexElements() returns indices to mesh elements for each point.
Table 7-23: Valid Property/Value Pairs for Evaluation none | data set name on | off Whether the expression should be linearized at the linearization point. Applicable only if evalmethod is harmonic on | off on | off auto | integer gauss | lagrange Smoothing settings. With material, smoothing is done inside material domains With internal, smoothing is done inside geometry domains. With expression, the smoothing is based on the expression in smoothexpr. manual | none The unit to use for the expression in expr. If the old unit is not valid when the expression changes, the unit property is reset to default.