Skip to content

Commit

Permalink
Add eta_vep in iterative update.
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Nov 27, 2021
1 parent b88d1e1 commit ed6d619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion newdamp/Stokes2D_vep_reg_IU_LR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ using Plots,LinearAlgebra,Printf
τxy[2:end-1,2:end-1] .= 2.0 .* η_ve_τv[2:end-1,2:end-1].*(Exy_τ[2:end-1,2:end-1] .- 0.5 .* av.*dQdTxy))
@. τii = sqrt(0.5*(τxx^2 + τyy^2) + τxyc*τxyc)
@. Fchk = τii - τ_y - Pr*sinϕ - λ*η_reg
@. η_vep = τii / 2.0 / Eii * 19.3
@. η_vep = τii / 2.0 / Eii * 19.3 # nx, ny = 63, 63
# @. η_vep = τii / 2.0 / Eii * 19.3 * 1.99 # nx, ny = 127, 127
η_vepv[2:end-1,2:end-1] .= av(η_vep); bc2!(η_vep)
# velocity update
dVx .= av_xa(dτ_ρ) .* (.-diff(Pr, dims=1)./dx .+ diff(τxx, dims=1)./dx .+ diff(τxy[2:end-1,:], dims=2)./dy)
Expand Down

0 comments on commit ed6d619

Please sign in to comment.