Define the viewing direction and boundaries
Place the observer on positive . Gas flows radially outward, at distance from the centre. A ray has projected impact parameter , with . Display received Doppler velocity with red positive, so approaching near-side material has negative .
The line-forming calculation extends from the photosphere to eight stellar radii. A prescribed beta velocity law sets the speed, with exponent controlling the acceleration shape. Changing the exponent also changes so the base speed remains five percent of the asymptotic speed.
For and asymptotic speed 200 kilometres per second, the outer boundary reaches only 176.25 kilometres per second. A finite-volume edge and an infinite-radius asymptote are different quantities. Intrinsic width, ion populations and observational processing also affect a spectral blue edge.
Reading: Lamers, Cerruti-Sola & Perinotto1987, the SEI line-profile method · Standalone stellar-wind scientific reproduction
Carry the same mass through every shell
Steady spherical flow carries the same mass through every shell each second. Shell area multiplied by density and radial speed gives that mass-flow rate. Solving for density shows how expansion and acceleration both dilute the wind.
Double radius and double speed at fixed mass flow, and density falls by a factor of eight. Residence time tells the same story: slower material leaves more mass in a shell. The weighted tracer distribution can therefore follow the same continuity law as the transfer calculation.
Density must update when the terminal-speed scale changes. Stretching a previously drawn spectrum while leaving the matter unchanged would disconnect the spectrum from its physical flow.
Reading: Owocki2014, Theory of Winds from Hot, Luminous Massive Stars
The gradient along a ray includes geometry
Moving along a fixed-impact ray changes both speed and the angle between the radial velocity and the sightline. Differentiating must retain both changes. Geometry gives and .
The chain rule then gives the directional gradient below. A radial ray mainly samples radial acceleration. A nearly tangential ray instead depends strongly on the changing projection of the spherical flow. A slowly changing speed magnitude does not imply a constant projected velocity.
The declared monotonic outflow has positive gradient, so a given frequency has at most one local resonance along a ray. A nonmonotonic wind can connect several resonance positions by radiation and requires a different transfer treatment.
Reading: Lamers, Cerruti-Sola & Perinotto1987, the SEI line-profile method
Integrate the narrow resonance layer
Describe the intrinsic line with , normalized to unit integral over velocity. Let be opacity integrated over that velocity coordinate, with SI units . The local extinction coefficient then has inverse-length units.
If resonance occupies a sufficiently thin layer, density, directional gradient and source can be treated as constant across it. Change the transfer integral from position to projected velocity. The unit line-profile integral leaves opacity times density divided by the directional gradient: the Sobolev optical depth.
Normalizing radius and velocity by the stellar radius and asymptotic speed gives the scale . Mass flow and line opacity appear in its numerator; speed enters squared in the denominator. This is the origin of the coupled width and depth response when the flow is accelerated.
Reading: Lamers, Cerruti-Sola & Perinotto1987, the SEI line-profile method · Owocki2014, Theory of Winds from Hot, Luminous Massive Stars
Calculate the scattering source
The star occupies a finite solid angle as seen from the gas. Its limb defines direction cosine . Radiation arriving from that cone supplies photons; local reabsorption can scatter them repeatedly before they escape the resonance layer.
For an isotropic conservative isolated line, define mean escape probability and the stellar illumination term . Local scattering balance is . Rearranging gives the source relative to the uniform stellar continuum intensity.
In the thin limit, escape tends to unity and the source reduces to geometric dilution. Thick-line escape depends on the directional gradients. At the photospheric boundary the star fills a hemisphere; even angular opacity then makes the source exactly half the stellar intensity. That supplies a useful analytic check.
Reading: Lamers, Cerruti-Sola & Perinotto1987, the SEI line-profile method · Standalone stellar-wind scientific reproduction
Work through a complete stellar-disk ray
Choose and . Examine a near-side point at twice the photospheric radius with . Speed is 0.525 times the asymptotic value, and impact parameter is about 0.872 stellar radii. The ray therefore really crosses the visible stellar disk. At asymptotic speed 200 kilometres per second, its red-positive velocity is minus 94.5 kilometres per second.
In stellar-radius and asymptotic-speed units, the radial derivative is 0.2375 and speed divided by radius is 0.2625. Their directional combination is 0.24225. Density and opacity then give optical depth about 0.39314. Independent angular integration gives source ratio 0.06634.
Normalize incoming disk intensity to one. Direct transmission is about 0.67493; adding local scattering gives outgoing intensity about 0.69650. Scattering fills part of the absorption. This is one ideal ray before the full wind integration and instrumental response.
Place its counterpart on the rear side and the same impact parameter lies behind the opaque disk. That path is blocked. At greater impact parameters, rear-side light can pass beside the star and contribute to red emission.
Reading: Standalone stellar-wind scientific reproduction · Lamers, Cerruti-Sola & Perinotto1987, the SEI line-profile method
Add the rays into a spectrum
At each frequency, integrate outgoing intensity over projected annuli. Their area supplies the impact-parameter weight, and the uniform stellar disk supplies the continuum normalization. An aperture containing the whole disk has continuum one outside the line.
Scattered photons can be captured, returned to the opaque star or missed with the halo. With one continuum normalization and dimensionless velocity integral, these three areas sum to the area removed from direct starlight. Absorption-positive equivalent width equals the returned and missed areas multiplied by the velocity scale.
A full halo aperture removes the missed term but retains stellar interception. This relation concerns photon number under a flat continuum and the stated Doppler convention. Arbitrary wavelength equivalent widths and exact energy flux require their own conversion and work terms.
Reading: Lamers, Cerruti-Sola & Perinotto1987, the SEI line-profile method · Standalone stellar-wind scientific reproduction
Check discretization and physical approximation separately
With intrinsic Doppler width , resonance thickness is approximately . It must be small compared with density and source variation scales and with the distance to a boundary. Comparing only with stellar radius can overlook rapidly changing illumination close to the photosphere.
The independent finite-width check holds the source fixed and solves the transfer differential equation. At width 0.00005 times the asymptotic speed, the largest difference across four rays is about . Width 0.05 already gives a counterexample near 0.033. This tests formal integration; finite-width source accuracy still requires a fuller calculation.
That intrinsic Doppler width is defined by . The fixed eight-kilometre-per-second Gaussian standard deviation belongs to the instrument, applied after wind transfer. Interchanging those widths changes both the physical and measurement models.
The production solver is also checked against independent impact-ray integration over 197 presets, corners, faces and interior configurations. Its maximum detector-profile difference is about 0.072 percent of continuum. Runtime checks compare refined spectra, sources and forces. These tests measure numerical differences within the declared calculation, with finite-width and non-LTE approximations retaining separate tests.
Reading: Lamers, Cerruti-Sola & Perinotto1987, the SEI line-profile method · Standalone stellar-wind scientific reproduction