pyrucast 0.12.0

Finite-element library in Rust, inspired by cast3m, exposed to Python
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
//! Radiation to infinity — the Stefan-Boltzmann boundary.
//!
//! A surface exchanging with a distant environment at `T_∞` radiates
//!
//! ```text
//! q·n = σ · ε · (T⁴ − T_∞⁴)
//! ```
//!
//! `σ` is the Stefan-Boltzmann constant and `ε` the emissivity. Primal `"T"`,
//! dual `"q"` — the **same** DOFs as
//! [`heat_conduction`](crate::models::heat_conduction), so a radiating boundary
//! couples straight into the conduction stiffness, exactly like
//! [`boundary_transfer`](crate::models::boundary_transfer).
//!
//! That conduction is given at construction, as the `target`, and must
//! assemble `T` paired with `q`: a radiating boundary with no conduction
//! beneath it would write into a row nobody solves for, and is refused rather
//! than built silent.
//!
//! ## What makes it different from convection: it is non-linear
//!
//! Newton's law of cooling is linear in `T`, so convection contributes a
//! constant film matrix and nothing else. `T⁴` is not, which is why this physics
//! declares **three** things rather than one:
//!
//! | term | expression | role |
//! |---|---|---|
//! | stiffness | `4σεT_∞³ ∫ N_i N_j dΓ` | the **linearised** radiative film — a constant operator, the classic `h_r` |
//! | internal force | `∫ N_i σε(T⁴ − T_∞⁴) dΓ` | the residual, exact |
//! | tangent | `4σεT³ ∫ N_i N_j dΓ` | the consistent tangent at the current temperature |
//!
//! Linearising the stiffness about `T_∞` rather than about the current state is
//! what lets it stay a plain constant matrix: it is the operator to start a
//! Newton loop from (and, on its own, a perfectly usable Picard iteration). The
//! **tangent** carries the real non-linearity, reading `T` back from the state
//! that the behaviour integration produced — the same producer/consumer pairing
//! as the plastic `D_alg`.
//!
//! All three are evaluated at the **Gauss points** of the face: `T` is
//! interpolated there from the nodal values and raised to the fourth power
//! there, so the residual integrates `σε(T_g⁴ − T_∞⁴)` and the tangent is its
//! exact derivative with respect to the nodal temperatures.
//! `pyrucast.stepping` then cancels the residual by successive corrections,
//! the tangent taken once at the start of each step.
//!
//! ## Nature
//!
//! It declares **two** natures, `[Thermal, Radiation]`. A radiating boundary is
//! part of a thermal problem — `filter("thermal")` must return it — while
//! `filter("radiation")` isolates the non-linear term on its own, to assemble or
//! inspect it apart.
//!
//! ## Units
//!
//! `sigma` defaults to the SI Stefan-Boltzmann constant, and `T` is then an
//! **absolute** temperature (Kelvin) — a fourth power has no invariance to
//! translate an origin through. In another unit system, supply `sigma`
//! explicitly as a material component.

use crate::containers::element_field::SubElementField;
use crate::containers::field::ABSENT_COMPONENT;
use crate::containers::finite_element_space::SubFiniteElementSpace;
use crate::containers::matrix::DofOrdering;
use crate::containers::matrix::Symmetry;
use crate::containers::mesh::SubMesh;
use crate::containers::model::{Model, SubModel};
use crate::dump::DumpOptions;
use crate::error::Result;
use crate::handle::Handle;
use crate::models::owned_components;
use crate::models::transfer::target_physics;
use crate::models::ElementLayout;
use crate::models::ZoneLayout;
use crate::models::{
    Behavior, CellGeom, Domain, MatrixLayout, Physics, StrainOperator, SubModelKind,
};
use serde::{Deserialize, Serialize};

