<?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.asia/community/forums/general/rss/thread/3656.rss" rel="self" type="application/rss+xml"/>
  <title>COMSOL Forums: export current plot/particle tracing with comsol w/ matlab</title>
  <link>http://www.comsol.asia/community/forums/general/thread/3656/</link>
  <description>Most recent forum messages</description>
  <pubDate>Tue, 09 Mar 2010 16:14:34 +0000</pubDate>
  <image>
   <title>COMSOL Forums: export current plot/particle tracing with comsol w/ matlab</title>
   <url>http://www.comsol.asia/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.asia/community/forums/general/thread/3656/</link>
  </image>
  <item>
   <title>Re: export current plot/particle tracing with comsol w/ matlab</title>
   <link>http://www.comsol.asia/community/forums/general/thread/3656/#p9595</link>
   <description>Forgot this...and doesn't work anyway!</description>
   <pubDate>Tue, 09 Mar 2010 16:14:34 +0000</pubDate>
   <guid isPermaLink="false">3656.1268151274.9595</guid>
  </item>
  <item>
   <title>Re: export current plot/particle tracing with comsol w/ matlab</title>
   <link>http://www.comsol.asia/community/forums/general/thread/3656/#p9592</link>
   <description>In my case partdata is giving error, I'm forced to use partvelvar. No idea why...</description>
   <pubDate>Tue, 09 Mar 2010 16:13:07 +0000</pubDate>
   <guid isPermaLink="false">3656.1268151187.9592</guid>
  </item>
  <item>
   <title>Re: export current plot/particle tracing with comsol w/ matlab</title>
   <link>http://www.comsol.asia/community/forums/general/thread/3656/#p9574</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I'm not sure for your code, but using the one I post below, it seems to work, with something like that :&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
A = {0.24, -0.015}; &lt;br /&gt;&#13;
figure&lt;br /&gt;&#13;
h=postplot(fem, ...&lt;br /&gt;&#13;
    'outtype','postdata', ...&lt;br /&gt;&#13;
         'partstart',A, ...&lt;br /&gt;&#13;
         'parttstar','auto', ...&lt;br /&gt;&#13;
         'partdata',{'u','v'}, ...&lt;br /&gt;&#13;
         'parttvar','partt', ...&lt;br /&gt;&#13;
         'geom','off');&lt;br /&gt;&#13;
grid on&lt;br /&gt;&#13;
xlabel('x-coordinate');&lt;br /&gt;&#13;
ylabel('y-coordinate');&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
You can change 'geom' in 'on' to see your geometry with the particle.&lt;br /&gt;&#13;
I think the problem was the line 'partdata'&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Hope it will help you,&lt;br /&gt;&#13;
JL&lt;br /&gt;&#13;
</description>
   <pubDate>Tue, 09 Mar 2010 09:43:28 +0000</pubDate>
   <guid isPermaLink="false">3656.1268127808.9574</guid>
  </item>
  <item>
   <title>Re: export current plot/particle tracing with comsol w/ matlab</title>
   <link>http://www.comsol.asia/community/forums/general/thread/3656/#p9533</link>
   <description>Hi man!&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Listen I have a problem...I'm able to plot streamlines in COMSOL+Matlab but not pathlines. Here is my code (just a part of it):&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
A = {0.24, -0.015}; % Single streamline/pathline as test case&lt;br /&gt;&#13;
figure&lt;br /&gt;&#13;
h = postplot(fem,...&lt;br /&gt;&#13;
    'parttvar','partt','parttstar','auto',...&lt;br /&gt;&#13;
    'partstart',A,'outtype','postdata');&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
grid on&lt;br /&gt;&#13;
xlabel('x-coordinate');&lt;br /&gt;&#13;
ylabel('y-coordinate');&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Can you tell me why doesn't work? Thanks in advance for that!&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
J</description>
   <pubDate>Mon, 08 Mar 2010 15:31:24 +0000</pubDate>
   <guid isPermaLink="false">3656.1268062284.9533</guid>
  </item>
  <item>
   <title>Re: export current plot/particle tracing with comsol w/ matlab</title>
   <link>http://www.comsol.asia/community/forums/general/thread/3656/#p9524</link>
   <description>I finally found the solution of my problem, maybe it could be useful for somebody.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Some codes seems to work with Comsol but not with Matlab. This is the one I use :&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&amp;quot;VAR_PART=postplot(fem, ...&lt;br /&gt;&#13;
         'outtype','postdataonly', ...&lt;br /&gt;&#13;
         'partmasstype','massless', ...&lt;br /&gt;&#13;
         'partstart',{[0.001],[eps]}, ...&lt;br /&gt;&#13;
         'partcolordata','partt', ...&lt;br /&gt;&#13;
         'partdata',{'u','v'}, ...&lt;br /&gt;&#13;
         'partedgetol',0.001, ...&lt;br /&gt;&#13;
         'parttvar','partt', ...&lt;br /&gt;&#13;
         'partres',5, ...&lt;br /&gt;&#13;
         'solnum','end', ...&lt;br /&gt;&#13;
          'geom','off', ...&lt;br /&gt;&#13;
         'axis',[-0.038658065092179075,0.08865806583723716,-0.005000000074505795,0.10500000156462193]);&amp;quot;&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
And the datas are contained in the workspace of Matlab, in VAR_PART, to access them, by example the time :&lt;br /&gt;&#13;
VAR_PART{1,1}.parttime&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
To plot the results, just change outtype in &amp;quot;postdata&amp;quot; or &amp;quot;handle&amp;quot;.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Mon, 08 Mar 2010 14:35:42 +0000</pubDate>
   <guid isPermaLink="false">3656.1268058942.9524</guid>
  </item>
  <item>
   <title>export current plot/particle tracing with comsol w/ matlab</title>
   <link>http://www.comsol.asia/community/forums/general/thread/3656/#p9506</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I'm working on polymer flow, through a canal, and I need to determine the temperature function of time, for some particles in the flow. But I don't know how to do that through Matlab.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I'm using the particle tracing plot of postprocessing of COMSOL, and more precisely the function &amp;quot;color expression&amp;quot; where I write &amp;quot;partt&amp;quot;, it represents the time. I export the datas with &amp;quot;file/export/current plot + write script etc.&amp;quot;.&lt;br /&gt;&#13;
I repeat the same operation writing &amp;quot;T&amp;quot; (for temperature) instead of partt in the color expression of particle tracing plot, and then export datas through the same way (file/export/...).&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
The problem is that I need to do this for a program which can't be runned with Comsol, but only with Matlab with comsol because of some loops in it.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I've no problem to do the particle tracing plot with matlab (using postplot), but I really don't know how to obtain the same datas than with &amp;quot;File/export current plot, ...&amp;quot;.&lt;br /&gt;&#13;
I've been trying with postcrossplot (+ outtype with postdata) but didn't find how to call &amp;quot;partt&amp;quot;...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Does anyone have an idea ?&lt;br /&gt;&#13;
Thank you.</description>
   <pubDate>Mon, 08 Mar 2010 10:32:03 +0000</pubDate>
   <guid isPermaLink="false">3656.1268044323.9506</guid>
  </item>
 </channel>
</rss>
