<?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.co.in/community/forums/general/rss/thread/3740.rss" rel="self" type="application/rss+xml"/>
  <title>COMSOL Forums: parameter problem</title>
  <link>http://www.comsol.co.in/community/forums/general/thread/3740/</link>
  <description>Most recent forum messages</description>
  <pubDate>Fri, 12 Mar 2010 19:43:46 +0000</pubDate>
  <image>
   <title>COMSOL Forums: parameter problem</title>
   <url>http://www.comsol.co.in/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.co.in/community/forums/general/thread/3740/</link>
  </image>
  <item>
   <title>Re: parameter problem</title>
   <link>http://www.comsol.co.in/community/forums/general/thread/3740/#p9850</link>
   <description>Hi Sabine&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Well for me there is something else wrong, you might have picked a variable already defined in COMSOL ? which then might have &amp;quot;units&amp;quot; associated.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
My way to check this, as it happens often, is to define a simple model (square) in the given application mode, run a &amp;quot;get initial value&amp;quot; to populate the matrices and go into the postpro session and plot/evaluate the value of the variable name, if COSMOL recognises it, it will even show you the associated units.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Or you dump the model as a &amp;quot;m&amp;quot; file and you do a txt search for your variable name.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
It's true that I seldom use two parameters, but I have never had difficulties with the first one, it's unitless for me ;)&lt;br /&gt;&#13;
at least when I call it &amp;quot;param or param_1&amp;quot; and that I have not defined it as such anywhere else.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Short note/trick: when i switch between stationary an parameric solving, I often define a Constant as param = 0 or what ever else I need. As the Constants are evaluated once at programme start the, value will be overwritten later if I use it, and take a &amp;quot;default&amp;quot; value handy for me if not used later. This avoids the need to re-write all equations when you switch between the different applications modes.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
If I remeber right (my COMSOL licence is fully booked by a colleague, connot try just now ;) the order of the parameters when you use several is 1.1 1.2 2.1 2.2 3.1 3.2 alternatively. Try a simple check by using it as an x &amp;amp; y forced displacement of a simple canteliever, or something else simple enough to rapidly test it out.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Good luck&lt;br /&gt;&#13;
Ivar</description>
   <pubDate>Fri, 12 Mar 2010 19:43:46 +0000</pubDate>
   <guid isPermaLink="false">3740.1268423026.9850</guid>
  </item>
  <item>
   <title>Re: parameter problem</title>
   <link>http://www.comsol.co.in/community/forums/general/thread/3740/#p9817</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
thanks for the answer. I tried your suggestion: Fx = (1000[N])*param and also: Fx=param[N])&lt;br /&gt;&#13;
but I am still having the same problem. The error meassage didn't disappear. Is there any possibility to check as which unit my parameters are handled? &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Yes, I also thought that even when the units don't agree, the solution should be all right.&lt;br /&gt;&#13;
But yesterday I solved first with the parameter solver (for only one parameter set) and after inserted the values directly in the equations and solved again. However I didn't get any deformation in the first case, only in the second one.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Apart from that, what I am wondering about: &lt;br /&gt;&#13;
Does the solver evaluate each parameter set from the initial geometry or is (from the second parameters set on) the geometry used from the former parameters set?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
regards, Sabine   &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Fri, 12 Mar 2010 10:25:42 +0000</pubDate>
   <guid isPermaLink="false">3740.1268389542.9817</guid>
  </item>
  <item>
   <title>Re: parameter problem</title>
   <link>http://www.comsol.co.in/community/forums/general/thread/3740/#p9778</link>
   <description>Hi&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
If you define a parameter in the solver window of name &amp;quot;param&amp;quot; it should not have units, I agree.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
When you define a force in the BC window such as Fx=MyFx*param you should define MyFx as the amplitude with units in i.e. the constants, and then &amp;quot;param&amp;quot; without units is OK&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
But you can also write Fx = (1000[N])*param   or even Fx=param[N] &lt;br /&gt;&#13;
(pls check the last one I d not have access to COMSOL just now from here)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
But Fx=param would give an unit error if param has no units, but this is normally just a warning, the results should still be OK if your param values are truely expressing the value you want in oyur units&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I use &amp;quot;param&amp;quot; mostly from &amp;quot;0 to 1&amp;quot; and have amplitude values defined as constants, as that is the cleanest for later understanding of the model&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Hope this helps&lt;br /&gt;&#13;
Good luck&lt;br /&gt;&#13;
Ivar</description>
   <pubDate>Fri, 12 Mar 2010 06:17:48 +0000</pubDate>
   <guid isPermaLink="false">3740.1268374668.9778</guid>
  </item>
  <item>
   <title>parameter problem</title>
   <link>http://www.comsol.co.in/community/forums/general/thread/3740/#p9704</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I have a problem with the parametric solver. The two parameters which I defined under &amp;quot;solver parameters...&amp;quot; --&amp;gt; &amp;quot;parameter name&amp;quot; are not recognized by Comsol.&lt;br /&gt;&#13;
If I enter the parameter(s) e.g. in a force in the boundary mode, the field highlights an unexpected unit. (But the parameter shouldn't have any units, should it?!)&lt;br /&gt;&#13;
Well, and if I ignore this message and solve the model, than I do not get a solution, i.e. there is no deformation, because no force was applied.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
If there is somebody having an idea what could be wrong, please tell me. Thanks.</description>
   <pubDate>Thu, 11 Mar 2010 15:49:27 +0000</pubDate>
   <guid isPermaLink="false">3740.1268322567.9704</guid>
  </item>
 </channel>
</rss>
