Nagi Elabbasi
                                                                                                                                                    Facebook Reality Labs
                                                         
                            
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                11 ago 2011, 17:33 GMT-4                            
                        
                        
                                                    If you want a radial force change the load type of the Boundary Load to Pressure.
Nagi Elabbasi
Veryst Engineering                                                
                                                
                            If you want a radial force change the load type of the Boundary Load to Pressure.
Nagi Elabbasi
Veryst Engineering                        
                                                
                                                                                                            
                                             
                    
                    
                        
                            
                                                                                        
                                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                            
                            
                                13 ago 2011, 13:33 GMT-4                            
                        
                        
                                                    Hi
You can probably also define, in your case, a cylindrical coordinates check the Definitions node
--
Good luck
Ivar                                                
                                                
                            Hi
You can probably also define, in your case, a cylindrical coordinates check the Definitions node
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                    
                    
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                16 ago 2011, 06:21 GMT-4                            
                        
                        
                                                    Thanks, this is exactly what I needed.
Now a different problem, but related: I have defined a cylindrical coordinate system and added a Body Load. I need the Body Load to have an r-component that depends on r. 
By which I mean, Body Load has three components, r, phi, a. For the r component, I have some expression that consists of a bunch of constants multiplied by r. So the force per volume element is (constants)*r.
How do I put "r" into the Body Load force components box?
Thanks                                                
                                                
                            Thanks, this is exactly what I needed.
Now a different problem, but related: I have defined a cylindrical coordinate system and added a Body Load. I need the Body Load to have an r-component that depends on r. 
By which I mean, Body Load has three components, r, phi, a. For the r component, I have some expression that consists of a bunch of constants multiplied by r. So the force per volume element is (constants)*r.
How do I put "r" into the Body Load force components box?
Thanks                        
                                                
                                                                                                            
                                             
                    
                    
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                16 ago 2011, 06:38 GMT-4                            
                        
                        
                                                    [continued]
I should tell you what I have tried.
In the Force-in-r-direction box, I tried typing r, and it doesn't recognize it. I then realized it needs to be in units of N/m^3 as it says to the right of that box, so I multiply r by 1*[N/m^4] in order to just get it in the correct units (so the final expression reads r*1[N/m^4], and it doesn't recognize it. Note that I am leaving out the constants for now, I'm just multiplying by 1 for the sake of getting it working.
Next I try u*1[N/m^4] just for the heck of it even though it's not what I want. It recognizes it! However I don't want u, I want r*1[N/m^4], or sqrt(u^2+v^2)*1[N/m^5] -- where I am again multiplying by 1 with some units to make the final expression be in N/m^3. However now it appears to not like the sqrt. 
So in summary:
WORKS BUT INCORRECT:
u*1[N/m^4] 
u^2*1[N/m^4] 
(u^2+v^2)*1[N/m^4] 
DOESN'T WORK BUT WANT:
r*1[N/m^4]    --- doesn't work due to the "r"
or 
sqrt(u^2+v^2)*1[N/m^4]   --- doesn't work due to the "sqrt"                                                
                                                
                            [continued]
I should tell you what I have tried.
In the Force-in-r-direction box, I tried typing r, and it doesn't recognize it. I then realized it needs to be in units of N/m^3 as it says to the right of that box, so I multiply r by 1*[N/m^4] in order to just get it in the correct units (so the final expression reads r*1[N/m^4], and it doesn't recognize it. Note that I am leaving out the constants for now, I'm just multiplying by 1 for the sake of getting it working.
Next I try u*1[N/m^4] just for the heck of it even though it's not what I want. It recognizes it! However I don't want u, I want r*1[N/m^4], or sqrt(u^2+v^2)*1[N/m^5] -- where I am again multiplying by 1 with some units to make the final expression be in N/m^3. However now it appears to not like the sqrt. 
So in summary:
WORKS BUT INCORRECT:
u*1[N/m^4] 
u^2*1[N/m^4] 
(u^2+v^2)*1[N/m^4] 
DOESN'T WORK BUT WANT:
r*1[N/m^4]    --- doesn't work due to the "r"
or 
sqrt(u^2+v^2)*1[N/m^4]   --- doesn't work due to the "sqrt"                        
                                                
                                                                                                            
                                             
                    
                    
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                16 ago 2011, 09:05 GMT-4                            
                        
                        
                                                    Never mind! Figured it out. 
I had to use x and y rather than u and v, and then it works
Also, My "sqrt" was not incorrect, rather, I typed N/m^5 rather than N/m^4 into comsol.                                                
                                                
                            Never mind! Figured it out. 
I had to use x and y rather than u and v, and then it works
Also, My "sqrt" was not incorrect, rather, I typed N/m^5 rather than N/m^4 into comsol.                        
                                                
                                                                                                            
                                             
                    
                    
    
                        
                            
                                                                                        
                                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                            
                            
                                17 ago 2011, 04:36 GMT-4                            
                        
                        
                                                    Hi
careful with your variables names:
if YOU define a variable r = sqrt(x^2+y^2) you can refer to "r", but if you define a spherical coordinate (default settings) you must refer to "sys2.r" (if its the first coordinate defined else 2 becomes 3, 4 ...)
And do not mess up the "frames" sqrt(x^2+y^2) is different from sqrt(X^2+Y^2), check the doc and play with some simple examples
--
Good luck
Ivar                                                
                                                
                            Hi
careful with your variables names:
if YOU define a variable r = sqrt(x^2+y^2) you can refer to "r", but if you define a spherical coordinate (default settings) you must refer to "sys2.r" (if its the first coordinate defined else 2 becomes 3, 4 ...)
And do not mess up the "frames" sqrt(x^2+y^2) is different from sqrt(X^2+Y^2), check the doc and play with some simple examples
--
Good luck
Ivar