-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This test almost perfectly mimics the 'problematic' input that Joe sent us. It has friction, a symmetry boundary, and a free slip wall boundary. The velocity field should be constant throughout the entire domain, and that is what we see when we have two term boundary expansion turned on which allows the pressure gradient to be constant and to perfectly balance the friction term in the momentum balance Refs #16765
- Loading branch information
Showing
4 changed files
with
220 additions
and
2 deletions.
There are no files selected for viewing
196 changes: 196 additions & 0 deletions
196
modules/navier_stokes/test/tests/finite_volume/ins/lid-driven/lid-driven-with-grav.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,196 @@ | ||
mu=.01 | ||
rho=1 | ||
|
||
[GlobalParams] | ||
vel = 'velocity' | ||
velocity_interp_method = 'rc' | ||
advected_interp_method = 'average' | ||
two_term_boundary_expansion = true | ||
rhie_chow_user_object = 'rc' | ||
[] | ||
|
||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
xmin = 0 | ||
xmax = .1 | ||
ymin = 0 | ||
ymax = .1 | ||
nx = 2 | ||
ny = 2 | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
type = INSFVVelocityVariable | ||
[] | ||
[v] | ||
type = INSFVVelocityVariable | ||
[] | ||
[pressure] | ||
type = INSFVPressureVariable | ||
[] | ||
[lambda] | ||
family = SCALAR | ||
order = FIRST | ||
[] | ||
[] | ||
|
||
[AuxVariables] | ||
[U] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
fv = true | ||
[] | ||
[] | ||
|
||
[AuxKernels] | ||
[mag] | ||
type = VectorMagnitudeAux | ||
variable = U | ||
x = u | ||
y = v | ||
[] | ||
[] | ||
|
||
[UserObjects] | ||
[rc] | ||
type = INSFVRhieChowInterpolator | ||
u = u | ||
v = v | ||
[] | ||
[] | ||
|
||
[FVKernels] | ||
[mass] | ||
type = INSFVMassAdvection | ||
variable = pressure | ||
pressure = pressure | ||
u = u | ||
v = v | ||
rho = ${rho} | ||
[] | ||
[mean_zero_pressure] | ||
type = FVScalarLagrangeMultiplier | ||
variable = pressure | ||
lambda = lambda | ||
[] | ||
|
||
[u_advection] | ||
type = INSFVMomentumAdvection | ||
variable = u | ||
advected_quantity = 'rhou' | ||
pressure = pressure | ||
u = u | ||
v = v | ||
rho = ${rho} | ||
momentum_component = 'x' | ||
[] | ||
|
||
[u_viscosity] | ||
type = INSFVMomentumDiffusion | ||
variable = u | ||
mu = 'mu' | ||
momentum_component = 'x' | ||
[] | ||
|
||
[u_pressure] | ||
type = INSFVMomentumPressure | ||
variable = u | ||
momentum_component = 'x' | ||
pressure = pressure | ||
[] | ||
|
||
[u_gravity] | ||
type = INSFVMomentumGravity | ||
variable = u | ||
momentum_component = 'x' | ||
rho = ${rho} | ||
gravity = '0 -1 0' | ||
[] | ||
|
||
[v_advection] | ||
type = INSFVMomentumAdvection | ||
variable = v | ||
advected_quantity = 'rhov' | ||
pressure = pressure | ||
u = u | ||
v = v | ||
rho = ${rho} | ||
momentum_component = 'y' | ||
[] | ||
|
||
[v_viscosity] | ||
type = INSFVMomentumDiffusion | ||
variable = v | ||
mu = 'mu' | ||
momentum_component = 'y' | ||
[] | ||
|
||
[v_pressure] | ||
type = INSFVMomentumPressure | ||
variable = v | ||
momentum_component = 'y' | ||
pressure = pressure | ||
[] | ||
|
||
[v_gravity] | ||
type = INSFVMomentumGravity | ||
variable = v | ||
momentum_component = 'y' | ||
rho = ${rho} | ||
gravity = '0 -1 0' | ||
[] | ||
[] | ||
|
||
[FVBCs] | ||
[no_slip_x] | ||
type = INSFVNoSlipWallBC | ||
variable = u | ||
boundary = 'left right top bottom' | ||
function = 0 | ||
[] | ||
|
||
[no_slip_y] | ||
type = INSFVNoSlipWallBC | ||
variable = v | ||
boundary = 'left right top bottom' | ||
function = 0 | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[ins_fv] | ||
type = INSFVMaterial | ||
u = 'u' | ||
v = 'v' | ||
pressure = 'pressure' | ||
rho = ${rho} | ||
[] | ||
[mu] | ||
type = ADGenericConstantFunctorMaterial | ||
prop_names = 'mu' | ||
prop_values = '${mu}' | ||
[] | ||
[] | ||
|
||
[Preconditioning] | ||
[smp] | ||
type = SMP | ||
full = true | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = 'NEWTON' | ||
petsc_options_iname = '-pc_type -ksp_gmres_restart -sub_pc_type -sub_pc_factor_shift_type' | ||
petsc_options_value = 'asm 100 lu NONZERO' | ||
nl_rel_tol = 1e-12 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+154 KB
...les/navier_stokes/test/tests/finite_volume/pins/channel-flow/gold/rc-friction-free-slip.e
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters