Author Topic: Problem with the LOOP command  (Read 7725 times)

Ashu2912

  • New Member
  • *
  • Posts: 6
Problem with the LOOP command
« 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.
« Last Edit: July 13, 2017, 06:46:29 AM by Ashu2912 »

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: Problem with the LOOP command
« Reply #1 on: July 13, 2017, 06:41:18 AM »
Post your input file so we can help you debug the issue.

Ashu2912

  • New Member
  • *
  • Posts: 6
Re: Problem with the LOOP command
« Reply #2 on: July 13, 2017, 06:47:05 AM »
Dear Prof. Taylor,

I have attached the files.

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Problem with the LOOP command
« Reply #3 on: July 13, 2017, 06:49:47 AM »
You need to increment your parameters, if you want them to change!

Ashu2912

  • New Member
  • *
  • Posts: 6
Re: Problem with the LOOP command
« Reply #4 on: July 13, 2017, 06:53:53 AM »
I have applied that through the incremental transformation matrix [tran,inc].

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: Problem with the LOOP command
« Reply #5 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

Ashu2912

  • New Member
  • *
  • Posts: 6
Re: Problem with the LOOP command
« Reply #6 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?