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.

Names of variables and Partial differential in COMSOL v4.2

Please login with a confirmed email address before reporting spam

Hi,

I set up a PDE model in COMSOL v4.2
PDEs (Weak Form):
Dependent Variables: AX, AY, AZ

Global Definition - Variable :
BX = AZy - AYz;

Weak Expression:
-HX*test(BX)+JX*test(AX); (HX and JX have been defined)

Error: Unknown variable AZy.

In COMSOL v3.5, AZy means "(partial AZ)/(partial y)". However, it seems that COMSOL 4.2 regards "AZy" as a new variable but not a differetial notation.

How to define a partial differential operator in COMSOL 4.2? Are there any restrictions of the names of dependent variables?

Thanks a lot.

Dan

2 Replies Last Post 01.03.2012, 16:14 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 01.03.2012, 14:29 GMT-5
I've figured out the problem:

Capital "X" "Y" "Z" are not proper name for variables.
I've figured out the problem: Capital "X" "Y" "Z" are not proper name for variables.

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 01.03.2012, 16:14 GMT-5
Hi

many names has changed in V4 so it's worth to turn on the "Equation View (Options Preferences Show) and look therein.
But you can also load the intial conditions (right click solver sub-node: Dependent Variables and choose "Compute to Selected", and then hit the Derived Values Integration and use the variable selector (or CNTRL + Space)

There its written too that the gradient is AXx, AXy, AXz, etc so this has not changed ;)

So you must have something else that went wrong

--
Good luck
Ivar
Hi many names has changed in V4 so it's worth to turn on the "Equation View (Options Preferences Show) and look therein. But you can also load the intial conditions (right click solver sub-node: Dependent Variables and choose "Compute to Selected", and then hit the Derived Values Integration and use the variable selector (or CNTRL + Space) There its written too that the gradient is AXx, AXy, AXz, etc so this has not changed ;) So you must have something else that went wrong -- Good luck 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.