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

Autogenerating geometry in Livelink with Geometry

$
0
0

I am trying to autogenerate geometry in Livelink with MATLAB using for loops. Specifically, I am trying to make a series of concentric spheres. However, I am having trouble due to the fact that each time I create a new object it needs a new string for a name for the variable. It then gives me an error whenever I try to autogenerate the names with the for loops. For example, for n=1:10 sq+n = geometry.feature.create('sq'+n,'Square'); end

Is there a good online resource regarding this?


Viewing all articles
Browse latest Browse all 5773

Trending Articles



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