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.
Parametric sweep doesn't seem to sweep
Posted 28 nov 2010, 15:46 GMT-5 4 Replies
Please login with a confirmed email address before reporting spam
Hi !
Running a heat transfer study in comsol 4.0a I only get one solution, the first value in my sweep range.
I need to impose a high temperature to one domain so I solve this by adding a heat source that disappeares after a short time. This removes any trouble with steap gradients in initial BC's.
I have defined a global parametre called "Heat". Then I impose the heat through a step function called "E_heat" which lasts for 1.e-7 seconds and then disappears.
In 4.0a I can set the time, start value and end value so I go from "Heat" to zero at a given time step.
The "E_heat" is valid as a heat source for a specific domain in my model. This gives me the correct temperature to this domain.
Now I want to run several simulations, increasing the value for "Heat" for each step and I though this was possible through parametric sweep.
In the parametric sweep I want my parameter "Heat" to follow this: range(3.5e10,4,7.0e19), but when I evaluate the solutions the only one precent is the one for 3.5e10. As I understand it should run 4 or 5 simulations, increasing the value for "Heat" each time.
Would be nice if someone could give me any hints on what I'm doing wrong or if I have misunderstood the Parametric sweep functionality ?
Thanks
Nils Eivind
Running a heat transfer study in comsol 4.0a I only get one solution, the first value in my sweep range.
I need to impose a high temperature to one domain so I solve this by adding a heat source that disappeares after a short time. This removes any trouble with steap gradients in initial BC's.
I have defined a global parametre called "Heat". Then I impose the heat through a step function called "E_heat" which lasts for 1.e-7 seconds and then disappears.
In 4.0a I can set the time, start value and end value so I go from "Heat" to zero at a given time step.
The "E_heat" is valid as a heat source for a specific domain in my model. This gives me the correct temperature to this domain.
Now I want to run several simulations, increasing the value for "Heat" for each step and I though this was possible through parametric sweep.
In the parametric sweep I want my parameter "Heat" to follow this: range(3.5e10,4,7.0e19), but when I evaluate the solutions the only one precent is the one for 3.5e10. As I understand it should run 4 or 5 simulations, increasing the value for "Heat" each time.
Would be nice if someone could give me any hints on what I'm doing wrong or if I have misunderstood the Parametric sweep functionality ?
Thanks
Nils Eivind
4 Replies Last Post 29 nov 2010, 06:23 GMT-5