FEAP User Forum

FEAP => FEAPpv => Topic started by: Ashu2912 on July 13, 2017, 06:37:39 AM

Title: Problem with the LOOP command
Post by: Ashu2912 on July 13, 2017, 06:37:39 AM
Dear FEAPers,

I am trying to model a stack of bricks for my project using the following loop:

Code: [Select]
para
l = 4.5 !Brick length
b = 3.75 !Brick width
h = 2.25 !Brick height
t = 0.375 !Mortar thickness
a = 10 !# elements along length
  b = 8 !# elements along width
c = 6 !# elements along height
d = 4 !# elements along mortar thickness
n = 3 !# of bricks
i = 0 !Loop counter

!Generating the brick mesh

loop,3

incl IBrick.txt

tran,inc
1 0 0
0 1 0
0 0 1
0 0 h+t
next

However, the output mesh plot is showing only one brick instead of three. I tried removing the loop and adding the blocks successively, which works. What is the problem with the above loop?

Thanks in advance for your help.
Title: Re: Problem with the LOOP command
Post by: Prof. R.L. Taylor on July 13, 2017, 06:41:18 AM
Post your input file so we can help you debug the issue.
Title: Re: Problem with the LOOP command
Post by: Ashu2912 on July 13, 2017, 06:47:05 AM
Dear Prof. Taylor,

I have attached the files.
Title: Re: Problem with the LOOP command
Post by: FEAP_Admin on July 13, 2017, 06:49:47 AM
You need to increment your parameters, if you want them to change!
Title: Re: Problem with the LOOP command
Post by: Ashu2912 on July 13, 2017, 06:53:53 AM
I have applied that through the incremental transformation matrix [tran,inc].
Title: Re: Problem with the LOOP command
Post by: Prof. R.L. Taylor on July 13, 2017, 07:13:21 AM
The inc does increasing increments, but you still have to tell where, also you are using b twice.  See attached files
Title: Re: Problem with the LOOP command
Post by: Ashu2912 on July 13, 2017, 07:22:57 AM
Thanks a lot, Prof. Taylor!

However, a quick question. In the incremental option for TRANsformation, I am specifying the original coordinates through the input file (with base at z=0). With each iteration, the transformation matrix is incremented constantly (shifted in +z by "h+t"), after which the coordinates corresponding to the bottom brick are entered. Then too, why does it not work?