Skip to content
Oakfield Operator Calculus Function Reference Site

Energy Thermostats

Given a field or state uu with energy E(u)E(u) and target Etarget>0E_{\text{target}} > 0, apply a thermostat scaling

uuEtargetE(u)u \leftarrow u \sqrt{\frac{E_{\text{target}}}{E(u)}}

to enforce the desired energy level. Variants add relaxation toward EtargetE_{\text{target}} over multiple steps.

Defined for states with positive finite energy E(u)E(u) (e.g., L2L^{2} or kinetic energy). Output remains in the same state space with rescaled magnitude.


Preserves phase or direction of uu while adjusting magnitude. Instantaneously fixes energy in one step; relaxed versions converge geometrically toward the target.


If E(u)=EtargetE(u)=E_{\text{target}}, scaling is unity. When E(u)E(u) is near zero, safeguards are required to avoid division blow-up (e.g., floor on E(u)E(u)).


  • E(u)=EtargetE(u)=E_{\text{target}} leaves uu unchanged.
  • E(u)0E(u)\approx 0 requires regularization to avoid division blow-up.

Energy norms define E(u)E(u); normalization is the unit-energy special case; gain control offers continuous compression instead of exact enforcement.


Oakfield implements energy/thermostat behavior as a dedicated operator:

  • thermostat operator regulates a field toward a target mean energy E_target = mean(|u|^2) with multiple modes (soft_lambda, add, mult).
  • Complex support uses u2|u|^2 and applies updates radially (ADD) or proportional to uu (MULT), preserving phase away from the origin.
  • Optional memory target: ADD/MULT modes can use a per-point target memory field M[i] instead of a global E_target.
  • Stability knobs include smoothing and clamp parameters for regulated scalars (e.g. lambda_smooth, min/max bounds).

Thermostat-like rescalings appear in numerical dynamics as practical mechanisms to maintain or regulate energy-like invariants or target energy levels.

They are used as stabilization and constraint enforcement steps in iterative solvers and time-stepping pipelines.


  • Hairer, Lubich, Wanner, Geometric Numerical Integration