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.

multiple domain filed avaverge in matlab with comsol

Please login with a confirmed email address before reporting spam

Hi, I am recently using the average function in the matlab with comsol for the homogenization of the filed in the domain, I know that I can use the command in matlab mphmean(model,'emw.Ex','volume','selection',18)
for the volume average of Ex in domain 18, but my question is how can I get multiple domain filed average like the Ex volume average of both the domain 18 and 41?

1 Reply Last Post 18 sept. 2017, 02:50 UTC−4
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 18 sept. 2017, 02:50 UTC−4
Updated: 7 years ago 18 sept. 2017, 02:51 UTC−4

Hi

This should work:

mphmean(model,'emw.Ex','volume','selection',[18 41])

-------------------
Lars Gregersen
Comsol Denmark
Hi This should work: mphmean(model,'emw.Ex','volume','selection',[18 41])

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.