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.
Value from Matlab Livelink call and Value from Comsol model itself doesn't match
Posted 28 mars 2022, 11:51 UTC−4 Computational Fluid Dynamics (CFD), Heat Transfer, LiveLink for MATLAB 1 Reply
Please login with a confirmed email address before reporting spam
Hello all, I was running a simulation through Matlab Livelink by calling a simulation model I made in Comsol 6.0. I am getting a result that is a little bit incosistancy when I calculated line average of magnitude of a total flux on a boundary by using mphmean on matlab. I am using this line of code on matlab (mphmean(model, 'tds.tfluxMag_c','line','selection',11)) to calculate the line average of the total flux magnitude of a boundary (11). But when I reopened the same file using Comsol and calculate the same line average of boundary (11) using the "Results >> Derived values >> Line Average", the value isn't the same value, there is around 5% difference between the two values. I am wondering why there is this inconsistancies?