11 August 2018
- Last edited 11 August 2018
(1) I ran the code in 2016b and it runs. There must have been a bug in matlab 2016a. Comment out the line that doesn't work and use a for loop shown below (I had to use an image since this site converts some characters into a smiley face automatically).
I don't want to install 2016a to test it, so you will have to tell me if that runs, or you can upgrade to matlab 2016b or 2017a. Don't forget to manually paste in the two header lines at the top of the text file.
(3a) Make the matlab Box dimensions smaller, instead of:
Note that the fibers generated go up to 6 mm beyond the box dimension on all sides. If you don't want any fiber outside the SC box, you must draw your box in SC with an origin of (-6,-6,-6). Alternatively, you could add 6 to the x,y,z coordinates of the start and end points in matlab before writing out the text file, then the fibers would extend up to 12 mm beyond the x,y,z box dimensions in the positive direction and no fiber would have negative coordinates.
(3b) Import created Curves. In SC, you have to generate Beams from Curves. Click on the Prepare tab, and define a cross-section for the beam by clicking on the Profiles pulldown and select Circle. You will later edit the Circle to type in the diameter you want, but that is a whole new discussion.
You can see the Create Button is now active and a Beam Profiles folder is under the list of Curves. Click on the first curve in the Structure, and shift click on the last curve in the Structure, then click the Create button.
All the curves become Beams and the Curves are removed.