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.
Derivative of a dependent variable
Posted 24 juil. 2013, 09:38 UTC−4 Interfacing, Mesh Version 4.3b 0 Replies
Please login with a confirmed email address before reporting spam
I am using the values of a dependent variable 'phi' and its derivative in Matlab. For some reason, the numbers of nodes are different between the original dependent variable and its derivative.
For example,
for the original dependent variable
phi_PDE=mpheval(model,'phi','dataset','dset1','Edim','domain','Selection','sel1');
The result is
phi_PDE =
expr: {'phi'}
d1: [11x10067 double]
p: [2x10067 double]
t: [3x19732 int32]
ve: [10067x1 int32]
unit: {'1'}
For the derivative
mag_gradPhi_PDE=mpheval(model,'sqrt(phix^2+phiy^2)','dataset','dset1','Edim',domain,'Selection','sel1');
The result is
mag_gradPhi_PDE =
expr: {'sqrt(phix^2+phiy^2)'}
d1: [11x10135 double]
p: [2x10135 double]
t: [3x19732 int32]
ve: [10135x1 int32]
unit: {'1/m'}
Could anyone tell me the reason for this?
Thank you,
Best regards,
Hello Onur Sevket Aslan
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.