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.

V4.2 - how to find the mass of a domain

Please login with a confirmed email address before reporting spam

Please, how can one get this trivial information?

8 Replies Last Post Feb 26, 2016, 10:28 a.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 22, 2011, 6:52 a.m. EDT
You just integrate the density.
You just integrate the density.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 22, 2011, 10:49 a.m. EDT
Jean, where from do I have access to the "Integrate density" procedure?
Jean, where from do I have access to the "Integrate density" procedure?

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 22, 2011, 2:18 p.m. EDT
You compute the integral of density using the same tools that you would use to integrate any other quantity, i.e. a model coupling (under Definnitions) of the integration type. If you've never used model couplings, you'll probably want to read on them in the User's Guide manual first.
You compute the integral of density using the same tools that you would use to integrate any other quantity, i.e. a model coupling (under Definnitions) of the integration type. If you've never used model couplings, you'll probably want to read on them in the User's Guide manual first.

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 22, 2011, 2:25 p.m. EDT
I should add that if you are only interested in computing the mass as a postprocessing step (i.e. if you don't need to use that quantity in your model definition), then another, easier, approach consists in using Results>Derived Values to compute the integral.
I should add that if you are only interested in computing the mass as a postprocessing step (i.e. if you don't need to use that quantity in your model definition), then another, easier, approach consists in using Results>Derived Values to compute the integral.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 23, 2011, 2:22 a.m. EDT
Jean, thanks for taking the trouble to answer my question. I've tried to follow your advice and got a mass of zero (see attached file). Would you care to look at it, please?

From my posted questions it is easy to see that I'm not familiar with Cosmos yet, although I was keeping an eye on its development since it was just a PDE component of Matlab, then Femlab, etc.

In the engineering community we've been waiting for ages to get the flexibility Cosmos now offers. However, we need some easy to use basic tools for model verification, such as for mass, volume, inertia, etc., which I hope you guys are going to implement.

George
Jean, thanks for taking the trouble to answer my question. I've tried to follow your advice and got a mass of zero (see attached file). Would you care to look at it, please? From my posted questions it is easy to see that I'm not familiar with Cosmos yet, although I was keeping an eye on its development since it was just a PDE component of Matlab, then Femlab, etc. In the engineering community we've been waiting for ages to get the flexibility Cosmos now offers. However, we need some easy to use basic tools for model verification, such as for mass, volume, inertia, etc., which I hope you guys are going to implement. George


Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 23, 2011, 6:52 a.m. EDT
I am on vacation and without access to the software, but judging from your file name it looks like you might be dealing with a shell. In that case, you would want to perform an integration of the thickness times the density on the appropriate manifold.
If you need more further instructions regarding COMSOL, please contact COMSOL tech support.
I am on vacation and without access to the software, but judging from your file name it looks like you might be dealing with a shell. In that case, you would want to perform an integration of the thickness times the density on the appropriate manifold. If you need more further instructions regarding COMSOL, please contact COMSOL tech support.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 24, 2011, 10:07 a.m. EDT
Thank you.
Thank you.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago Feb 26, 2016, 10:28 a.m. EST
Hi

1. In Comsol Definitions, select Integration.
2.In Geometric entity level, select Domain (specify the domains that you like compute)
3.copy the operator name, and paste in the variables expression, in my case intop1(acpz.rho), because I work with acoustic piezoelectric interaction (acpz)

Regards
Hi 1. In Comsol Definitions, select Integration. 2.In Geometric entity level, select Domain (specify the domains that you like compute) 3.copy the operator name, and paste in the variables expression, in my case intop1(acpz.rho), because I work with acoustic piezoelectric interaction (acpz) Regards

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.