Finding the Volume Inside a Data Range for 3D Volume Plots

Fahrizal Perdana Fahmul

Please login with a confirmed email address before reporting spam

Hi COMSOL forum!

I am currently working on a Solid Oxide Fuel Cell (SOFC) simulation. I am looking for a way to calculate a "volume of a certain region which considered inside the data range".

I attached the picture of my current problem.

Thank you and regards, Perdana - Student of engineering



2 Replies Last Post Apr 9, 2021, 6:56 AM EDT
Robert Koslover Antennas, Waveguides, Electromagnetics

Please login with a confirmed email address before reporting spam

Posted: 2 weeks ago Apr 8, 2021, 10:23 AM EDT
Updated: 2 weeks ago Apr 8, 2021, 10:24 AM EDT

I suggest you integrate a Boolean expression across a larger volume that includes the volume of interest to you. You need to set up your Boolean expression to evaluate to 1 (aka, true) wherever the quantity of interest to you falls within the desired range of values, and 0 (aka, false) wherever the quantity of interest to you falls outside of the desired range of values. Integration can be done via post-processing under Results, or can be set up as a probe.

I suggest you integrate a Boolean expression across a larger volume that includes the volume of interest to you. You need to set up your Boolean expression to evaluate to 1 (aka, true) wherever the quantity of interest to you falls within the desired range of values, and 0 (aka, false) wherever the quantity of interest to you falls outside of the desired range of values. Integration can be done via post-processing under Results, or can be set up as a probe.

Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 week ago Apr 9, 2021, 6:56 AM EDT

Robert's advice is the right solution in 5.3a.

In 5.5 and 5.6 you can get a more accurate result by creating a Filter dataset that extracts the region of interest and integrating 1 over the Filter dataset.

Robert's advice is the right solution in 5.3a. In 5.5 and 5.6 you can get a more accurate result by creating a Filter dataset that extracts the region of interest and integrating 1 over the Filter dataset.

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.