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.

How to define a function related to coordinate values in COMSOL

Please login with a confirmed email address before reporting spam

Hi there,

I am using COMSOL v3.5a now, and a matlab function is defined as follow:
f(uX,uY,uZ,x,y,z)
where uX,uY and uZ are independent variables, x,y,z are the coordinates.
1) It's hard to calculated the derivative of f() with respect to the coordinate. Do you know how can matlab directly read the coordinate values of integration points without setting (x,y,z) as function auguments?
2) In comsol, there is a function d(f,x) to calculate derivatives. Is that reliable?

Thanks

Dan

0 Replies Last Post Apr 3, 2012, 9:21 p.m. EDT
COMSOL Moderator

Hello Zhangxian Deng

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.