number of nodes in a COMSOL mesh?

Please login with a confirmed email address before reporting spam

Hello, I would like to know how to access the number of nodes in a COMSOL mesh? Thanks for your help


4 Replies Last Post 2025年2月21日 GMT-5 05:18
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 6 months ago 2024年8月30日 GMT-4 14:03

Well, you can find quite a lot of info about any mesh from within the Model Builder. For example, by going to Component 1, then right-click on Mesh 1, and choose Statistics. This will bring up info about the number of vertices and the various numbers of various types of elements in your mesh, along with various options for displaying/listing their characteristics. I hope that helps.

-------------------
Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Well, you can find quite a lot of info about any mesh from within the Model Builder. For example, by going to Component 1, then right-click on Mesh 1, and choose Statistics. This will bring up info about the number of vertices and the various numbers of various types of elements in your mesh, along with various options for displaying/listing their characteristics. I hope that helps.

Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 months ago 2024年9月4日 GMT-4 06:09

I you have access to LiveLink for Matlab you can use the function mphmeshstats to retrieve the coordinates and connectivity for all the mesh types you have in the mesh.

-------------------
Lars Gregersen
Comsol Denmark
I you have access to LiveLink for Matlab you can use the function **mphmeshstats** to retrieve the coordinates and connectivity for all the mesh types you have in the mesh.

Please login with a confirmed email address before reporting spam

Posted: 4 days ago 2025年2月17日 GMT-5 22:25

Gregersen

Dr Gregersen, how about the syntax when there are multiple meshes?

>Gregersen Dr Gregersen, how about the syntax when there are multiple meshes?

Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 day ago 2025年2月21日 GMT-5 05:18

help mphmeshstats gives you the answer.

E.g. stats = mphmeshstats(model, 'mesh2')

If you write stats = mphmeshstats(model, and press TAB then Matlab will show you the valid mesh tags

-------------------
Lars Gregersen
Comsol Denmark
help mphmeshstats gives you the answer. E.g. stats = mphmeshstats(model, 'mesh2') If you write stats = mphmeshstats(model, and press TAB then Matlab will show you the valid mesh tags

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.