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.

Calculation of variable at an individual mesh element

Please login with a confirmed email address before reporting spam

Hi I was wondering if it is possible to obtain value of computed variable at individual mesh element, since it can be done in openfoam , is it possible to do it in comsol?

Thanks


2 Replies Last Post 05.01.2023, 02:55 GMT-5
Jim Freels mechanical side of nuclear engineering, multiphysics analysis, COMSOL specialist

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 03.01.2023, 12:31 GMT-5

Yes.

-------------------
James D. Freels, Ph.D., P.E.
Yes.

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 05.01.2023, 02:55 GMT-5

I've finally found it through comsol support First connect COMSOL livelink to MATLAB then after running the simmulation and adding a model in matlab type this pd1 = mpheval(model, {'meshvol'},'pattern','gauss'); pd1.d1 will give u a vector containg all the mesh element volume

I've finally found it through comsol support First connect COMSOL livelink to MATLAB then after running the simmulation and adding a model in matlab type this pd1 = mpheval(model, {'meshvol'},'pattern','gauss'); pd1.d1 will give u a vector containg all the mesh element volume

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.