forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a test that showing the jacobian assembly bug reported in idahola…
- Loading branch information
1 parent
ce53821
commit 89baa71
Showing
2 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
test/tests/kernels/array_kernels/array_custom_coupling_test.i
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,87 @@ | ||
[Mesh] | ||
[square] | ||
type = GeneratedMeshGenerator | ||
nx = 4 | ||
ny = 4 | ||
dim = 2 | ||
[] | ||
[] | ||
|
||
|
||
[Variables] | ||
[u] | ||
order = FIRST | ||
family = L2_LAGRANGE | ||
components = 2 | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diff] | ||
type = ArrayDiffusion | ||
variable = u | ||
diffusion_coefficient = dc | ||
[] | ||
[reaction] | ||
type = ArrayReaction | ||
variable = u | ||
reaction_coefficient = rc | ||
[] | ||
[] | ||
|
||
[DGKernels] | ||
[dgdiff] | ||
type = ArrayDGDiffusion | ||
variable = u | ||
diff = dc | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[left] | ||
type = ArrayVacuumBC | ||
variable = u | ||
boundary = 1 | ||
[] | ||
|
||
[right] | ||
type = ArrayPenaltyDirichletBC | ||
variable = u | ||
boundary = 2 | ||
value = '1 2' | ||
penalty = 4 | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[dc] | ||
type = GenericConstantArray | ||
prop_name = dc | ||
prop_value = '1 1' | ||
[] | ||
[rc] | ||
type = GenericConstant2DArray | ||
prop_name = rc | ||
prop_value = '1 0; -0.1 1' | ||
[] | ||
[] | ||
|
||
[Preconditioning] | ||
[pbp] | ||
type = PBP | ||
view_matrix = true | ||
solve_order = 'u_0 u_1' | ||
preconditioner = 'AMG AMG' | ||
off_diag_row = 'u_0 u_1' | ||
off_diag_column = 'u_0 u_1' | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = JFNK | ||
[] | ||
|
||
[Outputs] | ||
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