• Keine Ergebnisse gefunden

48 CHAPTER 4. A CUMULATIVE RECONSTRUCTOR ON FINITE ELEMENT BASIS

guarantee continuity over the whole domain Ω, instead of ηy a different constant has to be subtracted in every subdomain. We also want to have mean zero again over Ω.

In the following, we present the adjusted constants for a regionΩbeing symmetric with respect to the x- and y-axis and four regions of the same size. If additionally the split is done alongx“0 andy “0, as indicated by the bold lines in Figure 4.2, the correct constants are defined as

cll :“ 1

4pηyllulyylryur12`2κ3q, cul :“cll´κ1, clr :“cll´κ3, cur :“clr´κ2,

κ1 :“

«

w´yxp0q `

k´1

ÿ

n“1

fy,n

ffll

,

κ2 :“

«

w´yxp0q `

k´1

ÿ

n“1

fy,n fflr

,

κ3 :“

«

lxp0, yq ´w´xxpyq `w´yxpyq `

jpyq

ÿ

n“1

fy,n ffll

`

«

´wxx´pyq `wyx´pyq `

jpyq

ÿ

n“1

fy,n fflr

, where y in κ3 can be any element in rcp0q, dp0qs.

It is also possible to define κ3 as an average over such values for several y-elements, yielding analytically the same value. However, the discretized version will give different values. Setting y“cp0q “C, the result is simply

κ3 “ rlxp0, Cq ´wxxpCqsll` rwxxpCqslr.

In formula (4.3), also some adjustments are necessary. At a first glance they look similar with the roles of x and y interchanged, but in fact they are not. We will come back to this in the next section.

CHAPTER 4. A CUMULATIVE RECONSTRUCTOR ON FINITE ELEMENT

BASIS 49

still is different compared to existing algorithms, as we treat general sets Ω and our basis functions for the reconstructionRsare linear finite elements (known as Courant elements) on the triangulation shown in Figure 4.3. Thus, we can also use five inter-mediate nodes in addition to the four corners of Ωij. We define pxp, yqq as the nodes of the grid. Then,

xp :“A`ph

2 and yq :“C`qh 2,

withpp, qq PM. The set of admissible indices Mis obtained using Figure 4.3 and the definition of Min Section 4.1, as

M:“ tpp, qq PN0 ˆN0 : 0ďq ď2Ny, pP Kqu, where

Kq :“

$

’’

’’

&

’’

’’

%

t2pσn, . . . ,2pσnu, 2σn´1 ďqă2σn,1ďn ďk, t2pσ1, . . . ,2pσ1u, q“0,

t2 mintp

σn, p

σn`1u, . . . ,2 maxtpσn, pσn`1uu, q“2σn,1ďn ďk, t2p

σk, . . . ,2pσ

ku, q“2Ny.

Of course, the roles ofp and q can be interchanged, leading to a similar definition.

Figure 4.3: The triangulation on a part of a telescope aperture with WFS subapertures (bold lines). The dots indicate the nodes which are used for constructing the finite element reprensentation via piecewise linear functions. Corners of subapertures of the WFS are filled dots, intermediate points are empty dots. Source: [117]

The aim of the presented algorithm is to choose the approximate wavefront ¯ϕ such that the sensor measurements s are reproduced exactly, i.e.,

Γ ¯ϕ“ΓRs“s,

50 CHAPTER 4. A CUMULATIVE RECONSTRUCTOR ON FINITE ELEMENT BASIS

where R is the reconstruction operator.

We define the reconstruction of the wavefront via a finite element representation as

Rspx, yq “ϕpx, yq “¯ ÿ

pp,qqPM

cp,qϕp,qpx, yq, (4.4)

where the functions ϕp,q are piecewise linear functions satisfying

ϕp,qpx¯p˜,y¯q˜q “δp,˜pδq,˜q,

where δr,t denotes the usual Kronecker symbol. Due to this special choice, it holds that

ϕp¯xp,y¯qq “cp,q.

As a Shack-Hartmann WFS cannot measure constant functions, known as piston mode, the algorithm should not introduce a constant shift to the reconstructed wavefront.

In order to fulfill condition (2.20), we shift ¯ϕto zero mean. Furthermore, ¯ϕshould be close to the exact incoming wavefront ϕ.

For the implementation, the formulae of [117, Section 3] have to be discretized. We need to compute sums over each line in x- and y-direction and shifts to connect the restored parts together. We recall the discretized versions of all needed quantities from [117]. For 1 ď j ď Ny, 1 ď i ď Nx, 1 ď i1 ă i2 ď Nx, 1 ď j1 ă j2 ď Ny, hą0, the subaperture size in meter, and sxri, js and syri, js the WFS measurements at subaperture ri, js, we have

lxri, js “h

i

ÿ

p“pj`1

