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                            
                            
                                21 feb 2012, 15:38 GMT-5                            
                        
                        
                                                    Hi
Isnt there a copy array feature in the matla calls, as in the GUI ? 
probably it's quicker inside the COMSOL geometrical soler than via a matlb COMSOL link per cercle.
Anyhow, are ther no other way to avoid so many features/entities by some clever symmetry use?
As, your model will become really slow and heavy to handle. 
We have some models with 800-900 entities in 3D, but made within the GUI, you need a minute or two to move up and down, and one should turn OFF the default replotting option in the preferences
--
Good luck
Ivar                                                
                                                
                            Hi
Isnt there a copy array feature in the matla calls, as in the GUI ? 
probably it's quicker inside the COMSOL geometrical soler than via a matlb COMSOL link per cercle.
Anyhow, are ther no other way to avoid so many features/entities by some clever symmetry use?
As, your model will become really slow and heavy to handle. 
We have some models with 800-900 entities in 3D, but made within the GUI, you need a minute or two to move up and down, and one should turn OFF the default replotting option in the preferences
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                15 mag 2012, 19:17 GMT-4                            
                        
                        
                                                    Hello, 
I am trying to do the same thing but with rectangles.  how did you do It in 4.2? I was able to make a geometry array of rectangles in 3.5a but I am trying to do it in 4.2 and I am having trouble since it keeps telling me that a variable with that name already exists.
Error in TEDgeom (line 43)
G{i} = geom2.feature.create('r1{i}','Rectangle');
An object with the given name already exists
	- Name: r1{i}
did you find a way to create the geometry objects without giving them each a unique name?
Thanks for any advice.                                                
                                                
                            Hello, 
I am trying to do the same thing but with rectangles.  how did you do It in 4.2? I was able to make a geometry array of rectangles in 3.5a but I am trying to do it in 4.2 and I am having trouble since it keeps telling me that a variable with that name already exists.
Error in TEDgeom (line 43)
G{i} = geom2.feature.create('r1{i}','Rectangle');
An object with the given name already exists
	- Name: r1{i}
did you find a way to create the geometry objects without giving them each a unique name?
Thanks for any advice.                        
                                                
                                                                                                            
                                             
                                            
                            
                                                                                        
                                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                            
                            
                                16 mag 2012, 09:27 GMT-4                            
                        
                        
                                                    Hi
your variable name is probably "i" that is by default sqrt(-1) the complex "i" try using another name and try to avoid to short (1 lettre names)
--
Good luck
Ivar                                                
                                                
                            Hi
your variable name is probably "i" that is by default sqrt(-1) the complex "i" try using another name and try to avoid to short (1 lettre names)
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                5 giu 2012, 11:24 GMT-4                            
                        
                        
                                                    Hi
I have the same question:
I need to create an array of geometry features, like blocks. 
I use a simple for loop but it shows an error:
That's the syntax I am using:
for a=1:1:100 
   b1{a} = geom1.feature.create ('b1{a}', 'Block');
end
Would you mind telling me the correct syntax to create and array of geometry features?
Many Thanks
                                                
                                                
                            Hi
I have the same question:
I need to create an array of geometry features, like blocks. 
I use a simple for loop but it shows an error:
That's the syntax I am using:
for a=1:1:100 
   b1{a} = geom1.feature.create ('b1{a}', 'Block');
end
Would you mind telling me the correct syntax to create and array of geometry features?
Many Thanks