Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

LiveLink, using a variable as a parameter set

$
0
0

Hi all,

I would like to be able to change one parameter of my model inside of a for loop with LiveLink and then run the model. Does anyone know how to do this? My code looks something like this:

for CED=[1.0:0.01:3.0] model.param.set('C_ED', 'CED[mm]'); model.param.set('C_EP', '1[mm]'); model.param.set('C_EW', '0.5[mm]'); model.param.set('d_ci', '0.5[mm]'); model.param.set('d_nb', '0.4[mm]'); model.sol('sol1').runAll [b1,b2,b3,b4]=graphingfun(model); end

Thanks in advance!


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>