<?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.fr/community/forums/livelinks/rss/feed.rss" rel="self" type="application/rss+xml"/>
  <title>LiveLinks - Latest Discussions - COMSOL Forums</title>
  <link>http://www.comsol.fr/community/forums/</link>
  <description>Most recent forum discussions</description>
  <pubDate>Tue, 22 May 2012 01:46:59 +0000</pubDate>
  <image>
   <title>LiveLinks - Latest Discussions - COMSOL Forums</title>
   <url>http://www.comsol.fr/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.fr/community/forums/</link>
  </image>
  <item>
   <title>How to apply diffusion coefficient of PDE at node point</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28779/</link>
   <description>&lt;br /&gt;&#13;
I am working on an inverse problem solving.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
1)I used coefficient form PDE for forward solving &lt;br /&gt;&#13;
2)Obtained the solution in matlab and calculated new updated diffusion coefficient at each nodes&lt;br /&gt;&#13;
3)Now I want to apply this value of diffusion coefficient the nodes and solve the PDE again.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Please help me in solving this problem </description>
   <pubDate>Tue, 22 May 2012 01:46:59 +0000</pubDate>
   <guid isPermaLink="false">.1337651219.28779</guid>
  </item>
  <item>
   <title>importer les codes comsol sur matlab et les executer !!!</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28643/</link>
   <description>&lt;br /&gt;&#13;
Bonjour,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Merci pour votre attention de repondre a mon message.&lt;br /&gt;&#13;
Enfait j'ai pas encore resolu le probleme.meme avecle guide de LiveLink for Matlab.&lt;br /&gt;&#13;
Apres sauvegarder le ficher sous m.file et ouvrir COMSOL with matlab j'arrive pas a executer mon programme.&lt;br /&gt;&#13;
Est ce que vous pouvez me guider SVP(démonstration détailler).je suis débutante avec ces logiciel.&lt;br /&gt;&#13;
Je vous envoie le ficher m.file .&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Merci d'avance&lt;br /&gt;&#13;
Cordialement  &lt;br /&gt;&#13;
Mariem&lt;br /&gt;&#13;
</description>
   <pubDate>Wed, 16 May 2012 06:05:44 +0000</pubDate>
   <guid isPermaLink="false">.1337148344.28643</guid>
  </item>
  <item>
   <title>Problem with revolve object and matlab</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28537/</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I'm trying to make a basic horn by revolving a 2D exponential curve around an axis. If i make it in Comsol, the revolving operation works fine. But if I use Matlab, it doesn't want to set the right revolving axis, no matter what I do.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I used &amp;quot;Save as model M-file&amp;quot; to generate the matlab file. So, it should do exactly the same as in Comsol. I don't understand why it gives this result. I attached the Comsol file and the Matlab file generated from it.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Do I need to set an additional parameter in Matlab ? Is there a trick to make it work ?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Ugo&lt;br /&gt;&#13;
</description>
   <pubDate>Fri, 11 May 2012 07:22:27 +0000</pubDate>
   <guid isPermaLink="false">.1336720947.28537</guid>
  </item>
  <item>
   <title>Enquiry on Livelinks for Matlab</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28421/</link>
   <description>Dear Mr Lars,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I'm using COMSOL 4.2a in my lab, and I have no problem with simple examples in extracting data from COMSOL to matlab.&lt;br /&gt;&#13;
The thing is, when I try to use a more complicated model, I just cannot get any values of any variable!!!&lt;br /&gt;&#13;
I posted it on this page: http://www.comsol.dk/community/forums/general/thread/28413/#p77051&lt;br /&gt;&#13;
The mph and m file is also attached there.&lt;br /&gt;&#13;
Could you please spend some time to help me out？&lt;br /&gt;&#13;
I'm looking forward to your reply.&lt;br /&gt;&#13;
Thank you very much!&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Best regards,&lt;br /&gt;&#13;
Di Kai</description>
   <pubDate>Mon, 07 May 2012 11:26:32 +0000</pubDate>
   <guid isPermaLink="false">.1336389992.28421</guid>
  </item>
  <item>
   <title>License error using livelink matlab</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28415/</link>
   <description>Hello community! &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I would like to share a problem with you.. because you might have a suggestion. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am running comsol with matlab. I have a for loop in matlab and for each iteration it runs the following command to solve the comsol model.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
