Skip to content

Commit 3d69f5e

Browse files
committed
shrinked output image
1 parent 94ebeb8 commit 3d69f5e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

9_reduced_DOF/linear.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ def get_element_matrices(element_nodes, D, rho, t):
168168
print("\nGenerating combined mode animation...")
169169

170170
num_modes_to_animate = 6
171-
animation_duration = 5.0
172-
fps = 30
171+
animation_duration = 4.0
172+
fps = 20
173173
num_frames = int(animation_duration * fps)
174174
displacement_scale = L * 0.15 # Scale displacements for better visibility
175175

176-
fig, axes = plt.subplots(1, num_modes_to_animate, figsize=(15, 8))
176+
fig, axes = plt.subplots(1, num_modes_to_animate, figsize=(7.5, 4))
177177

178178
triangles = []
179179
for el in elements:
@@ -215,7 +215,7 @@ def animate(frame):
215215
ax.set_ylim(fixed_ylim)
216216
ax.set_aspect('equal')
217217

218-
ax.triplot(triang, '--', color='gray', linewidth=0.5)
218+
ax.triplot(triang, '--', color='gray', linewidth=0.25)
219219

220220
psi = eigenvectors[:, i]
221221
omega = angular_freq[i]
@@ -234,7 +234,7 @@ def animate(frame):
234234
edgecolors='k', cmap='viridis', linewidth=0.5,
235235
vmin=0, vmax=vmax_values[i])
236236

237-
ax.set_title(f'Mode {i+1}\n{frequencies[i]:.2f} Hz', fontsize=15)
237+
ax.set_title(f'Mode {i+1}\n{frequencies[i]:.2f} Hz', fontsize=7.5)
238238
ax.set_xticks([])
239239
ax.set_yticks([])
240240

9_reduced_DOF/modes_1-6.gif

-38.9 MB
Loading

0 commit comments

Comments
 (0)