Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Do Cut Point 2D after a parametric sweep computation

Please login with a confirmed email address before reporting spam

comsol version 4.0
1. Define a parameter in Global Definitions, for example "h", and during definition of the Geometry, "h" was used
2. Add Parametric Sweep in Study, and the parameter is "h", the values are h1, h2, and h3 for example
3. After computation, in Results --- Data Sets, I add three Solutions, Solution 1 corresponding to h=h1, Solution 2 corresponding to h=h2, and Solution 3 corresponding to h=h3.
4. After step 3, I add three Cut Point 2D under Results --- Data Sets, and Cut Point 2D 1 corresponding to Solution 1, Cut Point 2D 2 corresponding to Solution 2, Cut Point 2D 3 corresponding to Solution 3. After inputing the Point Data (I used expressions contain "h"), I press the plot button, but a problem occured, i.e. Cut Point 2D 3 can be drawed, but Cut Point 2D 1 and 2 cannot be drawed. It was so strange! I doubted the previous values of "h" were converd by the last value, is it true?

3 Replies Last Post 5 nov 2010, 14:33 GMT-4
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 5 nov 2010, 08:51 GMT-4
Hi

I suspect you have a naming conflict, many single letter characters lower/upper case are already used by Comsol, and COMSOL cannot always tell if you want to change its internal variable or if you are having a naming conflict.

I would avoid "h" and replycit my "my_h" or something more "personal"

It might not be the full story of your case though

--
Good luck
Ivar
Hi I suspect you have a naming conflict, many single letter characters lower/upper case are already used by Comsol, and COMSOL cannot always tell if you want to change its internal variable or if you are having a naming conflict. I would avoid "h" and replycit my "my_h" or something more "personal" It might not be the full story of your case though -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 5 nov 2010, 11:23 GMT-4

Hi

I suspect you have a naming conflict, many single letter characters lower/upper case are already used by Comsol, and COMSOL cannot always tell if you want to change its internal variable or if you are having a naming conflict.

I would avoid "h" and replycit my "my_h" or something more "personal"

It might not be the full story of your case though

--
Good luck
Ivar

Thanks, Ivar!
I tried your method, but it didn't work.
In addition, still the doubt "the last parameter value of h covered the previous two values" that is "after doing parameterized geometry, the values of the parameters for each solution will be the last value", because I can draw Cut Point 2D 3, but not for Cut Point 2D 1 and 2.
[QUOTE] Hi I suspect you have a naming conflict, many single letter characters lower/upper case are already used by Comsol, and COMSOL cannot always tell if you want to change its internal variable or if you are having a naming conflict. I would avoid "h" and replycit my "my_h" or something more "personal" It might not be the full story of your case though -- Good luck Ivar [/QUOTE] Thanks, Ivar! I tried your method, but it didn't work. In addition, still the doubt "the last parameter value of h covered the previous two values" that is "after doing parameterized geometry, the values of the parameters for each solution will be the last value", because I can draw Cut Point 2D 3, but not for Cut Point 2D 1 and 2.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 5 nov 2010, 14:33 GMT-4

Hi

I suspect you have a naming conflict, many single letter characters lower/upper case are already used by Comsol, and COMSOL cannot always tell if you want to change its internal variable or if you are having a naming conflict.

I would avoid "h" and replycit my "my_h" or something more "personal"

It might not be the full story of your case though

--
Good luck
Ivar

Hi, Ivar, my problem is the same as the one in this message www.comsol.com/community/forums/general/thread/9521/#p24680. But I still don't know how to solve it after reading
[QUOTE] Hi I suspect you have a naming conflict, many single letter characters lower/upper case are already used by Comsol, and COMSOL cannot always tell if you want to change its internal variable or if you are having a naming conflict. I would avoid "h" and replycit my "my_h" or something more "personal" It might not be the full story of your case though -- Good luck Ivar [/QUOTE] Hi, Ivar, my problem is the same as the one in this message http://www.comsol.com/community/forums/general/thread/9521/#p24680. But I still don't know how to solve it after reading

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.