model.study('std1').run; &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
The problem comes that every time it runs the the line, it opens a new license. Since I am student and I am running with the server of the university, it opens so many files that crashes the server... &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
My question is: Is there any command to free this license? or something like saving the model to stop this problem? &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
thanks.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Matias</description>
   <pubDate>Mon, 07 May 2012 10:07:02 +0000</pubDate>
   <guid isPermaLink="false">.1336385222.28415</guid>
  </item>
  <item>
   <title>How to form Jacobian</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28341/</link>
   <description>I have measurement nodes in my geometry,I want to form a Jacobian matrix which has change in measurement value with respect to change in coefficient of pde at individual node position.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Please help me solving the problem. </description>
   <pubDate>Thu, 03 May 2012 18:34:50 +0000</pubDate>
   <guid isPermaLink="false">.1336070090.28341</guid>
  </item>
  <item>
   <title>MATLAB functions in comsol</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28323/</link>
   <description>Hello...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I defined a MATLAB function in global definitions with argument T&lt;br /&gt;&#13;
i created function.m file in matlab and saved both .mph and .m file in the same folder..&lt;br /&gt;&#13;
and i set the matlab path to point the same folder..&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
when i am trying to execute ..gives the error ' Function is not found'..&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Is there any steps i am missing..&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
i follwed in comsol 4.1.. 1.define MATLAB function and arguments in comsol&lt;br /&gt;&#13;
2. create .m file in matlab&lt;br /&gt;&#13;
3. set the matalb working path to the folder where .mph and .m files are saved.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
can any one suggest how to make comsol to find the matlab function..&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
thanks&lt;br /&gt;&#13;
pavan</description>
   <pubDate>Thu, 03 May 2012 10:33:25 +0000</pubDate>
   <guid isPermaLink="false">.1336041205.28323</guid>
  </item>
  <item>
   <title>Insulation problem when importing model from Inventor Autodesk</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28179/</link>
   <description>Hello,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I have made a 3D model in Inventor Autodesk, as an assembly consisting of three parts. I use LiveLink to import the model to Comsol V4.2. Everything seems to be ok, I get no errors or warnings and I can simulate the model. The problem is that the boundary condition &amp;quot;Insulation&amp;quot; is placed upon all my interior boundaries and I cannot remove them. Why is that, and can I remove them somehow?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks in advance!&lt;br /&gt;&#13;
Marie</description>
   <pubDate>Fri, 27 Apr 2012 04:44:59 +0000</pubDate>
   <guid isPermaLink="false">.1335501899.28179</guid>
  </item>
  <item>
   <title>converting COMSOL code to the MATLAB ???</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28149/</link>
   <description> Hello,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I'm working with COMSOL to simulate a chemical  experience, but it takes too much time to display the results.&lt;br /&gt;&#13;
So i want to find a link between comsol and matlab if i can convert the code of comsol to matlab that will be faster than using comsol alone !!!&lt;br /&gt;&#13;
So am asking if i can do this and how ????&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
watting your answer &lt;br /&gt;&#13;
thank you very much :)&lt;br /&gt;&#13;
</description>
   <pubDate>Thu, 26 Apr 2012 11:21:43 +0000</pubDate>
   <guid isPermaLink="false">.1335439303.28149</guid>
  </item>
  <item>
   <title>Saving plot from mphplot() to disk</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/28023/</link>
   <description>Hi,&lt;br /&gt;&#13;
I'm having a hard time trying to save a plot which comes from mphplot(). What I'm trying is:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
figure;&lt;br /&gt;&#13;
mphplot(model,'pg3');&lt;br /&gt;&#13;
saveas(gcf,'result_plot.tiff');&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
But it just produces an error 'Warning: RGB color data not yet supported in Painter's mode'. So I guess it's an issue with the renderer Matlab uses. Changing the renderer with set(gcf,'Renderer','zbuffer');  does seems not to work.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Is there an easy way to save a Comsol Plot to disk?</description>
   <pubDate>Sun, 22 Apr 2012 20:05:49 +0000</pubDate>
   <guid isPermaLink="false">.1335125149.28023</guid>
  </item>
  <item>
   <title>Livelink for Matlab and COMSOL v4.2a   Meshing and Solution not synchronized...</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/27882/</link>
   <description>I have not found any discussion on this topic yet and I am having difficulty finding anyone in COMSOL support in North America that can help with this problem today.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Basically, I simply want to take a solution from COMSOL, import it into MATLAB and plot the solution on the mesh within MATLAB.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
