Spatial volume integration in partial 3D domain from Derived values?

Please login with a confirmed email address before reporting spam

Hi, guys,

I intend to obtain data using volume integration from Derived Values. The thing is that i only can get the data of whole 3D domain (such as -10mm=


2 Replies Last Post 2024年3月11日 GMT+1 13:47
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 6 months ago 2024年3月10日 GMT+1 22:08
Updated: 6 months ago 2024年3月10日 GMT+1 22:06

If all you want is to employ simple constraints onx,y, orzduring evaluation, then simple Booleans are very easy to apply. Just multiply your integrand by the appropriate Boolean expression. Atrueexpression evaluates to 1 and afalseexpression evaluates to 0. For example, suppose you want to integrate a quantityfbut only where x<7. Then integrate the quantity f*(x<7). You can combine Boolean expressions to create more complicated logical constraints. Look up the available "operators" in the Help system. Use "&&" for the logicalandoperation and "||" for logicalor. For example, (x>3)&&(x<7) will evaluate to one if x isbetween3 and 7, but will evaluate to zero otherwise.

-------------------
Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
If all you want is to employ simple constraints on *x*, *y*, or *z* during evaluation, then simple Booleans are very easy to apply. Just multiply your integrand by the appropriate Boolean expression. A *true* expression evaluates to 1 and a *false* expression evaluates to 0. For example, suppose you want to integrate a quantity *f* but only where x

Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 months ago 2024年3月11日 GMT+1 13:47

An alternative is to use one or more Filter datasets. This usually gives a more accurate result than multiplying the integrand by a Boolean expression.

An alternative is to use one or more Filter datasets. This usually gives a more accurate result than multiplying the integrand by a Boolean expression.

Reply

Please read thediscussion forum rulesbefore posting.

Pleaselog into post a reply.

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

Baidu
map