Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline bdrunagle  
#1 Posted : 03 March 2012 14:07:23(UTC)
bdrunagle


Rank: Member

Groups: Registered
Joined: 18/05/2010(UTC)
Posts: 27
Man
United Kingdom

Was thanked: 13 time(s) in 6 post(s)
Hi

Like most people, I think, I've been very impressed by the animations uploaded by ber7. Unfortunately I've found them a bit difficult to understand (old age I think) so I've written and annotated a very simple one of my own:
http://smath.info/wiki/G...agle/SimpleAnimation.zip

I hope it's correct, useful, and not too simple for this forum.

Regards

Brian

thanks 4 users thanked bdrunagle for this useful post.
on 03/03/2012(UTC),  on 03/03/2012(UTC),  on 03/03/2012(UTC),  on 03/03/2012(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline IVR  
#2 Posted : 03 March 2012 19:26:06(UTC)
IVR

Rank: Newbie

Groups: Registered
Joined: 30/08/2011(UTC)
Posts: 8

Was thanked: 3 time(s) in 2 post(s)
Very clean and good example. If I am not mistaken, there are only two tentative corrections for the code. Instead of

(0,0,".",10,"Blue",1,5)
(0,0,"O",10,"Blue",1,5)

you should use previously defined variables Ox and Oy

(Ox,Oy,".",10,"Blue",1,5)
(Ox,Oy,"O",10,"Blue",1,5)
Offline bdrunagle  
#3 Posted : 04 March 2012 10:34:38(UTC)
bdrunagle


Rank: Member

Groups: Registered
Joined: 18/05/2010(UTC)
Posts: 27
Man
United Kingdom

Was thanked: 13 time(s) in 6 post(s)
Thanks very much for spotting that IVR. It's updated:
http://smath.info/wiki/G...agle/SimpleAnimation.zip

Brian
Offline Ber7  
#4 Posted : 04 March 2012 12:45:34(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
If Ox≠0, Oy≠0,
third and fourth line must be corrected:

Cx=Ox+OC*cos(δθ*t)

Cy=Oy+OC*sin(δθ*t)

Regards,Ber7

Edited by user 04 March 2012 13:01:22(UTC)  | Reason: Not specified

Offline bdrunagle  
#5 Posted : 04 March 2012 23:58:10(UTC)
bdrunagle


Rank: Member

Groups: Registered
Joined: 18/05/2010(UTC)
Posts: 27
Man
United Kingdom

Was thanked: 13 time(s) in 6 post(s)
Thanks ber7.

It also needs
Py:=Oy
Piston:=…Oy+Piston_radius
etc, etc

I want to tidy it up a bit more but I've run out of time for now. I'll check it over the coming week.

Regards

Brian
Offline bdrunagle  
#6 Posted : 11 March 2012 15:06:36(UTC)
bdrunagle


Rank: Member

Groups: Registered
Joined: 18/05/2010(UTC)
Posts: 27
Man
United Kingdom

Was thanked: 13 time(s) in 6 post(s)
Here is the updated animation.
http://smath.info/wiki/G...gle/SimpleAnimation2.zip
Varying the values of Originx and Originy shift the animation as expected

I tried to tidy it up even more. In the above example, the origin is passed to the plot function using two parameters, Originx and Originy. I tried to pass the same values using a two-element vector, Origin, but without success: now I get a "t not defined" error in the 2D plot. To be consistent I also changed all the *x and *y parameters in the function to two-element vectors.
http://smath.info/wiki/G...le/SimpleAnimation2a.zip

Is there a special way to pass vectors to a function?
Is there a special way to define a vector inside a function?

Sorry, I'm still learning about SMath
By the way, I'm running SMath 0.93 on Windows 7

Regards

Brian
Offline Ber7  
#7 Posted : 11 March 2012 19:38:46(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Slightly corrected your file,Regards.
http://smath.info/wiki/G...ile=SimpleAnimationM.rar
Offline Ber7  
#8 Posted : 30 August 2012 08:11:14(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Square wheel
A square wheel rolls smoothly on inverted catenaries
References
G. B. Robison, Rockers and rollers, Math. Mag. 33 (1960), 139–144.

http://smath.info/wiki/G...File=square_%20wheel.rar

Edited by user 30 August 2012 08:34:11(UTC)  | Reason: Not specified

Ber7 attached the following image(s):
squareVelo.gif
thanks 3 users thanked Ber7 for this useful post.
on 30/08/2012(UTC),  on 30/08/2012(UTC),  on 31/08/2012(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.