Skip to content

Commit

Permalink
Add test for location dependent material properties in FV, evaluated …
Browse files Browse the repository at this point in the history
…at boundary by FVDiffusion kernel, idaholab#15194
  • Loading branch information
GiudGiud committed Dec 4, 2020
1 parent d0ff267 commit a8b227e
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
78 changes: 78 additions & 0 deletions 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
[]
Binary file not shown.
8 changes: 8 additions & 0 deletions test/tests/materials/boundary_material/tests
Expand Up @@ -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.'
[../]
[]

0 comments on commit a8b227e

Please sign in to comment.