RCAIDE.Framework.Core.Utilities
Utilities#
Functions
|
Rotation matrix about first axis |
|
Rotation matrix about second axis |
|
Rotation matrix about third axis |
|
Builds an euler angle rotation matrix |
|
Bilinear interpolation on a grid. |
|
Initializes the required tensor. |
|
Computes the product of a tensor and a vector. |
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-boundscoordinates 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