/// Column DOF name (temperature) — shared with heat conduction.
///
/// ```
/// # use pyrucast::models::radiation;
/// // `q·n = σε(T⁴ − T_∞⁴)`, on the conduction's DOFs — hence a direct
/// // coupling in its stiffness.
/// assert_eq!((radiation::PRIMAL_VAR, radiation::DUAL_VAR), ("T", "q"));
/// // La constante de Stefan-Boltzmann, en W·m⁻²·K⁻⁴ ; un matériau peut la
/// // given again to work in another unit system.
/// assert!((radiation::STEFAN_BOLTZMANN - 5.670_374_419e-8).abs() < 1e-20);
/// ```
pub const PRIMAL_VAR: &str = "T";
/// Row DOF name (heat flux) — shared with heat conduction.
///
/// ```
/// # use pyrucast::models::radiation;
/// // `q·n = σε(T⁴ − T_∞⁴)`, on the conduction's DOFs — hence a direct
/// // coupling in its stiffness.
/// assert_eq!((radiation::PRIMAL_VAR, radiation::DUAL_VAR), ("T", "q"));
/// // La constante de Stefan-Boltzmann, en W·m⁻²·K⁻⁴ ; un matériau peut la
/// // given again to work in another unit system.
/// assert!((radiation::STEFAN_BOLTZMANN - 5.670_374_419e-8).abs() < 1e-20);
/// ```
pub const DUAL_VAR: &str = "q";
/// Required material components: the emissivity and the far-field temperature.
/// `T_inf` is **required**, not optional, because the linearised stiffness needs
/// it — there is no radiative operator without a reference temperature.
const MATERIAL_COMPONENTS: &[&str] = &["emis", "T_inf"];
/// Accepted but not required: the Stefan-Boltzmann constant, to override the SI
/// default when working in another unit system.
const OPTIONAL_COMPONENTS: &[&str] = &["sigma"];

/// The Stefan-Boltzmann constant, in SI (`W·m⁻²·K⁻⁴`).
///
/// ```
/// # use pyrucast::models::radiation;
/// // `q·n = σε(T⁴ − T_∞⁴)`, on the conduction's DOFs — hence a direct
/// // coupling in its stiffness.
/// assert_eq!((radiation::PRIMAL_VAR, radiation::DUAL_VAR), ("T", "q"));
/// // La constante de Stefan-Boltzmann, en W·m⁻²·K⁻⁴ ; un matériau peut la
/// // given again to work in another unit system.
/// assert!((radiation::STEFAN_BOLTZMANN - 5.670_374_419e-8).abs() < 1e-20);
/// ```
pub const STEFAN_BOLTZMANN: f64 = 5.670_374_419e-8;

/// Behaviour-**input** component: the temperature interpolated at the Gauss
/// points (via [`crate::ops::element_field::interp_to_gauss`]).
const INPUT_COMPONENT: &str = PRIMAL_VAR;
/// Behaviour-**output**: the radiated flux density, and the tangent coefficient
/// `4σεT³` that [`Behavior::element_tangent`] reads back.
const OUTPUT_FLUX: &str = "flux";

/// Radiation to infinity on a boundary FE subspace.
///
/// ```
/// # use pyrucast::models::symmetry::MaterialSymmetry;
/// # use pyrucast::aggregate::Aggregate;
/// # use pyrucast::atoms::{ElementType, Interpolation, Node};
/// # use pyrucast::containers::finite_element_space::FiniteElementSpace;
/// # use pyrucast::containers::mesh::{Mesh, SubMesh};
/// # use pyrucast::coords::Coords;
/// # use pyrucast::handle::Handle;
/// # use pyrucast::models::{Domain, SubModelKind};
/// # let coords = Handle::new(Coords::new(2).unwrap());
/// # let n: Vec<Node> = [[0.0, 0.0], [1.0, 0.0]]
/// #     .iter().map(|p| Node::create_in(coords.clone(), p).unwrap()).collect();
/// # let mut sm = SubMesh::new(coords.clone(), ElementType::SEG2);
/// # sm.add_cell(&n.iter().map(|x| x.id()).collect::<Vec<_>>()).unwrap();
/// # let maillage = Mesh::from_submesh(sm);
/// # let fes = FiniteElementSpace::lagrange1(&maillage).unwrap();
/// # let zone = fes.get(0).unwrap();
/// # use pyrucast::models::radiation::Radiation;
/// # use pyrucast::ops::model;
/// // Radiation to infinity, on a border. Same DOFs as the conduction, hence
/// // a direct coupling in its stiffness.
/// let conduction = model::heat_conduction(&fes, MaterialSymmetry::Isotropic)?;
/// let r = Radiation::new(zone, &conduction)?;
/// assert_eq!(r.primal_vars(), vec!["T".to_string()]);
/// assert!(r.material_components().contains(&"emis".to_string()));
/// # Ok::<(), pyrucast::PyrucastError>(())
/// ```
#[derive(Clone, Serialize, Deserialize)]
pub struct Radiation {
    pub(crate) fespace: Handle<SubFiniteElementSpace>,
    /// POI1 support over the boundary's unique nodes (row/col support).
    pub(crate) support: Handle<SubMesh>,
}

