Robert Koslover
                                                                                                                                                    Certified Consultant
                                                         
                            
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                2 years ago                            
                            
                                22 août 2023, 15:21 UTC−4                            
                        
                        Updated:
                            
                                2 years ago                            
                            
                                22 août 2023, 16:09 UTC−4                            
                        
                        
                                                    Fields computed in the frequency domain formulation are complex valued.  Your plot of the normal component (that's the component of the vector along a surface normal, not to be confused with the "norm" of a vector!) of the polarization P is not a time-averaged value.  Rather, it is simply a plot of the real-value part of a complex term.  If you want to plot the magnitude of the P vector, plot emw.normP instead.  If you want the magnitude of the specific vector component that you described in your post, plot abs( ) of the expression that you wrote.
    -------------------
    Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara                                                 
                                                
                            Fields computed in the frequency domain formulation are complex valued.  Your plot of the normal component (that's the component of the vector along a surface normal, not to be confused with the "norm" of a vector!) of the polarization P is *not* a time-averaged value.  Rather, it is simply a plot of the real-value part of a complex term.  If you want to plot the magnitude of the P vector, plot emw.normP instead.  If you want the magnitude of the specific vector component that you described in your post, plot *abs( )* of the expression that you wrote.                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                2 years ago                            
                            
                                23 août 2023, 07:23 UTC−4                            
                        
                        
                                                    
  Fields computed in the frequency domain formulation are complex valued.  Your plot of the normal component (that's the component of the vector along a surface normal, not to be confused with the "norm" of a vector!) of the polarization P is not a time-averaged value.  Rather, it is simply a plot of the real-value part of a complex term.  If you want to plot the magnitude of the P vector, plot emw.normP instead.  If you want the magnitude of the specific vector component that you described in your post, plot abs( ) of the expression that you wrote.
Thank you for your precise and clear answer.
Alberto
                                                 
                                                
                            >Fields computed in the frequency domain formulation are complex valued.  Your plot of the normal component (that's the component of the vector along a surface normal, not to be confused with the "norm" of a vector!) of the polarization P is *not* a time-averaged value.  Rather, it is simply a plot of the real-value part of a complex term.  If you want to plot the magnitude of the P vector, plot emw.normP instead.  If you want the magnitude of the specific vector component that you described in your post, plot *abs( )* of the expression that you wrote.
Thank you for your precise and clear answer.
Alberto