Jeff Hiller
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                4 years ago                            
                            
                                2021/09/29 17:26 GMT-4                            
                        
                        Updated:
                            
                                4 years ago                            
                            
                                2021/09/29 17:27 GMT-4                            
                        
                        
                                                    Hello Anna,
One approach -and there may be better ones- consists in doing the following:
- Solve the problem without the rectangle being present. You have done this already, I believe.
- Add the rectangle to the geometry
- Use the "Update solution" option in the Study Node
- Duplicate the original dataset, and add a Selection subnode to the resulting dataset, selecting only the rectangle
- Create a plot based on this new dataset.
I have illustrated this approach in the attached file, which is based on a toy model I created in another Discussion Forum thread today (in case you're curious: here ).
Best,
Jeff
    -------------------
    Jeff Hiller                                                
 
                                                
                            Hello Anna,
One approach -and there may be better ones- consists in doing the following:
1. Solve the problem without the rectangle being present. You have done this already, I believe.
2. Add the rectangle to the geometry
3. Use the "Update solution" option in the Study Node
4. Duplicate the original dataset, and add a Selection subnode to the resulting dataset, selecting only the rectangle
5. Create a plot based on this new dataset.
I have illustrated this approach in the attached file, which is based on a toy model I created in another Discussion Forum thread today (in case you're curious: [here](https://www.comsol.com/forum/thread/297452/selection-of-interior-boundaries?last=2021-09-29T18:52:34Z) ).
Best,
Jeff