impl Radiation {
    /// Radiation physics on a **boundary** FE subspace (an edge mesh in 2-D, a
    /// surface mesh in 3-D), cooling `target`. Like convection, it needs no
    /// normal: the direction is already consumed in writing
    /// `q·n = σε(T⁴ − T_∞⁴)`, and what remains under the integral is a scalar
    /// times the surface measure.
    ///
    /// `target` must assemble `T` paired with `q` — a conduction, typically.
    /// Errors otherwise.
    ///
    /// ```
    /// # use pyrucast::models::symmetry::MaterialSymmetry;
    /// # use pyrucast::aggregate::Aggregate;
    /// # use pyrucast::atoms::{ElementType, Interpolation, Node};
    /// # use pyrucast::containers::finite_element_space::FiniteElementSpace;
    /// # use pyrucast::containers::mesh::{Mesh, SubMesh};
    /// # use pyrucast::coords::Coords;
    /// # use pyrucast::handle::Handle;
    /// # use pyrucast::models::{Domain, SubModelKind};
    /// # let coords = Handle::new(Coords::new(2).unwrap());
    /// # let n: Vec<Node> = [[0.0, 0.0], [1.0, 0.0]]
    /// #     .iter().map(|p| Node::create_in(coords.clone(), p).unwrap()).collect();
    /// # let mut sm = SubMesh::new(coords.clone(), ElementType::SEG2);
    /// # sm.add_cell(&n.iter().map(|x| x.id()).collect::<Vec<_>>()).unwrap();
    /// # let maillage = Mesh::from_submesh(sm);
    /// # let fes = FiniteElementSpace::lagrange1(&maillage).unwrap();
    /// # let zone = fes.get(0).unwrap();
    /// # use pyrucast::models::radiation::Radiation;
    /// # use pyrucast::ops::model;
    /// // Radiation to infinity, on a border. Same DOFs as the conduction, hence
    /// // a direct coupling in its stiffness.
    /// let conduction = model::heat_conduction(&fes, MaterialSymmetry::Isotropic)?;
    /// let r = Radiation::new(zone.clone(), &conduction)?;
    /// assert_eq!(r.primal_vars(), vec!["T".to_string()]);
    /// assert!(r.material_components().contains(&"emis".to_string()));
    /// // Without conduction underneath, the `q` row is assembled by nobody.
    /// assert!(Radiation::new(zone, &model::fick(&fes, "H2", MaterialSymmetry::Isotropic)?).is_err());
    /// # Ok::<(), pyrucast::PyrucastError>(())
    /// ```
    pub fn new(fespace: Handle<SubFiniteElementSpace>, target: &Model) -> Result<Self> {
        // The kind is fixed (`[Thermal, Radiation]`); the target only serves to prove
        // that the `q` row the radiation writes into is assembled.
        target_physics("Radiation", target, &[(PRIMAL_VAR.into(), DUAL_VAR.into())])?;
        let submesh = fespace.read().submesh();
        let support = submesh.read().to_poi1()?;
        Ok(Self { fespace, support })
    }