For an example problem:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
1) I solve the 1D Helmholtz equation on a line segment from x=0...1, with Dirichlet boundary conditions at both ends.&lt;br /&gt;&#13;
    ***  I use the PDE Coefficient form setting the source term to zero (c=1,d_a=1,f=0).  On a side note, I have tried to use the Helmholtz Equ &amp;quot;classic PDE&amp;quot; and it doesn't work (setting f=0) as it claims the &amp;quot;mass matrix is zero&amp;quot; - which is true, however, unnecessary when solving a sourceless problem (COMSOL please fix this).&lt;br /&gt;&#13;
   *** I have also solved this for 2D and 3D as well, the problem I am describing still exists, but is harder to track down, read on....&lt;br /&gt;&#13;
2)  Either export the solution to comsolserver or save the model as an mph file.&lt;br /&gt;&#13;
3)  In Matlab (started from COMSOL with LiveLink for Matlab), load in the 1d Helmholtz solution:&lt;br /&gt;&#13;
   either use:  &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
   fem1 = mphload('filename')  &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
  or use   &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
   fem1 =  ModelUtil.model('Model');&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
4)  load the solution vector (eigenvector) using either:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
soltranspose  = fem1.sol('sol1').getU(1);&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
or&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
soltranspose2 = mphgetu(fem1,'solnum',1)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
5) load in the mesh using:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
mesh1 = mphxmeshinfo(fem1,'solname', 'sol1');&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
6) set some variables for the x and y coordinates of the mesh (if you have a 2D mesh), if you have a 1D mesh, then only use the x coordinate:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
xxx = mesh1.nodes.coords(1,:);&lt;br /&gt;&#13;
yyy = mesh1.nodes.coords(2,:);&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
it is good at this point to look at the mesh to verify that it is the same as in COMSOL:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
plot(xxx,yyy,'.')&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
It looks good!&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
7) ****  It is interesting to note that the solution vector coming from mphgetu is a column vector, but the mesh vector is a row vector.  For this reason, I take the transpose of the solution vector to make it the same dimensions as the mesh vector.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
8)  Now, try to plot the solution for the 1D case:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
solu = soltranspose';&lt;br /&gt;&#13;
plot(solu)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
It looks good, like the correct answer should look, a half-wavelength eigenmode (the lowest mode).&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
9)  Now try to plot the solution for the 1D case at the positions of the mesh:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
plot(xxx,solu)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
PROBLEM!  The positions of the mesh are NOT ALIGNED with the solution vector.  Although they both have the same size, the ordering of the mesh vector is not aligned to the ordering of the solution vector.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
This is obvious when looking at the 1D solution to the Helmholtz equation, but is harder to trace when looking at a 2D or 3D solution.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
So, WHY would you want to do this?  In other words, why would I like to have total control over a solution from COMSOL?  Simple, what if I wanted to perform my own ortho-normalization calculation.  In this case, I would need to know the area around each point in the solution so that I could properly weight the integration (quadrature).  There are many other reasons why I need to have the solution vector properly coordinated with the mesh, but that is the most obvious reason.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Any thoughts?  Is there a property to the &amp;quot;mphxmeshinfo&amp;quot; structure that gives me the correct order for the mesh vector?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Help me Obiwan....&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
-KLM&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Tue, 17 Apr 2012 18:40:34 +0000</pubDate>
   <guid isPermaLink="false">.1334688034.27882</guid>
  </item>
  <item>
   <title>The current on a section of a 3D model</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/26836/</link>
   <description>hello,&lt;br /&gt;&#13;
