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                            
                            
                                2012年5月15日 GMT+8 20:19                            
                        
                        
                                                    Hi
I'm not sure I catch you correctly but with COMSOL, most variables are fields defined per f(x,y,z,t), only global variables (integrated over dx,dy,dz hence only F(t)), are available everywhere.
but  perhaps you are looking for a custom defined dependent variable, in chich case you must add a ODE or a weak expression
--
Good luck
Ivar                                                
                                                
                            Hi
I'm not sure I catch you correctly but with COMSOL, most variables are fields defined per f(x,y,z,t), only global variables (integrated over dx,dy,dz hence only F(t)), are available everywhere.
but  perhaps you are looking for a custom defined dependent variable, in chich case you must add a ODE or a weak expression
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                2012年5月17日 GMT+8 18:10                            
                        
                        
                                                    hi Ivar , 
            i have tried doing that , i added a PDE(c) defining 'u' such that du/dt = (T>=T_vap)  and then used this variable 'u' to calculate material properties for example Cp_steel*(u==0)+Cp_air*(u>0) , but as soon as u>0 (initial value of u was 0 ) , the material property for every element became the same which i don't want . I want that u should be calculated at every node just like Temperature. 
            i hope i am able to explain my problem.
- Hirendra                                                
                                                
                            hi Ivar , 
            i have tried doing that , i added a PDE(c) defining 'u' such that du/dt = (T>=T_vap)  and then used this variable 'u' to calculate material properties for example Cp_steel*(u==0)+Cp_air*(u>0) , but as soon as u>0 (initial value of u was 0 ) , the material property for every element became the same which i don't want . I want that u should be calculated at every node just like Temperature. 
            i hope i am able to explain my problem.
- Hirendra                        
                                                
                                                                                                            
                                             
                                            
                            
                                                                                        
                                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                            
                            
                                2012年5月17日 GMT+8 19:44                            
                        
                        
                                                    Hi
still I do not catch your formulas, probably because for me "u" is a reserved variable name of COMSOL for solid and CFD and other physics. You should try to avoid all single letter variable nemaes, most are already used by COMSOL
Then you must define the PDE as a domain equation and not a global equation, your variable should be a field u(x,y,z,t) and not just u(t)
--
Good luck
Ivar                                                
                                                
                            Hi
still I do not catch your formulas, probably because for me "u" is a reserved variable name of COMSOL for solid and CFD and other physics. You should try to avoid all single letter variable nemaes, most are already used by COMSOL
Then you must define the PDE as a domain equation and not a global equation, your variable should be a field u(x,y,z,t) and not just u(t)
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                2012年5月18日 GMT+8 13:50                            
                        
                        
                                                             Thanks a lot Ivar :)  after using domain ODE i got the results .
        I would like to know how can i make my problem converge faster , any tips ?
Thanks once again 
- Hirendra
                                                 
                                                
                                     Thanks a lot Ivar :)  after using domain ODE i got the results .
        I would like to know how can i make my problem converge faster , any tips ?
Thanks once again 
- Hirendra
                         
                                                
                                                                                                            
                                             
                        
                        
                            
                                                                                        
                                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                            
                            
                                2012年5月18日 GMT+8 15:55                            
                        
                        
                                                    Hi
often  by starting with initial value closer to the result, the solver gets their quicker, but its a type of chicken an egg loop
--
Good luck
Ivar                                                
                                                
                            Hi
often  by starting with initial value closer to the result, the solver gets their quicker, but its a type of chicken an egg loop
--
Good luck
Ivar