Skip to content

Commit

Permalink
fix up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Dec 11, 2024
1 parent 3a6a917 commit 3efa260
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/beams/nonlin_statics/twisting_circle_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function twisting_circle()
# Cross-sectional properties
cs = CrossSectionRectangle(s -> h, s -> b, s -> [0.0, 0.0, 1.0])

tolerance = radius/nel/1000;
tolerance = radius/nel/1000;
fens, fes = frame_member([0 0 0; 2*pi 0 0], nel, cs)
for i in 1:count(fens)
a = fens.xyz[i, 1]
Expand Down
13 changes: 8 additions & 5 deletions examples/beams/nonlin_transient/argyr_swing_examples.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
"""
Argyris L-frame, large-amplitude swinging motion.
An L-shaped frame is pushed at the elbow by a triangular-pulse force,
which sends it swinging about the pinned end. The frame executes
large-amplitude dynamic motion.
"""
module argyr_swing_examples
# Argyris L-frame, large-amplitude swinging motion.
#
# An L-shaped frame is pushed at the elbow by a triangular-pulse force,
# which sends it swinging about the pinned end. The frame executes
# large-amplitude dynamic motion.


using FinEtools
using FinEtoolsDeforLinear
Expand Down
11 changes: 7 additions & 4 deletions examples/beams/nonlin_transient/fast_top_examples.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
"""
Fast Lagrangian top.
Fast-spinning Lagrange top simulated by a beam model. The reference
solution is available in Lagrange_top_fast (rigid-body solver).
"""
module fast_top_examples
## Fast Lagrangian top.
#
# Fast-spinning Lagrange top simulated by a beam model. The reference
# solution is available in Lagrange_top_fast (rigid-body solver).


using FinEtools
using FinEtoolsDeforLinear
Expand Down
9 changes: 6 additions & 3 deletions examples/beams/nonlin_transient/simo_vuquoc_examples.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""
Simo, J. C. and L. Vuquoc (1988). "ON THE DYNAMICS IN SPACE OF RODS
UNDERGOING LARGE MOTIONS - A GEOMETRICALLY EXACT APPROACH."
Computer Methods in Applied Mechanics and Engineering 66(2): 125-161.
"""
module simo_vuquoc_examples
# Simo, J. C. and L. Vuquoc (1988). "ON THE DYNAMICS IN SPACE OF RODS
# UNDERGOING LARGE MOTIONS - A GEOMETRICALLY EXACT APPROACH."
# Computer Methods in Applied Mechanics and Engineering 66(2): 125-161.


using FinEtools
using FinEtoolsDeforLinear
Expand Down
11 changes: 7 additions & 4 deletions examples/beams/nonlin_transient/slow_top_examples.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
"""
Slow Lagrangian Top.
Slow-spinning Lagrange top simulated by a beam model. The reference
solution is available in Lagrange_top_slow (rigid-body solver).
"""
module slow_top_examples
## slow Lagrangian top.
#
# slow-spinning Lagrange top simulated by a beam model. The reference
# solution is available in Lagrange_top_slow (rigid-body solver).


using FinEtools
using FinEtoolsDeforLinear
Expand Down
4 changes: 3 additions & 1 deletion examples/beams/nonlin_transient/twisting_circle_examples.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""
Twisting of a circle into shape with two turns. Dynamic simulation.
"""
module twisting_circle_examples
# Twisting of a circle into shape with two turns

using FinEtools
using FinEtoolsDeforLinear
Expand Down
2 changes: 1 addition & 1 deletion examples/shells/single_element/single_element_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function standard_single_dsg3()
# # Visualization
for j in 1:length(dec.values)
U = v[:, j]
scattersysvec!(dchi, (L/4)/maximum(abs.(U)).*U)
scattersysvec!(dchi, (L/4)/maximum(abs.(U)).*U, DOF_KIND_ALL)
Rfield = deepcopy(Rfield0)
update_rotation_field!(Rfield, dchi)
plots = cat(plot_space_box([[-L -L -L]; [+L +L +L]]),
Expand Down

0 comments on commit 3efa260

Please sign in to comment.