Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Olender committed Oct 28, 2024
1 parent 3ff95e1 commit b0d60d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions initial_guess_cpw.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@
time_step = 2e-4 # [s]
final_time = 1.0 # [s]
out_freq = int(0.01/time_step)
cpw = 5

n = 50
mesh = fire.RectangleMesh(n, n, 0, L, originX=-L, diagonal='crossed')
c = ((lambda_out + 2*mu_out)/7850)**0.5

edge_length = c/(freq*cpw)
n = int(L/edge_length)+1
mesh = fire.RectangleMesh(n, n, 0, L, originX=-L)
z, x = fire.SpatialCoordinate(mesh)

d = {}
Expand Down

0 comments on commit b0d60d4

Please sign in to comment.