Skip to content

Commit

Permalink
fix:Timoshenko beam example nu scaled for new dissipation module
Browse files Browse the repository at this point in the history
  • Loading branch information
armantekinalp committed May 30, 2022
1 parent 6ce953c commit b13fd45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions examples/TimoshenkoBeamCase/convergence_timoshenko.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TimoshenkoBeamSimulator(BaseSystemCollection, Constraints, Forcing):

# Options
PLOT_FIGURE = True
SAVE_FIGURE = False
SAVE_FIGURE = True
SAVE_RESULTS = False
ADD_UNSHEARABLE_ROD = False

Expand All @@ -38,10 +38,11 @@ def simulate_timoshenko_beam_with(
base_length = 3.0
base_radius = 0.25
density = 5000
nu = 0.1
nu = 0.1 / density / (np.pi * base_radius**2)
E = 1e6
# For shear modulus of 1e4, nu is 99!
poisson_ratio = 99
shear_modulus = E / (poisson_ratio + 1.0)

shearable_rod = CosseratRod.straight_rod(
n_elem,
Expand All @@ -53,7 +54,7 @@ def simulate_timoshenko_beam_with(
density,
nu,
E,
poisson_ratio,
shear_modulus=shear_modulus,
)

timoshenko_sim.append(shearable_rod)
Expand Down
6 changes: 3 additions & 3 deletions examples/TimoshenkoBeamCase/timoshenko.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class TimoshenkoBeamSimulator(BaseSystemCollection, Constraints, Forcing):

# Options
PLOT_FIGURE = True
SAVE_FIGURE = False
SAVE_FIGURE = True
SAVE_RESULTS = False
ADD_UNSHEARABLE_ROD = True
ADD_UNSHEARABLE_ROD = False

# setting up test params
n_elem = 100
Expand All @@ -32,7 +32,7 @@ class TimoshenkoBeamSimulator(BaseSystemCollection, Constraints, Forcing):
base_radius = 0.25
base_area = np.pi * base_radius ** 2
density = 5000
nu = 0.1
nu = 0.1 / density / base_area
E = 1e6
# For shear modulus of 1e4, nu is 99!
poisson_ratio = 99
Expand Down

0 comments on commit b13fd45

Please sign in to comment.