Skip to content

Commit

Permalink
Added jacobian tests idaholab#12903
Browse files Browse the repository at this point in the history
  • Loading branch information
tophmatthews committed Feb 25, 2020
1 parent 394e5af commit c9eef15
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 18 deletions.
Expand Up @@ -90,7 +90,7 @@
[Executioner]
type = Steady

solve_type = 'PJFNK'
solve_type = 'NEWTON'
nl_rel_tol = 1e-14
[]

Expand Down
Expand Up @@ -89,7 +89,7 @@

[Executioner]
type = Steady
solve_type = 'PJFNK'
solve_type = 'NEWTON'
nl_rel_tol = 1e-14
[]

Expand Down
52 changes: 36 additions & 16 deletions test/tests/bcs/ad_penalty_dirichlet_bc/tests
@@ -1,20 +1,40 @@
[Tests]
issues = ''
design = 'source/bcs/PenaltyDirichletBC.md'
[./test_penalty_dirichlet_bc]
type = 'Exodiff'
input = 'penalty_dirichlet_bc_test.i'
exodiff = 'penalty_dirichlet_bc_test_out.e'
requirement = "MOOSE shall support the application of Dirichlet type boundary conditions using the penalty method."
[../]
issues = '12903'
design = 'source/bcs/ADPenaltyDirichletBC.md source/bcs/ADFunctionPenaltyDirichletBC.md'
[./ad]
requirement = 'The system shall support the application of Dirichlet type boundary conditions using the penalty method using the AD system'
[./penalty_dirichlet_bc_test]
type = 'Exodiff'
input = 'penalty_dirichlet_bc_test.i'
exodiff = 'penalty_dirichlet_bc_test_out.e'
detail = 'with a constant value on the boundary.'
[../]
[./penalty_dirichlet_bc_test-jac]
type = 'PetscJacobianTester'
input = 'penalty_dirichlet_bc_test.i'
run_sim = False
difference_tol = 5e-8
method = 'opt'
detail = 'with a constant value on the boundary and shall be able to produce the exact Jacobian.'
[../]

[./test_function_penalty_dirichlet_bc]
type = 'Exodiff'
input = 'function_penalty_dirichlet_bc_test.i'
exodiff = 'function_penalty_dirichlet_bc_test_out.e'
abs_zero = 1e-05
max_parallel = 11
scale_refine = 3
requirement = "MOOSE shall support the application of Dirichlet type boundary conditions, defined by a function, using the penalty method."
[./function_penalty_dirichlet_bc_test]
type = 'Exodiff'
input = 'function_penalty_dirichlet_bc_test.i'
exodiff = 'function_penalty_dirichlet_bc_test_out.e'
abs_zero = 1e-05
max_parallel = 11
scale_refine = 3
detail = 'with a value on the boundary set by a function.'
[../]
[./function_penalty_dirichlet_bc_test-jac]
type = 'PetscJacobianTester'
input = 'function_penalty_dirichlet_bc_test.i'
run_sim = False
ratio_tol = 5e-8
difference_tol = 0.1
method = 'opt'
detail = 'with a value on the boundary set by a function and shall be able to produce the exact Jacobian.'
[../]
[../]
[]

0 comments on commit c9eef15

Please sign in to comment.