<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>FEA Forums &#187; Topic: Scripting in COMSOL Multiphysics 3.3a</title>
<link>http://www.FEA-Forums.com/</link>
<description>FEA Forums &#187; Topic: Scripting in COMSOL Multiphysics 3.3a</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 23:18:16 +0000</pubDate>

<item>
<title>jvdb on "Scripting in COMSOL Multiphysics 3.3a"</title>
<link>http://www.FEA-Forums.com/topic/68#post-90</link>
<pubDate>Wed, 24 Dec 2008 04:46:44 +0000</pubDate>
<dc:creator>jvdb</dc:creator>
<guid isPermaLink="false">90@http://www.FEA-Forums.com/</guid>
<description>&#60;p&#62;Dear all&#60;/p&#62;
&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;Code (with node and elem the tetrahedral coordinates and elements): &#60;/p&#62;
&#60;p&#62;el = cell(1,0);&#60;br /&#62;
el{1} = struct('type','tet','elem',elem');&#60;br /&#62;
m = femmesh(node',el);&#60;br /&#62;
m = meshenrich(m);&#60;br /&#62;
fem.mesh=m;&#60;/p&#62;
&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Jan.
&#60;/p&#62;</description>
</item>

</channel>
</rss>

