| Message |
|---|
FEA Forums » COMSOL Forums
Scripting in COMSOL Multiphysics 3.3a
-
Posted 2 weeks ago #
-
Dear all
I am a newbie to the field of FEA, so I apologize if the answers to my questions are rather obvious. I am working with Comsol 3.3a. I would like to solve a structural problem on a volume mesh (tetrahedrals). I have created a mesh in Matlab and I am using the Comsol scripting language in the Matlab environment. Subsequently, I export the femmesh structure to Comsol. Yet, does anyone has an idea of how to attribute certain subdomains on self-created meshes with scripting? At this moment, I only have a femmesh.
Code (with node and elem the tetrahedral coordinates and elements):
el = cell(1,0);
el{1} = struct('type','tet','elem',elem');
m = femmesh(node',el);
m = meshenrich(m);
fem.mesh=m;Furthermore, when looking at this mesh in Comsol, it looks exactly the same as the one in Matlab, yet the boundaries (faces) do not equal, i.e. they are less detailed.
Thanks
Jan.
Posted 1 year ago #
|
|
RSS feed for this topic |
Reply
You must log in to post.
