General Commands > About General Commands > model.probe()

model.probe()
Create and defined properties for probes, which you can add to a model to monitor some quantity (real or complex-valued number) during a time-dependent, frequency-domain, or parametric simulation.
Syntax
model.probe().create(<tag>, type);
model.probe(<tag>).model(<mtag>);
model.probe(<tag>).set(property,<value>);
model.probe(<tag>).create(<etag>, etype);
model.probe(<tag>).feature(<etag>).set(eproperty,<evalue>);
model.probe(<tag>).feature(<etag>).getAllowedPropertyValues(property);
model.probe(<tag>).genResult(String sol)
Description
model.probe().create(<tag>, type) creates a probe of type type with tag <tag>.
model.probe(<tag>).model(<mtag>) sets the model node to <mtag>.
model.probe(<tag>).set(property,<value>) set property to <value>.
model.probe(<tag>).selection(...) sets the selection for the probe. This is possible for the probes of the types Domain, Boundary, and Edge.
model.probe(<tag>).create(<etag>, etype) creates a point probe expression of type etype and tag <tag>.
model.probe(<tag>).feature(<etag>).set(eproperty,<evalue>) sets the property eproperty on the point probe expression <etag>.
model.probe(<tag>).feature(<etag>)).getAllowedPropertyValues(property) returns the set of allowed values for a property if the set is a finite set of strings; otherwise, it returns null.
model.probe(<tag>).genResult(String sol) where sol is a solver sequence tag. This function prepares for using a probe while solving or during postprocessing. 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 data set is used. When sol is none then the corresponding probe solution data set 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.
Boundary Probes, Domain Probes, Edge Probes, Global Variable Probes, and Probe Point Expressions
Probes can be of the following types:.
Table 2-66: Probe Types
Boundary Point Probes and Domain Point Probes
Probe points can be of the following types:
Table 2-67: Probe point Types
Probes take the following properties:
Table 2-68: Probe properties
on | off
integration | summation
average | maximum | minimum | integral
A probe point of the type DomainPoint takes the following properties:
Table 2-69: Probe properties
1 | 2 | 3
pointnormal | pointdirection | twopoints | none
first | second
A probe point of BoundaryPoint types take the following properties:
Table 2-70: Probe properties