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                            
                            
                                22 déc. 2010, 08:17 UTC−5                            
                        
                        
                                                    Hi
In v4 red is an error in the formula (might be your use of u,v,w that are already used internally by COMSOL => variable name conflict). orange is a unit error. note that most functions sin, cos analyitcal ... requires dimensonless inputs ad are dimensonless at output, so
sin(20*pi*t) 
is wrong as it should read 
sin((20*pi)[1/s]*t) 
or 
sin(20*pi*t[1/s])
--
Good luck
Ivar                                                
                                                
                            Hi
In v4 red is an error in the formula (might be your use of u,v,w that are already used internally by COMSOL => variable name conflict). orange is a unit error. note that most functions sin, cos analyitcal ... requires dimensonless inputs ad are dimensonless at output, so
sin(20*pi*t) 
is wrong as it should read 
sin((20*pi)[1/s]*t) 
or 
sin(20*pi*t[1/s])
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                22 déc. 2010, 13:48 UTC−5                            
                        
                        
                                                    Dear sir, 
               Thanks a lot for the help.Eventhough it was a simpe mistake(but serious) I couldn't figure out.
                S.M.Ananth                                                
                                                
                            Dear sir, 
               Thanks a lot for the help.Eventhough it was a simpe mistake(but serious) I couldn't figure out.
                S.M.Ananth                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                22 déc. 2010, 16:20 UTC−5                            
                        
                        
                                                    Hi Ivar,
I am using a function loaded from a .txt file. The name of the function is say fheat and in the .txt file it is given as:
%x y z fheat
0       0      0      1
0.1    0      0       1
..... etc.
Now, when I am using this function (fheat) in the COMSOL model, I get an 'inconsistent unit' warning. I am expecting that this function should be unitless because I haven't specified otherwise. Any thoughts?
Thanks much,
Deb                                                
                                                
                            Hi Ivar,
I am using a function loaded from a .txt file. The name of the function is say fheat and in the .txt file it is given as:
%x y z fheat
0       0      0      1
0.1    0      0       1
..... etc.
Now, when I am using this function (fheat) in the COMSOL model, I get an 'inconsistent unit' warning. I am expecting that this function should be unitless because I haven't specified otherwise. Any thoughts?
Thanks much,
Deb                        
                                                
                                                                                                            
                                             
                                            
                            
                                                                                        
                                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                            
                            
                                22 déc. 2010, 16:41 UTC−5                            
                        
                        
                                                    Hi
how do you call it up ? 
if you use yourFunction(x,y,z) the three x,y,z have units, but COMSOL would expect none so here to you should use:
 yourFunction(x[1/m],y[1/m],z [1/m])
or whatever fits. Anyhow units orange warnings are not errors and Comsol solves further anyhow, it is just telling us that here there might be something wrong
--
Good luck
Ivar                                                
                                                
                            Hi
how do you call it up ? 
if you use yourFunction(x,y,z) the three x,y,z have units, but COMSOL would expect none so here to you should use:
 yourFunction(x[1/m],y[1/m],z [1/m])
or whatever fits. Anyhow units orange warnings are not errors and Comsol solves further anyhow, it is just telling us that here there might be something wrong
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                28 déc. 2010, 15:33 UTC−5                            
                        
                        
                                                    Ivar, Just wanted to let you know that your advice worked perfectly. Thanks!
DD                                                
                                                
                            Ivar, Just wanted to let you know that your advice worked perfectly. Thanks!
DD