ph47reey
Structural
- May 26, 2015
- 7
Hello fellow ansys-enthusiasts
I need help about loop (*do function).
let say I have a set of lines sorted in ascending number (example: line 101, 102, 107, 108, 112, 117 and so on) and I want to assign the lines with sections (sectype and secdata already defined beforehand), which also sorted in ascending number (example secnum 201, 202, 203 and so on)
how do I write the loop command in APDL? I already got it how to select lines and do the loop but I don't get it yet with the section assigning:
*get,LCOUNT,lines,,count
LINENEXT=lsnext(0)
*do,ICOUNT,1,LCOUNT
LINENEXT=lsnext(LINENEXT)
! ???-->this line should contain command to assign sections incrementally? How could I do that?
lmesh,LINENEXT
*enddo
I thank you very much for tips and helps!
I need help about loop (*do function).
let say I have a set of lines sorted in ascending number (example: line 101, 102, 107, 108, 112, 117 and so on) and I want to assign the lines with sections (sectype and secdata already defined beforehand), which also sorted in ascending number (example secnum 201, 202, 203 and so on)
how do I write the loop command in APDL? I already got it how to select lines and do the loop but I don't get it yet with the section assigning:
*get,LCOUNT,lines,,count
LINENEXT=lsnext(0)
*do,ICOUNT,1,LCOUNT
LINENEXT=lsnext(LINENEXT)
! ???-->this line should contain command to assign sections incrementally? How could I do that?
lmesh,LINENEXT
*enddo
I thank you very much for tips and helps!