Struphy equilibrium
ConstantVelocity
Represents a simple fluid equilibrium with a spatially-constant bulk
velocity (ux, uy, uz) and configurable density/pressure
profiles. The class provides the following instance methods used by
the solver:
u_xyz(x, y, z): return the ion bulk velocity components matching
the shape of the inputs x, y, z. If velocity_step_function_in_y
is set the x-velocity is applied only for y < velocity_step_function_in_y.
- n_xyz(x, y, z): return the number-density according to
density_profile. Supported profiles are:
- "constant" : returns n everywhere.
- "affine" : returns n + n1 x.
- "gaussian_xy" : returns n exp(-(x2 + y2)/p0).
- "step_function_xy" : returns a step-like density using the
optional bounds upper_x, lower_x, upper_y, and
lower_y (expects a Cuboid domain for meaningful bounds).
- p_xyz(x, y, z): return an isotropic pressure (constant p0).
Governing formula
Formula not available for this equilibrium.
Coordinate slices
Pressure and density sampled from the generated equilibrium data. Heatmaps use the perceptually uniform Viridis palette.
XZ plane at 0
YZ plane at 0
Coordinate-line profiles
Parameters
| Parameter | Value | Description |
|---|---|---|
ux | 0 | — |
uy | 0 | — |
uz | 0 | — |
velocity_step_function_in_y | null | If provided, x-velocity is applied only for ``y < value``. |
n | 1 | Base number density. |
n1 | 0 | Linear coefficient used when ``density_profile == 'affine'``. |
density_profile | gaussian_xy | One of ``'constant'``, ``'affine'``, ``'gaussian_xy'``, or ``'step_function_xy'``. upper_x, lower_x, upper_y, lower_y : float or None Bounds used by the ``'step_function_xy'`` profile (optional). |
upper_x | null | — |
lower_x | null | — |
upper_y | null | — |
lower_y | null | — |
p0 | 0.35 | Reference pressure (also used as the Gaussian width parameter). |