Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spherical averaging test (#7810)
- Loading branch information
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
.../tests/vectorpostprocessors/spherical_average/gold/spherical_average_out_average_0001.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,12 @@ | ||
c,radius | ||
0.021446928116288,0.25 | ||
-0.001892221855145,0.75 | ||
-0.0052984137149074,1.25 | ||
0.0026190710665126,1.75 | ||
0.0015703203297201,2.25 | ||
4.908009364995e-05,2.75 | ||
-0.0015666279451716,3.25 | ||
-5.6192122636905e-05,3.75 | ||
0.0012487205593233,4.25 | ||
-0.00034729501650382,4.75 | ||
|
56 changes: 56 additions & 0 deletions
56
test/tests/vectorpostprocessors/spherical_average/spherical_average.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,56 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 3 | ||
nx = 10 | ||
ny = 10 | ||
nz = 10 | ||
xmin = -5 | ||
xmax = 5 | ||
ymin = -5 | ||
ymax = 5 | ||
zmin = -5 | ||
zmax = 5 | ||
[] | ||
|
||
[Variables] | ||
[./c] | ||
[./InitialCondition] | ||
type = FunctionIC | ||
function = sin(x*7.4+z*4.1)+cos(y*3.8+x*8.7)+sin(z*9.1+y*2.6) | ||
[../] | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = c | ||
[../] | ||
[./time] | ||
type = TimeDerivative | ||
variable = c | ||
[../] | ||
[] | ||
|
||
[VectorPostprocessors] | ||
[./average] | ||
type = SphericalAverage | ||
variable = c | ||
radius = 5 | ||
bin_number = 10 | ||
execute_on = 'initial timestep_end' | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 1 | ||
dt = 1 | ||
solve_type = PJFNK | ||
[] | ||
|
||
[Outputs] | ||
execute_on = 'initial timestep_end' | ||
exodus = true | ||
csv = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Tests] | ||
[./test] | ||
type = CSVDiff | ||
input = spherical_average.i | ||
csvdiff = 'spherical_average_out_average_0001.csv' | ||
[../] | ||
[] |