Skip to content

Commit 93bc63e

Browse files
committed
Revert "tau_m vms computation options"
This reverts commit b34f9f6.
1 parent b34f9f6 commit 93bc63e

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/Commons/Equations/StabilizationOperations.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,21 @@ function momentum_stabilization(uu, stab_coeff::TensorStabilization,simcase::Sim
2929
@unpack G,GG,gg = stab_coeff
3030
@unpack sprob = simcase
3131
@unpack Ci = sprob.coeff_method
32-
@unpack r = sprob.coeff_method
3332

3433
@sunpack ν, dt = simcase
3534

3635
function τm(uun, G, GG)
37-
τ₁ = Ci[1] * (2 / dt)^r #Here, you can increse the 2 if CFL high
38-
τ₃ = Ci[2] *^r * (GG)^r/2 )
36+
τ₁ = Ci[1] * (2 / dt)^2
37+
τ₃ = Ci[2] *^2 * GG )
3938

4039
uu_new = VectorValue(val_u.(uun)...)
4140

4241
if iszero(norm(uu_new))
43-
return (τ₁ .+ τ₃) .^ (-1 / r)
42+
return (τ₁ .+ τ₃) .^ (-1 / 2)
4443
end
4544

4645
τ₂ = uu_new G uu_new
47-
return (τ₁ .+ τ₂ .+ τ₃) .^ (-1 / r)
46+
return (τ₁ .+ τ₂ .+ τ₃) .^ (-1 / 2)
4847
end
4948

5049

src/Commons/MatrixCreation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ end
9999

100100
function initialize_matrices(u_adv, params, simcase)
101101
@info "allocation matrix and vectors"
102-
@time matrices = allocate_all_matrices_vectors(u_adv, params, simcase)
102+
matrices = allocate_all_matrices_vectors(u_adv, params, simcase)
103103
@info "matrix and vectors allocated"
104104

105105
@info "updating matrix and vectors"

src/Commons/ParametersDef/StabilizationStruct.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ end
2727

2828
@with_kw struct TensorFormulation <: StabilizationFormulation
2929
r::Int64 = 2
30-
Ci::Vector{Real} = [4,36]
31-
τm_comp::Real = -1 #Standard VMS; τm_comp = 1 SUPG standard
32-
@assert length(Ci) == 2 "Ci length must be 2"
33-
@assert (Ci[1]>=0 && Ci[2]>=0) "Ci values must be non-negative"
34-
@assert τm_comp==1 || τm_comp==-1 " τm values +1 or -1 in TensorFormulation"
35-
30+
Ci::Vector{Int64} = [4,36]
3631
end
3732

3833

0 commit comments

Comments
 (0)