FEA Forums » COMSOL Forums



Design World

Ethernet PROFIBUS® Device Coupler from TURCK

Steel Leveling Mounts from J. W. Winco

Lin Engineering's 8718 NEMA 34 Step Motor Series Now UL Certified

PolyOne to Highlight Sustainable Solutions at IHHS

EPSON Robots introduces New EPSON G1 Mini SCARA Robots

Scripting in COMSOL Multiphysics 3.3a

  • Started 1 year ago by jvdb : : Current there are 1 post :
  1. Author

    Message

    Posted 2 weeks ago #
  2. jvdb
    Member

    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.