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                            
                            
                                2010年12月10日 GMT+8 14:27                            
                        
                        
                                                    Hi
most probably because "rho" is defined alread inside COMSOl for the material density. Read the errorlist from bottom to top, he first error was "rho". But I might be wrong, it's just my first guess ;)
COMSOL does not always flag when you use and redefine an internal variable, bacause its "allowed" and required if you are tweaking the equations, you are supposed to be the "master" and to know ... it's just that there are som many things to "know" when you mix up all these physics so nicely ...
--
Good luck
Ivar                                                
                                                
                            Hi
most probably because "rho" is defined alread inside COMSOl for the material density. Read the errorlist from bottom to top, he first error was "rho". But I might be wrong, it's just my first guess ;)
COMSOL does not always flag when you use and redefine an internal variable, bacause its "allowed" and required if you are tweaking the equations, you are supposed to be the "master" and to know ... it's just that there are som many things to "know" when you mix up all these physics so nicely ...
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                                            
                            
                                                                                        
                                Magnus Ringh
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                2010年12月10日 GMT+8 15:54                            
                        
                        
                                                    Hi,
The problem here is that global equations and variables cannot depend on space coordinates such as x and y.
It seems that you define u = rho, where rho is a function of x and y. You can define rho using a domain variable (in version 4) or a subdomain expression variable (in  version 3.5) without any equation. If you want u as a dependent variable, you can solve u = rho as a very simple PDE in the domain.
Best regards,
Magnus Ringh, COMSOL
                                                
                                                
                            Hi,
The problem here is that global equations and variables cannot depend on space coordinates such as x and y.
It seems that you define u = rho, where rho is a function of x and y. You can define rho using a domain variable (in version 4) or a subdomain expression variable (in  version 3.5) without any equation. If you want u as a dependent variable, you can solve u = rho as a very simple PDE in the domain.
Best regards,
Magnus Ringh, 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                            
                            
                                2010年12月10日 GMT+8 16:32                            
                        
                        
                                                    Hi
should also have taught about that one, you have told me that before Magnus ;)
--
Good luck
Ivar                                                
                                                
                            Hi
should also have taught about that one, you have told me that before Magnus ;)
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                2010年12月12日 GMT+8 21:37                            
                        
                        
                                                    Hi, Magnus
Thank you for your reply.
Indeed, I should solve the nonlinear equations like
r=f(rp,thetap,theta)
theta=g(rp,thetap)
where r=sqrt(x^2+y^2) and theta=angle(x+i*y) are the polar coordinates in certain domain, respectively. f and g are known nonlinear functions. The equations is actually a transformation from (rp,thetap) to (r,theta). And the problem is that for give postion (x,y) (or (r,theta)) in certain domain, (rp,thetap) should be calculated and then the Jacobian
?r/?rp ?r/?thetap
?theta/?rp ?theta/?thetap
or
|?x/?xp ?x/?yp|
|?y/?xp ?y/?yp|
where xp=rp*cos(thetap) and yp=rp*sin(thetap), respectively.
Best regards,
rediaof eda
                                                
                                                
                            Hi, Magnus
Thank you for your reply.
Indeed, I should solve the nonlinear equations like
r=f(rp,thetap,theta)
theta=g(rp,thetap)
where r=sqrt(x^2+y^2) and theta=angle(x+i*y) are the polar coordinates in certain domain, respectively. f and g are known nonlinear functions. The equations is actually a transformation from (rp,thetap) to (r,theta). And the problem is that for give postion (x,y) (or (r,theta)) in certain domain, (rp,thetap) should be calculated and then the Jacobian
?r/?rp ?r/?thetap
?theta/?rp ?theta/?thetap
or
|?x/?xp ?x/?yp|
|?y/?xp ?y/?yp|
where xp=rp*cos(thetap) and yp=rp*sin(thetap), respectively.
Best regards,
rediaof eda
                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                2013年11月21日 GMT+8 19:30                            
                        
                        
                                                    Dear Magnus
I have the same problem " Failed to evaluate variable Jacobian, Global scope " But I dont habe actually any global  variables...
I had a simulation with AC/DC which simulates Three-phase electric power and it wokrd.
I modified the simlation so that i inserted an electrical circuit which replaces the 3 voltage sources for the 3 phase and after this it dosent work anymore.. I cant find a reason for it                                                 
                                                
                            Dear Magnus
I have the same problem " Failed to evaluate variable Jacobian, Global scope " But I dont habe actually any global  variables...
I had a simulation with AC/DC which simulates Three-phase electric power and it wokrd.
I modified the simlation so that i inserted an electrical circuit which replaces the 3 voltage sources for the 3 phase and after this it dosent work anymore.. I cant find a reason for it