Gunnar Andersson
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                14 sept. 2015, 02:07 UTC−4                            
                        
                        
                                                    This sounds like a job for the Parametric Curve 2D data set.
                                                
                                                
                            This sounds like a job for the Parametric Curve 2D data set.
                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                14 sept. 2015, 02:26 UTC−4                            
                        
                        
                                                    Thanks for the reply Gunnar. I used the parametric curve 2D but what expressions should i write in the x and y to have a circle. I used the expression r*cos(range(0,0.01,2*pi)) and r*sin(range(0,0.01,2*pi)) for the x and y but the range function does not work it is giving the message of unknown function or operator range.....
Thankssss                                                
                                                
                            Thanks for the reply Gunnar. I used the parametric curve 2D but what expressions should i write in the x and y to have a circle. I used the expression r*cos(range(0,0.01,2*pi)) and r*sin(range(0,0.01,2*pi)) for the x and y but the range function does not work it is giving the message of unknown function or operator range.....
Thankssss                        
                                                
                                                                                                            
                                             
                                            
                            
                                                                                        
                                Gunnar Andersson
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                14 sept. 2015, 02:31 UTC−4                            
                        
                        
                                                    
Thanks for the reply Gunnar. I used the parametric curve 2D but what expressions should i write in the x and y to have a circle. I used the expression r*cos(range(0,0.01,2*pi)) and r*sin(range(0,0.01,2*pi)) for the x and y but the range function does not work it is giving the message of unknown function or operator range.....
The x and y fields expect expressions defined in terms of a parameter. Try the following:
Name: s
Minimum: 0
Maximum: 2*pi
x: r*cos(s)
y: r*sin(s)
                                                
 
                                                
                            [QUOTE]
Thanks for the reply Gunnar. I used the parametric curve 2D but what expressions should i write in the x and y to have a circle. I used the expression r*cos(range(0,0.01,2*pi)) and r*sin(range(0,0.01,2*pi)) for the x and y but the range function does not work it is giving the message of unknown function or operator range.....
[/QUOTE]
The x and y fields expect expressions defined in terms of a parameter. Try the following:
Name: s
Minimum: 0
Maximum: 2*pi
x: r*cos(s)
y: r*sin(s)
                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                14 sept. 2015, 21:58 UTC−4                            
                        
                        
                                                    Thanks i got your point. I tried but it is giving the message 
Cannot evaluate the expression 
Failed to evaluate variable.
 - Variable: s
 - Geometry: 1
 - Boundary: 1 2 4 5 7 8 9 15 53 54 67 77 79 98 99
Failed to evaluate expression.
 - Expression: cos(s)
 - Plot: previewplot1 (Line)                                                
                                                
                            Thanks i got your point. I tried but it is giving the message 
Cannot evaluate the expression 
Failed to evaluate variable.
 - Variable: s
 - Geometry: 1
 - Boundary: 1 2 4 5 7 8 9 15 53 54 67 77 79 98 99
Failed to evaluate expression.
 - Expression: cos(s)
 - Plot: previewplot1 (Line)                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                14 sept. 2015, 22:01 UTC−4                            
                        
                        
                                                    thanks it worked.... thanks alot for the information....                                                
                                                
                            thanks it worked.... thanks alot for the information....