    fn layout(&self) -> MatrixLayout {
        MatrixLayout {
            fespaces: vec![self.fespace.clone()],
            support: self.support.clone(),
            dual_vars: self.dual_vars(),
            primal_vars: self.primal_vars(),
            ordering: DofOrdering::NodesThenVars,
            symmetry: Symmetry::Full,
        }
    }
}

impl SubModelKind for Radiation {
    fn primal_vars(&self) -> Vec<String> {
        vec![PRIMAL_VAR.to_string()]
    }

    fn dual_vars(&self) -> Vec<String> {
        vec![DUAL_VAR.to_string()]
    }

    fn as_domain(&self) -> Option<&dyn Domain> {
        Some(self)
    }

    fn as_behavior(&self) -> Option<&dyn Behavior> {
        Some(self)
    }

    fn stiffness_layout(&self) -> Option<MatrixLayout> {
        Some(self.layout())
    }

    /// The consistent tangent shares the layout — same boundary, same DOFs; only
    /// the coefficient differs (`4σεT³` instead of `4σεT_∞³`).
    fn tangent_layout(&self) -> Option<MatrixLayout> {
        Some(self.layout())
    }

    /// Internal nodal fluxes `q_i = ∫ N_i · flux dΓ` — weighted by `N`, not by
    /// `Bᵀ`, as for convection: the integrand is a flux **density** on the
    /// boundary, not a gradient-conjugate quantity.
    fn internal_force_reads(&self) -> Vec<String> {
        vec![OUTPUT_FLUX.to_string()]
    }

    fn internal_force_element(
        &self,
        geoms: &[CellGeom],
        stress: &SubElementField,
        lay: &[u32],
        _material: &SubElementField,
        _mat: &[u32],
        fe: &mut [f64],
    ) -> Result<()> {
        let geom = &geoms[0];
        for g in 0..geom.n_gauss {
            let shape = geom.n_at_g(g);
            let w = geom.det_j_w(g);
            let flux = stress.row(geom.cell, g)[lay[0] as usize];
            for i in 0..geom.n_nodes {
                fe[i] += shape[i] * flux * w;
            }
        }
        Ok(())
    }

    /// Both natures: a radiating boundary belongs to the thermal problem **and**
    /// is selectable on its own.
    fn physics(&self) -> &'static [Physics] {
        &[Physics::Thermal, Physics::Radiation]
    }

    fn label(&self) -> &'static str {
        "Radiation"
    }

    fn render(&self, _opts: &DumpOptions) -> String {
        let n = self.support.read().cell_count();
        format!(
            "SubModel<Radiation>\n  primal var(s): {PRIMAL_VAR}\n  \
             dual var(s):   {DUAL_VAR}\n  support: {n} node(s)"
        )
    }
}

impl Domain for Radiation {
    fn material_fespace(&self) -> Handle<SubFiniteElementSpace> {
        self.fespace.clone()
    }

    fn material_components(&self) -> Vec<String> {
        owned_components(MATERIAL_COMPONENTS)
    }

    fn optional_material_components(&self) -> &'static [&'static str] {
        OPTIONAL_COMPONENTS
    }

    /// La tangente radiative lit le coefficient que le comportement a produit.
    /// The **linearised** radiative film, about the far-field temperature:
    /// `h_r = 4σεT_∞³`, a constant. See the module docs for why the
    /// linearisation is taken there rather than at the current state.
    fn element_matrix(
        &self,
        geoms: &[CellGeom],
        material: &SubElementField,
        lay: &ElementLayout,
        ke: &mut [f64],
    ) -> Result<()> {
        let geom = &geoms[0];
        surface_mass(geom, ke, |g| {
            // `emis`, `T_inf`, and the Stefan-Boltzmann constant when it was
            // supplied — all by index, exactly as `integrate_point` reads them.
            let row = material.row(geom.cell, g);
            let sigma = match lay.optional_material[0] {
                ABSENT_COMPONENT => STEFAN_BOLTZMANN,
                i => row[i as usize],
            };
            let emis = row[lay.material[0] as usize];
            let t_inf = row[lay.material[1] as usize];
            4.0 * sigma * emis * t_inf.powi(3)
        })
    }
}

