Magnus Ringh
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                4 years ago                            
                            
                                2022年3月4日 GMT+8 20:53                            
                        
                        Updated:
                            
                                4 years ago                            
                            
                                2022年3月4日 GMT+8 20:54                            
                        
                        
                                                    Hi Alexandra,
One way of doing this, is to add a Cut Point 2D (in 2D) or Cut Point 3D (in 3D) dataset and define that cut point (in 3D, as an example) using the following x, y, and z coordinate values:
maxop1(h1,x)
maxop1(h1,y)
maxop1(h1,z)
Then add a Point Evaluation node, and in its settings, choose the Cut Point 2D or Cut Point 3D dataset as the dataset to use, and then enter h2 in the Expression column to evaluate it at that point.
Best regards,
Magnus
                                                 
                                                
                            Hi Alexandra,
One way of doing this, is to add a **Cut Point 2D** (in 2D) or **Cut Point 3D** (in 3D) dataset and define that cut point (in 3D, as an example) using the following *x*, *y*, and *z* coordinate values:
    maxop1(h1,x)
    maxop1(h1,y)
    maxop1(h1,z)
    
Then add a **Point Evaluation** node, and in its settings, choose the Cut Point 2D or Cut Point 3D dataset as the dataset to use, and then enter `h2` in the **Expression** column to evaluate it at that point.
Best regards,
Magnus
     
                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                4 years ago                            
                            
                                2022年3月4日 GMT+8 21:38                            
                        
                        
                                                    Hello Magnus,
Thank you very much for the answer!
Still I have a problem, because the position (x) where h1 is maximum changes over time and by adding a Cut Point 1D (because h1 and h2 depend only on x-coordinate) COMSOL calculates h1 and h2 at a specific point. I want to calculate my two variables, h1 and h2, at the point where maxop1(h1,x) applies, which position changes over time.
Thanks,
Alexandra
                                                 
                                                
                            Hello Magnus,
Thank you very much for the answer! 
Still I have a problem, because the position (x) where h1 is maximum changes over time and by adding a Cut Point 1D (because h1 and h2 depend only on x-coordinate) COMSOL calculates h1 and h2 at a specific point. I want to calculate my two variables, h1 and h2, at the point where maxop1(h1,x) applies, which position changes over time.
Thanks,
Alexandra