Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Automatically aborting meshing when it takes to long
Posted 13 lug 2011, 11:44 GMT-4 Interfacing, Mesh Version 4.1 0 Replies
Please login with a confirmed email address before reporting spam
I'm using Matlab to do a large series (30k+) of simulations in Comsol 4.1. The geometries are automatically generated, meshed and simulated.
For some geometries Comsol has a lot of problems meshing and it takes ages (it doesn't finish, even after several hours) while, if everything goes right, the simulation (including meshing) takes about 10-20 seconds. If I use a finer mesh, the meshing often works well, however, it also increases the simulation time of the other geometries which is a lot of time if it's repeated 30k times.
So now I'm looking for a way to specify a time-out time for a simulation. So basically I want to use a course mesh, try meshing and if it takes to long (say longer then 300 sec), it cancels and tries again with a finer mesh.
Is there a possibility to do this using Comsol settings/commands and/or Matlab code?
Kind regards,
Jarno
Hello Jarno Groenesteijn
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.