iso2mesh and brain2mesh and Comsol

141 views
Skip to first unread message

Raphael Ribeiro

unread,
Oct 4, 2017, 12:34:32 PM10/4/17
to iso2mesh-users
So i exported the mesh generated with the toolboxes, but comsol cant handle with the geometry, he makes the mesh but cant make the geometry always having some problem with an point or a face

Qianqian Fang

unread,
Oct 4, 2017, 12:58:18 PM10/4/17
to iso2mes...@googlegroups.com, Raphael Ribeiro
On 10/03/2017 08:46 AM, Raphael Ribeiro wrote:
So i exported the mesh generated with the toolboxes, but comsol cant handle with the geometry, he makes the mesh but cant make the geometry always having some problem with an point or a face

the tetrahedral mesh generation step in brain2mesh calls tetgen, which typically
creates well behaved meshes, due to the nature of the algorithm used in tetgen.

complains from Comsol typically resulted from problematic file exporting - either
the label column in elem/face are misinterpreted as node indices or, in the case of
surfaces, the surface triangles have inconsistent orientations.

one quick thing to do is to call

elem(:,1:4)=meshreorient(node,elem(:,1:4));

before exporting to comsol. If that still does not solve the issue, you need
to find out the list of offending face/elem elements, plot them out and see
if they indeed have topological defects. If not, then it is the export that
broke the mesh. You need to debug the command you used to export
the mesh.


Qianqian

--
You received this message because you are subscribed to the Google Groups "iso2mesh-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iso2mesh-user...@googlegroups.com.
To post to this group, send email to iso2mes...@googlegroups.com.
Visit this group at https://groups.google.com/group/iso2mesh-users.
For more options, visit https://groups.google.com/d/optout.


Raphael Ribeiro

unread,
Oct 4, 2017, 2:45:49 PM10/4/17
to iso2mesh-users
Hello Qianqian,
thanks for the quick reply, so i exported with the savemphtxt.m that is provided by the iso2mesh, you can see the mesh on comsol is quite right (visually at least), but it can't make the geometry. I tried the call function but it didn't worked either.
If the problem are topological defects, how could i fix?
Raphael
2.png
1.png

Raphael Ribeiro

unread,
Oct 6, 2017, 8:55:54 AM10/6/17
to iso2mesh-users
So, i tried to break every domain and create their geometry and it worked, the scalp and the skull needed to be simplified but it gave me more or less what i need to do my work. Has i am doing my undergrad dissertation, what references should i give when for the brain2mesh? i saw there are a webpage for the iso2mesh but didnt saw one for the brain2mesh.


Em quarta-feira, 4 de outubro de 2017 13:58:18 UTC-3, q.fang escreveu:
Reply all
Reply to author
Forward
0 new messages