Permalink
Browse files

Merge pull request #12620 from joshuahansel/ode-matrix-time-tag

Added matrix time tag to ODETimeKernel
  • Loading branch information...
fdkong committed Dec 18, 2018
2 parents aef6acc + 0e9171a commit da11771b0c07e557fa8fdebc4b2573fa0f961222
@@ -21,7 +21,7 @@ validParams<ODETimeKernel>()
InputParameters params = validParams<ODEKernel>();

params.set<MultiMooseEnum>("vector_tags") = "time";
params.set<MultiMooseEnum>("matrix_tags") = "system";
params.set<MultiMooseEnum>("matrix_tags") = "system time";

return params;
}
@@ -0,0 +1,45 @@
# Tests that ActuallyExplicitEuler works with scalar variables.
#
# The ODE and IC used are the following:
# du/dt = 2, u(0) = 0
# Thus the solution is u(t) = 2*t.

[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
[]

[Variables]
[./u]
family = SCALAR
order = FIRST
initial_condition = 0
[../]
[]

[ScalarKernels]
[./time]
type = ODETimeDerivative
variable = u
[../]
[./source]
type = ParsedODEKernel
variable = u
function = -2
[../]
[]

[Executioner]
type = Transient

[./TimeIntegrator]
type = ActuallyExplicitEuler
[../]
dt = 1
num_steps = 5
[]

[Outputs]
csv = true
[]
@@ -0,0 +1,7 @@
time,u
0,0
1,2
2,4
3,6
4,8
5,10
@@ -6,44 +6,56 @@
# that the new capability works

[Tests]
requirement = 'MOOSE shall allow efficient execution of explicit solves'
design = '/ActuallyExplicitEuler.md'
issues = '10837'

[./1d-linear]
type = 'Exodiff'
input = 'ee-1d-linear.i'
exodiff = 'ee-1d-linear_out.e'
requirement = 'MOOSE shall allow efficient execution of explicit solves'
[../]

[./1d-quadratic]
type = 'Exodiff'
input = 'ee-1d-quadratic.i'
exodiff = 'ee-1d-quadratic_out.e'
requirement = 'MOOSE shall allow efficient execution of explicit solves'
[../]

[./1d-quadratic-neumann]
type = 'Exodiff'
input = 'ee-1d-quadratic-neumann.i'
exodiff = 'ee-1d-quadratic-neumann_out.e'
requirement = 'MOOSE shall allow efficient execution of explicit solves'
[../]

[./2d-linear]
type = 'Exodiff'
input = 'ee-2d-linear.i'
exodiff = 'ee-2d-linear_out.e'
requirement = 'MOOSE shall allow efficient execution of explicit solves'
[../]

[./2d-linear-adapt]
type = 'Exodiff'
input = 'ee-2d-linear-adapt.i'
exodiff = 'ee-2d-linear-adapt_out.e ee-2d-linear-adapt_out.e-s003'
abs_zero = 1e-8
requirement = 'MOOSE shall allow efficient execution of explicit solves'
[../]

[./2d-quadratic]
type = 'Exodiff'
input = 'ee-2d-quadratic.i'
exodiff = 'ee-2d-quadratic_out.e'
requirement = 'MOOSE shall allow efficient execution of explicit solves'
[../]

[./ode]
type = 'CSVDiff'
input = 'ee-ode.i'
csvdiff = 'ee-ode_out.csv'
requirement = 'MOOSE shall allow efficient execution of explicit solves'
[../]
[]

0 comments on commit da11771

Please sign in to comment.