forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NearestPointLayeredIntegral test. Closes idaholab#14717
- Loading branch information
1 parent
4f40969
commit 4ddb74b
Showing
5 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
framework/doc/content/source/userobject/NearestPointLayeredIntegral.md
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 @@ | ||
!template load file=stubs/moose_object.md.template name=NearestPointLayeredIntegral syntax=/UserObjects/NearestPointLayeredIntegral |
Binary file added
BIN
+145 KB
...ests/userobjects/nearest_point_layered_integral/gold/nearest_point_layered_integral_out.e
Binary file not shown.
76 changes: 76 additions & 0 deletions
76
test/tests/userobjects/nearest_point_layered_integral/nearest_point_layered_integral.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,76 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 3 | ||
xmax = 1.5 | ||
ymax = 1.5 | ||
zmax = 1.2 | ||
nx = 10 | ||
ny = 10 | ||
nz = 10 | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./np_layered_average] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
[../] | ||
[] | ||
|
||
[AuxKernels] | ||
[./np_layered_average] | ||
type = SpatialUserObjectAux | ||
variable = np_layered_average | ||
execute_on = timestep_end | ||
user_object = npla | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./left] | ||
type = DirichletBC | ||
variable = u | ||
boundary = left | ||
value = 0 | ||
[../] | ||
[./one] | ||
type = DirichletBC | ||
variable = u | ||
boundary = 'right back top' | ||
value = 1 | ||
[../] | ||
[] | ||
|
||
[UserObjects] | ||
[./npla] | ||
type = NearestPointLayeredIntegral | ||
direction = y | ||
num_layers = 10 | ||
variable = u | ||
points_file = points.txt | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
|
||
solve_type = 'PJFNK' | ||
|
||
petsc_options_iname = '-pc_type -pc_hypre_type' | ||
petsc_options_value = 'hypre boomeramg' | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
4 changes: 4 additions & 0 deletions
4
test/tests/userobjects/nearest_point_layered_integral/points.txt
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,4 @@ | ||
0.375 0 0.3 | ||
1.125 0 0.3 | ||
0.375 0 0.9 | ||
1.125 0 0.9 |
10 changes: 10 additions & 0 deletions
10
test/tests/userobjects/nearest_point_layered_integral/tests
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] | ||
[./from_file] | ||
type = 'Exodiff' | ||
input = 'nearest_point_layered_integral.i' | ||
exodiff = 'nearest_point_layered_integral_out.e' | ||
requirement = 'The system shall compute layered integrals that computed from the closest values for a list of points that are specified in an external file' | ||
design = 'NearestPointLayeredIntegral.md' | ||
issues = '#14717' | ||
[../] | ||
[] |