Skip to content
critical-opalescence logo

Critical Opalescence Skill

critical-opalescence

Critical opalescence at phase transitions: diverging correlation length, light scattering, and the visual signature of criticality in fluids, proteins, and complex systems

plurigrid/asi0installs67stars

SKILL.md

Full skill instructions

Critical Opalescence Skill

"At the critical point, the fluid becomes opalescent—milky white—because density fluctuations occur at all scales, scattering light of all wavelengths."

Overview

Critical opalescence is the dramatic increase in light scattering near a phase transition's critical point. It's the visual signature of criticality.

SystemCritical PointObservable
CO₂31°C, 73 atmMilky fluid
Binary mixturesConsolute pointTurbidity divergence
ProteinsFolding transitionAggregate scattering
Ising modelT_c (Onsager: 2D exact)Correlation length → ∞

The Physics

Why Opalescence at Criticality?

Normal state:
  ξ (correlation length) ~ 1 nm
  Fluctuations small, invisible

Near critical point:
  ξ → ∞ (diverges)
  Fluctuations at ALL scales
  λ_light ~ ξ → strong scattering

At T_c:
  ξ = ∞
  Scale-free fluctuations
  Maximum opalescence

Ornstein-Zernike Theory

import numpy as np

def structure_factor(q, xi, chi_0=1.0):
    """
    Ornstein-Zernike structure factor S(q).

    S(q) = χ₀ / (1 + q²ξ²)

    Args:
        q: scattering wavevector
        xi: correlation length
        chi_0: susceptibility amplitude

    At criticality (ξ → ∞): S(q) ~ q^(-2)
    """
    return chi_0 / (1 + (q * xi) ** 2)

def correlation_length(T, T_c, xi_0=1.0, nu=0.63):
    """
    Correlation length divergence near T_c.

    ξ = ξ₀ |T - T_c|^(-ν)

    Args:
        T: temperature
        T_c: critical temperature
        xi_0: microscopic length
        nu: critical exponent (3D Ising: 0.63, mean field: 0.5)
    """
    t = abs(T - T_c) / T_c
    if t < 1e-10:
        return float('inf')
    return xi_0 * (t ** (-nu))

def scattering_intensity(wavelength, xi):
    """
    Rayleigh-Gans scattering intensity.

    I ~ ξ³ for ξ << λ
    I ~ ξ² for ξ >> λ (Porod regime)
    """
    q = 2 * np.pi / wavelength
    if xi < wavelength / 10:
        # Rayleigh regime
        return xi ** 3
    else:
        # Large fluctuations
        return xi ** 2 * structure_factor(q, xi)

Connection to Onsager

Lars Onsager's exact solution of the 2D Ising model (1944) gave the first rigorous calculation of critical behavior:

Onsager's Results:
─────────────────
Critical temperature: k_B T_c / J = 2 / ln(1 + √2) ≈ 2.269

Specific heat: C ~ |T - T_c|^(-α)  with α = 0 (log divergence)
Magnetization: M ~ |T - T_c|^β    with β = 1/​8
Susceptibility: χ ~ |T - T_c|^(-γ) with γ = 7/​4
Correlation length: ξ ~ |T - T_c|^(-ν) with ν = 1

The 2D Ising model is EXACTLY SOLVABLE.
Opalescence would occur if we could "see" spin fluctuations.

Connection to Kolmogorov-Onsager-Hurst

┌─────────────────────────────────────────────────────────────────────┐
│              CRITICALITY ACROSS DOMAINS                             │
├─────────────────────────────────────────────────────────────────────┤
│                                                                     │
│  KOLMOGOROV        ONSAGER           HURST          OPALESCENCE    │
│  (Turbulence)      (Phase Trans)     (Memory)       (Scattering)   │
│  ─────────────     ─────────────     ──────────     ─────────────  │
│  E(k) ~ k^(-5/​3)   ξ ~ |t|^(-ν)      H = 1/​3        I ~ ξ^d        │
│  Scale-free        Divergence        Long-range     All wavelengths│
│  Inertial range    Critical point    Persistence    Milky white    │
│                                                                     │
│  ─────────────────── UNIFYING THEME ──────────────────────────────  │
│                                                                     │
│  SCALE INVARIANCE: No characteristic length/​time at criticality    │
│  UNIVERSALITY: Same exponents for different systems                 │
│  FLUCTUATIONS: Correlations extend to all scales                    │
│                                                                     │
└─────────────────────────────────────────────────────────────────────┘

Protein Folding Connection

Proteins exhibit critical-like behavior:

def protein_scattering(concentration, T, T_fold, radius_gyration=3.0):
    """
    Light scattering from protein solutions near folding transition.

    Near T_fold:
      - Molten globule state
      - Large fluctuations
      - Increased scattering

    Aggregation (misfolding):
      - Amyloid formation
      - Massive scattering (visible turbidity)
      - Opalescence in diseased states
    """
    xi = correlation_length(T, T_fold, xi_0=radius_gyration, nu=0.5)

    # Concentration-dependent scattering
    # Zimm equation for polymers
    I = concentration * xi ** 2

    return I

