# Copyright 2026 Marc Davici # SPDX-License-Identifier: Apache-2.0 """Material properties for CPA cocktails, containers and nanoparticle heating. Every correlation here is transcribed from the published literature and carries its source. Temperatures are in degrees Celsius throughout, matching the form in which the source correlations are published; everything else is SI. Sources ------- [JR23] Joshi P, Rabin Y (2023) "Thermomechanical stress analyses of nanowarming-assisted recovery from cryopreservation by vitrification in human heart and rat heart models." PLoS ONE 18(8): e0290063. Table 2 is the origin of most correlations below. [RAB20] Rabin et al. (2020) "Thermal conductivity of cryoprotective agents loaded with nanoparticles..." PLoS ONE 15(9): e0238941. [EMG] SAR measurements for EMG-308 (Ferrotec) sIONPs in VS55 at 62 kA/m, 185 kHz, reported via [JR23] Sec. "Physical properties". Note on piecewise fits: the published correlations are independent least-squares fits over adjacent temperature windows, so they are continuous only to within fitting error (a few tenths of a percent). They are reproduced here exactly as published rather than smoothed, because the forward model is validated against results generated with them. `tests/test_properties.py` pins the jump sizes so a transcription error cannot masquerade as fitting error. """ from __future__ import annotations import jax.numpy as jnp from jax.typing import ArrayLike __all__ = [ "VS55", "VS55_SUCROSE", "POLYETHYLENE", "CPA", "sar_emg308", "nanowarming_source", ] # -------------------------------------------------------------------------- # Scalar constants # -------------------------------------------------------------------------- # Vitrified CPA fails in tension long before compression; this is the tensile # strength-to-fracture used as the structural failure criterion. [JR23] citing # its ref. [33]. Higher strain rates fail at lower stress, so treating this as a # hard ceiling is optimistic, not conservative. TENSILE_STRENGTH_PA: float = 3.2e6 # Upper temperature bound for heterogeneous nucleation in VS55 (its melting # point). [JR23] Table 2. T_MELT_VS55_C: float = -38.0 class CPA: """A cryoprotective agent cocktail with its published correlations. Attributes are plain floats or callables of temperature in degrees Celsius. All callables are JAX-traceable and safe under ``jax.grad``. """ def __init__( self, name: str, t_glass_c: float, critical_cooling_rate_c_per_min: float, critical_warming_rate_c_per_min: float, source: str, ) -> None: self.name = name self.t_glass_c = t_glass_c self.critical_cooling_rate_c_per_min = critical_cooling_rate_c_per_min self.critical_warming_rate_c_per_min = critical_warming_rate_c_per_min self.source = source def __repr__(self) -> str: # pragma: no cover - debugging aid return f"CPA({self.name!r}, Tg={self.t_glass_c}C)" # -- to be bound per-cocktail ------------------------------------------ def specific_heat(self, t_c: ArrayLike) -> jnp.ndarray: raise NotImplementedError def density(self, t_c: ArrayLike) -> jnp.ndarray: raise NotImplementedError def thermal_conductivity(self, t_c: ArrayLike) -> jnp.ndarray: raise NotImplementedError def viscosity(self, t_c: ArrayLike) -> jnp.ndarray: raise NotImplementedError # Thermal expansion and elastic constants are reported as temperature # independent in [JR23] Table 2. thermal_expansion_per_c: float = 1.1e-4 youngs_modulus_pa: float = 800e6 poisson_ratio: float = 0.25 def volumetric_heat_capacity(self, t_c: ArrayLike) -> jnp.ndarray: """rho * cp, in J/(m^3 K) - the coefficient on dT/dt in the heat equation.""" return self.density(t_c) * self.specific_heat(t_c) # -------------------------------------------------------------------------- # VS55: 3.1 M DMSO + 2.2 M propylene glycol + 3.1 M formamide # -------------------------------------------------------------------------- class _VS55(CPA): def specific_heat(self, t_c: ArrayLike) -> jnp.ndarray: """Specific heat in J/(kg K). [JR23] Table 2, citing its ref. [37]. Three windows; the middle one is the steep rise across the glass transition and is only one degree wide. """ t = jnp.asarray(t_c, dtype=jnp.float64) return jnp.select( [t < -120.0, t <= -119.0], [ 7.60 * t + 2402.3, 545.24 * t + 66747.0, ], default=0.039 * t**2 + 11.73 * t + 2678.8, ) def density(self, t_c: ArrayLike) -> jnp.ndarray: """Density in kg/m^3. [JR23] Table 2, citing its ref. [54].""" t = jnp.asarray(t_c, dtype=jnp.float64) return 1078.0 - 0.43 * t def thermal_conductivity(self, t_c: ArrayLike) -> jnp.ndarray: """Thermal conductivity of VS55 loaded with sIONP, W/(m K). [JR23] Table 2 citing [RAB20]. Five windows. Note the dip between -116 and -96 C: measured, not an artefact. """ t = jnp.asarray(t_c, dtype=jnp.float64) return jnp.select( [t <= -116.0, t < -96.0, t <= -77.0, t < -34.0], [ 8.16e-4 * t + 4.40e-1, -1.0e-3 * t + 2.34e-1, 4.59e-4 * t + 3.74e-1, 5.0e-4 * t + 3.74e-1, ], default=4.59e-4 * t + 3.74e-1, ) def viscosity(self, t_c: ArrayLike) -> jnp.ndarray: """Viscosity in Pa s. [JR23] Table 2, citing its ref. [50]. Spans about ten orders of magnitude across the glass transition; this is what makes the mechanical response a Maxwell fluid rather than a solid. """ t = jnp.asarray(t_c, dtype=jnp.float64) return jnp.select( [t >= -100.0, t >= -140.0], [ jnp.full_like(t, 1.21e4), 4.2783e-23 * jnp.exp(-0.6091 * t), ], default=jnp.full_like(t, 4.63e14), ) VS55 = _VS55( name="VS55", t_glass_c=-123.0, critical_cooling_rate_c_per_min=2.5, critical_warming_rate_c_per_min=50.0, source="[JR23] Table 2", ) # -------------------------------------------------------------------------- # VS55 + 0.6 M sucrose (synthetic ice modulator) # -------------------------------------------------------------------------- class _VS55Sucrose(CPA): """VS55 with 0.6 M sucrose. Sucrose suppresses ice nucleation and growth, dropping both critical rates below 1 C/min, which is what makes the human-scale heart tractable at all. Where sucrose-specific data does not exist, [JR23] substitutes VS55 values; the viscosity is VS55's shifted by the 8 C difference in glass transition temperature. Those substitutions are flagged in the docstrings below rather than hidden. """ def specific_heat(self, t_c: ArrayLike) -> jnp.ndarray: """Specific heat in J/(kg K). [JR23] Table 2, citing its ref. [52].""" t = jnp.asarray(t_c, dtype=jnp.float64) return jnp.select( [t <= -118.0, t <= -104.0], [ 0.04 * t**2 + 19.4 * t + 2688.7, -6.11 * t**2 - 1238.0 * t - 60074.0, ], default=0.01 * t**2 + 3.96 * t + 2803.0, ) def density(self, t_c: ArrayLike) -> jnp.ndarray: """Substituted from VS55 - no sucrose-specific measurement published.""" return VS55.density(t_c) def thermal_conductivity(self, t_c: ArrayLike) -> jnp.ndarray: """Substituted from VS55+sIONP - no sucrose-specific measurement.""" return VS55.thermal_conductivity(t_c) def viscosity(self, t_c: ArrayLike) -> jnp.ndarray: """VS55 viscosity shifted by the 8 C glass-transition difference. [JR23] Table 2 marks this row "Assumed". A prior study found the viscosity value is not critical provided the annealing temperature is shifted consistently with Tg, which is what this does. """ t = jnp.asarray(t_c, dtype=jnp.float64) return VS55.viscosity(t - 8.0) VS55_SUCROSE = _VS55Sucrose( name="VS55+0.6M sucrose", t_glass_c=-115.0, # Both rates are reported only as "< 1" by DSC; the bound is used directly, # which is the conservative reading. critical_cooling_rate_c_per_min=1.0, critical_warming_rate_c_per_min=1.0, source="[JR23] Table 2", ) # -------------------------------------------------------------------------- # Container material # -------------------------------------------------------------------------- class _Polyethylene: """Cryobag / container wall. [JR23] Table 2, citing its refs. [53,55,57].""" name = "polyethylene" def specific_heat(self, t_c: ArrayLike) -> jnp.ndarray: t = jnp.asarray(t_c, dtype=jnp.float64) return 1031.0 + 3.57 * t - 0.014 * t**2 - 6.1710e-5 * t**3 def density(self, t_c: ArrayLike) -> jnp.ndarray: t = jnp.asarray(t_c, dtype=jnp.float64) return 931.0 - 0.49 * t - 0.00091 * t**2 def thermal_conductivity(self, t_c: ArrayLike) -> jnp.ndarray: t = jnp.asarray(t_c, dtype=jnp.float64) return 0.39 + 5.2e-4 * t def volumetric_heat_capacity(self, t_c: ArrayLike) -> jnp.ndarray: return self.density(t_c) * self.specific_heat(t_c) POLYETHYLENE = _Polyethylene() # -------------------------------------------------------------------------- # Nanoparticle heating # -------------------------------------------------------------------------- # Measured endpoints for EMG-308 sIONP in VS55 at 62 kA/m, 185 kHz. [EMG] _SAR_AT_MINUS_80: float = 691.0 # W per gram Fe _SAR_AT_MINUS_20: float = 415.0 # W per gram Fe _SAR_SLOPE: float = (_SAR_AT_MINUS_20 - _SAR_AT_MINUS_80) / (-20.0 - (-80.0)) def sar_emg308(t_c: ArrayLike, *, low_temperature: str = "clamped") -> jnp.ndarray: """Specific absorption rate of EMG-308 sIONP in VS55, W per gram Fe. Linear from 691 W/gFe at -80 C to 415 W/gFe at -20 C, continuing at the same slope to 0 C. [EMG] via [JR23]. This temperature dependence is what couples the heat source back to the field it is producing: the medium heats, the source weakens. It is the reason the warming problem is not a linear superposition of per-particle contributions. It is measured at a fixed field strength and frequency, so treating H and f as free design variables would require re-measuring it - which is why the loading field, not the field strength, is the design variable in this project. Below -80 C there is no measurement, and the two defensible readings differ by 47% at storage temperature: ``clamped`` Hold SAR at its -80 C value, as [JR23] states in the text ("the SAR values are assumed to remain constant below -80 C and above 0 C"). SAR(-150 C) = 691 W/gFe. ``extrapolated`` Continue the linear fit. SAR(-150 C) = 1013 W/gFe. The clamped reading implies a hard adiabatic ceiling of 287.5 C/min for a uniformly loaded 10 mgFe/mL specimen, which two of the four rewarming rates published in [JR23] Table 5 exceed (Case I at 374, Case III at 410). The extrapolated reading raises the ceiling to 421 C/min and accommodates all four. See `docs/validation.md`; results are reported under both readings rather than silently adopting whichever is convenient. """ t = jnp.asarray(t_c, dtype=jnp.float64) if low_temperature == "clamped": t_eff = jnp.clip(t, -80.0, 0.0) elif low_temperature == "extrapolated": t_eff = jnp.minimum(t, 0.0) else: # pragma: no cover - guard raise ValueError( "low_temperature must be 'clamped' or 'extrapolated', " f"got {low_temperature!r}" ) return _SAR_AT_MINUS_80 + _SAR_SLOPE * (t_eff - (-80.0)) def nanowarming_source( t_c: ArrayLike, iron_concentration_mg_per_ml: ArrayLike, *, low_temperature: str = "clamped", ) -> jnp.ndarray: """Volumetric heat generation from nanowarming, W/m^3. q = SAR(T) * C_Fe, per [JR23] Eq. (2). ``iron_concentration_mg_per_ml`` is in mg Fe per mL of CPA, the unit the experimental literature reports loading in. 1 mg/mL is 1 g/L, i.e. 1000 g of iron per cubic metre, so the conversion to W/m^3 is a factor of 1e3. """ sar = sar_emg308(t_c, low_temperature=low_temperature) # W / g Fe c_fe = jnp.asarray(iron_concentration_mg_per_ml, dtype=jnp.float64) * 1.0e3 return sar * c_fe