diff --git a/test/tests/materials/boundary_material/fv_material_quadrature.i b/test/tests/materials/boundary_material/fv_material_quadrature.i new file mode 100644 index 000000000000..c85946bb068b --- /dev/null +++ b/test/tests/materials/boundary_material/fv_material_quadrature.i @@ -0,0 +1,78 @@ +# +# Parsed material properties depend on the physical location of the element +# This requires the initialization of the quadrature in the FVFlux loop + +[Mesh] + type = GeneratedMesh + dim = 2 + xmin = 0 + xmax = 1 + ymin = 0 + ymax = 1 + nx = 4 + ny = 4 + elem_type = QUAD9 +[] + +[Functions] + [linear_x] + type = ParsedFunction + value = 'x' + [] +[] + +[Variables] + [u] + family = MONOMIAL + order = CONSTANT + fv = true + [] +[] + +[FVKernels] + [diff] + type = FVDiffusion + variable = u + coeff = k1 + [] + + [r] + type = FVReaction + variable = u + [] +[] + +[FVBCs] + [all] + type = FVDirichletBC + variable = u + boundary = 'left right bottom top' + value = 1 + [] +[] + +[Materials] + [k1] + type = ADGenericFunctionMaterial + prop_names = 'k1' + prop_values = linear_x + block = 0 + [] +[] + +[Executioner] + type = Steady + solve_type = NEWTON + + petsc_options_iname = '-pc_type' + petsc_options_value = 'lu' +[] + +[Problem] + kernel_coverage_check = false +[] + +[Outputs] + execute_on = 'timestep_end' + exodus = true +[] diff --git a/test/tests/materials/boundary_material/gold/fv_material_quadrature_out.e b/test/tests/materials/boundary_material/gold/fv_material_quadrature_out.e new file mode 100644 index 000000000000..37c9df8fee3e Binary files /dev/null and b/test/tests/materials/boundary_material/gold/fv_material_quadrature_out.e differ diff --git a/test/tests/materials/boundary_material/tests b/test/tests/materials/boundary_material/tests index a31d88f9473b..a7cf52d798c4 100644 --- a/test/tests/materials/boundary_material/tests +++ b/test/tests/materials/boundary_material/tests @@ -17,4 +17,12 @@ issues = '#3586' requirement = 'The system shall provide material properties in boundary restricted objects acting on elemental variables.' [../] + + [./fv_material_quadrature] + type = 'Exodiff' + input = 'fv_material_quadrature.i' + exodiff = 'fv_material_quadrature_out.e' + issues = '#15194' + requirement = 'The system shall provide location dependent boundary material property evaluations with finite volume variables.' + [../] []