Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Nov 8, 2024
1 parent f7b6ec0 commit ee08203
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/Applications/channel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ function _channel(;
np_per_level = nothing,
rt_scaling = false,
formulation = :mhd,
simplexify = false
simplexify = false,
fluid_disc = ifelse(!simplexify,:Qk_dPkm1,:SV)
)
@assert inlet [:parabolic,:shercliff,:constant]
@assert initial_value [:zero,:inlet,:solve]
Expand Down Expand Up @@ -151,7 +152,8 @@ function _channel(;
params[:fespaces] = Dict(
:order => order,
:order_j => order_j,
:rt_scaling => rt_scaling ? 1.0/get_mesh_size(model) : nothing
:rt_scaling => rt_scaling ? 1.0/get_mesh_size(model) : nothing,
:fluid_disc => fluid_disc,
)

# Fluid parameters
Expand Down
4 changes: 3 additions & 1 deletion src/Applications/expansion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function _expansion(;
solid_coupling = :none,
niter = nothing,
convection = :newton,
fluid_disc = :Qk_dPkm1,
rt_scaling = false,
savelines = false,
petsc_options = "",
Expand Down Expand Up @@ -123,7 +124,8 @@ function _expansion(;
params[:fespaces] = Dict{Symbol,Any}(
:order_u => order,
:order_j => order_j,
:rt_scaling => rt_scaling ? 1.0/get_mesh_size(model) : nothing
:rt_scaling => rt_scaling ? 1.0/get_mesh_size(model) : nothing,
:fluid_disc => fluid_disc,
)

params[:fluid] = Dict{Symbol,Any}(
Expand Down
6 changes: 4 additions & 2 deletions src/Applications/hunt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ function _hunt(;
kmap_x = 1,
kmap_y = 1,
ranks_per_level = nothing,
simplexify = false
simplexify = false,
fluid_disc = ifelse(!simplexify,:Qk_dPkm1,:SV)
)
@assert formulation [:cfd,:mhd]
@assert initial_value [:zero,:solve]
Expand Down Expand Up @@ -160,7 +161,8 @@ function _hunt(;
params[:fespaces] = Dict{Symbol,Any}(
:order_u => order,
:order_j => order_j,
:rt_scaling => rt_scaling ? 1.0/get_mesh_size(model) : nothing
:rt_scaling => rt_scaling ? 1.0/get_mesh_size(model) : nothing,
:fluid_disc => fluid_disc
)

# Boundary conditions
Expand Down

0 comments on commit ee08203

Please sign in to comment.