<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="http://www.comsol.eu/community/forums/mesh/rss/feed.rss" rel="self" type="application/rss+xml"/>
  <title>Mesh - Latest Discussions - COMSOL Forums</title>
  <link>http://www.comsol.eu/community/forums/</link>
  <description>Most recent forum discussions</description>
  <pubDate>Thu, 09 Feb 2012 16:01:13 +0000</pubDate>
  <image>
   <title>Mesh - Latest Discussions - COMSOL Forums</title>
   <url>http://www.comsol.eu/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.eu/community/forums/</link>
  </image>
  <item>
   <title>Meshing of Disproportionate Geometries</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/26005/</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Small structures are often disproportionate Geometries with orders of magnitude difference in height to width. E.g. There is a thin film 10nm high (y) and 0.5cm(x) long.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
There was a thread on a similar topic in 3D which suggested the use of sweep meshing.&lt;br /&gt;&#13;
http://www.comsol.de/community/forums/mesh/thread/19108/&lt;br /&gt;&#13;
However I am usually working in 2D since that simplifies the model and there this isn't possible. &lt;br /&gt;&#13;
In the upper example when creating a standard normal mesh I get very many meshpoints even when there are only 4 &amp;quot;layers&amp;quot; of mesh points. So perhaps longer a meshpoint could be longer in x direction and smaller in y direction. However how does this influence the accuracy of the simulation.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I also found some other approaches used. &lt;br /&gt;&#13;
(1) &amp;quot;scaling the problem&amp;quot;: E.g. in an electric only problem:  A diode which is only about 100nm thick is scaled to 1 or 10um with 10 or 100 times less resistance.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
(2) &amp;quot;cutting the problem&amp;quot; Since sometimes most of the lenght of the &amp;quot;layer&amp;quot; is not important another geometry is created which just simulates the interesting part and the other part is taken with a boundary condition in account.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Especially I am looking for some literature about handling  handling disproportionate kind of geometries in kind of meshing. Perhaps were such (simple) methods as the upper 2 are used and put on a scientific ground.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Cheers&lt;br /&gt;&#13;
Robert&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
edit:&lt;br /&gt;&#13;
 I found a thin film paper which describes the problem and the solution (1) as follows:&lt;br /&gt;&#13;
http://de.arxiv.org/abs/1001.4447v2 &lt;br /&gt;&#13;
To confirm the scenario discussed above, we calculated&lt;br /&gt;&#13;
the spatial distribution of the electrical potential and the&lt;br /&gt;&#13;
current in ring-shaped MTJs using finite element method&lt;br /&gt;&#13;
(FEM) simulations. The geometry of the ring-shaped junc-&lt;br /&gt;&#13;
tions is shown in Fig. 6. The in-plane conductivities used in&lt;br /&gt;&#13;
the simulations for the various layers of the junction stack&lt;br /&gt;&#13;
are summarized in Table 3. Since the simulation tool did&lt;br /&gt;&#13;
not allow to represent the real dimensions of the sample be-&lt;br /&gt;&#13;
cause of its large aspect ratio we scaled the geometry and&lt;br /&gt;&#13;
the conductivity in the out-of-plane direction by a factor of&lt;br /&gt;&#13;
100.</description>
   <pubDate>Thu, 09 Feb 2012 16:01:13 +0000</pubDate>
   <guid isPermaLink="false">.1328803273.26005</guid>
  </item>
  <item>
   <title>3D Swept mesh for Thin domain with ununiform faces</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25926/</link>
   <description>how should i mesh the thin SS layer by swept mesh ... i dont get it at all .. ! even after reading the documentation ... the problem is because of un even faces .. </description>
   <pubDate>Mon, 06 Feb 2012 18:48:47 +0000</pubDate>
   <guid isPermaLink="false">.1328554127.25926</guid>
  </item>
  <item>
   <title>3d - Rf Simulation: PML mesh</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25898/</link>
   <description>Hi people,&lt;br /&gt;&#13;
