Skip to content

Commit

Permalink
An example for iteration adaptive timestepper in multiapp (idaholab#7842
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Sebastian Schunert authored and lindsayad committed Feb 6, 2018
1 parent 13840aa commit 2943e9d
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 0 deletions.
60 changes: 60 additions & 0 deletions test/tests/multiapps/multiapp_iterative_adaptive/adaptiveDT.i
@@ -0,0 +1,60 @@
[Mesh]
type = GeneratedMesh
dim = 2
xmin = 0
xmax = 1
ymin = 0
ymax = 1
[]

[Variables]
active = 'u'

[./u]
order = FIRST
family = LAGRANGE
[../]
[]

[Kernels]
active = 'diff'

[./diff]
type = Diffusion
variable = u
[../]
[]

[BCs]
active = 'left right'

[./left]
type = DirichletBC
variable = u
boundary = 1
value = 0
[../]

[./right]
type = DirichletBC
variable = u
boundary = 2
value = 1
[../]
[]

[Executioner]
type = Transient
start_time = 0
end_time = 0.006
[./TimeStepper]
type = IterationAdaptiveDT
dt = 0.001
[../]
nl_abs_tol = 1.0e-8
[]

[Outputs]
file_base = out
exodus = true
[]
57 changes: 57 additions & 0 deletions test/tests/multiapps/multiapp_iterative_adaptive/constDT.i
@@ -0,0 +1,57 @@
[Mesh]
type = GeneratedMesh
dim = 2
xmin = 0
xmax = 1
ymin = 0
ymax = 1
[]

[Variables]
active = 'u'

[./u]
order = FIRST
family = LAGRANGE
[../]
[]

[Kernels]
active = 'diff'

[./diff]
type = Diffusion
variable = u
[../]
[]

[BCs]
active = 'left right'

[./left]
type = DirichletBC
variable = u
boundary = 1
value = 0
[../]

[./right]
type = DirichletBC
variable = u
boundary = 2
value = 1
[../]
[]

[Executioner]
type = Transient
start_time = 0
end_time = 0.006
dt = 0.001
nl_abs_tol = 1.0e-8
[]

[Outputs]
file_base = out
exodus = true
[]
65 changes: 65 additions & 0 deletions test/tests/multiapps/multiapp_iterative_adaptive/master.i
@@ -0,0 +1,65 @@
[Mesh]
type = GeneratedMesh
dim = 2
xmin = 0
xmax = 1
ymin = 0
ymax = 1
[]

[Variables]
active = 'u'

[./u]
order = FIRST
family = LAGRANGE
[../]
[]

[Kernels]
active = 'diff'

[./diff]
type = Diffusion
variable = u
[../]
[]

[BCs]
active = 'left right'

[./left]
type = DirichletBC
variable = u
boundary = 1
value = 0
[../]

[./right]
type = DirichletBC
variable = u
boundary = 2
value = 1
[../]
[]

[MultiApps]
[./dummy]
type = TransientMultiApp
input_files = adaptiveDT.i
execute_on = timestep_end
[../]
[]

[Executioner]
type = Transient
start_time = 0
end_time = 0.006
dt = 0.006
nl_abs_tol = 1.0e-8
[]

[Outputs]
file_base = out
exodus = true
[]

0 comments on commit 2943e9d

Please sign in to comment.