From ed6d6198dbafe63b07df15e34e15b5da5ca7a8eb Mon Sep 17 00:00:00 2001 From: Ludovic Raess Date: Sun, 28 Nov 2021 00:32:38 +0100 Subject: [PATCH] Add eta_vep in iterative update. --- newdamp/Stokes2D_vep_reg_IU_LR.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newdamp/Stokes2D_vep_reg_IU_LR.jl b/newdamp/Stokes2D_vep_reg_IU_LR.jl index e6d9e1d..9daf950 100644 --- a/newdamp/Stokes2D_vep_reg_IU_LR.jl +++ b/newdamp/Stokes2D_vep_reg_IU_LR.jl @@ -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)