RCAIDE.Framework.Core.Utilities

Utilities#

Functions

T0(a)

Rotation matrix about first axis

T1(a)

Rotation matrix about second axis

T2(a)

Rotation matrix about third axis

angles_to_dcms(rotations[, sequence])

Builds an euler angle rotation matrix

interp2d(x, y, xp, yp, zp[, fill_value])

Bilinear interpolation on a grid. CartesianGrid is much faster if the data lies on a regular grid. :param x: 1D arrays of point at which to interpolate. Any out-of-bounds coordinates will be clamped to lie in-bounds. :param y: 1D arrays of point at which to interpolate. Any out-of-bounds coordinates will be clamped to lie in-bounds. :param xp: 1D arrays of points specifying grid points where function values are provided. :param yp: 1D arrays of points specifying grid points where function values are provided. :param zp: 2D array of function values. For a function f(x, y) this must satisfy zp[i, j] = f(xp[i], yp[j]).

new_tensor(a)

Initializes the required tensor.

orientation_product(T, Bb)

Computes the product of a tensor and a vector.

orientation_transpose(T)

Computes the transpose of a tensor.

interp2d(x, y, xp, yp, zp, fill_value=None)[source]#

Bilinear interpolation on a grid. CartesianGrid is much faster if the data lies on a regular grid. :param x: 1D arrays of point at which to interpolate. Any out-of-bounds

coordinates will be clamped to lie in-bounds.

Parameters:
  • y – 1D arrays of point at which to interpolate. Any out-of-bounds coordinates will be clamped to lie in-bounds.

  • xp – 1D arrays of points specifying grid points where function values are provided.

  • yp – 1D arrays of points specifying grid points where function values are provided.

  • zp – 2D array of function values. For a function f(x, y) this must satisfy zp[i, j] = f(xp[i], yp[j])

Returns:

1D array z satisfying z[i] = f(x[i], y[i]).

orientation_product(T, Bb)[source]#

Computes the product of a tensor and a vector.

Assumptions: None

Source: N/A

Inputs: T [-] 3-dimensional array with rotation matrix

patterned along dimension zero

Bb [-] 3-dimensional vector

Outputs: C [-] transformed vector

Properties Used: N/A

orientation_transpose(T)[source]#

Computes the transpose of a tensor.

Assumptions: None

Source: N/A

Inputs: T [-] 3-dimensional array with rotation matrix

patterned along dimension zero

Outputs: Tt [-] transformed tensor

Properties Used: N/A

angles_to_dcms(rotations, sequence=(2, 1, 0))[source]#

Builds an euler angle rotation matrix

Assumptions: N/A

Source: N/A

Inputs: rotations [radians] [r1s r2s r3s], column array of rotations sequence [-] (2,1,0) (default), (2,1,2), etc.. a combination of three column indices

Outputs: transform [-] 3-dimensional array with direction cosine matrices

patterned along dimension zero

Properties Used: N/A

T0(a)[source]#

Rotation matrix about first axis

Assumptions: N/A

Source: N/A

Inputs: a [radians] angle of rotation

Outputs: T [-] rotation matrix

Properties Used: N/A

T1(a)[source]#

Rotation matrix about second axis

Assumptions: N/A

Source: N/A

Inputs: a [radians] angle of rotation

Outputs: T [-] rotation matrix

Properties Used: N/A

T2(a)[source]#

Rotation matrix about third axis

Assumptions: N/A

Source: N/A

Inputs: a [radians] angle of rotation

Outputs: T [-] rotation matrix

Properties Used: N/A

new_tensor(a)[source]#

Initializes the required tensor. Able to handle imaginary values.

Assumptions: N/A

Source: N/A

Inputs: a [radians] angle of rotation

Outputs: T [-] 3-dimensional array with identity matrix

patterned along dimension zero

Properties Used: N/A