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.

"Error" in the text output from parametr sweeps

Please login with a confirmed email address before reporting spam

Hello,

I am trying to use the solve>>"parameter sweep" function, and I believe there is an error in the output file. There are three variables I need to sweep. The model is highly nonlinear in two of them, so I have those (in my case, G & c0) setup in the parametric solver. The third variable (VA) I sweep using the parameter sweep function. Thus, for every value of VA, I sweep through the whole list of values for c0 & G.

When you solve a model using a parameter sweep, the results you specify and the parameter values are recorded in a text file. Each parameter and result variable is supposed to get it's own column. Instead, what I see is that the values for c0 & G end up in the same column, and alternate. An example of the output file is shown below:

# Parameter sweep performed by COMSOL 3.5.0.603.
# Sweep started on Sep 9 2009, 19:22.
#
# The columns contain the following data:
#
# VA
# c0
# G
# J_Tot
#
-2 1e-035 -2.97083e-017
-2 0.01 -2.97083e-017
-2 1e-030 -2.99117e-017
-2 0.01 -2.03664e-014
-2 1e-010 -1.68585e-009
-1.95 1e-035 -2.97006e-017
-1.95 0.01 -2.97006e-017
-1.95 1e-030 -2.98988e-017
-1.95 0.01 -1.98447e-014
-1.95 1e-010 -1.63529e-009

In this snippet, G is being held constant at G = 0.01 and c0 is varying. There should be 4 columns, but there are only 3. The total length of the output data for each value of VA is equivalent to the number of parameter pairs in my parametric solver. Thus, I don't think this impacts my results. However, it is quite annoying. Is this a glitch in the parameter sweep function, or am I doing something wrong?

Thanks,
-Obadiah

1 Reply Last Post Sep 19, 2009, 8:52 a.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 19, 2009, 8:52 a.m. EDT
Hi

I typically send such problems to comsol support, if I have done it wrong they tell me, when its a glip in the software, then all of us gai from it, when comsol corrects the code for next issue.

Ivar
Hi I typically send such problems to comsol support, if I have done it wrong they tell me, when its a glip in the software, then all of us gai from it, when comsol corrects the code for next issue. Ivar

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.