Skip to content

Commit

Permalink
Examples: Simplify and remove ravel() from nd-prescribed values
Browse files Browse the repository at this point in the history
this is now handled automatically
  • Loading branch information
adtzlr committed Nov 30, 2024
1 parent 088e64f commit 1b30023
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/ex05_rubber-metal-bushing.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
center=[0, 0, 0],
)[0]
inner_radial = 8 * np.array([0, 0, 1]) * progress
move.append((inner_radial + inner_rotated - inner).ravel())
move.append(inner_radial + inner_rotated - inner)

# %%
# After defining the load step, the simulation model is ready to be solved.
Expand Down
2 changes: 1 addition & 1 deletion examples/ex13_morph-rubber-wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def sigmoid(x):
axis=0,
center=[0, 0],
)[0]
move.append((center_rotated - center).ravel())
move.append(center_rotated - center)

# %%
# A nearly-incompressible solid body is created for the rubber. At the bottom, a
Expand Down
2 changes: 1 addition & 1 deletion examples/ex17_torsion-gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
axis=2,
center=[0, 0, 1],
)[0]
move.append((top_rotated - top).ravel())
move.append(top_rotated - top)

# %%
# The reaction moment on the centerpoint of the right end face is tracked by a
Expand Down

0 comments on commit 1b30023

Please sign in to comment.