Mathematica Mathematica: Animated plot sphere as function of time

AI Thread Summary
To create an animated 3D plot of a sphere oscillating over time in Mathematica, users can utilize the Animate function alongside Graphics3D. The discussion highlights that a similar approach can be applied to a circle, as demonstrated with the provided example. Participants suggest using a 3D representation of the sphere and adjusting the radius dynamically based on the evaluated function. The conversation emphasizes the importance of defining the sphere's radius as a function of time to achieve the desired animation effect. Overall, the thread focuses on techniques for visualizing time-dependent shapes in Mathematica.
hasidim
Messages
15
Reaction score
0
Hi all,

Kinda new to Mathematica.

I have evaluated a function describing a sphere's (or just circle for simplicity) radius over time. I have made a Table of values for the radius over a given time interval, and am able to plot the radius vs time.

How can I make an animated 3D plot of the sphere as it oscillates over time?

Thanks in advance!
 
Physics news on Phys.org
Here's an example with a circle:
Code:
Animate[Graphics[Circle[{0, 0}, Sin[t]^2], 
  PlotRange -> {{-2, 2}, {-2, 2}}], {t, 0, 4 \[Pi]}]
 

Similar threads

Replies
4
Views
1K
Replies
0
Views
2K
Replies
2
Views
2K
Replies
18
Views
4K
Replies
13
Views
2K
Back
Top