-
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.
- Loading branch information
Showing
4 changed files
with
223 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
modules/heat_conduction/test/tests/heat_conduction/min_gap/gold/min_gap_order_one.csv
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,13 @@ | ||
time,gap_conductance | ||
0.25,2 | ||
0.5,1.75 | ||
0.75,1.5 | ||
1,1.25 | ||
1.25,1 | ||
1.5,0.8 | ||
1.75,0.66666666666667 | ||
2,0.57142857142857 | ||
2.25,0.5 | ||
2.5,0.44444444444444 | ||
2.75,0.4 | ||
3,0.36363636363636 |
13 changes: 13 additions & 0 deletions
13
modules/heat_conduction/test/tests/heat_conduction/min_gap/gold/min_gap_order_zero.csv
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,13 @@ | ||
time,gap_conductance | ||
0.25,1 | ||
0.5,1 | ||
0.75,1 | ||
1,1 | ||
1.25,1 | ||
1.5,0.8 | ||
1.75,0.66666666666667 | ||
2,0.57142857142857 | ||
2.25,0.5 | ||
2.5,0.44444444444444 | ||
2.75,0.4 | ||
3,0.36363636363636 |
177 changes: 177 additions & 0 deletions
177
modules/heat_conduction/test/tests/heat_conduction/min_gap/min_gap.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,177 @@ | ||
[Mesh] | ||
type = MeshGeneratorMesh | ||
displacements = 'disp_x disp_y' | ||
[] | ||
|
||
[MeshGenerators] | ||
[./left] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 2 | ||
ny = 3 | ||
xmin = -3 | ||
xmax = 0 | ||
ymin = -5 | ||
ymax = 5 | ||
[../] | ||
[./right] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 2 | ||
ny = 3 | ||
xmin = 3 | ||
xmax = 6 | ||
ymin = -5 | ||
ymax = 5 | ||
[../] | ||
|
||
[./merge] | ||
type = MergedMeshGenerator | ||
inputs = 'left right' | ||
[../] | ||
[] | ||
|
||
[MeshModifiers] | ||
[./leftleft] | ||
type = SideSetsAroundSubdomain | ||
block = 0 | ||
new_boundary = leftleft | ||
normal = '-1 0 0' | ||
[../] | ||
[./leftright] | ||
type = SideSetsAroundSubdomain | ||
block = 0 | ||
new_boundary = leftright | ||
normal = '1 0 0' | ||
[../] | ||
|
||
[./right] | ||
type = SubdomainBoundingBox | ||
top_right = '6 5 0' | ||
bottom_left = '3 -5 0' | ||
block_id = 1 | ||
[../] | ||
|
||
[./rightleft] | ||
type = SideSetsAroundSubdomain | ||
depends_on = right | ||
block = 1 | ||
new_boundary = rightleft | ||
normal = '-1 0 0' | ||
[../] | ||
[./rightright] | ||
type = SideSetsAroundSubdomain | ||
depends_on = right | ||
block = 1 | ||
new_boundary = rightright | ||
normal = '1 0 0' | ||
[../] | ||
[] | ||
|
||
[Variables] | ||
[./temp] | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./disp_x] | ||
[../] | ||
[./disp_y] | ||
[../] | ||
[./gap_conductance] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
[../] | ||
[] | ||
|
||
[Functions] | ||
[./disp_x] | ||
type = ParsedFunction | ||
value = -3+t | ||
[../] | ||
[./left_temp] | ||
type = ParsedFunction | ||
value = 1000+t | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./hc] | ||
type = HeatConduction | ||
variable = temp | ||
[../] | ||
[] | ||
|
||
[AuxKernels] | ||
[./disp_x] | ||
type = FunctionAux | ||
block = 1 | ||
variable = disp_x | ||
function = disp_x | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[../] | ||
[./gap_conductivity] | ||
type = MaterialRealAux | ||
boundary = leftright | ||
property = gap_conductance | ||
variable = gap_conductance | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./left] | ||
type = FunctionDirichletBC | ||
variable = temp | ||
boundary = leftleft | ||
function = left_temp | ||
[../] | ||
[./right] | ||
type = DirichletBC | ||
variable = temp | ||
boundary = rightright | ||
value = 400 | ||
[../] | ||
[] | ||
|
||
[ThermalContact] | ||
[./left_to_right] | ||
slave = leftright | ||
quadrature = true | ||
master = rightleft | ||
variable = temp | ||
min_gap = 1 | ||
min_gap_order = 1 | ||
type = GapHeatTransfer | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./hcm] | ||
type = HeatConductionMaterial | ||
block = '0 1' | ||
specific_heat = 1 | ||
thermal_conductivity = 1 | ||
use_displaced_mesh = true | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./gap_conductance] | ||
type = PointValue | ||
point = '0 0 0' | ||
variable = gap_conductance | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
dt = 0.25 | ||
end_time = 3.0 | ||
solve_type = 'PJFNK' | ||
[] | ||
|
||
[Outputs] | ||
csv = true | ||
execute_on = 'TIMESTEP_END' | ||
[] |
20 changes: 20 additions & 0 deletions
20
modules/heat_conduction/test/tests/heat_conduction/min_gap/tests
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,20 @@ | ||
[Tests] | ||
[./min_gap_order_zero] | ||
type = CSVDiff | ||
csvdiff = min_gap_order_zero.csv | ||
input = min_gap.i | ||
cli_args = 'ThermalContact/left_to_right/min_gap_order=0 Outputs/file_base=min_gap_order_zero' | ||
issues = '#13221' | ||
design = 'GapConductance.md GapHeatTransfer.md' | ||
requirements = 'Optionally a constant attenuation shall be applied to compute the gap conductance below a gap length threshold.' | ||
[../] | ||
[./min_gap_order_one] | ||
type = CSVDiff | ||
csvdiff = min_gap_order_one.csv | ||
input = min_gap.i | ||
cli_args = 'ThermalContact/left_to_right/min_gap_order=1 Outputs/file_base=min_gap_order_one' | ||
issues = '#13221' | ||
design = 'GapConductance.md GapHeatTransfer.md' | ||
requirements = 'Optionally a linear Taylor expansion of the inverse gap length shall be applied as the attenuation to compute the gap conductance below a gap length threshold.' | ||
[../] | ||
[] |