sxrp, js, (4.5)

lyri, js “h

j

ÿ

q“qi`1

syri, qs. (4.6)

CHAPTER 4. A CUMULATIVE RECONSTRUCTOR ON FINITE ELEMENT

BASIS 51

The integrals overlx and ly are approximated by the trapeziodal rule, leading to:

˜

wxxrjsri1, i2s “ 1 2

i2

ÿ

p“i1`1

plxrp´1, js `lxrp, jsq, (4.7) wxxrjsri1, i2s “ pi2´i1q´1xxrjsri1, i2s, (4.8)

˜

wyxrjsri1, i2s “

i2

ÿ

p“i1`1

lyrp, js, (4.9)

wyxrjsri1, i2s “ pi2´i1q´1yxrjsri1, i2s, (4.10)

˜

wyyrisrj1, j2s “ 1 2

j2

ÿ

q“j1`1

plyri, q´1s `lyri, qsq, (4.11) wyyrisrj1, j2s “ pj2´j1q´1yyrisrj1, j2s, (4.12)

˜

wxyrisrj1, j2s “

j2

ÿ

q“j1`1

lxri, qs, (4.13)

wxyrisrj1, j2s “ pj2´j1q´1xyrisrj1, j2s. (4.14) For 1ďn ďk, define:

fyrns “ pwyxnsrp

σn, pσns ´wyxnsrp

σn`1, pσn`1sq (4.15)

` pwxxn`1srp

σn`1, pσn`1s ´wxxn`1srαn, βnsq

` pwxxnsrαn, βns ´wxxnsrp

σn, pσns, with

αn “maxtp

σn, p

σn`1u, βn “mintp

σn, p

σn`1u.

Moreover, we introduce gyrjs “

k´1

ÿ

n“1 σnăj

fyrns, 1ďj ďNy, (4.16)

˜

ηy “N´1

k

ÿ

n“2

gynsppσn´p

σnqpσn´σn´1q, (4.17)

¯

ηy “N´1

Nx

ÿ

i“1

˜

wyyrisrqi, qis. (4.18) Analogously, we define for 1ďn ďl,

fxrns “ pwxynsrq

τn, qτns ´wxynsrq

τn`1, qτn`1sq (4.19)

` pwyyn`1srq

τn`1, qτn`1s ´wyyn`1srγn, δnsq

` pwyynsrγn, δns ´wyynsrqτ

n, qτns,

52 CHAPTER 4. A CUMULATIVE RECONSTRUCTOR ON FINITE ELEMENT BASIS

with

γn“maxtq

τn, q

τn`1u, δn“mintq

τn, q

τn`1u, and

gxris “

l´1

ÿ

n“1 τnăi

fxrns, 1ďiďNx, (4.20)

˜

ηx “N´1

l

ÿ

n“2

gxnspqτn´q

τnqpτn´τn´1q, (4.21)

¯

ηx “N´1

Ny

ÿ

i“1

˜ wyyrjsrp

j, pjs. (4.22)

From (4.7)–(4.22),we get all needed quantities and can compute the following approxi-mations of ˜ϕas one-sided limits from all four possible directions, i.e., ˜ϕri, j`s, ˜ϕri, j´s,

˜

ϕri`, js, ˜ϕri´, js for all admissible pairs pi, jq, as follows

˜

ϕri, j´1`s “lxri, js ´wxxrjsrp

