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 loop a simulation with Matlab Livelink?

Please login with a confirmed email address before reporting spam

Good aftermoon Comsol community.

Any suggestion about looping a simulation with "Comsol with Matlab 5.5" ? It is my first time using Comsol. I want to make a frequency sweep, from 100Hz to 500Hz, with an increase in frequency at the rate of 10Hz per second

Just an example of the pseudocode:

  1. Start clear all
  2. import libraries
  3. load and open model 'example.mph'
  4. Use some function to get the simulation time (miliseconds)
  5. Some conditions to evaluate the elapsed time and assign the corresponding frequency to use in the simulation 6. Time 0 -1 secs -> 100Hz 7. Time 1-2 secs -> 110Hz 8. Time 2-3 secs -> 120 Hz 9. ... 10. Time 39-40 secs -> 500Hz
  6. End

0 Replies Last Post 2020年11月9日 GMT-5 17:30
COMSOL Moderator

Hello Victor Navarrete

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.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.