Skip to content

Characteristic Length Scale

Characteristic Length Scale¤

neojax.data.scales.CharacteristicLengthScale ¤

Scales data using a constant reference length.

Commonly used for simple non-dimensionalization where a single spatial constant (like the chord of an airfoil or the diameter of a pipe) governs the system.

Parameters:

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

The constant reference length scale.

required
Internal Attributes

These fields store the internal state of the scale.

  • L_ref (float | Float[Array, "..."]): The stored reference length.

Examples:

scale = CharacteristicLengthScale(L_ref=1.0)
factors = scale.get_scale(x)
get_scale(x: Float[Array, ...]) -> Float[Array, ...] ¤

Returns the reference length as a JAX array.

Parameters:

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

Input array (unused here but required by protocol).

required

Returns:

Type Description
Float[Array, ...]

The reference length scale.