forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
174 additions
and
7 deletions.
There are no files selected for viewing
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
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
3 changes: 3 additions & 0 deletions
3
test/tests/auxkernels/lower_d_var/gold/lower-d-aux-var_out.csv
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,3 @@ | ||
time,avg_lower_constant_bottom,avg_lower_constant_left,avg_lower_constant_right,avg_lower_constant_top,avg_lower_first_bottom,avg_lower_first_left,avg_lower_first_right,avg_lower_first_top | ||
0,0,0,0,0,0,0,0,0 | ||
1,0.5,0.5,1.5,1.5,0.5,0.5,1.5,1.5 |
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,141 @@ | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 10 | ||
ny = 10 | ||
[] | ||
[lower_left] | ||
type = LowerDBlockFromSidesetGenerator | ||
input = gen | ||
sidesets = 'left' | ||
new_block_name = 'lower_left' | ||
[] | ||
[lower_right] | ||
type = LowerDBlockFromSidesetGenerator | ||
input = lower_left | ||
sidesets = 'right' | ||
new_block_name = 'lower_right' | ||
[] | ||
[lower_top] | ||
type = LowerDBlockFromSidesetGenerator | ||
input = lower_right | ||
sidesets = 'top' | ||
new_block_name = 'lower_top' | ||
[] | ||
[lower_bottom] | ||
type = LowerDBlockFromSidesetGenerator | ||
input = lower_top | ||
sidesets = 'bottom' | ||
new_block_name = 'lower_bottom' | ||
[] | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[AuxVariables] | ||
[lower_constant] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
block = 'lower_top lower_right lower_bottom lower_left' | ||
[] | ||
[lower_first] | ||
family = MONOMIAL | ||
order = FIRST | ||
block = 'lower_top lower_right lower_bottom lower_left' | ||
[] | ||
[higher] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
block = '0' | ||
[] | ||
[] | ||
|
||
[AuxKernels] | ||
[lower_constant] | ||
type = MaterialRealAux | ||
property = 'prop' | ||
variable = lower_constant | ||
boundary = 'top bottom right left' | ||
[] | ||
[lower_first] | ||
type = MaterialRealAux | ||
property = 'prop' | ||
variable = lower_first | ||
boundary = 'top bottom right left' | ||
[] | ||
[higher] | ||
type = MaterialRealAux | ||
property = 'prop' | ||
variable = higher | ||
block = 0 | ||
[] | ||
[] | ||
|
||
[Functions] | ||
[func] | ||
type = ParsedFunction | ||
expression = 'x + y' | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[func] | ||
type = GenericFunctionMaterial | ||
prop_names = 'prop' | ||
prop_values = 'func' | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
csv = true | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
[] | ||
|
||
[Postprocessors] | ||
[avg_lower_constant_left] | ||
type = ElementAverageValue | ||
variable = lower_constant | ||
block = lower_left | ||
[] | ||
[avg_lower_first_left] | ||
type = ElementAverageValue | ||
variable = lower_first | ||
block = lower_left | ||
[] | ||
[avg_lower_constant_bottom] | ||
type = ElementAverageValue | ||
variable = lower_constant | ||
block = lower_bottom | ||
[] | ||
[avg_lower_first_bottom] | ||
type = ElementAverageValue | ||
variable = lower_first | ||
block = lower_bottom | ||
[] | ||
[avg_lower_constant_top] | ||
type = ElementAverageValue | ||
variable = lower_constant | ||
block = lower_top | ||
[] | ||
[avg_lower_first_top] | ||
type = ElementAverageValue | ||
variable = lower_first | ||
block = lower_top | ||
[] | ||
[avg_lower_constant_right] | ||
type = ElementAverageValue | ||
variable = lower_constant | ||
block = lower_right | ||
[] | ||
[avg_lower_first_right] | ||
type = ElementAverageValue | ||
variable = lower_first | ||
block = lower_right | ||
[] | ||
[] |
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,10 @@ | ||
[Tests] | ||
design = 'AuxKernels/index.md' | ||
issues = '#26592' | ||
[csv] | ||
type = CSVDiff | ||
input = lower-d-aux-var.i | ||
csvdiff = lower-d-aux-var_out.csv | ||
requirement = 'The system shall allow populating lower-dimensional auxiliary variables using boundary restricted auxiliary kernels.' | ||
[] | ||
[] |