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.

Selecting domains for plot using the Filter

Please login with a confirmed email address before reporting spam

Hello,

I have 4 domains in my object and I am trying to plot domain 2 and 3. I am stuck on the syntax for the logical expression to show these two domains. I am able to use dom==2 to show just domain 2, but have not figured out how to show both domain 2 and 3.

Thank you, Wil


3 Replies Last Post 21.07.2020, 02:29 GMT-4
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 20.07.2020, 14:17 GMT-4

dom==2 || dom==3 ?

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
dom==2 || dom==3 ?

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 20.07.2020, 15:18 GMT-4

Thank you Edgar! I was trying &s haha. Appreciate it! Have a great day!

Thank you Edgar! I was trying &s haha. Appreciate it! Have a great day!

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 21.07.2020, 02:29 GMT-4

If you are using version 5.5, it is probably easier to use the Selection subnode than to use a Filter.

Note that you can place selections also at the dataset level.

-------------------
Henrik Sönnerlind
COMSOL
If you are using version 5.5, it is probably easier to use the **Selection** subnode than to use a **Filter**. Note that you can place selections also at the dataset level.

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.