Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Integration over a filtered volume

Please login with a confirmed email address before reporting spam

Dear Support,
I kindly ask you to help me to solve the following problem.
I am able to plot a user-defined quantity with an element filter in a 3D domain: the logical expression I use for the filter of this quantity is :"quantity>0".
Then, my 3D domain is "restricted" to the only elements where this quantity is larger than zero.
My question is: how can I do a volume integration in this "restricted" 3D domain?
I am not able to identify this restricted 3D domain as a specific entity, but I am only able to plot it.
Please, help me to fix this problem.
With my best regards,
Alessandro

2 Replies Last Post May 2, 2012, 3:55 a.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Apr 30, 2012, 2:20 p.m. EDT
Hi

Try it out on a simple example: i.e. a cylindre, centred on the 0,0 for the axis and aligne along z, if you integrate over the domain thevalue "1" you should get the full volume. If you integrate "1*(x>0) you should get the half volume for X>0. Tis is indendet if you select one or several domains.

If you integrate a quantity as a power density Q, using theoperand Q*(Q[1/W]>1) will give you the integration over all selected domains where Q>1.

Note: take care with the "average" operator, if you use bolean operations you will probably get wrong results, as it normalises over the domain(s) but without the boolean operation, and probably your normalisation ovlume is too big !

--
Good luck
Ivar
Hi Try it out on a simple example: i.e. a cylindre, centred on the 0,0 for the axis and aligne along z, if you integrate over the domain thevalue "1" you should get the full volume. If you integrate "1*(x>0) you should get the half volume for X>0. Tis is indendet if you select one or several domains. If you integrate a quantity as a power density Q, using theoperand Q*(Q[1/W]>1) will give you the integration over all selected domains where Q>1. Note: take care with the "average" operator, if you use bolean operations you will probably get wrong results, as it normalises over the domain(s) but without the boolean operation, and probably your normalisation ovlume is too big ! -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago May 2, 2012, 3:55 a.m. EDT
thank you very much for your useful suggestions!
thank you very much for your useful suggestions!

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.