Jeff Hiller
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                10 years ago                            
                            
                                19 févr. 2016, 08:43 UTC−5                            
                        
                        
                                                    The first thing I would look at is whether your initial value for the dependent variable is consistent with some of the boundary conditions. If the two are not consistent, at t=0 there will be a gradient in that dependent variable in the first element next to the boundary in question, as the software tries to reconcile the conflicting requirements, and that will cause the average to be different from the initial value specified. 
If that's the problem, then the solution is to fix the underlying problem, i.e. to specify boundary conditions that are consistent with the initial condition (or vice versa, depending on the physical situation you are trying to model). For instance you could specify a time dependent boundary condition that ramps up from the initial value to a different value over a short period of time.
Just a thought. There could be other reasons.
Jeff                                                
                                                
                            The first thing I would look at is whether your initial value for the dependent variable is consistent with some of the boundary conditions. If the two are not consistent, at t=0 there will be a gradient in that dependent variable in the first element next to the boundary in question, as the software tries to reconcile the conflicting requirements, and that will cause the average to be different from the initial value specified. 
If that's the problem, then the solution is to fix the underlying problem, i.e. to specify boundary conditions that are consistent with the initial condition (or vice versa, depending on the physical situation you are trying to model). For instance you could specify a time dependent boundary condition that ramps up from the initial value to a different value over a short period of time.
Just a thought. There could be other reasons.
Jeff                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                10 years ago                            
                            
                                22 févr. 2016, 06:34 UTC−5                            
                        
                        
                                                    
The first thing I would look at is whether your initial value for the dependent variable is consistent with some of the boundary conditions. If the two are not consistent, at t=0 there will be a gradient in that dependent variable in the first element next to the boundary in question, as the software tries to reconcile the conflicting requirements, and that will cause the average to be different from the initial value specified. 
If that's the problem, then the solution is to fix the underlying problem, i.e. to specify boundary conditions that are consistent with the initial condition (or vice versa, depending on the physical situation you are trying to model). For instance you could specify a time dependent boundary condition that ramps up from the initial value to a different value over a short period of time.
Just a thought. There could be other reasons.
Jeff
Dear Jeff,
Thanks for your reply. I think it is the case. because I assumed an initial non zero concentration while at border concentration is zero cause I assumed a perfect sink condition at the surrounding. 
thanks so much.                                                
 
                                                
                            [QUOTE]
The first thing I would look at is whether your initial value for the dependent variable is consistent with some of the boundary conditions. If the two are not consistent, at t=0 there will be a gradient in that dependent variable in the first element next to the boundary in question, as the software tries to reconcile the conflicting requirements, and that will cause the average to be different from the initial value specified. 
If that's the problem, then the solution is to fix the underlying problem, i.e. to specify boundary conditions that are consistent with the initial condition (or vice versa, depending on the physical situation you are trying to model). For instance you could specify a time dependent boundary condition that ramps up from the initial value to a different value over a short period of time.
Just a thought. There could be other reasons.
Jeff
[/QUOTE]
Dear Jeff,
Thanks for your reply. I think it is the case. because I assumed an initial non zero concentration while at border concentration is zero cause I assumed a perfect sink condition at the surrounding. 
thanks so much.                        
                                                
                                                                                                            
                                             
                        
                        
                            
                                                                                        
                                Jeff Hiller
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                10 years ago                            
                            
                                22 févr. 2016, 13:41 UTC−5                            
                        
                        
                                                    Yes, then you'd want to specify a time dependent boundary concentration than rapidly drops from the initial value to zero. You can use one of the pre-implemented functions, or specify your own mathematical expression.
Jeff                                                
                                                
                            Yes, then you'd want to specify a time dependent boundary concentration than rapidly drops from the initial value to zero. You can use one of the pre-implemented functions, or specify your own mathematical expression.
Jeff