Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
How to prevent Model Remeshing while solving after Updating Boundary Selections (No Geometry Change)
Posted 2025年12月5日 GMT+8 04:14 Geometry, Mesh, Modeling Workflow Version 6.4 0 Replies
Please login with a confirmed email address before reporting spam
Hi,
In my workflow, I use a union of ball selections(created in geometry, after Form Union) to identify and select new boundary surfaces. Then, I update the boundary conditions with these newly created selection sets. Importantly, I do not modify the actual geometry, just create an union of different ball selections to use as boundary.
Here’s a simplified snippet of my code where the BCs are assigned and then the study is run:
model.component('comp1').physics('ec').feature('term1').selection.named('geom1_termUnion'); model.component('comp1').physics('ec').feature('gnd1').selection.named('geom1_groundUnion');
model.study('std2').run;
termUnion and groundUnion are unions of several ball selections.
However, when I run the study, COMSOL remeshes the entire model before solving. I would expect that only the solution should update, there should be no reason to regenerate the mesh if the geometry hasn’t changed. That is the entire idea of using ball selections.
Why does COMSOL trigger a remesh in this situation, even though only boundary selections have changed? Is there a way to prevent unnecessary remeshing when updating boundary conditions via selection sets?
Any tips would be greatly appreciated! Thank you in advance for your help.
Hello Aragorn
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.
