Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 months ago
2024年12月5日 GMT+8 18:31
Updated:
6 months ago
2024年12月5日 GMT+8 21:31
There are a few issues.
When using LiveLink for MATLAB all coordinates are in column format. I.e. you have to use coord' instead of coord.
You have to specify the dataset. I assume for this model dset9 makes sense.
For these type of components you have to specify that you want to evaluate on domains.
This should work:
T = mphinterp(model, 'T', 'coord', coord','dataset','dset9','edim','domain')
Note that the expression can be any valid COMSOL expression not just a variable or field name. I recommend that you open the COMSOL GUI (using the command mphlaunch) and find some expressions to use there.
-------------------
Lars Gregersen
Comsol Denmark
There are a few issues.
When using LiveLink for MATLAB all coordinates are in column format. I.e. you have to use coord' instead of coord.
You have to specify the dataset. I assume for this model dset9 makes sense.
For these type of components you have to specify that you want to evaluate on domains.
This should work:
T = mphinterp(model, 'T', 'coord', coord','dataset','dset9','edim','domain')
Note that the expression can be any valid COMSOL expression not just a variable or field name. I recommend that you open the COMSOL GUI (using the command mphlaunch) and find some expressions to use there.
Please login with a confirmed email address before reporting spam
Posted:
6 months ago
2024年12月6日 GMT+8 01:20
Updated:
6 months ago
2024年12月6日 GMT+8 03:02
Hi Lars,
Thanks for the quick respond. I am still learning Livelink functions and how to edit and extract the information/results via ML. Your line worked perfectly, I was playing a bit to extract velocity values and I created a new dataset/study/selection and selected the flow domain for the velocity and it worked too for a point and cutline.
Hi Lars,
Thanks for the quick respond. I am still learning Livelink functions and how to edit and extract the information/results via ML. Your line worked perfectly, I was playing a bit to extract velocity values and I created a new dataset/study/selection and selected the flow domain for the velocity and it worked too for a point and cutline.