Discussion ClosedThis 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 properly define the divergence of the gradient of a scalar variable manually?
Posted 2025年2月25日 GMT+1 10:25Modeling Tools & Definitions, Physics InterfacesVersion 6.34 Replies
Please login with a confirmed email address before reporting spam
Hi,
I am trying to define the divergence of the gradient of a scalar variable, namely
,
and use it as asource termin a general form PDE in a 2D model, whereis a constant and
is the dependent variable.
By the definition of the divergence of the gradient of a scalar variable, I assume what I should do is define avariablein COMSOL like below
Laplacian_xi=d(d(xi,x),x)+d(d(xi,y),y)
which corresponds to
.
However, if I put Laplacian_xi in thesource termof the general form PDE, and setConserved fluxas 0, the result differs greatly from defining d(xi,x) and d(xi,y) in theConserved fluxand set thesource termas 0.
Can anyone tell me what I did wrong? Do I need to define any weak form to make d(d(xi,x),x)+d(d(xi,y),y) work properly?
Best Runzi Wang
