Issues with meshing in Comsol for Matlab
Posted 2018年5月16日 GMT-0400上午8:13 AC/DC & Electromagnetics, LiveLink for MATLAB Version 5.3a 2 Replies
Please login with a confirmed email address before reporting spam
I am using MATLAB to run optimization loops on my COMSOL model. I do change some model input parameters in the optimization, but it doesnt change the number of domains or boundaries, only the size of them, so I dont expect that the explicit selections I use are affected.
I create a distribution of mesh nodes along a boundary (the identity pair in the airgap of an electric machine) and copy them to the destination of the identity pair, as well as a few other boundaries in the design.
The issue I am having is that the Livelink model occasionally fails, giving the error message here:
A problem occurred when building mesh feature [name of mesh feature]. Could not copy to any destination entity
I am especially confused since it seems inconsistent when it fails in MATLAB (sometimes it fails on the first copy operation, sometimes on the third, and it does not always fail). If I use the parameters from the MATLAB optimization in the actual COMSOL model (not Livelink) the model builds and simulates correctly.
I can supply the model files if necessary. I am using COMSOL 18.104.22.168, and MATLAB 22.214.171.1248062 (R2017a). These are the default versions that my system administrator provides, but I can use different versions if necessary.
Thanks in advance,