Discussion Forum

Parametric Geometry: How to select all domains?

Topics: no topics

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   2 Replies   Last post: August 26, 2010 6:14am UTC
Matthias Richwin

Matthias Richwin

August 25, 2010 1:23pm UTC

Parametric Geometry: How to select all domains?

Hi all,

making use of the possibility to have parameters and functions in the geometry definition, I have set up a real parametric model geometry. In this geometry, I duplicate single instances by using the array transform. The array size is one free parameter. Now, in the following step in the sequence, I'd like to add all of the generated objects into one union. This apparently doesn't work when I change the parameter of the array size. Because: I have to select all single result objects of the array transform to put them into the union. If the number of objects changes (especially when they increase), some objects are left out, because they were not known at the time I made the selection.

Anybody understand my explanation?

So, my simple question: Is there a way to tell a union operation to use just all available objects, without having to select them all one by one explicitly?

Regards
Matthias

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg
Moderator

August 25, 2010 2:30pm UTC in response to Matthias Richwin

Re: Parametric Geometry: How to select all domains?

Hi

I do not fully understand if you are in the graphic GUI (then you have Ctrl+A and Ctrl+D to select all, respectively deselect all, in V3.5 as for 4, unfortunately this works ONLY in the graphics window to now, would be nice to have it in the list windowS too ;)

I have noticed too that in V4 the "hide" object allows you to "box select only parts", and you have access to the hidden part list in the "view" model tree node (but there is still no cut&paste, or add selection list (yet ;)

But if you are in matlab/script, you need to keep control of the indirect index lists (I found rather tricky in 3.5, still do not know how to in V4)

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Matthias Richwin

Matthias Richwin

August 26, 2010 6:14am UTC in response to Ivar Kjelberg

Re: Parametric Geometry: How to select all domains?

Hi Ivar,

thanks for your reply. I will try to clarify my point.

Yes, I am in the GUI.

Think of the geometry definition as a sort of graphically defined script to create the geometry. It can make use of global parameters (with COMSOL 4, you can put formulas and parameters everywhere in the geometry definition).

When you change one of the parameters, the geometry changes instantly.

I have attached a simplified example. Please go step by step through the geometry definition and see what happens.

Then change the parameters. If you increase the array sizes n or m, you'll see what I mean.

Regards,
Matthias

Attachments:   Demo Parametric Geometry.mph  

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines