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 Oct 3, 2014
1 parent 5c3112f commit 2747865
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

This comment has been minimized.

Copy link
@permcody

permcody Oct 3, 2014

"cube" with dimension 2?

This comment has been minimized.

Copy link
@friedmud

friedmud Oct 4, 2014

Author Owner

Heh - just left over from Peacock. It will be ignored. Is it worth repushing?

This comment has been minimized.

Copy link
@permcody

permcody via email Oct 4, 2014

This comment has been minimized.

Copy link
@friedmud

friedmud Oct 4, 2014

Author Owner

:-). Will do!

[]

[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 2747865

Please sign in to comment.