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.

Finding mesh volumes for volume integral

Please login with a confirmed email address before reporting spam

Hi all,

I have calculated an energy density (per volume). Now, I am trying to find total energy by integrating this energy density. I have a list of (x, y, z) coordinates and each point's energy density. I know that in the triangular mesh, the volumes are not always equal, so I'd like to get a list of volumes corresponding to the points, so that I can multiply by the respective densities and add them to integrate. I am using 4.4, and I have looked under mesh statistics, but I haven't found what I need.

Does anyone know a way that I can do this, or an alternative method for calculating this integral? Thanks!

2 Replies Last Post 19 juin 2014, 00:04 UTC−4
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 18 juin 2014, 23:41 UTC−4
Here's a better way: You can integrate energy density (or almost anything else that Comsol Multiphysics evaluates) using the built in tools to do that. For example, after running your model, look in the Model Builder, under Results, and then right-click Derived Values. Select Integration. Then select either volume, surface, or line integration. Choose the expression you want to integrate. Then click Evaluate. (Note: You can even change the integration settings too, if you like.)
Here's a better way: You can integrate energy density (or almost anything else that Comsol Multiphysics evaluates) using the built in tools to do that. For example, after running your model, look in the Model Builder, under Results, and then right-click Derived Values. Select Integration. Then select either volume, surface, or line integration. Choose the expression you want to integrate. Then click Evaluate. (Note: You can even change the integration settings too, if you like.)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 19 juin 2014, 00:04 UTC−4
Wonderful, works perfectly. I should have figured this out. Thanks so much!
Wonderful, works perfectly. I should have figured this out. Thanks so much!

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.