Mark Cops
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 year ago                            
                            
                                2024/06/18 11:34 GMT-4                            
                        
                        
                                                    Hi Troy,
I tried compiling the  .java file and opening the .class file but most of the details were lost. It would be best to post the .mph file directly.
The arg() operator is used for finding the phase angle of a complex number. If you are running a time dependent acoustic study, all quantities are real valued and therefore it is meaningless to use the arg() operator.
One thing to consider when modeling the problem is if the speed of sound in the water is much faster than the bulk water wave speed? This could allow you to decouple the problem  - solve for a time harmonic pressure field at one instant when the wave profile is "frozen" in time.
-Mark
                                                 
                                                
                            Hi Troy,
I tried compiling the  .java file and opening the .class file but most of the details were lost. It would be best to post the .mph file directly. 
The arg() operator is used for finding the phase angle of a complex number. If you are running a time dependent acoustic study, all quantities are real valued and therefore it is meaningless to use the arg() operator. 
One thing to consider when modeling the problem is if the speed of sound in the water is much faster than the bulk water wave speed? This could allow you to decouple the problem  - solve for a time harmonic pressure field at one instant when the wave profile is "frozen" in time. 
-Mark
                        
                                                
                                                                                                            
                                             
                                            
                            
                                                                                        
                                Acculution ApS
                                                                                                                                                    Certified Consultant
                                                         
                            
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 year ago                            
                            
                                2024/06/19 3:35 GMT-4                            
                        
                        
                                                    As Mark said, arg is for complex numbers. For real numbers, there would only be two possible results; 0/2pi for positive numbers, and pi for negative numbers. So consider doing the analysis directly in the frequency domain, or converting the time domain results to the frequency domain if applicable.
    -------------------
    René Christensen, PhD
Acculution ApS
www.acculution.com
info@acculution.com                                                
 
                                                
                            As Mark said, arg is for complex numbers. For real numbers, there would only be two possible results; 0/2pi for positive numbers, and pi for negative numbers. So consider doing the analysis directly in the frequency domain, or converting the time domain results to the frequency domain if applicable.                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 year ago                            
                            
                                2024/06/19 7:34 GMT-4                            
                        
                        Updated:
                            
                                1 year ago                            
                            
                                2024/06/19 7:37 GMT-4                            
                        
                        
                                                    
  Hi Troy,
  I tried compiling the  .java file and opening the .class file but most of the details were lost. It would be best to post the .mph file directly.
  
  The arg() operator is used for finding the phase angle of a complex number. If you are running a time dependent acoustic study, all quantities are real valued and therefore it is meaningless to use the arg() operator.
  
  One thing to consider when modeling the problem is if the speed of sound in the water is much faster than the bulk water wave speed? This could allow you to decouple the problem  - solve for a time harmonic pressure field at one instant when the wave profile is "frozen" in time.
  
  -Mark
Hi Mark,
  Thank you for your thoughts. I didnt realize the values were only real in a time domain study. That's helpful to know. I'll investigate if solving this problem with a stationary geometry in the frequency domain will work for my needs. Thanks again for the information.
Troy
                                                 
                                                
                            >Hi Troy,
>I tried compiling the  .java file and opening the .class file but most of the details were lost. It would be best to post the .mph file directly. 
>
>The arg() operator is used for finding the phase angle of a complex number. If you are running a time dependent acoustic study, all quantities are real valued and therefore it is meaningless to use the arg() operator. 
>
>One thing to consider when modeling the problem is if the speed of sound in the water is much faster than the bulk water wave speed? This could allow you to decouple the problem  - solve for a time harmonic pressure field at one instant when the wave profile is "frozen" in time. 
>
>-Mark
Hi Mark,
  Thank you for your thoughts. I didnt realize the values were only real in a time domain study. That's helpful to know. I'll investigate if solving this problem with a stationary geometry in the frequency domain will work for my needs. Thanks again for the information.
  
  Troy