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.
Automatize Simulations and Changing Parameters
Posted Jun 30, 2014, 1:46 p.m. EDT Version 4.4 4 Replies
Please login with a confirmed email address before reporting spam
Hello,
I have a very simple model of two thin cylinders which are separated by a certain distance and each have a certain diameter. I then measure the voltage inside a volume, where each cylinder plays the role of an electrode.
I want to run multiple simulations, where I do the following:
- Change the diameter of the cylinders
- Change the distance between the two cylinders
- Run a simulation where the voltage is computed
- Export the results (voltage, current density, and voltage gradients) in a txt file with a filename containing the distance between the two cylinders and their diameter.
For the moment, I do this manually, but I have the impression it would be easy to automatize this, as I need to test about 10 different diameters and 10 different distances between the cylinders (so 100 simulations to test all combinations). How can I automatize that?
I read that liveLink can help, or use a batch script... I am not sure what's the best and how to use either of those for my problem.
Thank you in advance for your help.
I have a very simple model of two thin cylinders which are separated by a certain distance and each have a certain diameter. I then measure the voltage inside a volume, where each cylinder plays the role of an electrode.
I want to run multiple simulations, where I do the following:
- Change the diameter of the cylinders
- Change the distance between the two cylinders
- Run a simulation where the voltage is computed
- Export the results (voltage, current density, and voltage gradients) in a txt file with a filename containing the distance between the two cylinders and their diameter.
For the moment, I do this manually, but I have the impression it would be easy to automatize this, as I need to test about 10 different diameters and 10 different distances between the cylinders (so 100 simulations to test all combinations). How can I automatize that?
I read that liveLink can help, or use a batch script... I am not sure what's the best and how to use either of those for my problem.
Thank you in advance for your help.
4 Replies Last Post Jan 19, 2015, 4:12 a.m. EST