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:
                            
                                2 decades ago                            
                            
                                2009/11/28 3:19 GMT-5                            
                        
                        
                                                    Hi
I'm not sure to have catched all, but for me if you have a time depending function you can use bolean functions to make piecevise Boundary condition variables
 T=T1*(t<1)+T2*(t>=1)*(t<5) ...
to make the transitions smoother and derivable, use rather heaviside functions, you will find them in the Comsol documentation
You can also make global functions and apply them, then at least you should assure that they have defined derivatives
Good luck
Ivar                                                
                                                
                            Hi
I'm not sure to have catched all, but for me if you have a time depending function you can use bolean functions to make piecevise Boundary condition variables
 T=T1*(t=1)*(t                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                2 decades ago                            
                            
                                2009/11/28 4:59 GMT-5                            
                        
                        
                                                    Hi Ivar,
Attached herewith is the model file. 
Here 4 variables are there. At present I am using a single BC and trying to solve. Once it is succesful, I need to use a periodic BC.
First about the present model. I need to put left boundary condition  like this: Yg=0.0195 and Tg=300K. All other  BC are adiabatic & impermiable ie insulated.So is it right to set BC as Dirichlit and specifying h=0.0195 &  h=300 in the respective boxes as done in the file?  Is this right?
Is correct to put all other BCs are Neumann to define as insulated.?( I mean no variation with x)?
Once this is done, I  need to try for periodic BC. This problem I am trying to solve for the period t= 0 to 100. For the period 0-50, BC1(Yg=0.0195 and Tg=300K) to be applied and for period 50-100,BC2(Yg=0.008 and Tg=360K) to be applied. How is  this to be done?
Thanks a lot
Regards
Ramadas
                                                
                                                
                            Hi Ivar,
Attached herewith is the model file. 
Here 4 variables are there. At present I am using a single BC and trying to solve. Once it is succesful, I need to use a periodic BC.
First about the present model. I need to put left boundary condition  like this: Yg=0.0195 and Tg=300K. All other  BC are adiabatic & impermiable ie insulated.So is it right to set BC as Dirichlit and specifying h=0.0195 &  h=300 in the respective boxes as done in the file?  Is this right?
Is correct to put all other BCs are Neumann to define as insulated.?( I mean no variation with x)?
Once this is done, I  need to try for periodic BC. This problem I am trying to solve for the period t= 0 to 100. For the period 0-50, BC1(Yg=0.0195 and Tg=300K) to be applied and for period 50-100,BC2(Yg=0.008 and Tg=360K) to be applied. How is  this to be done?
Thanks a lot
Regards
Ramadas
                        
                                                
                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                2 decades ago                            
                            
                                2009/11/29 22:50 GMT-5                            
                        
                        
                                                    Hi  Niklas/ Ivar
Can anyone  answer this ?
Your reply well appreciated
Regards
Ramadas                                                
                                                
                            Hi  Niklas/ Ivar
Can anyone  answer this ?
Your reply well appreciated
Regards
Ramadas