verification: series-resistance heat flow across a tie (#358)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
jyvikoandClaude Opus 5.5 authored and Irakli Kourtis committed 2026-10-15 08:27:01 -04:00
1 parent 836513ddfe
commit febcffefd6
5 files changed
+195 -7

No files matched your search

+122
View File
@@ -0,0 +1,122 @@
{
"title": "Heat through a tie: two blocks of conductivities 10 and 40 with non-matching meshes, 20 and 100 at the ends",
"kind": "theory",
"source": "Series thermal resistances: steady one-dimensional conduction through two layers in perfect contact, T_i = (k1 T0 + k2 T1)/(k1 + k2) and q = ΔT/(L1/k1 + L2/k2) (F. P. Incropera, D. P. DeWitt, Fundamentals of Heat and Mass Transfer, §3.1, the composite wall). A linear field in each layer is the exact discrete solution, and the dual mortar tie reproduces a linear temperature across non-matching meshes",
"quantities": [
{
"id": "t_interface",
"quantity": "T at the tied secondary node (0.5, 0.5, 1)",
"measure": {
"command": "solve.probe",
"params": {
"step": "Heat",
"at": [
[
0.5,
0.5,
1.0
]
]
},
"pointer": "/nodes/0/temperature"
},
"value": 84.0,
"tolerance": {
"relative": 1e-09
},
"reason": "exact discrete solution: linear in each block, and the tie holds the interface temperature for non-matching meshes"
},
{
"id": "t_lower",
"quantity": "T in the lower block at (0, 0, 0.5)",
"measure": {
"command": "solve.probe",
"params": {
"step": "Heat",
"at": [
[
0.0,
0.0,
0.5
]
]
},
"pointer": "/nodes/0/temperature"
},
"value": 52.0,
"tolerance": {
"relative": 1e-09
},
"reason": "exact discrete solution: linear in each block, and the tie holds the interface temperature for non-matching meshes"
},
{
"id": "t_upper",
"quantity": "T in the upper block at (1, 1, 1.5)",
"measure": {
"command": "solve.probe",
"params": {
"step": "Heat",
"at": [
[
1.0,
1.0,
1.5
]
]
},
"pointer": "/nodes/0/temperature"
},
"value": 92.0,
"tolerance": {
"relative": 1e-09
},
"reason": "exact discrete solution: linear in each block, and the tie holds the interface temperature for non-matching meshes"
},
{
"id": "q_lower",
"quantity": "heat flux q_z at (0, 0, 0.5)",
"measure": {
"command": "solve.probe",
"params": {
"step": "Heat",
"at": [
[
0.0,
0.0,
0.5
]
]
},
"pointer": "/nodes/0/heat_flux/2"
},
"value": -640.0,
"tolerance": {
"relative": 1e-09
},
"reason": "the heat flow ΔT/(1/k1 + 1/k2) = 640 per unit area, −k ∂T/∂z uniform in each block"
},
{
"id": "q_upper",
"quantity": "heat flux q_z at (1, 1, 1.5)",
"measure": {
"command": "solve.probe",
"params": {
"step": "Heat",
"at": [
[
1.0,
1.0,
1.5
]
]
},
"pointer": "/nodes/0/heat_flux/2"
},
"value": -640.0,
"tolerance": {
"relative": 1e-09
},
"reason": "the same heat flow crosses the tie: nothing is lost at the interface"
}
]
}
+25
View File
@@ -0,0 +1,25 @@
{
"note": "FieldCraft's accepted results for this case, written by `cargo xtask oracle --bless`. A result outside its band fails CI.",
"values": {
"q_lower": {
"band": 6.400000000000002e-7,
"value": -640.0000000000002
},
"q_upper": {
"band": 6.400000000000015e-7,
"value": -640.0000000000015
},
"t_interface": {
"band": 8.400000000000002e-8,
"value": 84.00000000000001
},
"t_lower": {
"band": 5.2000000000000035e-8,
"value": 52.000000000000036
},
"t_upper": {
"band": 9.200000000000008e-8,
"value": 92.00000000000007
}
}
}
+19
View File
@@ -0,0 +1,19 @@
[
{"command": "mesh.block", "params": {"body": "Lower", "kind": "hex8", "corners": [[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0], [0, 0, 1], [1, 0, 1], [1, 1, 1], [0, 1, 1]], "divisions": [3, 3, 2], "faces": {"1": "bottom", "2": "top"}, "bias": [2.0, 0.6, 1.0]}},
{"command": "mesh.block", "params": {"body": "Upper", "kind": "hex8", "corners": [[0, 0, 1], [1, 0, 1], [1, 1, 1], [0, 1, 1], [0, 0, 2], [1, 0, 2], [1, 1, 2], [0, 1, 2]], "divisions": [2, 2, 2], "faces": {"1": "bottom", "2": "top"}, "merge": 0}},
{"command": "model.set.create", "params": {"name": "lower", "geometry": [{"body": "Lower"}]}},
{"command": "model.set.create", "params": {"name": "upper", "geometry": [{"body": "Upper"}]}},
{"command": "model.set.create", "params": {"name": "lower_top", "geometry": [{"body": "Lower", "face": "top"}]}},
{"command": "model.set.create", "params": {"name": "upper_bottom", "geometry": [{"body": "Upper", "face": "bottom"}]}},
{"command": "model.set.create", "params": {"name": "cold", "geometry": [{"body": "Lower", "face": "bottom"}]}},
{"command": "model.set.create", "params": {"name": "hot", "geometry": [{"body": "Upper", "face": "top"}]}},
{"command": "model.material.create", "params": {"name": "Low", "elastic": {"type": "isotropic", "young": 1000.0, "poisson": 0.3}, "thermal": {"conductivity": 10.0}}},
{"command": "model.material.create", "params": {"name": "High", "elastic": {"type": "isotropic", "young": 1000.0, "poisson": 0.3}, "thermal": {"conductivity": 40.0}}},
{"command": "model.section.create", "params": {"name": "lower", "set": "lower", "material": "Low", "kind": {"type": "solid"}}},
{"command": "model.section.create", "params": {"name": "upper", "set": "upper", "material": "High", "kind": {"type": "solid"}}},
{"command": "interaction.tie", "params": {"name": "glue", "main": "lower_top", "secondary": "upper_bottom"}},
{"command": "model.boundary_condition.create", "params": {"name": "cold", "type": "temperature", "target": {"set": "cold"}, "value": 20.0}},
{"command": "model.boundary_condition.create", "params": {"name": "hot", "type": "temperature", "target": {"set": "hot"}, "value": 100.0}},
{"command": "model.step.create", "params": {"name": "Heat", "procedure": {"type": "heat_transfer"}, "boundary_conditions": ["cold", "hot"], "loads": []}},
{"command": "solve.heat", "params": {"step": "Heat"}, "id": "heat"}
]