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                            
                            
                                2011/12/12 1:48 GMT-5                            
                        
                        
                                                    Hi
have you tried the "waveform" functions in V4 ? these should do. They do also include a smoothing region to remain continuous, but they do not include any "offset", so you must combine them then with a other analytical function
--
Good luck
Ivar                                                
                                                
                            Hi
have you tried the "waveform" functions in V4 ? these should do. They do also include a smoothing region to remain continuous, but they do not include any "offset", so you must combine them then with a other analytical function
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                2011/12/12 15:46 GMT-5                            
                        
                        
                                                    Hi Ivar,
 Thanks for your reply.
 I tried using the waveform function. It appears to be what I am looking for.
 But how do I apply such a waveform to the inlet as a periodic condition for concentration of species?
 I also did not understand what you meant by combining the waveform with another analytic function                                                
                                                
                            Hi Ivar,
 Thanks for your reply.
 I tried using the waveform function. It appears to be what I am looking for.
 But how do I apply such a waveform to the inlet as a periodic condition for concentration of species?
 I also did not understand what you meant by combining the waveform with another analytic function                        
                                                
                                                                                                            
                                             
                        
                        
                            
                                                                                        
                                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                            
                            
                                2011/12/13 1:23 GMT-5                            
                        
                        
                                                    Hi
the waveform is defined symmetric around "0" if you need to offset it, you might by calling it from another analytical function.
To use that in a BC definition you "simply" call the function depending on your time variable "t" i.e. wv1(t[1/s]) where the [1/s] is to make "t" without units and expressed in seconds (you might want to use "min" or "h" or "d" or "a" or "y" for minutes, hours, days or years/années instead of "s" for seconds"
This supposes that you use a time dependent solver.
Note: if for any reason you use a stationary solver to get the initial conditions, then the "t" will NOT be defined by default so your BC relying on "t" will be flagged ERROR. Try then to define a Parameter t = 0[s] this will solve the issue for the stationary solver, and the variable will be overwritten by the time dependent solver correctly
--
Good luck
Ivar                                                
                                                
                            Hi
the waveform is defined symmetric around "0" if you need to offset it, you might by calling it from another analytical function.
To use that in a BC definition you "simply" call the function depending on your time variable "t" i.e. wv1(t[1/s]) where the [1/s] is to make "t" without units and expressed in seconds (you might want to use "min" or "h" or "d" or "a" or "y" for minutes, hours, days or years/années instead of "s" for seconds"
This supposes that you use a time dependent solver.
Note: if for any reason you use a stationary solver to get the initial conditions, then the "t" will NOT be defined by default so your BC relying on "t" will be flagged ERROR. Try then to define a Parameter t = 0[s] this will solve the issue for the stationary solver, and the variable will be overwritten by the time dependent solver correctly
--
Good luck
Ivar