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.

Defining an array parameter in COMSOL

Please login with a confirmed email address before reporting spam

The below post is related to an archived discussion


I am using LiveLink for MATLAB in my analysis. I want to define a parameter as an array of values and give it to COMSOL. then be able to call the value from that array by using its index. is that possible??


1 Reply Last Post 2024年3月13日 GMT-4 14:50
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 8 months ago 2024年3月13日 GMT-4 14:50

COMSOL doesn't support arrays in the model builder. A workaround might be an interpolation function with the nearest neighbor interpolation setting. Using an index as argument should behave like an array.

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
COMSOL doesn't support arrays in the model builder. A workaround might be an interpolation function with the nearest neighbor interpolation setting. Using an index as argument should behave like an array.

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.