model.probe().create(<tag>,type) creates a probe of type
type with tag
<tag>.
Table 2-113 lists the supported probe types.
model.probe(<tag>).model(<ctag>) sets the probe’s model component node to
<ctag>.
model.probe(<ptag>).selection("dom") gets the source selection for a boundary point probe.
model.probe(<ptag>).create(<etag>,"PointExpr") creates a point probe expression of tag
<etag>. This is supported for probes of the types
DomainPoint and
BoundaryPoint.
model.probe(<ptag>).feature(<etag>).set(eproperty,
<evalue>) sets the property
eproperty on the point probe expression
<etag> to the value
<evalue>.
model.probe(<tag>).genResult(String sol) where
sol is a solver sequence tag. This function prepares for using a probe while solving or during results processing. The command is invoked automatically when a solver or study is run from the COMSOL Desktop for all active probes but needs to be invoked explicitly when run through the API. The function
genResult(String sol) sets up result features for evaluating the corresponding probe using the solver sequence
sol. If
null is used, the default solver sequence for a solution dataset is used. When
sol is
none, the corresponding probe solution dataset does not refer to any solver sequence. This means, for example, that the current model is used for selections used for this probe. When a solver sequence is run, then solution to use for the probes is always reset to use the current solver.
Use the model.probe(<tag>).image() methods for plotting and exporting probe plot images. See
Plotting and Exporting Images.
A point probe of the type DomainPoint takes the following properties:
A point probe of BoundaryPoint type takes the following properties:
In addition, boundary point probes support the selection property "dom", through which a Selection object containing the boundary on which the probe point resides can be retrieved.