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.
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 184.108.40.206, and MATLAB 220.127.116.118062 (R2017a). These are the default versions that my system administrator provides, but I can use different versions if necessary.
Thanks in advance,