Skip to content

Commit

Permalink
fix:muscular snake scale dissipation
Browse files Browse the repository at this point in the history
  • Loading branch information
armantekinalp committed May 31, 2022
1 parent 516f7f4 commit edc2e9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/MuscularSnake/muscular_snake.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__doc__ = """Muscular snake example from Zhang et. al. Nature Comm 2019 paper."""
import sys

import numpy as np
sys.path.append("../../")
from elastica import *
from examples.MuscularSnake.post_processing import (
Expand Down Expand Up @@ -54,7 +54,7 @@ class MuscularSnakeSimulator(
base_length_body,
base_radius_body,
density_body,
nu,
nu/ density_body / (np.pi*base_radius_body**2),
youngs_modulus=E,
shear_modulus=shear_modulus,
)
Expand Down Expand Up @@ -100,6 +100,7 @@ class MuscularSnakeSimulator(
muscle_radius = np.zeros((n_elem_muscle_group_one_to_three))
muscle_radius[:] = 0.003 # First set tendon radius for whole rod.
muscle_radius[4 * 3 : 9 * 3] = 0.006 # Change the radius of muscle elements
nu_muscle /= density_muscle * np.pi * 0.003**2

for i in range(int(n_muscle_fibers / 2)):

Expand Down

0 comments on commit edc2e9a

Please sign in to comment.