Skip to content

Reynolds Scale

Reynolds Scale¤

neojax.data.scales.ReynoldsScale ¤

Scales data based on the Reynolds number \(Re = \frac{U L}{\nu}\).

A fundamental scaling in fluid mechanics used to non-dimensionalize velocity and pressure fields.

Parameters:

Name Type Description Default
U float | Float[Array, ...]

Reference velocity.

required
L float | Float[Array, ...]

Reference length.

required
nu float | Float[Array, ...]

Kinematic viscosity.

required
Internal Attributes

These fields store the internal state of the scale.

  • U (float | Float[Array, "..."]): Reference velocity.
  • L (float | Float[Array, "..."]): Reference length.
  • nu (float | Float[Array, "..."]): Kinematic viscosity.

Examples:

# Define physics for a flow problem
scale = ReynoldsScale(U=10.0, L=1.0, nu=1e-3)
re_number = scale.get_scale(x)
get_scale(x: Float[Array, ...]) -> Float[Array, ...] ¤

Computes the Reynolds number.

Parameters:

Name Type Description Default
x Float[Array, ...]

Input array (unused here but required by protocol).

required

Returns:

Type Description
Float[Array, ...]

The computed Reynolds number.