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?
Posted 9 nov. 2020, 17:30 UTC−5 0 Replies
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:
- Start clear all
- import libraries
- load and open model 'example.mph'
- Use some function to get the simulation time (miliseconds)
- 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
- End
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.