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.

Syntax for gradient

Please login with a confirmed email address before reporting spam

Hello everyone

I am building a model that has gradient of dependent variables in the source term. The syntax for any dependent variable 'u' is 'ux'. But, my source term has terms like gradient(u*v). ( u & v are dependent variables). I tried using pd(u*v), but the results are incorrect. Partial derivative gives only the scalar value. I need gradient for the direction. Is there any syntax for this - gradient(u*v) ?

0 Replies Last Post May 9, 2017, 7:03 a.m. EDT
COMSOL Moderator

Hello Tinto Alencherry

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.