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.

Unit syntax error with meshvol

Please login with a confirmed email address before reporting spam

In the variables section, I want to add meshvol into an equation of a variable. But (even if I only define a variable with the expression "meshvol") the error appears, and in the unit column it doesnt show me any unit.

When I solve my model, I can plot the meshvol as usual with the correct unit m^2.

How can I get the volume of each element as a variable to use it in an equation?

Thanks in advance, Peter.


1 Reply Last Post Jul 30, 2020, 12:03 p.m. EDT
Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Jul 30, 2020, 12:03 p.m. EDT

You need to define the varible explicitly on domain (or boundary) level. 'meshvol' has different definition (and unit) on different geometrical levels. This is why you cannot define the variable on 'Entire model'.

-------------------
Henrik Sönnerlind
COMSOL
You need to define the varible explicitly on domain (or boundary) level. 'meshvol' has different definition (and unit) on different geometrical levels. This is why you cannot define the variable on 'Entire model'.

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.