Permalink
Browse files

Merge pull request #12651 from aeslaughter/bc-control-enable-and-disable

Add test that used enable and disable objects within the same block
  • Loading branch information...
permcody committed Jan 7, 2019
2 parents c98deb1 + 6e89759 commit 844e8f2c067db526da88895f33ba17c539443f60
@@ -0,0 +1,68 @@
[Mesh]
type = GeneratedMesh
dim = 2
nx = 10
ny = 10
[]

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

[Kernels]
[./diff]
type = CoefDiffusion
variable = u
coef = 0.1
[../]
[./time]
type = TimeDerivative
variable = u
[../]
[]

[BCs]
[./left]
type = DirichletBC
variable = u
boundary = left
value = 0
[../]
[./right]
type = DirichletBC
variable = u
boundary = right
value = 1
[../]
[./right2]
type = FunctionDirichletBC
variable = u
boundary = right
function = (y*(t-1))+1
[../]
[]

[Executioner]
type = Transient
num_steps = 10
dt = 0.1
solve_type = PJFNK
petsc_options_iname = '-pc_type -pc_hypre_type'
petsc_options_value = 'hypre boomeramg'
[]

[Outputs]
exodus = true
[]

[Controls]
[./period0]
type = TimePeriod
enable_objects = 'BCs::right'
disable_objects = 'BCs::right2'
start_time = '0'
end_time = '0.5'
execute_on = 'initial timestep_begin'
[../]
[]
@@ -13,4 +13,10 @@
exodiff = bcs_integrated_out.e
requirement = "The Control system shall be capable of activating or deactivating IntegratedBC objects with time."
[../]
[./enable_disable]
type = Exodiff
input = bcs_enable_disable.i
exodiff = bcs_enable_disable_out.e
requirement = "The Control system shall be capable of activating and deactivating NodalBC objects with time within a single TimePeriod block."
[../]
[]

0 comments on commit 844e8f2

Please sign in to comment.