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.

calling up a varible defined by program

Elizabeth Van Heusden

Please login with a confirmed email address before reporting spam

I am trying to plot a function prior to solving the model that involves a the variable H(for magnetic fields) and it fails to recognize it. Currently the syntax is mfnc.normH which is used else in the program. Is this possible or not?

1 Reply Last Post 24 oct. 2016, 04:07 UTC−4
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 24 oct. 2016, 04:07 UTC−4
Hi,

If the variable name is correct it should work, but if you want to plot and postprocess such variables before you have computed a solution, right-click the Study node and choose Get Initial Value to make the dependent variables available as solutions using their initial values. Otherwise, their values are undefined.

Best regards,
Magnus Ringh, COMSOL
Hi, If the variable name is correct it should work, but if you want to plot and postprocess such variables before you have computed a solution, right-click the Study node and choose Get Initial Value to make the dependent variables available as solutions using their initial values. Otherwise, their values are undefined. Best regards, Magnus Ringh, COMSOL

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.