FEA Forums » COMSOL Forums



Design World

TRD Manufacturing Introduces the MH Series and TAS Cylinders

MK24 Series Reed Sensors

Bebco EPSĀ® 6000 Series Purge/Pressurization System from Pepperl+Fuchs

5 mm Buzzers Ideal for Mobile Equipment Applications

CARLO GAVAZZI certified to ISO 14001:2004

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.