Skip to content

Commit

Permalink
Add spherical averaging test (#7810)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Oct 7, 2016
1 parent dd1a4ef commit fdf4bfc
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
@@ -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

@@ -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
[]
7 changes: 7 additions & 0 deletions test/tests/vectorpostprocessors/spherical_average/tests
@@ -0,0 +1,7 @@
[Tests]
[./test]
type = CSVDiff
input = spherical_average.i
csvdiff = 'spherical_average_out_average_0001.csv'
[../]
[]

0 comments on commit fdf4bfc

Please sign in to comment.