<?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/3695.rss" rel="self" type="application/rss+xml"/>
  <title>COMSOL Forums: Troubles with export to Simulink model as General dynamic block</title>
  <link>http://www.comsol.asia/community/forums/general/thread/3695/</link>
  <description>Most recent forum messages</description>
  <pubDate>Tue, 09 Mar 2010 17:14:09 +0000</pubDate>
  <image>
   <title>COMSOL Forums: Troubles with export to Simulink model as General dynamic block</title>
   <url>http://www.comsol.asia/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.asia/community/forums/general/thread/3695/</link>
  </image>
  <item>
   <title>Troubles with export to Simulink model as General dynamic block</title>
   <link>http://www.comsol.asia/community/forums/general/thread/3695/#p9599</link>
   <description>Hello, everyone! &lt;br /&gt;&#13;
I tried to export the model of synchronous generator - generator_2d.mph from AC/DC Module/Motors and Drives of Model library, but it doesn't work. When I try to simulate this model from Simulink it reports about  2 mistakes:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Model error &amp;quot;Java exception occurred: &lt;br /&gt;&#13;
Exception:&lt;br /&gt;&#13;
com.femlab.jni.FlNativeException: Matrix is zero&lt;br /&gt;&#13;
Messages:&lt;br /&gt;&#13;
Matrix is zero&amp;quot;&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
and&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Block error &amp;quot;Error in 'untitled/COMSOL Multiphysics Subsystem/S-Function' while executing M-File S-function 'femsfun', flag = 1 (derivatives), at time 0. MATLAB error message:&lt;br /&gt;&#13;
Java exception occurred: &lt;br /&gt;&#13;
Exception:&lt;br /&gt;&#13;
com.femlab.jni.FlNativeException: Matrix is zero&lt;br /&gt;&#13;
Messages:&lt;br /&gt;&#13;
Matrix is zero&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Stack trace:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
at linearization.cpp, row 2146, ()&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
at com.femlab.solver.Linearization.newMatResSolve(Native Method)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
at com.femlab.solver.Linearization.newMatResSolve(Unknown Source)&amp;quot;, &lt;br /&gt;&#13;
when solver is ode45&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
and another mistake:&lt;br /&gt;&#13;
Model error &amp;quot;Memory allocation failure&amp;quot;, when solver is ode15s&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
When I export this as &amp;quot;General static&amp;quot;, all work good! And in this way I even able to get diagramms of magnetic values time dependend. But for some reason electrical values is possible to get only in General dynamic export...&lt;br /&gt;&#13;
Please help me to make a working general dynamic export of generator_2d to Simulink and to avoid the errors!&lt;br /&gt;&#13;
Thank you a lot!! With best wishes,&lt;br /&gt;&#13;
Konstantin.&lt;br /&gt;&#13;
P.S. Sorry for my English.</description>
   <pubDate>Tue, 09 Mar 2010 17:14:09 +0000</pubDate>
   <guid isPermaLink="false">3695.1268154849.9599</guid>
  </item>
 </channel>
</rss>
