Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/tduretz/SeismicQ
Browse files Browse the repository at this point in the history
  • Loading branch information
tduretz committed Aug 25, 2023
2 parents 01e91ea + cddf12d commit 2a68392
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion examples/Wave1D_Sismo_Day4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function MainSource()
@. ε̇.xx = ∂Vx∂x - 1/3*∇V

# Stress update
@. τ.xx = f_shear(G,1.0e5,Δt)*Δt*(ε̇.xx) + f_relax(G,1.0e5,Δt)*τ.xx
@. τ.xx = f_shear(G)*Δt*(ε̇.xx) + f_relax(G)*τ.xx

# Pressure update
@. P = P - Δt*f_bulk(K)*∇V
Expand Down Expand Up @@ -114,4 +114,15 @@ function MainSource()

end

function f_bulk(K)
return K
end

function f_shear(G)
return 2*G
end
function f_relax(G)
return 1.
end

MainSource()

0 comments on commit 2a68392

Please sign in to comment.