Animate plots

Animate plots - 消息

#1 已发布: 2019/11/6 06:41:56
hanskl

hanskl

7个赞,共158个帖子。

组: User

Hi guys.

Seeing how fast I got great and helpful answers yesterday, I thought I might ask another rather silly question. I am trying to animate a plot, and I have never done it before.

I have made a simple sheet ploting V,M for a rectangular simply supported beam with uniformly distributed load. I have also plotted sigma and tau for the section, as well as Von Mises.

I have tried to make 3D plots to show how stresses evovle through the length of the beam, and to some extent it illustrates that.

I have also tried to animate a 2D plot, to work like a cross section that moves along the length of the beam, but I cannot figure out how to make it work.

Any ideas where it went wrong for me?

Also; is it possible to plot stresses along y-axis as opposed to x-axis?

Thanks again :d

Skjermbilde.PNG
spenninger bjelke.sm (30.46 KiB)已下载 1250 次。

#2 已发布: 2019/11/6 11:11:51
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Oh !!! too many questions in there.
Some typical animations:

0Anim Brownian.sm (9.94 KiB)已下载 1181 次。
0Anim Butterfly.sm (15.42 KiB)已下载 1215 次。
0Anim Analemma.sm (29.27 KiB)已下载 1225 次。
0Anim Brownian 3D [Ber7].sm (24.55 KiB)已下载 983 次。
0Anim CONVOLUTION.sm (27.89 KiB)已下载 1163 次。
0Anim Cheval.sm (21.64 KiB)已下载 1198 次。
0Anim Lorenz Attractor.sm (6.08 KiB)已下载 1273 次。
0Anim Ellipse.sm (13.85 KiB)已下载 1202 次。
0Anim Lorenz Attractor Norm2r.sm (10.48 KiB)已下载 1230 次。
0Anim Gozilla.sm (11.57 KiB)已下载 1194 次。
0Anim Model [Lissajous, Brownian, Butterfly].sm (39.48 KiB)已下载 1035 次。
0Anim Trifolium [Windmill Ber7].sm (25.85 KiB)已下载 1044 次。
0Anim Trifolium [Windmill].sm (17.34 KiB)已下载 996 次。
#3 已发布: 2019/11/6 12:31:32
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

Check out this thread
https://en.smath.com/forum/yaf_postst1068_Beam-calculation.aspx
#4 已发布: 2019/11/6 12:51:59
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Also; is it possible to plot stresses along y-axis as opposed to x-axis?


1. Yes as discrete format ... augment(y,x) in reverse order.
2. surface 3D does not save settings. Plot f,g,j
not you had plot f(x,y) ...
3. can't doctor the last plot ... proved otherwise.

spenninger bjelke _1.sm (55.57 KiB)已下载 1220 次。
#5 已发布: 2019/11/6 17:45:06
hanskl

hanskl

7个赞,共158个帖子。

组: User

Wrote

Check out this thread
https://en.smath.com/forum/yaf_postst1068_Beam-calculation.aspx



Wowzers!
#6 已发布: 2019/11/6 17:47:42
hanskl

hanskl

7个赞,共158个帖子。

组: User

Wrote

Wrote

Also; is it possible to plot stresses along y-axis as opposed to x-axis?


1. Yes as discrete format ... augment(y,x) in reverse order.
2. surface 3D does not save settings. Plot f,g,j
not you had plot f(x,y) ...
3. can't doctor the last plot ... proved otherwise.

spenninger bjelke _1.sm (55.57 KiB)已下载 1220 次。



Thanks Jean!

I will try to plot about y-axis with the augment function.
Surface 3D not saving settings explains a lot! I think I tried to save those settings at least 10 times before giving up.

I will try to understand how plot animations work, and come back with a animated plot of my stresses..

Best regards,
Hans Kristian.
#7 已发布: 2019/11/6 18:58:23
hanskl

hanskl

7个赞,共158个帖子。

组: User

Well, I got the animations to work. I guess the mistake was to try to animate on a variable named 't'.

With a bit more tinkering I should be able to plot my stresses about y-y axis as well.

Best regards,
Hans Kristian

spenninger bjelke.sm (32.03 KiB)已下载 1269 次。
Skjermbilde.PNG
#8 已发布: 2019/11/6 21:25:26
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Well, I got the animations to work


I saved it under your name [Project Hans].
Always credit what's not personal.
Jean

#9 已发布: 2019/11/7 00:31:04
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... that one is for training your Olympic Monkey !
First: show him the Smath video ... enjoy.
Jean

0Anim Fourier MonkeyBranching.sm (14.48 KiB)已下载 1250 次。
#10 已发布: 2019/11/7 06:06:33
hanskl

hanskl

7个赞,共158个帖子。

组: User

Wrote

Wrote

Well, I got the animations to work


I saved it under your name [Project Hans].
Always credit what's not personal.
Jean



I find it somewhat funny my simple stress visualization sheet was something you deemed worthy of saving on your harddrive.

Thanks,
Hans Kristian
#11 已发布: 2019/11/7 18:07:53
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I find it somewhat funny my simple stress visualization sheet was something you deemed worthy of saving on your harddrive.


It carries units so nicely, not usual vs so many projects
that fail [Units don't match].
The attach breakfast with chicken rather than eggs.
At least, my small laptop does not smoke.

Julia.PNG

Pattern Julia Set [PUBLISH].sm (25.09 KiB)已下载 1014 次。
#12 已发布: 2019/11/8 07:08:47
hanskl

hanskl

7个赞,共158个帖子。

组: User

Wrote

Wrote

I find it somewhat funny my simple stress visualization sheet was something you deemed worthy of saving on your harddrive.


It carries units so nicely, not usual vs so many projects
that fail [Units don't match].
The attach breakfast with chicken rather than eggs.
At least, my small laptop does not smoke.



Thank you!

Mine actually managed this sheet in 1.2 minutes.. :d
#13 已发布: 2019/11/8 13:31:53
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

Wrote

... that one is for training your Olympic Monkey !
First: show him the Smath video ... enjoy.
Jean

Another variation of Jean animation

0Anim Fourier MonkeyBranching 1.sm (18.08 KiB)已下载 1227 次。

#14 已发布: 2019/11/8 14:58:53
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: Super Administrator

Wrote

Wrote

I find it somewhat funny my simple stress visualization sheet was something you deemed worthy of saving on your harddrive.


It carries units so nicely, not usual vs so many projects
that fail [Units don't match].
The attach breakfast with chicken rather than eggs.
At least, my small laptop does not smoke.

Julia.PNG

Pattern Julia Set [PUBLISH].sm (25.09 KiB)已下载 1014 次。



0.8 min using latest 7251:

julia.png

Significant (20x) performance improvement for 3 years.
#15 已发布: 2019/11/8 21:42:22
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Significant (20x) performance improvement for 3 years.


Impressive improvement ... MCD 11 XP Pro [4 sec]
Thanks Andrey ... Jean

  • 有新帖
  • 无新帖