-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The scheme was using F^{n} in stage 2 instead of F^{1/2} + adding a new test - re-golding 2D rk2 test (b/c of the bug fix) r22416
- Loading branch information
Showing
7 changed files
with
120 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+728 Bytes
(100%)
test/tests/executioners/time_integration/gold/rk2-2d-quadratic_out.e
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
xmin = -1 | ||
xmax = 1 | ||
nx = 20 | ||
elem_type = EDGE2 | ||
[] | ||
|
||
[Functions] | ||
[./ic] | ||
type = ParsedFunction | ||
value = 0 | ||
[../] | ||
|
||
[./forcing_fn] | ||
type = ParsedFunction | ||
value = x | ||
[../] | ||
|
||
[./exact_fn] | ||
type = ParsedFunction | ||
value = t*x | ||
[../] | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
order = FIRST | ||
family = LAGRANGE | ||
|
||
[./InitialCondition] | ||
type = FunctionIC | ||
function = ic | ||
[../] | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./ie] | ||
type = TimeDerivative | ||
variable = u | ||
implicit = true | ||
[../] | ||
|
||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
implicit = false | ||
[../] | ||
|
||
[./ffn] | ||
type = UserForcingFunction | ||
variable = u | ||
function = forcing_fn | ||
implicit = false | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./all] | ||
type = FunctionDirichletBC | ||
variable = u | ||
boundary = '0 1' | ||
function = exact_fn | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./l2_err] | ||
type = ElementL2Error | ||
variable = u | ||
function = exact_fn | ||
[../] | ||
[./res] | ||
type = Residual | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
scheme = 'rk-2' | ||
|
||
start_time = 0.0 | ||
num_steps = 10 | ||
dt = 0.001 | ||
l_tol = 1e-15 | ||
[] | ||
|
||
[Output] | ||
output_initial = true | ||
interval = 1 | ||
exodus = true | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,7 @@ | |
start_time = 0.0 | ||
num_steps = 10 | ||
dt = 0.0001 | ||
l_tol = 1e-8 | ||
[] | ||
|
||
[Output] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters