Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

How to use the operators-' env and bndenv '?

Please login with a confirmed email address before reporting spam

Dear all

The operators ‘env and bndenv’ are available for the Particle Tracing Module. However, I have no idea how to use them, even if I read the user’s guide description as below:
 Evaluating env(expr) on a particle, evaluates 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.
 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.

Does anyone take a example to use the operators?

I would be pleasure if anyone respond the problem.

0 Replies Last Post 26.03.2014, 10:15 GMT-4
COMSOL Moderator

Hello Hsiang-An Chan

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.