i have a problem with the calculation of current in one section of a 3D model (v.4.2).&lt;br /&gt;&#13;
My model is imported with LiveLinks SolidWorks.&lt;br /&gt;&#13;
I have a three-dimensional model on which inject current from two electrodes. I would like to calculate how to distribute the current in the model and, in particular, how much current is distributed over a section given.&lt;br /&gt;&#13;
How do I calculate it?&lt;br /&gt;&#13;
Thank you so much.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Chiara</description>
   <pubDate>Sun, 11 Mar 2012 14:48:20 +0000</pubDate>
   <guid isPermaLink="false">.1331477300.26836</guid>
  </item>
  <item>
   <title>Creating geometry features with LiveLink for Matlab</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/26306/</link>
   <description>What is the most efficient way of cutting a large number (&amp;gt;1000) circles out of a rectangle using LiveLink for Matlab?&lt;br /&gt;&#13;
I do it in a simple &amp;quot;for&amp;quot;-loop, but the program slows down with an increasing number of circles.&lt;br /&gt;&#13;
Is there a more efficient way?&lt;br /&gt;&#13;
Thanks!</description>
   <pubDate>Tue, 21 Feb 2012 13:53:10 +0000</pubDate>
   <guid isPermaLink="false">.1329832390.26306</guid>
  </item>
  <item>
   <title>How to choose the MATLAB version that ran by &quot;COMSOL 4.2 with MATLAB&quot;?</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/26095/</link>
   <description>Hello all,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I have two versions of MATLAB on my computer, R2010a and R2011b. When I launch the COMSOL 4.2 with MATLAB shortcut (C:\COMSOL42\bin\win64\comsolserver.exe matlab), R2010a is launched. I am wondering if there is a way to let this shortcut and LiveLink run R2011b instead of R2010a.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Best,&lt;br /&gt;&#13;
Kan</description>
   <pubDate>Mon, 13 Feb 2012 19:31:28 +0000</pubDate>
   <guid isPermaLink="false">.1329161488.26095</guid>
  </item>
  <item>
   <title>Comsol Matlab script invoking Matlab external function</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/25568/</link>
   <description>Hi everyone,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I hope someone will be able to help me with this. So basically what I am doing is I am using comsol to solve a pde with an external matlab function. When I run my model through the comsol gui, I can invoke this function without any problem and I obtain a fine solution. &lt;br /&gt;&#13;
The problems comes when I save my model as a .m file and then try to run the matlab generated script through matlab. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Basically, I get the error:&lt;br /&gt;&#13;
can not start Matlab ()&lt;br /&gt;&#13;
	- Library: /somepath/flmatlab.so&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Note that I am running linux, but this shouldn't be a problem. So I think the problem comes because in the matlab generated script, an external matlab function is defined through something similar to: model.func.create('extm1', 'MATLAB');&lt;br /&gt;&#13;
and when it comes time to call this function, the script tries for some reasons to run another instance of matlab and fails. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I have been able to run Comsol matlab model script through matlab without any problem when I wasn't using any &amp;quot;external matlab&amp;quot; function.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
So does anyone know a way to circumvent this problem? I need the matlab generated script because I need more control on what's going in Comsol, namely, I would like to deal with matlab global variables between my matlab function and the matlab workspace. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
So how do I tell my script not to try to run another instance of matlab or how do I tell it that it doesn't need to do so in order to call this function? &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks for the help. </description>
   <pubDate>Sun, 22 Jan 2012 18:01:04 +0000</pubDate>
   <guid isPermaLink="false">.1327255264.25568</guid>
  </item>
  <item>
   <title>Out of Memory while creating mesh!!</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/25322/</link>
   <description>Hi,&lt;br /&gt;&#13;
I am trying to create a 2D model, wherein I import geometry from AutoCad. &lt;br /&gt;&#13;
The Problem is that the geometry is so huge,  that I cannot form mesh on it, even with a very high element size.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Now, I cannot use symmetry BC, because it isnt symmetric bout any axis and I cannot scale it or redesign it.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
So is there any way, I can solve this?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Is there a way to increase the memory allotment of comsol?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Will running the program on a supercomputer cluster help solve the problem?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thank you,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
-Rohan.</description>
   <pubDate>Wed, 11 Jan 2012 02:37:36 +0000</pubDate>
   <guid isPermaLink="false">.1326249456.25322</guid>
  </item>
  <item>
   <title>COMSOL embedded in solidworks</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/25151/</link>
   <description>&lt;br /&gt;&#13;