j, pjs `wyxrj´1srp

j, pjs `gyrjs ´η˜y ´η¯y, (4.23)

˜

ϕri, j´s “lxri, js ´wxxrjsrp

j, pjs `wyxrjsrp

j, pjs `gyrjs ´η˜y´η¯y, (4.24) with 1ďj ďNy, p

j ďiďpj, and,

˜

ϕri´1`, js “lxri, js ´wyyrisrq

i, qis `wxyri´1srq

i, qis `gxris ´η˜x´η¯x, (4.25)

˜

ϕri´, js “lxri, js ´wyyrisrq

i, qis `wxyrisrq

i, qis `gxris ´η˜x´η¯x, (4.26) with 1 ď i ď Nx, q

i ď j ď qi. The numbers p

j, pj and q

i, qi, respectively, stem from the underlying geometry of the WFS, see Section 4.1.

From these approximations we compute ¯ϕat the corners of Ωij as c2i,2j “ ϕri, j˜ ´sµpi, jq `ϕri, j˜ `sµpi, j`1q

2pµpi, jq `µpi, j`1qq ` ϕri˜ ´, jsνpi, jq `ϕri˜ `, jsνpi`1, jq 2pνpi, jq `νpi`1, jq

(4.27) for all admissible values i, j and where

µpi, jq “

$

’&

’% 2, p

j ăiăpj, 1, iP tp

j, pju, 0, else,

νpi, jq “

$

’&

’% 2, q

i ăj ăqi, 1, j P tq

i, qiu, 0, else.

Note that for boundary nodes, some values are not well-defined, but the appropriate weights are 0 anyways.

CHAPTER 4. A CUMULATIVE RECONSTRUCTOR ON FINITE ELEMENT

BASIS 53

The values of ¯ϕat intermediate points can be calculated by

c2i,2j´1 “ϕri, j˜ ´1`s `ϕri, j˜ ´s ´ 1

2pc2i,2j´2`c2i,2jq, (4.28)

c2i´1,2j “ϕri˜ ´1`, js `ϕri˜ ´, js ´ 1

2pc2i´2,2j `c2i,2jq, (4.29)

c2i´1,2j´1 “ 1

4pϕri˜ ´1, j´1`s `ϕri, j˜ ´s `ϕri˜ ´1`, j´1s `ϕri˜ ´, jsq. (4.30) These steps are summarized in Algorithm 4.1.

Algorithm 4.1 FinECuRe (from [117])

Lets“ psx, syq PRN ˆRN. ThenRs“ϕ is defined as in (4.4). For the computation of the appropriate coefficientscp,q the following steps have to be performed:

(i) Calculate the chains lx, ly according to (4.5), (4.6), respectively.

(ii) Calculate wxx, wyx, wyy, wxy, the jump numbers fx, fy, the sums gx, gy, and the constants ηrx,rηy, ηx, ηy according to their definitions in (4.7) - (4.22).

(iii) Calculate the approximations ˜ϕpi, j`q,ϕpi, j˜ ´q,ϕpi˜ `, jq,ϕpi˜ ´, jq from (4.23) -(4.26).

(iv) Compute the corner nodes c2i,2j, given by (4.27).

(v) Compute the intermediate nodes at the edges c2i,2j´1, c2i´1,2j, from (4.28) and (4.29).

(vi) Finally, compute the subaperture mid point nodes c2i´1,2j´1, from (4.30).

(vii) Compute ¯ϕ from (4.4).

We emphasize that the reconstruction algorithm is linear using only 14N operations for the first four steps and the first three steps can be performed independently on each subdomain, if we have to split the domain for geometrical reasons. The last two steps require another 12N operations.

In the control system of a big telescope, the reconstructed wavefront has to be mapped into actuator commands for the deformable mirror. Depending on the actual geometry of the deformable mirror, it might be possible to omit the last two steps, e.g., if the actuators of the deformable mirror are perfectly aligned with the corners of the subapertures.

54 CHAPTER 4. A CUMULATIVE RECONSTRUCTOR ON FINITE ELEMENT BASIS