|
The Particle Tracing Module has these operators that are only available with this module. See Built-In Operators in the COMSOL Multiphysics Reference Manual for additional information.
|
|
•
|
Evaluating env(expr) on a particle, evaluates the expression expr at the point in the domain where the particle is. When evaluating a variable var on a particle, if the variable is not defined on the particle it is automatically replaced by env(var). Therefore the env operator can often be omitted. If env(var) is evaluated when a particle is on a boundary, and var is defined on two domains adjacent to the boundary, the operator returns the arithmetic mean of var on both sides of the boundary.
|
|
•
|
Evaluating bndenv(expr) on a particle, evaluates expr at the point on the boundary where the particle is. If the particle is not on a boundary, the evaluation fails. Use this operator instead of env when evaluating expressions that are only defined on boundaries.
|
|
•
|
The operators env_in(expr) and env_out(expr) can only be used when a particle is in contact with a boundary. These operators evaluate the expression expr in the domain the particle reaches the boundary from and the domain on the opposite side of the boundary, respectively. These operators are often used to evaluate an expression that changes discontinuously at the boundary.
|
|
•
|
The operators env_rel(expr) and bndenv_rel(expr) are analogous to env(expr) and bndenv(expr), respectively, except that they always evaluate expressions at the initial particle positions.
|