HI,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
recently, my Solidworks2012 was installed. COMSOL has a livelink with it.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
a good feature is could embedded COMSOL in the solidworks interface.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
for my situation is, COMSOL could import 3D model from solidworks, but cannot embeded it inside solidworks.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
the instruciton shows open the COMSOL tab in the commond manager, but I didn't see it at all.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
the livelink add-in was actived in solidworks.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
is there anyone could help me ?&lt;br /&gt;&#13;
thanks&lt;br /&gt;&#13;
 &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
--&lt;br /&gt;&#13;
learn COMSOL, like COMSOL</description>
   <pubDate>Sat, 31 Dec 2011 03:47:25 +0000</pubDate>
   <guid isPermaLink="false">.1325303245.25151</guid>
  </item>
  <item>
   <title>accessing MATLAB global variables when running models in MATLAB </title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/25049/</link>
   <description>I have defined an external function in matlab that I use in my Comsol/Matlab livelink model to set a volume heat source, let's call this function my_heat(x,y,z), where x,y,z are comsol spatial variables. &lt;br /&gt;&#13;
Everything works fine with this (comsol passes x,y,z vectors and matlab returns heat source values based on this, and the model is set up and solved)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Now, I tried to use some global MATLAB variables within the 'my_heat' function. When I run function in MATLAB the variables and their values are accessible in 'my_heat'. However, when the same function is called by COMSOL as part of setting the physics, it seems 'my_heat' does not recognize these variables.&lt;br /&gt;&#13;
  &lt;br /&gt;&#13;
I think I know what the problem is,  but don't know the solution to it:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
When the model is run from Matlab, Comsol seem to open another instance of MATLAB (as manifested by a second command window). This seems like the place where all the Comsol/Matlab interfacing happens. No wonder that in this new instance of Matlab, the information about any global variables in the main Matlab window is missing. &lt;br /&gt;&#13;
Any ideas on how to 'pass'  all the info from the main Matlab window  to this auxiliary one? &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks, &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
  Robert&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
P.S.: On an unrelated note, I discovered that by typing 'clear functions' in this new matlab window, I can have comsol get the updated version of any edits to my matlab fuinctions. Without this, comsol only has the first version of external functions. Typing 'clear functrions' in the main matlab window doesn't maker any difference.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Thu, 22 Dec 2011 16:59:41 +0000</pubDate>
   <guid isPermaLink="false">.1324573181.25049</guid>
  </item>
  <item>
   <title>import complex 3D geometry internal error code 900 / boolean operation failed</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/19033/</link>
   <description>Hi everyone,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am trying to import a complex 3D geometry into COMSOL 4.0a.  I've created it using CATIA (R19). The file format to be imported is .stp. Also, I do have access to the CAD import tool. The model consists of four domains that, once united, have a cylindrical shape. The interfaces between the domains, however, are very complex and irregular. I can import each domain separately (and form a union for each domain individually). However, once i try to form a union between all four domains I obtain the following error message: &amp;quot;Boolean operation failed&amp;quot;. In a different thread I read that this might be due to the repair tolerance. Hence, I played with the import tolerances. Now, however, I obtain another error message: &amp;quot;Internal error in geometry processing internal error code: 900&amp;quot;. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
My questions:&lt;br /&gt;&#13;
===========&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
1. I am dealing with a coupled fluid structure problem (using &amp;quot;acsl&amp;quot; toolbox), is it 100% necessary to form a union or will an assembly do the trick as well?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
2. If I need to form a union, why do I get the outlined error messages and what can I do to fix the problem (I am almost 100% sure that my geometry is correct and that the domain interfaces are error free)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks you very much in advance&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Martin</description>
   <pubDate>Mon, 06 Jun 2011 13:10:25 +0000</pubDate>
   <guid isPermaLink="false">.1307365825.19033</guid>
  </item>
  <item>
   <title>Comsol 4.2</title>
   <link>http://www.comsol.fr/community/forums/livelinks/thread/18400/</link>
   <description>For your informations,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I just received an email for a free workshop on COMSOL Multiphysics Version 4.2 at montreal in one week. We should receive the cd soon!&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Wed, 18 May 2011 14:34:09 +0000</pubDate>
   <guid isPermaLink="false">.1305729249.18400</guid>
  </item>
 </channel>
</rss>

