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.
Conditional parametric sweep
Posted Sep 30, 2025, 12:03 p.m. EDT Version 6.3 1 Reply
Please login with a confirmed email address before reporting spam
Hi
I'd like to run a parametric sweep with a couple of conditions. Here is an example of what I'm trying to do.
a = range(1:1:10) b = range(1:1:10)
The condition I want to add is a+b<15
Can I do this directly in COMSOL?
Alternatively I generated the combination on MATLAB but when I am having the file read by COMSOL through a saved text file. It is saying Failure reading file. '1' is not a valid variable name.
Could you please help me troubleshoot either of my methods. I'm wondering if the way the data is output from MATLAB is not compatible with COMSOL.
Thanks and regards VK
