Any input is highly appreciated.
Regards,
Saeid
--
You received this message because you are subscribed to the Google Groups "iso2mesh-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/iso2mesh-users/-/6OJ_ZA-TmNIJ.
To post to this group, send email to iso2mes...@googlegroups.com.
To unsubscribe from this group, send email to iso2mesh-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iso2mesh-users?hl=en.
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Dear SNorouzi,
Perhaps this reply is a bit late, but I was having the exact same problem you were having and I found a solution, which, in the end, was disappointingly simple, so I decided to give you the solution I found anyway.
The problem I was experiencing when using savemphtxt.m was that I could import the mesh into comsol nicely, and it would show it, but it would not recognise it in the geometry as a domain, so I could add no source
or material or anything to my object. I didn't want to use a commercial solution, so I took a look at the code of savemphtxt, and I found the error.
At some point in the code you will find these lines:
for i = 1:n_face
fprintf(fp,'0 0\n');
end
Here the up/down information of the mesh is printed, but for comsol 4.3a at least this is not correct. Change this to the following:
for i = 1:n_face
fprintf(fp,'0 1\n');
end
This resolved the problem for me, and I could add a source to the domain and a material and comsol was happy as a clam.
I hope this helps some other people with the same problems. Respect for iso2mesh, I really love the package!
Yvonka
Op vrijdag 8 februari 2013 02:24:24 UTC+1 schreef SNorouzi het volgende: