Author Topic: How to Loop?  (Read 3685 times)

wtt1994

  • New Member
  • *
  • Posts: 1
How to Loop?
« on: May 15, 2015, 07:49:22 AM »
I want to apply forces on a circular boundary along radius.The numbers of the boundary nodes are 1,14,27,40,53,66,79,92,...
I use the command:
.........................
LOOP,,12
   FORCe
     1+n 0 1*cosd(ang) 1*sind(ang)
   ang = ang+30
   n = n+ 13
NEXT
........................

And the initial value of n and ang are 0.

But only the first force will be applied!
What's wrong with this command?
Thanks!!

pjarz

  • Jr. Member
  • **
  • Posts: 12
Re: How to Loop?
« Reply #1 on: May 20, 2015, 03:29:57 AM »
Hi,

maybe that might help:

in user manual (v8.4) on page 129 there is explained how loops work for meshes, maybe it also works for forces, so I would change your input to something like this:
.........................
LOOP,,12
   FORCe
     1+n 0 1*cosd(ang) 1*sind(ang)
   PARAmeter
    ang = ang+30
    n = n+ 13

NEXT
.........................

best regards,
Pawel J.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: How to Loop?
« Reply #2 on: May 20, 2015, 08:25:53 AM »
The LOOP command in MESH inputs only has one comma after the LOOP (LOOP,12).