Skip to content

Commit

Permalink
Fix format.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg committed Feb 28, 2024
1 parent a640ce5 commit 86105dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions perpendicular-flap/solid-fenics/solid.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ def neumann_boundary(x, on_boundary):
Chung, J., and Hulbert, G. M. (June 1, 1993). "A Time Integration Algorithm for Structural Dynamics With Improved Numerical Dissipation:
The Generalized-α Method." ASME. J. Appl. Mech. June 1993; 60(2): 371–375. https://doi.org/10.1115/1.2900803
"""
assert(alpha_m <= alpha_f)
assert(alpha_f <= 0.5)
assert (alpha_m <= alpha_f)
assert (alpha_f <= 0.5)

gamma = Constant(0.5 + alpha_f - alpha_m)
beta = Constant((gamma + 0.5)**2 / 4.)


# Define strain
def epsilon(u):
return 0.5 * (nabla_grad(u) + nabla_grad(u).T)
Expand Down

0 comments on commit 86105dc

Please sign in to comment.