NEOPAX._cell_variable

Classes

CellVariable

Finite-volume radial profile with face-grid geometry and boundary constraints.

Functions

_expand_constraint(value, dtype)

_linear_inner_face_values(value, face_centers)

_weno3_inner_face_values(value, left_face_value, ...)

WENO3-like bounded reconstruction for interior faces.

_quadratic_face_derivative(x_eval, x0, x1, x2, y0, y1, y2)

make_profile_cell_variable(profile, face_centers, *[, ...])

get_profile_gradient(profile, r_grid, r_grid_half, dr)

get_gradient_density(density, r_grid, r_grid_half, dr)

get_gradient_temperature(temperature, r_grid, ...[, ...])

Module Contents

NEOPAX._cell_variable._expand_constraint(value, dtype)
NEOPAX._cell_variable._linear_inner_face_values(value, face_centers)
NEOPAX._cell_variable._weno3_inner_face_values(value, left_face_value, right_face_value)

WENO3-like bounded reconstruction for interior faces.

Notes

  • Operates on the last axis as the radial cell axis.

  • Uses boundary face values as ghost information.

  • Clamps reconstructed face values to local neighbor bounds to avoid overshoots.

NEOPAX._cell_variable._quadratic_face_derivative(x_eval, x0, x1, x2, y0, y1, y2)
class NEOPAX._cell_variable.CellVariable

Finite-volume radial profile with face-grid geometry and boundary constraints.

value: jaxtyping.Array
face_centers: jaxtyping.Array
left_face_constraint: jaxtyping.Array | None = None
right_face_constraint: jaxtyping.Array | None = None
left_face_grad_constraint: jaxtyping.Array | None = None
right_face_grad_constraint: jaxtyping.Array | None = None
property cell_centers
property cell_widths
left_face_value()
property right_face_value
face_value(reconstruction: str = 'linear')
face_grad()
grad()
NEOPAX._cell_variable.make_profile_cell_variable(profile, face_centers, *, left_face_constraint=None, right_face_constraint=None, left_face_grad_constraint=0.0, right_face_grad_constraint=None)
NEOPAX._cell_variable.get_profile_gradient(profile, r_grid, r_grid_half, dr, right_face_constraint=None, right_face_grad_constraint=None)
NEOPAX._cell_variable.get_gradient_density(density, r_grid, r_grid_half, dr, right_face_constraint=None, right_face_grad_constraint=None)
NEOPAX._cell_variable.get_gradient_temperature(temperature, r_grid, r_grid_half, dr, right_face_constraint=None, right_face_grad_constraint=None)