I must simulate a block of lossy material (10x10x15cm) in the space and a plane wave that hits it. This is the extention of the problem I had posted some time ago (&amp;quot;http://www.comsol.com/community/forums/general/thread/24889/&amp;quot;).&lt;br /&gt;&#13;
With your help I have set the space around the box 1.5 lambda times thick and the PML zone wide 1 lambda.&lt;br /&gt;&#13;
Now the new question is:&lt;br /&gt;&#13;
how make the PML mesh?&lt;br /&gt;&#13;
How many plane waves can I set toghether? Their experession become very big: is possible to semplify thei expression?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
*****&lt;br /&gt;&#13;
My settings are:&lt;br /&gt;&#13;
for the electric field (in Electromagnetics waves tab)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
KEx*exp(i*emw.k0*(VerNx*x+VerNy*y+VerNz*z))&lt;br /&gt;&#13;
KEy*exp(i*emw.k0*(VerNx*x+VerNy*y+VerNz*z))&lt;br /&gt;&#13;
KEz*exp(i*emw.k0*(VerNx*x+VerNy*y+VerNz*z))&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
and with this parameters:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Fi 0 Longitude&lt;br /&gt;&#13;
Teta 0 Latitude&lt;br /&gt;&#13;
Alfa 0 polarization&lt;br /&gt;&#13;
Emax 1000 Electric field amplitude&lt;br /&gt;&#13;
GrToRad pi/180 Degrees to radiant conversion&lt;br /&gt;&#13;
KEn Emax*cos(GrToRad*Alfa) Normal field&lt;br /&gt;&#13;
KEt Emax*sin(GrToRad*Alfa) Tangential field&lt;br /&gt;&#13;
KEx KEt*sin(GrToRad*Fi)-KEn*cos(GrToRad*Teta)*cos(GrToRad*Fi) &lt;br /&gt;&#13;
KEy -KEt*cos(GrToRad*Fi)-KEn*cos(GrToRad*Teta)*sin(GrToRad*Fi)&lt;br /&gt;&#13;
KEz KEn*sin(GrToRad*Teta)&lt;br /&gt;&#13;
VerNx cos(GrToRad*Fi)*sin(GrToRad*Teta)&lt;br /&gt;&#13;
VerNy sin(GrToRad*Fi)*sin(GrToRad*Teta)&lt;br /&gt;&#13;
VerNz cos(GrToRad*Teta)&lt;br /&gt;&#13;
*****&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thank you for attention.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Bye, Ale.</description>
   <pubDate>Mon, 06 Feb 2012 07:52:50 +0000</pubDate>
   <guid isPermaLink="false">.1328514770.25898</guid>
  </item>
  <item>
   <title>Meshing 3D geometry</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25893/</link>
   <description>Hello,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am trying to figure out the correct way to mesh a 3D geometry that consisted of a chamber containing several cells as shown in the attached figure. When I applied the free tetrahedral mesh to the entire geometry I was able to model the diffusion of my analyte of interest but my domain point probe plot do not show the concentration vs. time for the two points I have set as 60 um above the bottom of the chamber (hence on the same level as the cells). This makes me think that meshing is just a surface mesh and not a volume mesh as evident by a very low mesh volume in the statistic menu. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Any help is much appreciated,&lt;br /&gt;&#13;
CDuong</description>
   <pubDate>Sun, 05 Feb 2012 19:53:40 +0000</pubDate>
   <guid isPermaLink="false">.1328471620.25893</guid>
  </item>
  <item>
   <title>compressing parallel plate capacitor and measuring capacitance</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25885/</link>
   <description>Hi all,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I have a simple parallel plate structure with a rubber material in between. I want to compress the structure and measure the capacitance as it is compressed. I can successfully calculate the capacitance using the electrostatics physics, but unsure how I can add a compression force (keeping one plate fixed and applying a force on the other) and see the deformation and calculate the capacitance again.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I read in the forums that I need to use ALE to couple the two physics together. I am not sure how I can do that. Is there a tutorial somewhere that I can look at? &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Sat, 04 Feb 2012 23:23:37 +0000</pubDate>
   <guid isPermaLink="false">.1328397817.25885</guid>
  </item>
  <item>
   <title>Droplet breakup in a T-Junction in a smaller channel</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25883/</link>
   <description>Hi all,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I have a specific set of parameters for wich I am trying to simulate the breakup of droplets in a T-junction. Entering these parameters for the geometry from the example MEMS module[1] gives fine results (droplets form). &lt;br /&gt;&#13;
However, if I slash the channel size in half (50x50x20 mum) I get no droplets but a coflow regime, where the dispersed phase occupies the upper part of the channel. &lt;br /&gt;&#13;
Now I have a real life system that has exactly the same dimensions (50x50x20 mum) and I can generate droplets for the same set of parameters in that.&lt;br /&gt;&#13;
So, I am somewhat stumped on how to proceed from here. I tried doubling the meshsize and increased the timeframe of the simulation and even fiddled around with the parameters, but it always gives me the cowflow regime.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Any help appreciated.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
[1] The geometry in the example module is a 100x100x50 mum channel.</description>
   <pubDate>Sat, 04 Feb 2012 23:09:38 +0000</pubDate>
   <guid isPermaLink="false">.1328396978.25883</guid>
  </item>
  <item>
   <title>Count Elements on Surface</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25855/</link>
   <description>When meshing, comsol spits out the total number of elements contained in the mesh. Is there any way  to extract the number of elements on a single surface? I tried to look into the post-processing &amp;quot;Derived Values&amp;quot; section but couldn't find anything.</description>
   <pubDate>Fri, 03 Feb 2012 16:48:40 +0000</pubDate>
   <guid isPermaLink="false">.1328287720.25855</guid>
  </item>
  <item>
   <title>&quot;Using linear geometry shape order for mesh element near coordinates...&quot;</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25852/</link>
   <description>What does it mean when I get dozens of messages saying &amp;quot;Using linear geometry shape order for mesh element near coordinates...&amp;quot;. Is there something wrong or inefficient about my meshing or my geometry? I'm looking for ways to optimize it.</description>
   <pubDate>Fri, 03 Feb 2012 16:00:58 +0000</pubDate>
   <guid isPermaLink="false">.1328284858.25852</guid>
  </item>
  <item>
   <title>working with Spice software</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25824/</link>
   <description>Hi&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am new to Comsol and would like to model and design some 3D components like transformers and inductors in AC/DC module. However, I would eventually want to simulate the full circuit through importing the circuit from the SPICE program for full sensitivity and performance analysis. I have few questions here and would appreciate if you could answer them.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
(1) I am going to use two different versions of spice program here, initially using the free LTSpice from Linear Technology and later PSPICE from Cadence. I would like to check if COMSOL could support both version of Spice?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
(2) Does Comsol work by importing the circuit information from the SPICE software through the *.cir file? Do both versions of the Spice programs able to generate the *.cir format? Does Comsol working with other format or will it prefomance the same function?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
(3) Is Comsol only import the circuit network layout and components information from the SPICE and have an internal solver to solve the complete circuit entirely or it will also need to send command to use the SPICE solver for final solutions?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
(4) How well Comsol support the Spice program, particularly the Cadence PSpice? Does it support all components and parameters such as coupling coefficient, k from the SPICE? Any limitation when working with these two programs.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks in advance,&lt;br /&gt;&#13;
Chek Yang &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Thu, 02 Feb 2012 16:51:23 +0000</pubDate>
   <guid isPermaLink="false">.1328201483.25824</guid>
  </item>
  <item>
   <title>Problem with the meshing of a structure</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25823/</link>
   <description>I am trying to mesh a structure. I have a block and objects inside that block. The blocks gets meshed insanly coarse, while the objects inside get meshed rather fine. The block has elements that are in the size of it's diameter, this just cannot be. Where do I make a mistake.</description>
   <pubDate>Thu, 02 Feb 2012 15:52:49 +0000</pubDate>
   <guid isPermaLink="false">.1328197969.25823</guid>
  </item>
  <item>
   <title>Prescribed mesh velocity </title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25773/</link>
   <description>Hi everyone,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
in a prescribed mesh velocity, if i want that a boundary has a free prescribed mesh velocity in x direction i have two options:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
   vx          no write nothing&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
or&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
√ vx         u &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
if i change the coordinate system, how can i to do the same?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
One way will be&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
  vt          no write nothing&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
but the other?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
√ vt         ??????&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks you&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
JL&lt;br /&gt;&#13;
</description>
   <pubDate>Wed, 01 Feb 2012 07:35:28 +0000</pubDate>
   <guid isPermaLink="false">.1328081728.25773</guid>
  </item>
  <item>
   <title>avoided 2783 inverted elements by using linear geometry shape order</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25753/</link>
   <description>Hello all;&lt;br /&gt;&#13;
when i start running my i get this massage what it should mean and how i can avoid this error?&lt;br /&gt;&#13;
Best regard </description>
   <pubDate>Tue, 31 Jan 2012 17:43:02 +0000</pubDate>
   <guid isPermaLink="false">.1328031782.25753</guid>
  </item>
  <item>
   <title>Single element mesh</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25731/</link>
   <description>How do I make a mesh consisting of exactly &amp;quot;one element&amp;quot;?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Mon, 30 Jan 2012 20:35:42 +0000</pubDate>
   <guid isPermaLink="false">.1327955742.25731</guid>
  </item>
  <item>
   <title>Time dependent and non linear model takes (too?) long to solve...</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25702/</link>
   <description>Hello everyone,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am simulating electrical machines within the rotating machinery interface in the ACDC module.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
The model I calculate right now solves. But the way it solves is not satisfying in my oppinion. As soon as I choose the iron to be nonlinear, the solving takes days to calculate just 50ms with a time step of 100us.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I'm not sure if I'm allowed to upload the model in this forum, since the Geometry is not meant to be public.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
The Geometry is a fourth of the motor and periodic boundary conditions are used for this. The current, stamped into the slots, is calculated by time dependent equations which involve the derivation of the flux field linkage. So comsol has to solve the equation for the current and vector potential simultaneously.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I already tried to improve the model this way:&lt;br /&gt;&#13;
http://www.comsol.com/support/knowledgebase/1127/&lt;br /&gt;&#13;
But it didn't really increase the speed.  Actually with it's help the model could first be solved nonlinear...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Does anybody have general advices to get nonlinear time dependent models solved faster?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks in advance.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Sun, 29 Jan 2012 21:52:09 +0000</pubDate>
   <guid isPermaLink="false">.1327873929.25702</guid>
  </item>
  <item>
   <title>automatic remeshing</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25659/</link>
   <description>Hi&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
What is the definition of &amp;quot;mesh quality&amp;quot;? &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Is it possible for an initial mesh to be of poor quality?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
In my model automatic remeshing threw me out at t=0  if I asked for a minimum  mesh quality of 0.01&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
but ran OK with 0.001(this is only step 1 and the mesh has not moved yet.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
How can I improve the quality of the initial mesh?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
What is the lowest quality I can live with  to keep  the model running with intermittent remeshings?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
thanks&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
David</description>
   <pubDate>Thu, 26 Jan 2012 17:01:35 +0000</pubDate>
   <guid isPermaLink="false">.1327597295.25659</guid>
  </item>
  <item>
   <title>Mesh sensitivity Test</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/25073/</link>
   <description>Hi all,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I had carried out mesh sensitivity test on my 2-D asymmetrical model, using stress-strain axial symmetry module to calculate the maximum von Mises stress. However, the more mesh I refine, the result seem does not convergence.The stress value getting bigger and bigger.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Appreciate for expert comment.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Merry Christmas and happy new year.</description>
   <pubDate>Sun, 25 Dec 2011 09:46:01 +0000</pubDate>
   <guid isPermaLink="false">.1324806361.25073</guid>
  </item>
  <item>
   <title>Extract mesh information in Matlab</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/13148/</link>
   <description>Hello, &lt;br /&gt;&#13;
   &lt;br /&gt;&#13;
I'm new to Comsol. Can anybody explain how to extract surface mesh info from Comsol? I'm using version 3.5.&lt;br /&gt;&#13;
The following is what I did:&lt;br /&gt;&#13;
(1) load a 2D curve y=f(x) into Comsol.&lt;br /&gt;&#13;
(2) Revolve and generate an axi-symmatric 3D object.&lt;br /&gt;&#13;
(3) Use init mesh to generate mesh.  (But not sure it is the volume mesh or surface mesh)&lt;br /&gt;&#13;
(4) Export mesh to fem structure.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
The information I need from the exported fem structure includes:&lt;br /&gt;&#13;
(1) x,y,z coordinates of nodes on the surface only.&lt;br /&gt;&#13;
(2) element connection.&lt;br /&gt;&#13;
(3) edge list.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Now I can see that &amp;quot;fem&amp;quot; is in my matlab workspace. But I don't know how to go further to dig out more. I &lt;br /&gt;&#13;
thought there should be something called &amp;quot;fem.mesh.p&amp;quot; or &amp;quot;fem.mesh.t&amp;quot;. But it seems in my fem structure, &lt;br /&gt;&#13;
there is only something called &amp;quot;fem.xmesh&amp;quot;. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Another problem is I don't know whether the mesh generated in comsol is volume mesh or surface mesh.&lt;br /&gt;&#13;
I only need surface mesh.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks for your help.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Wed, 19 Jan 2011 21:34:34 +0000</pubDate>
   <guid isPermaLink="false">.1295472874.13148</guid>
  </item>
  <item>
   <title>Importing Boundary Conditions Using a .nas File</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/13013/</link>
   <description>Is there any way to import boundary conditions into comsol using nastran file .nas mesh import. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Many thanks</description>
   <pubDate>Mon, 17 Jan 2011 12:36:19 +0000</pubDate>
   <guid isPermaLink="false">.1295267779.13013</guid>
  </item>
  <item>
   <title>Calculation of normal vectors on surface</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/12307/</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I need to calculate normal vectors on a 3D geometry surface to calculate boundary conditions from that (it's a rather complex matlab code). I took the postinterp help to get a starting point and tried to calculate the normal vectors in the center of each element. I used postinterp and tried to determine nx, ny and nz, but, whatever I do, I only get NaNs. In the postinterp help, a parameter s was used to do that, this also works fine in 3D, but I am not sure how I would transform certain points to that parameter... Here's my code:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
% Create sphere surface geometry&lt;br /&gt;&#13;
clear fem&lt;br /&gt;&#13;
fem.geom=geomcoerce('face',sphere3(1,'pos',[0,0,0]));&lt;br /&gt;&#13;
geomplot(fem,'edgelabels','on'), axis equal&lt;br /&gt;&#13;
% Generate mesh&lt;br /&gt;&#13;
fem.mesh = meshinit(fem);&lt;br /&gt;&#13;
fem.shape = 2;&lt;br /&gt;&#13;
fem.xmesh = meshextend(fem);&lt;br /&gt;&#13;
% Get element triangulation&lt;br /&gt;&#13;
a=get(fem.mesh,'el');&lt;br /&gt;&#13;
tri=a{3}.elem;&lt;br /&gt;&#13;
p=fem.mesh.p;&lt;br /&gt;&#13;
% Calculate center point of each triangle&lt;br /&gt;&#13;
pn=(p(:,tri(1,:))+p(:,tri(2,:))+p(:,tri(3,:)))/3;&lt;br /&gt;&#13;
% Calculate normal vectors&lt;br /&gt;&#13;
nx=postinterp(fem,'nx',pn)&lt;br /&gt;&#13;
% this gives only NaNs, why?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Any ideas? Also the interpolation in the mesh points does not work, &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
nx=postinterp(fem,'nx',fem.mesh.p)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
gives me the same NaNs...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Nils</description>
   <pubDate>Wed, 22 Dec 2010 14:10:11 +0000</pubDate>
   <guid isPermaLink="false">.1293027011.12307</guid>
  </item>
  <item>
   <title>Mesh element volume</title>
   <link>http://www.comsol.eu/community/forums/mesh/thread/116/</link>
   <description>Dear all,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I have a material property having a different value in a domain and&lt;br /&gt;&#13;
it is function of individual volume of deformed mesh element and undeformed mesh&lt;br /&gt;&#13;
element.&lt;br /&gt;&#13;
Could you tell me how to get the volume of the mesh element?&lt;br /&gt;&#13;
In 2D, this may be the area of the each element. (Am I right?)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I appreciate your reply.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thank you.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Yoon&lt;br /&gt;&#13;
</description>
   <pubDate>Wed, 01 Jul 2009 19:07:48 +0000</pubDate>
   <guid isPermaLink="false">.1246475268.116</guid>
  </item>
 </channel>
</rss>

