Escolar Documentos
Profissional Documentos
Cultura Documentos
2
Cubic Splines
1
Cubic Spline
• The equation for a single parametric cubic spline segment is
given by 4
P t Bi t i 1 t1 t t2 (2.2.1)
i 1
where t1 and t2 are the parameter values at the beginning and end
of the segment. P(t) is the position vector of any point on the
cubic spline segment.
2 3
P t B1 B2t B3t B4t t1 t t2 (2.2.2)
3
• Also let P’1 and P’2, derivatives with respect to t, be the tangent
vectors at the end points of the spline segment, refer Fig. 2.2.1.
Differentiating Eq. (2.1.1) yields
4
'
P t [x ' t y ' t z ' t ] Bi i 1 t i 2 t1 t t2 (2.2.3)
i 2
• Specifically for i = 1, 2, 3, 4
P(0) = B1 = P1 (2.2.6a)
4
P' 0 i 1 t i 2 Bi B2 P1' (2.2.6b)
i 2 t 0
4
P t2 Bit i 1
B1 B2t2 B3t22 B4t23 (2.2.6c)
i 1 t t2
4
P t2 i 1 t i 2 Bi B2 2B3t2 3B4t22 (2.2.6d)
5
i 2 t t2
• Solving for B3 and B4 yields
3 P2 P1 2P1' P2'
B3 (2.2.7a)
t22 t2 t2
and
2 P1 P2 P1' P2' (2.2.7b)
B4
t23 t22 t22
• B1, B2, B3 and B4 determine the cubic spline completely. This
completes the computation of the coefficients for one coordinate
(x or y or z) of a spline segment.
• Referring to Fig. 2.2.2, assume that the position vectors P1, P2,
P3, the tangent vectors P1’, P2’, P3’ and the parameter values t2, t3
are known. Eq. (2.2.8), applied to each of the two segments
yields their shapes. 7
Fig 2.2.2 Multiple segments
• However, it is unlikely that the tangent vector P2’ at the internal
joint between the two segments is known. The internal tangent
vector P2’ can be determined by imposing a continuity condition
of the derivation at the internal joint.
• Noting that for the first cubic spline segment the parameter range
is 0 ≤ t ≥ t2,evaluating Eq. (2.2.9) at the end of the segment
where t = t2 gives
P 6 B4t2 2 B3 (2.2.9a)
P 2 B3 (2.2.9a)
9
• Equating (2.2.9a) and (2.2.9b) and then using (2.2.6a, b) and
(2.2.7a) gives
2 P1 P2 P1' P2' 3 P2 P1 2 P1' P2'
6t2 2
t23 t22 t22 t22 t2 t2
3 P3 P2 2 P2' P3'
2
t32 t3 t3
• Here the left hand side of the equation represents the curvature at
the end of the first segment and the right hand side is the
curvature at the beginning of the second segment. Multiplying
by t2t3 and simplifying gives
3 2
t3 P1' 2 t3 t2 P2' t2 P3' t2 P3 P2 t32 P2 P1 (2.2.10)
t 2 t3
10
• Equation (2.2.10) can be solved for P2’, the unknown tangent
vector at the internal joint. Again notice that the end values of
the parameter t, i.e., t2 and t3, occur in the resulting equation.
• Recall that the parameter range begins at zero for each segment,
for the first segment 0 ≤ t ≤ tk+1 and for the second 0 ≤ t ≤ tk+2.
3
tk2 1 Pk 2 Pk 1 tk2 2 Pk 1 Pk 1 k n 2
tk 1tk 2
(2.2.13)
3 2
t2 P3 P2 t32 P2 P1
t 2 t3
P1' (2.2.14)
3 2 2
P2' t3 P4 P3 t 4 P3 P2
t3t4
P3'
.
.
.
.
.
Pn'
3
tn2 1 Pn Pn 1 tn2 Pn 1 Pn 2
tn 1tn
or [M*][P’] = [R] 14
• Since there are only n – 2 equations for the n tangent vectors,
[M*] is not square and thus cannot be inverted to obtain the
solution for [P’]; i.e., the problem is indeterminate. By assuming
that the end tangent vectors P1’ and Pn’ are known, the problem
becomes determinant.
• Here, [M] is a square matrix and invertible. Notice also that [M]
is tri-diagonal, which reduces the computational work required
to invert it.
. . . . . . 0 1
P1'
3 2
t2 P3 P2 t32 P2 P1
t2t3
P1'
3 2
P2' t3 P4 P3 t42 P3 P2
t3t4
P3'
.
.
.
.
.
Pn'
3
tn2 1 Pn Pn 1 tn2 Pn 1 Pn 2
tn 1tn
Pn' 16
• The solution for [P’] is thus
• Once the Pk’ s are known, the coefficients (B) for each spline
segment can be determined. Generalizing Eqs. (2.2.6) – (2.2.11)
gives
B1k Pk
B2 k Pk'
3 Pk 1 Pk 2 Pk' 2 Pk' 1
B3k
tk2 1 tk 1 tk 1
3 Pk Pk 1 Pk' Pk' 1
B4 k
tk3 1 tk2 1 tk2 1
17
• Since Pk and P’k are vector valued, Bi are also vector valued.
That is, if the Pk and Pk’ have x, y, z components then the Bi
also have the corresponding x, y, z components.
• In the matrix form, the equations for B for any spline segment k
are: B1k
B2 k
B
B3 k
B4 k
1 0 0 0 (2.2.17)
0 1 0 0 Pk
3 2 3 1 Pk'
tk2 1 tk 1 tk2 1 tk 1 Pk 1
2 1 2 1 Pk' 1
3 2 3 2
t k 1 t k 1 t k 1 t k 1 18
• To generate a piecewise cubic spline through n given position
vectors Pk, 1 ≤ k ≤ n, with end tangent vectors P1’ and Pn’,
Eq. (2.2.16) is used to determine the internal tangent vectors
Pk’, 2 ≤ k ≤ n – 1.
• Then for each piecewise cubic spline segment the end position
and tangent vectors for that segment are used to determine the
Bik’s, 1 ≤ i ≤ 4 for that segment using Eq. (2.2.17).
4
Pk t Bik t i 1
0 t tk 1 , 1 k n 1 (2.2.18)
i 1
T t
tk 1
F1k T 2T 3 3T 2 1
(2.2.22a)
F2 k T 2T 3 3T 2
(2.2.22b)
F3k T T T2 2T 1 tk 1
(2.2.22c)
F4 k T T T2 T tk 1
(2.2.22d)
21
Generation of Cascade Geometries
• In Fig. 2.2.4 the periodic pairs of the boundary are curves {C1
and C2} for the stator and {C3 and C4} for the rotor. Similarly the
periodic pairs in Fig. 2.2.5 are {C’1 and C’2}, {C’3 and C’4} and
{C’5 and C’6} for the first-stage stationary row, first-stage
rotating row and second-stage stationary row to enable
consideration of a multi-stage problem.
Fig. 2.2.4 The physical model for the analysis of a turbine stage (Equal
25
stator and rotor pitches)
Fig. 2.2.5 The physical model for the analysis of a turbine stage (Unequal
26
stator and rotor pitches)
Generation of Blade Profiles Using Splines
28
Fig. 2.2.6 Boundary discretization of an airfoil (a) Subdivision of an airfoil
29
• For providing such a distribution of nodes, a simple and
generalised method is used by adopting the following
exponential stretching function.
S N i
N 1
i e 1
1
L eS 1 (2.2.23)
• Here δi is the distance along the curve of the ith point from the
starting point of the curve, L is the length of the curve, N is the
total number of divisions required and S is the stretching factor.
• It can be seen that close points are obtained near the end of the
curve.
34