impl Behavior for Radiation {
    fn behavior_fespace(&self) -> Handle<SubFiniteElementSpace> {
        self.fespace.clone()
    }

    fn behavior_output_components(&self) -> Vec<String> {
        vec![OUTPUT_FLUX.to_string()]
    }

    /// `σε(T⁴ − T_∞⁴)` and its derivative `4σεT³`, at one Gauss point. Emitting
    /// both in one pass is the producer half of the tangent pairing: the kernel
    /// that knows the law is the one that differentiates it.
    fn deformation_reads(&self) -> Vec<String> {
        vec![INPUT_COMPONENT.to_string()]
    }

    fn strain_operator(&self) -> StrainOperator {
        StrainOperator::Value
    }

    fn integrate_point(
        &self,
        _geom: &CellGeom,
        _g: usize,
        lay: &ZoneLayout,
        deformation: &[f64],
        _prev: &[f64],
        material: &[f64],
        _dt: f64,
        out: &mut [f64],
    ) -> Result<()> {
        // The Stefan-Boltzmann constant is the one optional component: absent,
        // the SI value stands. Which of the two is a fact of the zone, settled
        // in the layout, not a lookup.
        let sigma = match lay.optional_material[0] {
            ABSENT_COMPONENT => STEFAN_BOLTZMANN,
            i => material[i as usize],
        };
        let emis = material[lay.material[0] as usize];
        let t_inf = material[lay.material[1] as usize];
        let t = deformation[lay.deformation[0] as usize];
        out[0] = sigma * emis * (t.powi(4) - t_inf.powi(4));
        Ok(())
    }

    /// `4σεT³` at the point — the real nonlinearity, evaluated at the temperature
    /// courante. `element_matrix` en donne la **linéarisation** autour de `T_∞`,
    /// which stays a constant operator; see the module's documentation.
    fn tangent_point(
        &self,
        _geom: &CellGeom,
        _g: usize,
        lay: &ZoneLayout,
        deformation: &[f64],
        _prev: &[f64],
        material: &[f64],
        _dt: f64,
        d: &mut [[f64; 6]; 6],
    ) -> Result<()> {
        let sigma = match lay.optional_material[0] {
            ABSENT_COMPONENT => STEFAN_BOLTZMANN,
            i => material[i as usize],
        };
        let emis = material[lay.material[0] as usize];
        let t = deformation[lay.deformation[0] as usize];
        // A scalar transport: the "modulus" fits in a single slot.
        d[0][0] = 4.0 * sigma * emis * t.powi(3);
        Ok(())
    }

    /// The consistent tangent `4σεT³ ∫ N_i N_j`, evaluated point by point.
    fn element_tangent(
        &self,
        geoms: &[CellGeom],
        lay: &ZoneLayout,
        deformation: &SubElementField,
        prev: &SubElementField,
        material: &SubElementField,
        dt: f64,
        ke: &mut [f64],
    ) -> Result<()> {
        let geom = &geoms[0];
        let n_nodes = geom.n_nodes;
        // The buffer lives **outside** the point loop, as everywhere else.
        let mut d = [[0.0_f64; 6]; 6];
        for g in 0..geom.n_gauss {
            self.tangent_point(
                geom,
                g,
                lay,
                deformation.row(geom.cell, g),
                prev.row(geom.cell, g),
                material.row(geom.cell, g),
                dt,
                &mut d,
            )?;
            let shape = geom.n_at_g(g);
            let w = geom.det_j_w(g) * d[0][0];
            for i in 0..n_nodes {
                for j in 0..n_nodes {
                    ke[i * n_nodes + j] += shape[i] * shape[j] * w;
                }
            }
        }
        Ok(())
    }
}

