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.

Converting a 2D plot into a 1D plot by taking the average

Fernando J. Pena Cantu

Please login with a confirmed email address before reporting spam

Hi,

After running my simulation I have a plot like the one attached as a picture. I want to convert this 2D plot into a 1D plot by taking the average in the y direction. For example lets say that my simulation gave out a variable called u(x,y). And I want to average it out with respect to the y direction. Meaning:

How can I do this, all that I been able to find is to find the average of the entire 2D plot not only in one direction.



1 Reply Last Post 15.07.2020, 22:19 GMT-4
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 15.07.2020, 22:19 GMT-4

Hello Fernando,

You can achieve this using a projection coupling. See the COMSOL Multiphysics version 5.5 Reference Manual, page 348-349.

Best regards,

Jeff

-------------------
Jeff Hiller
Hello Fernando, You can achieve this using a projection coupling. See the COMSOL Multiphysics version 5.5 Reference Manual, page 348-349. Best regards, Jeff

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.