class FoldingLandscape:
    """
    Energy landscape for protein folding.

    Funnel topology with roughness:
      - Native state at bottom (global minimum)
      - Kinetic traps (local minima)
      - Chaperones smooth the landscape
    """

    def __init__(self, roughness=0.3, funnel_depth=10.0):
        self.roughness = roughness  # Local trap depth
        self.funnel_depth = funnel_depth  # Global bias

    def energy(self, q):
        """
        Energy as function of folding coordinate q ∈ [0, 1].
        q = 0: unfolded
        q = 1: native
        """
        # Funnel: linear bias toward native
        funnel = -self.funnel_depth * q

        # Roughness: random traps
        traps = self.roughness * np.sin(20 * np.pi * q)

        return funnel + traps

    def folding_rate(self, T):
        """
        Kramers rate over roughened landscape.
        """
        # Effective barrier reduced by funnel
        barrier = self.roughness * self.funnel_depth ** 0.5
        return np.exp(-barrier / T)

Opalescence Types

TypeCauseScaleExample
Criticalξ → ∞ at T_cAll scalesCO₂ critical point
RayleighParticles << λ~1-10 nmBlue sky, colloids
MieParticles ~ λ100-1000 nmClouds, milk
TyndallParticles > λ1-10 μmFog, suspensions

Structural Color (No Pigment)

Opalescence is related to structural coloration:

Photonic crystals:
  - Periodic structure with spacing ~ λ
  - Bragg diffraction → color selection
  - Examples: opals, butterfly wings, peacock feathers

The color depends on GEOMETRY, not chemistry.
Same principle as critical opalescence: interference at specific scales.

GF(3) Integration

Trit: 0 (ERGODIC/​Coordinator)

Critical opalescence is the BRIDGE between:
  - Microscopic fluctuations (atomic/​molecular)
  - Macroscopic observables (turbidity, color)

GF(3) Triads:
  kolmogorov-onsager-hurst (-1) ⊗ critical-opalescence (0) ⊗ protein-folding (+1) = 0 ✓
  bifurcation-generator (-1) ⊗ critical-opalescence (0) ⊗ phase-transition (+1) = 0 ✓
  structural-stability (-1) ⊗ critical-opalescence (0) ⊗ symmetry-breaking (+1) = 0 ✓

Practical Applications

1. Detecting Phase Transitions

def detect_critical_point(T_array, scattering_array):
    """
    Find T_c from scattering data.
    Maximum scattering ≈ critical point.
    """
    idx = np.argmax(scattering_array)
    T_c = T_array[idx]

    # Fit ξ ~ |T - T_c|^(-ν) to extract ν
    # ...

    return T_c

2. Protein Aggregation Monitoring

Early detection of amyloid formation via light scattering.

3. Quality Control

Colloid stability, emulsion breakdown, crystallization.

References

  1. Onsager, L. (1944). "Crystal statistics. I. A two-dimensional model with an order-disorder transition." Physical Review.
  2. Stanley, H.E. (1971). Introduction to Phase Transitions and Critical Phenomena.
  3. Ornstein, L.S. & Zernike, F. (1914). "Accidental deviations of density and opalescence at the critical point."
  4. Anfinsen, C.B. (1973). "Principles that govern the folding of protein chains." Science.

Invocation

/​critical-opalescence

Analyze systems for critical behavior via scattering signatures.

More skills from plurigrid

cargo logo
plurigrid/asi

cargo

Rust package manager (36 subcommands).

67 0
View

Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma...

67 0
View

**Status**: 🌳 Production Ready (upstream in StringZilla v3+) **Type**: High-Performance String Operations / SIMD-Accelerated Text Processing **Principle**: Zero-copy views, SIMD/SWAR acceleration, deterministic hashing **Frame**: Cross-language interoperability (C, C++, Python, Rust, Go, Swift, ...

67 0
View
conformal-ga logo
plurigrid/asi

conformal-ga

Conformal Geometric Algebra (CGA) for circles, spheres, and Möbius transformations

67 0
View

Verifies code implements exactly what documentation specifies for blockchain audits. Use when comparing code against whitepapers, finding gaps between specs and implementation, or performing compliance checks for protocol implementations.

67 0
View
zig-systems logo
plurigrid/asi

zig-systems

Systems programming and performance optimization using Zig. Provides low-level abstractions, memory-safe compiled code, and performance benchmarking. Use for system-level operations, optimization, and interoperability with C/POSIX APIs.

67 0
View
soliton-detection logo
plurigrid/asi

soliton-detection

Topological soliton detection and agency bridge with anyonic fusion algebra for concept composition

67 0
View
paypal-mcp logo
plurigrid/asi

paypal-mcp

PayPal MCP server integration for invoices, payments, subscriptions, disputes, and transaction reporting via @paypal/mcp.

67 0
View
unison logo
plurigrid/asi

unison

Unison language - content-addressed functional programming with abilities for effects, distributed computing, and structural types. Use for pure functional code, effect management, distributed systems, and refactoring-safe codebases.

67 0
View
tasks-acset logo
plurigrid/asi

tasks-acset

Google Tasks management via TasksACSet. Transforms task operations into GF(3)-typed Interactions, routes to triadic queues, detects saturation for task-zero-as-condensed-state.

67 0
View
c logo
plurigrid/asi

c

World C Skill

67 0
View
syrup logo
plurigrid/asi

syrup

Syrup binary serialization for OCapN/CapTP wire format. Canonical encoding for capability messages.

67 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View