Skip to content

Commit d6dd07a

Browse files
committed
Verification test of nonlinear FV with BDF2
1 parent 4934a5b commit d6dd07a

File tree

1 file changed

+71
-0
lines changed
  • test/tests/time_integrators/bdf2

1 file changed

+71
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[Mesh]
2+
type = GeneratedMesh
3+
dim = 2
4+
nx = 10
5+
ny = 10
6+
[]
7+
8+
[Variables]
9+
[u]
10+
type = MooseVariableFVReal
11+
[]
12+
[]
13+
14+
[FVKernels]
15+
[timeu]
16+
type = FVTimeKernel
17+
variable = u
18+
[]
19+
[diffu]
20+
type = FVDiffusion
21+
variable = u
22+
coeff = 1
23+
[]
24+
[forceu]
25+
type = FVBodyForce
26+
variable = u
27+
function = force
28+
[]
29+
[]
30+
31+
[Functions]
32+
[exact]
33+
type = ParsedFunction
34+
expression = 't^3*x*y'
35+
[]
36+
[force]
37+
type = ParsedFunction
38+
expression = '3*x*y*t^2'
39+
[]
40+
[]
41+
42+
[FVBCs]
43+
[allu]
44+
type = FVFunctionDirichletBC
45+
function = exact
46+
variable = u
47+
boundary = 'left right top bottom'
48+
[]
49+
[]
50+
51+
[Executioner]
52+
type = Transient
53+
solve_type = 'NEWTON'
54+
petsc_options_iname = '-pc_type'
55+
petsc_options_value = 'hypre'
56+
dt = 1
57+
end_time = 3
58+
scheme = 'bdf2'
59+
[]
60+
61+
[Postprocessors]
62+
[L2u]
63+
type = ElementL2Error
64+
function = exact
65+
variable = u
66+
[]
67+
[]
68+
69+
[Outputs]
70+
csv = true
71+
[]

0 commit comments

Comments
 (0)