Skip to content

Commit

Permalink
line source example idaholab#3990
Browse files Browse the repository at this point in the history
  • Loading branch information
friedmud committed Nov 20, 2014
1 parent 5ec9060 commit 0a5d579
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
Binary file not shown.
70 changes: 70 additions & 0 deletions test/tests/misc/line_source/line_source.i
@@ -0,0 +1,70 @@
[Mesh]
type = FileMesh
file = line_source_cube.e
dim = 2
[]

[Variables]
[./u]
[../]
[]

[Kernels]
[./diff]
type = Diffusion
variable = u
block = bulk
[../]
[./heating]
type = UserForcingFunction
variable = u
function = 1
block = heater
[../]
[]

[BCs]
[./outside]
type = DirichletBC
variable = u
boundary = outside
value = 0
[../]
[]

[Materials]
[./diffusivity]
type = GenericConstantMaterial
block = 'bulk heater'
prop_names = diffusivity
prop_values = 1
[../]
[]

[Postprocessors]
[./total_flux]
type = SideFluxIntegral
variable = u
boundary = outside
diffusivity = diffusivity
[../]
[]

[Executioner]
# Preconditioned JFNK (default)
type = Steady
solve_type = PJFNK
petsc_options_iname = '-pc_type -pc_hypre_type'
petsc_options_value = 'hypre boomeramg'
[]

[Outputs]
output_initial = true
exodus = true
[./console]
type = Console
perf_log = true
linear_residuals = true
[../]
[]

Binary file added test/tests/misc/line_source/line_source_cube.e
Binary file not shown.
7 changes: 7 additions & 0 deletions test/tests/misc/line_source/tests
@@ -0,0 +1,7 @@
[Tests]
[./test]
type = 'Exodiff'
input = 'line_source.i'
exodiff = 'line_source_out.e'
[../]
[]

0 comments on commit 0a5d579

Please sign in to comment.