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.

"Undefined" variable won't allow my study to execute

Please login with a confirmed email address before reporting spam

Hi all,

First off this this is my first real project in comsol. It was handed to me to fix, and I've gotten it this far. Now my defined variable shows up as undefined, causing the entire program to halt. If I could get any help I'd appreciate it. Thank you!



1 Reply Last Post Nov 20, 2019, 9:35 a.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Nov 20, 2019, 9:35 a.m. EST
Updated: 4 years ago Nov 20, 2019, 9:08 a.m. EST

Hi Sonny,

It's difficult to give you a definite answer without being able to click around your model, but from those three screenshots a couple of things jump at me as suspicious.

The first one is the use of c in a global expression. In one of the screenshots c seems to depend on T (temperature), which itself is generally a field, so that c will be spatially dependent: it doesn't a priori have a since global value.

The second issue is that it looks like the person who set up the file tried to equate a capacitance and the speed of sound in air. That raises red flags, if nothing else from the perspective of dimensions. Besides, there doesn't seem to be an independent variable in that Global ODE if c is the speed of sound in air and es.C11 is the capacitance coming from the Electrostatics physics.

Best,

Jeff

-------------------
Jeff Hiller
Hi Sonny, It's difficult to give you a definite answer without being able to click around your model, but from those three screenshots a couple of things jump at me as suspicious. The first one is the use of c in a global expression. In one of the screenshots c seems to depend on T (temperature), which itself is generally a field, so that c will be spatially dependent: it doesn't a priori have a since global value. The second issue is that it looks like the person who set up the file tried to equate a capacitance and the speed of sound in air. That raises red flags, if nothing else from the perspective of dimensions. Besides, there doesn't seem to be an independent variable in that Global ODE if c is the speed of sound in air and es.C11 is the capacitance coming from the Electrostatics physics. Best, Jeff

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.