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.

Spatial derivative of a field variable

Please login with a confirmed email address before reporting spam

Hello all,

I am new to COMSOL and I am now using version 5.1. To simulate my problem I use the coefficient form in equation based modelling interface. To be specific, here I provide a simplified example:

I want to solve for c which is governed by the diffusion equation:

dc/dt=nabla.(D*nabla c)+R

However, this is a multi-physics problem and is coupled with another field variable p governed by:

dp/dt=nabla.(L*nabla p)

To achieve the coupling, the first equation is written, for example,

dc/dt=nabla.(D*nabla c)+nabla p

My problem is , how to represent nabla p, which is the spatial derivatives of the field variable p, in COMSOL? I know the operator d(f(x),x) gives me the derivative df/dx, but p is not a function of x but rather a field variable. Any suggestion will be gratefully appreciated.

Thank you!

0 Replies Last Post 21.07.2015, 20:22 GMT-4
COMSOL Moderator

Hello Weijie Mai

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.