/// `∫_Γ coeff(g) · N_i N_j dΓ` over one boundary cell — the surface mass matrix
/// weighted by a per-Gauss coefficient. Both radiative operators are this
/// integral; only the coefficient differs, so they share it.
fn surface_mass(geom: &CellGeom, ke: &mut [f64], coeff: impl Fn(usize) -> f64) -> Result<()> {
    let n_nodes = geom.n_nodes;
    for g in 0..geom.n_gauss {
        let shape = geom.n_at_g(g);
        let w = geom.det_j_w(g) * coeff(g);
        for i in 0..n_nodes {
            for j in 0..n_nodes {
                ke[i * n_nodes + j] += shape[i] * shape[j] * w;
            }
        }
    }
    Ok(())
}

crate::physics_operator! {
    /// Radiation-to-infinity `Model` spanning **every** subspace of a *boundary*
    /// `fespace`, cooling `target`, which must assemble `T` paired with `q`.
    /// Parent-level operator; the emissivity and far-field temperature are
    /// supplied at assembly time.
    ///
    /// ```
    /// # use pyrucast::models::symmetry::MaterialSymmetry;
    /// # use pyrucast::aggregate::Aggregate;
    /// # use pyrucast::atoms::{ElementType, Node};
    /// # use pyrucast::containers::finite_element_space::FiniteElementSpace;
    /// # use pyrucast::containers::mesh::{Mesh, SubMesh};
    /// # use pyrucast::coords::Coords;
    /// # use pyrucast::handle::Handle;
    /// # use pyrucast::ops::model;
    /// # let coords = Handle::new(Coords::new(2).unwrap());
    /// # let n: Vec<Node> = [[0.0, 0.0], [1.0, 0.0], [0.0, 1.0]]
    /// #     .iter().map(|p| Node::create_in(coords.clone(), p).unwrap()).collect();
    /// # let mut sm = SubMesh::new(coords.clone(), ElementType::TRI3);
    /// # sm.add_cell(&[n[0].id(), n[1].id(), n[2].id()]).unwrap();
    /// # let fes = FiniteElementSpace::lagrange1(&Mesh::from_submesh(sm)).unwrap();
    /// // The radiation unites with the conduction it cools: same DOFs, hence the
    /// // same blocks.
    /// let conduction = model::heat_conduction(&fes, MaterialSymmetry::Isotropic)?;
    /// let m = conduction.union(&model::radiation(&fes, &conduction)?)?;
    /// assert_eq!(m.primal_vars(), vec!["T".to_string()]);
    /// # Ok::<(), pyrucast::PyrucastError>(())
    /// ```
    pub fn radiation(fespace, target) via SubModel::radiation;
    python: "`model.radiation(fespace, target)` — radiation to infinity on a\n*boundary* `fespace`: `q·n = σε(T⁴ − T_∞⁴)`, cooling the model `target`.\nSame DOFs (`\"T\"`/`\"q\"`) as `heat_conduction`, which `target` must\nassemble — a radiating boundary with no conduction beneath it raises —, so\nit composes with `|`:\n`conduction = model.heat_conduction(bulk)`\n`model = conduction | model.radiation(boundary, conduction)`.\n\nMaterial: `emis` (emissivity) and `T_inf` (far-field temperature), plus an\noptional `sigma` overriding the SI Stefan-Boltzmann constant. With the\ndefault `sigma`, `T` is an **absolute** temperature — a fourth power has\nno invariance to shift an origin through.\n\nUnlike convection this law is non-linear, so it contributes three terms:\nthe linearised film `4σεT_∞³∫NᵢNⱼ` as stiffness, the exact residual\n`∫Nᵢσε(T⁴ − T_∞⁴)` through `internal_forces`, and the consistent tangent\n`4σεT³∫NᵢNⱼ` through `matrix.tangent(...)`, all evaluated at the face's\nGauss points with `T` interpolated there. Its natures are `\"thermal\"`\n**and** `\"radiation\"`."
}