FEAP User Forum

FEAP => Programming => Topic started by: wtt1994 on May 15, 2015, 07:49:22 AM

Title: How to Loop?
Post by: wtt1994 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!!
Title: Re: How to Loop?
Post by: pjarz 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.
Title: Re: How to Loop?
Post by: Prof. R.L. Taylor on May 20, 2015, 08:25:53 AM
The LOOP command in MESH inputs only has one comma after the LOOP (LOOP,12).