<?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.de/community/forums/general/rss/thread/3662.rss" rel="self" type="application/rss+xml"/>
  <title>COMSOL Forums: Particle tracking in MATLAB  and COMSOL 3.5.0.603</title>
  <link>http://www.comsol.de/community/forums/general/thread/3662/</link>
  <description>Most recent forum messages</description>
  <pubDate>Mon, 08 Mar 2010 12:10:02 +0000</pubDate>
  <image>
   <title>COMSOL Forums: Particle tracking in MATLAB  and COMSOL 3.5.0.603</title>
   <url>http://www.comsol.de/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.de/community/forums/general/thread/3662/</link>
  </image>
  <item>
   <title>Particle tracking in MATLAB  and COMSOL 3.5.0.603</title>
   <link>http://www.comsol.de/community/forums/general/thread/3662/#p9515</link>
   <description>Win XP Pro / COMSOL 3.5.0.603 / MATLAB 2007a&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Attached: MP_EM_Potential_2_1_0_track_electrons.b.zip&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am fairly inexperienced with COMSOL, but learning...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
In the attached files, I have a new project that I created based on the COMSOL tutorial with 2 potential cylinders. I want to track 1e5 particles, so I am trying to use MATLAB.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
The particles must originate in a confined area with random starting points in that area, random velocities in a particular range, and random directions within a certain range. I must track them until specific conditions are met. I have accomplished much of this already, but my work shows slight deviation from COMSOL, and I'd like to know why. I also don't understand exactly what I can/should keep when I make the call to &amp;quot;postplot(fem, ...&amp;quot;. I have &amp;quot;guessed&amp;quot; what to keep.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
In the attached zip file there is an image that show the deviation of my track from COMSOL. For the first phase of my project, I need to track particles for 10m or so, and see if they hit a target 1 cm in diameter and 0.5m long. The next phase will require tracking particles for 50m.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Q1: Why does my track differ from COMSOL? Am I using an incorrect approach to using COMSOL variables? Not the correct variables? Is it just a difference in error due to calculations?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Q2: In my call to &amp;quot;postplot (fem, ...&amp;quot;, can I / should I reduce the number of variables that I pass to postplot ()? The MATLAB source code has quite a bit of extra debug code in it, but most of it is commented out, and I think that whay remains is clear enough. I'll be happy to answer any questions on or off the forum...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks much,&lt;br /&gt;&#13;
~Rich~</description>
   <pubDate>Mon, 08 Mar 2010 12:10:02 +0000</pubDate>
   <guid isPermaLink="false">3662.1268050202.9515</guid>
  </item>
 </channel>
</rss>

