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.
Merge pull request idaholab#15024 from lindsayad/ik-sidedness-for-gmsh
Allow interface kernel execution on gmsh sidesets
- Loading branch information
Showing
5 changed files
with
205 additions
and
0 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
86 changes: 86 additions & 0 deletions
86
test/tests/interfacekernels/gmsh_sidesets/coupled_value_coupled_flux.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,86 @@ | ||
[Mesh] | ||
file = gmsh_mesh.msh | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
block = 6 | ||
[../] | ||
|
||
[./v] | ||
block = 5 | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff_u] | ||
type = CoeffParamDiffusion | ||
variable = u | ||
D = 4 | ||
block = 6 | ||
[../] | ||
[./diff_v] | ||
type = CoeffParamDiffusion | ||
variable = v | ||
D = 2 | ||
block = 5 | ||
[../] | ||
[./source_u] | ||
type = BodyForce | ||
variable = u | ||
value = 1 | ||
[../] | ||
[] | ||
|
||
[InterfaceKernels] | ||
[./interface] | ||
type = PenaltyInterfaceDiffusion | ||
variable = u | ||
neighbor_var = v | ||
boundary = '1 2' | ||
penalty = 1e6 | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./u] | ||
type = VacuumBC | ||
variable = u | ||
boundary = 4 | ||
[../] | ||
[./v] | ||
type = VacuumBC | ||
variable = v | ||
boundary = 3 | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./u_int] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = u | ||
block = 6 | ||
[../] | ||
[./v_int] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = v | ||
block = 5 | ||
[../] | ||
[] | ||
|
||
[Preconditioning] | ||
[./smp] | ||
type = SMP | ||
full = true | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = NEWTON | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
print_linear_residuals = 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
$MeshFormat | ||
2.2 0 8 | ||
$EndMeshFormat | ||
$PhysicalNames | ||
6 | ||
1 1 "Interface_top" | ||
1 2 "Interface_bottom" | ||
1 3 "Boundary_bottom_left" | ||
1 4 "Boundary_top_right" | ||
2 5 "block_1" | ||
2 6 "block_2" | ||
$EndPhysicalNames | ||
$Nodes | ||
13 | ||
1 0 0 0 | ||
2 0 2 0 | ||
3 2 2 0 | ||
4 2 0 0 | ||
5 1 0 0 | ||
6 1 1 0 | ||
7 0 1 0 | ||
8 2 0.999999999997388 0 | ||
9 1.000000000004118 2 0 | ||
10 0.5 0.5 0 | ||
11 1.50000000000103 1.499999999999347 0 | ||
12 0.5000000000010296 1.5 0 | ||
13 1.5 0.499999999998694 0 | ||
$EndNodes | ||
$Elements | ||
26 | ||
1 1 2 3 1 1 5 | ||
2 1 2 4 2 5 4 | ||
3 1 2 4 3 4 8 | ||
4 1 2 4 3 8 3 | ||
5 1 2 4 4 3 9 | ||
6 1 2 4 4 9 2 | ||
7 1 2 4 5 2 7 | ||
8 1 2 3 6 7 1 | ||
9 1 2 2 7 5 6 | ||
10 1 2 1 8 6 7 | ||
11 2 2 5 1 1 5 10 | ||
12 2 2 5 1 7 1 10 | ||
13 2 2 5 1 5 6 10 | ||
14 2 2 5 1 6 7 10 | ||
15 2 2 6 2 8 3 11 | ||
16 2 2 6 2 9 2 12 | ||
17 2 2 6 2 9 6 11 | ||
18 2 2 6 2 6 8 11 | ||
19 2 2 6 2 6 9 12 | ||
20 2 2 6 2 5 4 13 | ||
21 2 2 6 2 8 6 13 | ||
22 2 2 6 2 6 5 13 | ||
23 2 2 6 2 2 7 12 | ||
24 2 2 6 2 7 6 12 | ||
25 2 2 6 2 3 9 11 | ||
26 2 2 6 2 4 8 13 | ||
$EndElements |
Binary file added
BIN
+35 KB
test/tests/interfacekernels/gmsh_sidesets/gold/coupled_value_coupled_flux_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,10 @@ | ||
[Tests] | ||
[./test] | ||
type = 'Exodiff' | ||
input = 'coupled_value_coupled_flux.i' | ||
exodiff = 'coupled_value_coupled_flux_out.e' | ||
issues = "#15203" | ||
design = "InterfaceKernels/index.md" | ||
requirement = "The system shall be able to execute interfacial conditions on sidesets generated by gmsh." | ||
[../] | ||
[] |