• Keine Ergebnisse gefunden

Determination of the Acoustic Power Generation Potentiality of One-Dimensional Acoustic Elements 

N/A
N/A
Protected

Academic year: 2022

Aktie "Determination of the Acoustic Power Generation Potentiality of One-Dimensional Acoustic Elements "

Copied!
60
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Technische Universit¨at M¨unchen Prof. Dr.-Ing. Thomas Sattelmayer Prof. Wolfgang Polifke Ph.D. (CCNY)

– Bachelor Thesis –

Determination of the Acoustic Power Generation Potentiality of One-Dimensional

Acoustic Elements

Author:

Alexander Avdonin Registration Number:

3601787 Supervisor:

Prof. Wolfgang Polifke Dipl.-Ing. Tobias Holzinger

4. Juli 2011

Lehrstuhl f¨ur Thermodynamik, Technische Universit¨at M¨unchen

(2)
(3)

Best¨ atigung der eigenst¨ andigen Arbeit

Ich erkl¨are hiermit, dass ich diese Arbeit ohne fremde Hilfe angefertigt und nur die in dem Literaturverzeichnis angef¨uhrten Quellen und Hilfsmittel benutzt habe.

Garching, den 4.07.2011

Name: Alexander Avdonin

Matrikelnummer 3601787

(4)

Abstract

In this bachelor thesis it is shown, how to compute the minimal and maximal potentiality of the generated acoustic power from the scattering or transfer matrix of a linear one-dimensional acoustic element in presence of mean flow. The function for the computation of the ratio of the scattered acoustic power to the incident acoustic power is derived from the scattering or transfer matrix, the amplitudes of the incident Riemann invariants and their phase difference.

By a small modification the derived function can calculate the acoustic power ratio from the Riemann invariants at the inlet of an element. The functions are implemented in a computation tool for MATLAB, which is used to investigate some acoustic systems. The obtained results are compared to the analytical solutions.

(5)

Contents

Contents VI

List of figures VII

List of tables VIII

Notation IX

1. Introduction 1

2. Characterisation of Acoustic Elements 2

2.1. Thermodynamical Variables in Linear Acoustics . . . 2

2.2. Matrix Representation of Acoustic Systems . . . 4

3. Acoustic Power Dissipation or Generation 6 3.1. Acoustic Power Dissipation in One-Dimensional Ducts in Presence of Uniform Flow . . . 6

3.2. The Scattering Matrix for the Acoustic Power Amplitudes and the Potentiality 9 3.3. The Ratio of the Scattered Acoustic Power to the Incident Acoustic Power . . 10

4. Description of the MATLAB tool 13 4.1. potentiality computation.m . . . 14

4.2. potentiality plot.m . . . 16

4.3. find data index.m . . . 17

4.4. pgen plot f1g2.m . . . 17

4.5. pgen fmincon f1g2.m . . . 19

4.6. pgen plot f1g1.m . . . 20

5. Illustrative Examples 21 5.1. Uniform Tube with Non-Viscous Adiabatic Mean Flow . . . 21

5.2. Uniform Tube with Mean Flow and Thermo-Viscous Loss . . . 22

5.3. Sudden Area Change with Incompressible Non-Viscous Flow . . . 27

5.4. Investigation of a Complex Acoustic System . . . 33

6. Conclusion 41

(6)

A. Appendix 42 A.1. Computation of the Transfer Matrix for the Riemann Invariants . . . 42 A.2. Computation of the Scattering Matrix for the Riemann Invariants . . . 42 A.3. Computation of the Scattering Matrix for the Acoustic Power Amplitudes . . 43 A.4. How to use the MATLAB Computation tool . . . 44 A.5. Computation Parameters of a Complex Acoustic System . . . 47

Bibliography 49

(7)

List of Figures

2.1. The Riemann invariants, the incident and scattered quantities of an acoustic

element. . . 3

2.2. The upstream and downstream quantities of an acoustic element. . . 5

3.1. The incident and scattered acoustic power amplitudes of an acoustic element. . 9

4.1. The structure arrayinput struct. . . 15

4.2. The structure arrayoutput struct . . . 15

4.3. Potentiality plot created by potentiality plot.m. . . 16

4.4. A polar plot created by pgen plot f1g2.m. . . 18

4.5. A Cartesian plot created by pgen plot f1g2.m. . . 18

5.1. The potentialities of the generated acoustic power of a uniform tube with mean flow and thermo-viscous loss, M = 0.05 . . . 25

5.2. The potentialities of the generated acoustic power of a uniform tube with mean flow and thermo-viscous loss, M = 0.1 . . . 25

5.3. ηsi of a tube with mean flow and thermo-viscous loss. . . 26

5.4. The potentialities versus the cross-sectional area ratio. . . 30

5.5. The dominating potentialities versus the Mach number at the inlet with two different cross-sectional area ratios. . . 31

5.6. ηsi of an expanding element. . . 31

5.7. ηsi of a contracting element. . . 32

5.8. The virtual construction of a composed acoustic system. . . 33

5.9. The potentialities of a complex system in comparison to a flame element. . . . 35

5.10. The potentialities of the complex system in comparison to the product of the potentialities of each separate element of this system. . . 36

5.11. The potentialities of the complex system with different lengths of the tube at the middle of the compound. . . 37

5.12. The potentialities of the complex system with different α12. . . 38

5.13. The potentialities of the composed system with differentα45. . . 39

5.14. The ratio of the scattered acoustic power to the incident acoustic power with the default colormap for the complex system. . . 40

5.15. The ratio of the scattered acoustic power to the incident acoustic power with the custom colormap for the complex system. . . 40

(8)

List of Tables

4.1. Overview of the developed MATLAB tool. . . 13 4.2. The input transfer or scattering matrix . . . 14 4.3. Optimization options . . . 20 5.1. Computation parameters of a uniform tube with mean flow and thermo-viscous

loss. . . 24 5.2. Computation parameters of a sudden area change with non-viscous mean flow. 29

(9)

Notation

Latin characters

A cross-sectional area or surface [m2]

M Mach number

I acoustic intensity [W/m2]

P acoustic power [W]

R specific gas constant [J/(kgK)]

S scattering matrix

T transfer matrix

a amplitude of incident acoustic power [W1/2] b amplitude of scattered acoustic power [W1/2]

c speed of sound [m/s]

f frequency of sound wave [Hz]

f, g Riemann invariants

k wave number [m1]

l length [m]

m0 acoustic mass flow density [kg/(m2s)]

p pressure [Pa]

u velocity [m/s]

(10)

Greek characters

α cross-sectional area ratio

γ adiabatic index

0 specific acoustic exergy [W/kg]

η ratio of acoustic power

λ potentiality of the generated acoustic power ξ potentiality of the dissipated acoustic power

ρ density [kg/m3]

ϕ phase difference between the incident Riemann invariants [rad]

φ phase difference between the Riemann invariants at the inlet [rad]

ω angular frequency [rad/s]

Sub- or superscripts, other symbols

q1 quantity at inlet of acoustic element q2 quantity at outlet of acoustic element

qt transpose of quantity

q complex conjugate of quantity

q complex conjugate and transpose of quantity q+ quantity of incident wave

q quantity of scattered wave

< q > time average of quantity

||q|| norm of vector q qtot total value of quantity q0 fluctuating value of quantity

(11)

1. Introduction

This bachelor thesis is based on the work of Y. Aur´egan and R. Starobinski [1]. They presented a method to compute the minimal and maximal ratio of the dissipated or generated acoustic power to the incident acoustic power from the scattering matrix of an acoustic element. The aim of the thesis is to implement and verify this method and additional functionality in a MATLAB tool.

In the next chapter the definitions of used physical quantities are presented to avoid any kind of misunderstanding. The third chapter explains the above-mentioned method. It also shows, how to compute the ratio of the scattered acoustic power to the incident acoustic power from the amplitudes of the incident Riemann invariants and their phase difference. Within a small modification the acoustic power ratio is also expressed by the Riemann invariants at the inlet of an element. The fourth chapter describes the developed MATLAB tool, which contains the derived computation prescriptions. In the fifth chapter the computation tool is applied on the following acoustic elements:

•uniform tube with non-viscous adiabatic flow,

•uniform tube with flow and thermo-viscous loss,

•sudden area change with incompressible non-viscous flow.

The obtained results are compared to the analytical solutions. At the end, a less trivial acoustic system is investigated, which contains several acoustic elements.

The developed tool allows to obtain the potentialities of the generated acoustic power, which represent the limits of the acoustic power generation. Therefore the general behaviour of the system is determined. The manipulation of the entries of the transfer or scattering matrix serves to achieve the required general behaviour. The consideration of the ratio of the scattered acoustic power to the incident acoustic power enables to find the critical ratio the Riemann invariants, for which the system shows undesired behaviour, e.g. becomes unstable.

The obtained knowledge can be used in design of an acoustic system to avoid this critical ratio.

(12)

2. Characterisation of Acoustic Elements

2.1. Thermodynamical Variables in Linear Acoustics

In acoustics flow variables consist of a mean value and a superimposed fluctuation. The total value is denoted by an index tot and the acoustic fluctuation with an apostrophe ’, for example ptot = p+p0. For notation convenience from now on this convention is used for pressure, velocity and density.

In linear acoustics the pressure and velocity fluctuations can be expressed in terms of the Riemann invariants1f and g:

p0

ρc =f +g u0 =f −g

(2.1)

wheref represents the downstream propagation and g the upstream propagation.Besides the Riemann invariants, there is another common notation with”+” and ””, for example

p0 =p++p,

wherep+ is pressure of an incident wave andp the pressure of a scattered wave. Notice that the third notation also exists, where”+”denotes the direction of the mean flow and ”” the opposite direction. In this paper the first notation is used:

+” denotes the quantities of the incident (incoming) waves,

” denotes the quantities of the scattered (outgoing) waves.

The relations between incident and scattered quantities and the Riemann invariants can be derived by considering an one-dimensional acoustic element (see fig. 2.1). At the inlet of the element the relations are

p+1 +p1

ρ1c1 =f1+g1 =⇒ p+1

ρ1c1 =f1 and p1

ρ1c1 =g1 (2.2)

u+1 +u1 =f1−g1 =⇒u+1 =f1 and u1 =−g1. (2.3)

1The derivation of the Riemann invariants can be found e.g. in [3].

(13)

Figure 2.1.: The upper illustration shows the Riemann invariants of an acoustic element. Ac- cording to the mean flow direction,f represents the downstream propagation and g the upstream propagation.The lower illustration shows the incident and scat- tered quantities of an acoustic element. The quantities with ”+” belong to the incident wave and the quantities with ”” to the scattered wave. The inlet of an element is denoted with index 1 and the outlet with index2.

Here the downstream propagating wave corresponds to the incoming wave and the upstream propagating wave to the scattered wave.

At the outlet the considered relations are different:

p+2 +p2 ρ2c2

=f2+g2 =⇒ p+2 ρ2c2

=g2 and p2 ρ2c2

=f2 (2.4)

u+2 +u2 =f2−g2 =⇒u+2 =−g2 and u2 =f2. (2.5) These relations show that fluctuating quantities of the incident and scattered waves are also related:

p+1 ρ1c1

=u+1 (2.6)

p1

ρ1c1 =−u1 (2.7)

p+2

ρ2c2 =−u+2 (2.8)

p2

ρ2c2 =u2. (2.9)

(14)

There is one more basic equation that should be mentioned here. The pressure fluc- tuation is a function of the density fluctuation. According to [3], its first-order isentropic approximation2 is

p0 =c2ρ0. (2.10)

It also holds for the incident or scattered pressure fluctuation.

In section 3.1 an acoustic power is expressed by two variables: an acoustic mass flow density m0 and a specific acoustic exergy 0. They are defined by Y. Aur´egan and R. Starobinski [1] as

m0 =ρu00u (2.11)

0 = p0

ρ +uu0. (2.12)

These quantities also can be split up into incident and scattered parts and then expressed by the Riemann invariants at the inlet or at the outlet, for example

+1 = p+1

ρ1 +u1u+1 =f1(c1+u1) 1 = p1

ρ1 +u1u1 =g1(c1 −u1) +2 = p+2

ρ2 +u2u+2 =g2(c2 −u2) 2 = p2

ρ2

+u2u2 =f2(c2+u2).

(2.13)

2.2. Matrix Representation of Acoustic Systems

The Matrix representation is ideally suited for the analysis of one-dimensional linear acoustic systems. There are different combinations of input and output quantities. In this work three of them are considered:

a) A transfer matrix for the pressure and velocity fluctuations Tpu is defined by

p2

ρc

u

2

=Tpu

p ρc

u

1

. (2.14)

This matrix relates the upstream and downstream pressure and velocity fluctuations (see Figure 2.2).

b) A transfer matrix for the Riemann invariantsTf g is defined by

 f g

2

=Tf g

 f g

1

. (2.15)

2For linear acoustics is the first-order approximation fully justified.

(15)

Figure 2.2.: Illustration of the upstream and downstream quantities of an acoustic element.

According to the mean flow direction, the upstream quantities are on the left side of an acoustic element and the downstream quantities on the right side.

It describes the correlation between the upstream and the downstream Riemann invari- ants (see fig. 2.1).

c) A scattering matrix for the Riemann invariantsSf g connects the incident (outgoing) and the scattered (incoming) Riemann invariants (see fig. 2.1)

 g1 f2

=Sf g

 f1 g2

. (2.16)

(16)

3. Acoustic Power Dissipation or Generation

3.1. Acoustic Power Dissipation in One-Dimensional Ducts in Presence of Uniform Flow

In this section the dissipated acoustic power is derived for a linear one-dimensional acoustic element1 in presence of uniform flow. Furthermore, only plane waves are considered. Waves with higher modes are evanescent, if their frequencies are smaller than the cut-off frequency for the first mode2.

A generalized definition of an acoustic intensity, which preserves the continuity propagation of sound power in any isentropic and irrotational flow is given by C. L. Morfey [2]

I =< p0u0 >+u2

ρc2 < p02 >+u2

c2 < p0u0 >+ρu < u02 >, (3.1) where<> indicates the time average. This equation can also be formulated with the specific acoustic exergy η0 and the mass flow density m0

I =<(ρu00u) p0

ρ +uu0

>=< 0m0 >. (3.2) Sound power, crossing any surface, can be found by integrating the acoustic intensity over this surface

Pi = Z

Ai

IidA. (3.3)

According to that, the dissipated power in any one-dimensional acoustic element can be com- puted with following expression:

Pdiss=P1−P2 = Z

A1

I1dA− Z

A2

I2dA (3.4)

whereI1 and A1 are the acoustic intensity and the cross-sectional area at the inlet and those values with index ”2” are referenced to the outlet. IfPdiss>0the acoustic power is dissipated,

1More general derivation is given in [1].

2More information about the meaning and the computation of cut-off frequency for annular geometry can be taken from [3] and for two-dimensional problems from [4].

(17)

Pdiss<0 indicates acoustic power generation. Splitting of the specific acoustic exergy0 and the mass flow densitym0 into incident and scattered parts leads to

P1 = Z

A1

<(+1 +1)(m+1 +m1)> dA

P2 = Z

A2

<(+2 +2)(m+2 +m2)> dA.

(3.5)

The acoustic mass velocities can be expressed through the specific acoustic exergy by means of the correlation betweenp±± and u± (eq. 2.6 to 2.10), derived in section 2.1:

m+11u+1+1u11u+1 +p+1u1 c21 = ρ1

c1

p+1 ρ1

+u+1u

= ρ1 c1

+1 (3.6)

m11u11u11u1 +p1u1 c21 = ρ1

c1

−p1

ρ1 −u1u

=−ρ1

c11 (3.7) m+22u+2+2u22u+2 +p+2u2

c22 = ρ1 c1

−p+2

ρ2 −u+2u

=−ρ2

c2+2 (3.8) m22u22u22u2 +p2u2

c22 = ρ1

c1 p2

ρ2 +u2u

= ρ2

c22. (3.9) With this knowledge P1 and P2 can be computed by

P1 = Z

A1

<(+1 +1)(+111

c1 > dA= Z

A1

< ρ1 c1

+12

12

> dA=

= Z

A1

ρ1

c1 < +12

> dA

| {z }

P1+

+ Z

A1

−ρ1

c1 < 12

> dA

| {z }

P1

(3.10)

and, respectively,

P2 = Z

A2

−ρ2

c2 < +22

> dA

| {z }

P2+

+ Z

A2

ρ2

c2 < 22

> dA

| {z }

P2

. (3.11)

These expressions show that the sound power can be split up into the incident and scattered parts.

To get rid of the time average, Y. Aur´egan and R. Starobinski [1] used the following formula to calculate the incident and scattered sound power for plane waves:

P±= 1 2Re

 Z

Ai

m±(±)dA

, (3.12)

(18)

where indicates complex conjugate and Re() is the real part. For one-dimensional systems integration over cross section of any duct can be replaced by multiplication with its cross- sectional area Ai:

P1+= 1 2Re

A1ρ1

c1 +1(+1)

| {z }

real value

dA

= A1ρ1

2c1 +1(+1) (3.13) P1= 1

2Re

−A1ρ1

c11(1)dA

=−A1ρ1

2c1 1(1) (3.14) P2+= 1

2Re

−A2ρ2

c2+2(+2)dA

=−A2ρ2

2c2 +2(+2) (3.15) P2= 1

2Re

A2ρ2

c22(2)dS

= A2ρ2

2c2 2(2). (3.16) Using a new flow parameter3 Yi = ρ2ciAi

i and inserting eq. (3.13) to (3.16) into the equation of the dissipated acoustic power leads to

Pdiss = (Y1+1(+1) +Y2+2(+2))−(Y11(1)+Y22(2)). (3.17) Introducing the incident and scattered acoustic power amplitudesa and b, where

a=

 a1 a2

=

Y11/2+1 Y21/2+2

 (3.18)

b=

 b1 b2

=

 Y11/21 Y21/22

, (3.19)

leads to the expression for the dissipated energy

Pdiss =aa−bb. (3.20)

The scattered acoustic power amplitude b is computed from the incident acoustic power amplitudea using a scattering matrix S:

b =Sa and b=aS respectively. (3.21) Therefore the dissipated acoustic power is calculated by:

Pdiss=aa−aSSa. (3.22)

The derivation of the scattering matrix for the acoustic power amplitudes a and b from the scattering matrix for the Riemann invariants is given in appendix A.3.

3Notice that Y. Aur´egan and R. Starobinski [1] have different value forYi, because they use instead of the specific acoustic exergy its effective value.

(19)

Figure 3.1.: Illustration of the incident and scattered acoustic power amplitudesa andb of an acoustic element.

The incident and scattered amplitudes a and b are illustrated in fig 3.1. It should be noticed that the incident acoustic power amplitude also can be expressed directly by the Riemann invariants using the transformation matrixaMf g from appendix A.3:

a=aMf g

 f1

g2

=

(c1+u1)Y11/2 0 0 (c2−u2)Y21/2

 f1

g2

. (3.23)

3.2. The Scattering Matrix for the Acoustic Power Amplitudes and the Potentiality

Starting from eq. (3.22), the ratio of the dissipated sound power to the incident sound power is considered, wherePinc=aa =||a||2 and an= ||a||a :

Pdiss

Pinc = 1−aSSa

||a||2 = 1−anSSan. (3.24) Therefore Pdiss = Pinc −Pscat, the ratio of the scattered acoustic power to the incident acoustic power can be computed by

ηsi = Pscat Pinc

=anSSan. (3.25)

The matrix SS is a hermitian matrix because of the property (SS) =SS. Therefore it can be diagonalized

T(SS)T =

 λ1 0

0 λ2

, (3.26)

where λi are the real eigenvalues and the column vectors of the unitary matrix T are the eigenvectors of SS. It should be considered that SS is a positive semidefinite matrix4, therefore allλi are non-negative.

4 a SS

a=bb=||b||2>0 for anya.

(20)

Introducing the vector d =Tan with dd= 1, eq. (3.24) is written as

ηsi =anT

 λ1 0

0 λ2

Tan =d

 λ1 0

0 λ2

d=

2

X

i=1

λi||di||2, (3.27)

The values λmax and λmin represent the maximum and the minimum of the potentially generated acoustic power5. The eigenvaluesλi allow to describe the behaviour of an acoustic system. There are three special cases:

a) The acoustic power generation or dissipation is absent if both eigenvalues are equal 1, i.e. S is an unitary matrix (SS=Iidentity).

b) The system is passive if the acoustic power of the incoming waves is always greater than the acoustic power of the outgoing wavesηsi <1, i.e. both eigenvalues are smaller than 1.

c) The system is active respectively (ηsi >1), if both eigenvalues are greater than 1.

Concluding,λmaxandλminrepresent only limits of the generated or dissipated acoustic power.

The exact value ofηsi can be calculated by eq. (3.27), where eachλi is more or less weighted by the vector d. The vector d depends on the ratio between both of the incident acoustic amplitudes a1 =Y11/2+1 and a2 =Y21/2+2. That means the influencing parameters are the flow and geometry parameters (u,c,ρ,A), the amplitudes of the incident Riemann invariants f1, g2 and their phase difference.

3.3. The Ratio of the Scattered Acoustic Power to the Incident Acoustic Power

This section shows, how to compute the ratio of the scattered acoustic power to the incident acoustic power ηsi = PPscat

inc from the scattering matrix for the acoustic power amplitudes and the incident Riemann invariants f1 and g2. Starting with eq. (3.24) and replacing SS with H leads to

ηsi = aHa

||a||2. (3.28)

5Y. Aur´egan and R. Starobinski [1] consider the potentialities of the dissipated acoustic power, which are obtained from the potentialities of the generated acoustic power: ξmax=λmin,ξmin=λmax.

(21)

The incident amplitudeacan be expressed by the Riemann invariants according to eq. (3.23).

It leads to

ηsi =

 f1 g2

t

aMf gH aMf g

 f1 g2

(c1+u1)2Y1||f1||2+ (c2−u2)2Y2||g2||2 =

=

c1Y11/2f1

(1 +M1) (1−M2)Y

1/2 2 c2

Y11/2c1

g2 f1

t

Hc1Y11/2f1

(1 +M1) (1−M2)Y

1/2 2 c2

Y11/2c1

g2

f1

 c21Y1||f1||2

(1 +M1)2 + (1−M2)2cc222Y2 1Y1

||g2||2

||f1||2

=

=

(1 +M1) (1−M2)Y

1/2 2 c2

Y11/2c1

g2 f1

t

H

(1 +M1) (1−M2)Y

1/2 2 c2

Y11/2c1

g2

f1

 (1 +M1)2+ (1−M2)2

Y21/2c2

Y11/2c1

2

||g

2||

||f1||

2 . (3.29) f1, g2 and their complex conjugates can be written in polar form:

f1 =||f1||ei(ωt+ϕf1) g2 =||g2||ei(ωt+ϕg2)

)

=⇒ g2 f1

= ||g2||

||f1||eg2−iϕf1 (3.30) f1 =||f1||e−i(ωt+ϕf1)

g2 =||g2||e−i(ωt+ϕg2) )

=⇒ g2

f1 = ||g2||

||f1||ef1−iϕg2. (3.31) Introducing a new flow parameter β = Y

1/2 2 c2

Y11/2c1

= qαρ

2c2

ρ1c1 and using the derived equations for the Riemann invariants leads to ηsi, expressed by an amplitude ratio between the incident waves ||g||f2||

1|| and by their phase difference ϕ=ϕg2 −ϕf1:

ηsi =

(1 +M1) (1−M2||g||f2||

1||e−iϕ

t

H

(1 +M1) (1−M2||g||f2||

1||e

 (1 +M1)2+ (1−M2)2β2||g

2||

||f1||

2 . (3.32)

Notice that ηsi is not influenced by the frequency of propagating waves directly. If the scattering matrix S of an acoustic element is not function of frequency, the generated power in this element would be the same for all frequencies. An example of this kind of element is given in section 5.3.

(22)

There are also possibilities to expressηsi by other combinations of the Riemann invariants, e.g. by the Riemann invariants at the inlet f1 and g1. At first ηsi has to be written as a function of f1 and g2 using matrix notation:

ηsi =

 f1 g2

t

aMf g H aMf g

 f1 g2

 f1 g2

t

aMf g a Mf g

 f1 g2

, where (3.33)

aMf g =

(c1+u1)Y11/2 0 0 (c2−u2)Y21/2

=Y11/2c1

1 +M1 0 0 (1−M2

. (3.34)

aMf g transforms the incident acoustic power amplitude vector a to the incident Riemann invariants f1 and g2. Next, g2 is expressed by f1 and g1 using the scattering matrix for the Riemann invariants Sf g:

g1 =Sf g,11f1+Sf g,12g2 =⇒ g2 = 1

Sf g,12g1−Sf g,11

Sf g,12f1. (3.35)

That leads to the correlation

 f1

g2

=

1 0

−Sf g,11 Sf g,12

1 Sf g,12

| {z }

incMupstr

 f1

g1

. (3.36)

Finallyηsican be expressed by the amplitudes off1,g1and their phase differenceφ =φg1−φf1:

ηsi =

 f1 g1

t

incMupstr a Mf g H aMf g incMupstr

 f1 g1

 f1 g1

t

incMupstr a Mf g a Mf g incMupstr

 f1 g1

=

=

 1

||g1||

||f1||e−iφ

t

incMupstr a Mf g H aMf g incMupstr

 1

||g1||

||f1||e

 1

||g1||

||f1||e−iφ

t

incMupstr a Mtf g aMf g incMupstr

 1

||g1||

||f1||e

. (3.37)

Notice that this function exists only if Sf g,126= 0, i.e. g1 and g2 should be related. It always holds for subsonic problems.

(23)

4. Description of the MATLAB tool

In this section there is a description of the computation tool, which consists of the following MATLAB functions:

Name Description

potentiality computation.m computes the potentialities λmin and λmax and the scattering matrix for the acoustic power amplitudes.

potentiality plot.m plots the potentialitiesλminandλmaxversus the sound wave frequency.

potentiality plot data cursor.m adapts the data cursor of the function po- tentiality plot.m.

find data index.m searches for the index of an structure array element with the specified frequency.

pgen plot f1g2.m computes and plotsηsi as a function of the incoming Riemann invariants f1 and g2. pgen plot f1g2 polar data cursor.m

pgen plot f1g2 cartesian data cursor.m

adapt the data cursor of the function pgen plot f1g2.m.

pgen plot f1g1.m computes and plotsηsi as a function of the Riemann invariants at the inletf1 and g1. pgen plot f1g1 polar data cursor.m

pgen plot f1g1 cartesian data cursor.m

adapt the data cursor of the function pgen plot f1g1.m.

pdiss fmincon f1g2.m searches for the maximum or the minimum of ηsi in a specified search domain.

Table 4.1.: Overview of the developed MATLAB tool.

An example of using all these functions is shown in appendix A.4. Most of these functions have a variable number of arguments, which are set in italics. The required variables are underlined. If remaining variables are not determined by the user, they are set to their default values, which are chosen adequate for the computation.

(24)

4.1. potentiality computation.m

[output struct]=potentiality computation(input struct,u1,c1,u2,c2,alpha,rho1,rho2) This function computes the scattering matrix S for the acoustic power amplitudes, the maximum and the minimum of the potentiality λmax and λmin. The computation algorithm is derived in section 3.2. The function requires a structure or a structure array input struct.

Each structure array element should have two fields with fixed names. The first field has the name freq, where the frequency of acoustic wave is stored. The second field keeps the input transfer or scattering matrix and has one of the following names:

Name Description

Transfer pu The transfer matrix for the pressure and velocity fluctuations.

Transfer fg The transfer matrix for the Riemann invariants.

Transfer fg The scattering matrix for the Riemann invariants.

Table 4.2.: The input transfer or scattering matrix

It is important that the field name is given correctly, because for each of these matrices there is a different computation path. The scattering matrix S is computed in steps

Tpu−→Tf g −→Sf g −→S, (4.1)

which are described in appendixes A.1 to A.3. Each transformation is implemented as an inline function within the main function. If the input matrix isTpu, the function calculatesTf g, than Sf g and finallyS. If, for example,Sf g is given, other matrices,TpuandTf g, are not needed, so these computation steps can be skipped. Each element stores the matrixS (under the name

’Scatter pow’) and all of the matrices, computed on the way to it. Besides that, the function adds fields with the minimum and the maximum of the potentially generated acoustic power λmin and λmax to each structure array element. These fields have names lambda min and lambda max. The function returns this new structure array. The illustrations of input struct and output struct can be seen on Figures 4.1 and 4.2.

Other input parameters are velocity u, speed of sound c, cross-sectional area ratio alpha and density rho. Indices ”1” and ”2” denote the inlet and the outlet. If velocities are not specified, they are set to zero and other quantities have the same value at the inlet and at the outlet, because only their ratios are relevant, rather than the values themselves. There is one exception. If u1 is specified, the sound of speed c1 has to be put in for the computation of the Mach number M1. If c1 is not determined, an error message appears. In other cases all not specified arguments are set automatically to default values.

(25)

Figure 4.1.: An example of a structure arrayinput struct.

Figure 4.2.: An example of a structure array output struct.

(26)

4.2. potentiality plot.m

[freq,lambda min,lambda max]=potentiality plot(input struct,name)

This function plots the maximum and the minimum of potentially generated power λmax

and λmin. The function extracts the values of the fields freq, lambda max and lambda min from each element ofinput struct, which is returned bypotentiality computation.m. Than it creates three subplots: λmax versus the corresponding frequencyf (blue dash-dot line),λmin versus frequency (green dashed line) and both λi together versus f. The first two subplots are made for the case, if λmax and λmin have different orders of magnitude, therefore one of them can not be displayed well on the common subplot. Also on each subplot there is an additional red line, which indicates Pscat = Pinc the neutral state of an acoustic element. It serves as a boundary between the dissipated (above the red line) and generated (below the red line) acoustic power. The function use the m-file potentiality plot data cursor.m, which adapts a data cursor to display ηsi and the corresponding frequency f. An example of the third subplot is presented in fig. 4.3.

Figure 4.3.: An example of a potentiality plot created by potentiality plot.m. λmax (blue dash-dot line) and λmin (green dashed line) are plotted versus the corresponding frequency. The red line is a boundary between dissipated (above the line) and generated (below the line) acoustic power over the incident power.

.

(27)

The plots are saved automatically in the current folder as MATLAB figure, PDF and EPS.

The name of the file and the title of the plots is specified by the input string name. The default name is ”The minimum and maximum of the potentially generated acoustic power”.

For further use, the function returns three column vectors freq, lambda min and lambda max with the plot data.

4.3. find data index.m

[output]=find data index(input struct,freq min,freq max)

This function is an auxiliary tool, which searches in the structure array input struct for el- ements with frequency in the interval [freq min, freq max]. If only one boundary freq min is given, than the function searches for elements with the frequency within the interval [freq min−0.001Hz, freq min+0.001Hz] frequency with tolerance ±0.001 Hz. output is a matrix with two rows: frequency and index of the corresponding element. This tool allows to find quickly an element, if its frequency is known. It is important that the input structure array has a form, defined in section 4.1, because the tool compares values of the fields with the name freq.

4.4. pgen plot f1g2.m

[Pgen min,Pgen max,PHI deg,R,Pgen]=pgen plot f1g2(Scatter pow,u1,c1,u2,c2,alpha,...

rho1,rho2,cmap switcher,r min,r max,r step,angle number,name)

This function calculates and plots the ratio of the scattered acoustic power to the incident acoustic powerηsias a function of the amplitude ratio between the incident Riemann invariants

||g2||

||f1|| and their phase difference ϕ(see eq. (3.32)). The tool creates two figures (see fig. 4.4 and 4.5). The first one shows a polar plot with a radiusr= ||g||f2||

1|| and an angleϕ. The value of ηsi on each point is represented by a color. The same variables are plotted on the second created figure, but in Cartesian coordinate system.

The function requires a scattering matrix S for the acoustic power amlitudes as input, which is computed by the functionpotentiality computation.m. The next seven parameters are the same as the input parameters of the function potentiality plot.m. The remaining arguments are plot parameters: r min, r max and r step specify a range and a resolution of the amplitude ratio ||g||f2||

1||. angle number determines an angular resolution. Both of the figures have 64 colors to displayηsi1. The input argumentcmap switcher chooses the distribution of colors according to the ratio ηsi. 0 means the default distribution (see figure 4.5), where the

1If necessary, the color number can be set manually by changing the value of the variablecolor step number in the function file.

(28)

Figure 4.4.: An example of a polar plot created by pgen plot f1g2.m. The color represents the ratio of the scattered acoustic power to the incident acoustic power. The amplitude ratio between the incident Riemann invariants ||g||f2||

1|| and their phase differenceϕare equal to the polar coordinates. The colormap is created with the custom color distribution function.

Figure 4.5.: An example of a Cartesian plot created by pgen plot f1g2.m. The color rep- resents the ratio of the scattered acoustic power to the incident acoustic power.

The colormap is created with the default color distribution function.

.

(29)

smallest values are blue colored and the highest values are red colored. 1stays for the custom distibution (see figure 4.4), where ηsi = 2 is red, ηsi = 1 is green and ηsi = 0 is blue. All the values bigger than 2 remain red. It means blue colored areas show the domains, where an acoustic system is passive. The behaviour of the system in red colored areas is active.

Nevertheless this distribution is only useful if the acoustic power generation spectrum is large enough. The figures are saved with a default name as MATLAB figure, PDF and EPS, if the stringname is not specified. This name also serves as the title of the figures.

To supply both of the figures with an appropriate data cursor, the function needs the functions pgen plot f1g2 polar data cursor.m and pgen plot f1g2 cartesian data cursor.m.

Besides the figures, this function can return matrices Pgen min and Pgen max, which contain the coordinates of points with minimal and maximal values of computed ηsi. Notice that these points don’t represent the maximal or minimal values ofηsi, which can be achieved on a determined area. They are simply the maximal or minimal values achieved on the com- puted grid. Therefore this feature would never return the real maximum or minimum, until any of computed grid points randomly hits an extremum. Other output arguments are matrices PHI deg, R and Pgen with the plot data.

4.5. pgen fmincon f1g2.m

[output]=pgen fmincon f1g2(Scatter pow,phi deg,r,switcher,r min,r max,u1, c1, u2, c2, alpha, rho1, rho2)

This function searches for the minimum or maximum ofηsi in the amplitude ratio interval [r min, r max]. The core of this tool is the inline function, which calculates ηsi from the scattering matrix S for the acoustic power amplitudes, ||g||f2||

1|| and ϕ (see eq. (3.32)). For the computation it also requires additional parametersu1, c1, u2, c2, alpha, rho1 and rho2, which are set to their default values or can be determined by user. For the searching for the minimum or the maximum the Optimization Toolbox is needed, because of the using of the function fmincon. Depending of a value ofswitcher (”0” for minimum and ”1” for maximum)fmincon searches for the maximum/minimum of ηsi. To find the extremum correctly, the initial point with coordinates r (stands for ||g||f2||

1||) and phi (stands for ϕin degree) is required. The solver is very sensitive to the choice of the initial point. To be sure that the solver found the correct value, the initial point should be put near the expected maximum or minimum location. To do that, the user should investigate a plot of the dissipated or generated power, created by pgen plot f1g2.m. Changing of any optimization options has to be done manually in .m- file. The default values are generated with MATLAB function optimset(@fmincon). The following options are set manually:

(30)

Property Value TolX ’1e-006’

LargeScale ’off’

Algorithm ’activate-set’

Table 4.3.: Optimization options of fmincon.

Notice that fmincon is able to find only one value for an extremum. If there are more than one, it usually finds the nearest one to the initial point. The function returns a column vector output withϕ (in degree), ||g||f2||

1|| and ηsi as columns.

It is important to check the reliability of obtained results:

a) The maximum or minimum should be within the range between λmin and λmax.

b) The location of the maximum or minimum should be close to the location, expected after investigating an appropriate scattered power plot.

4.6. pgen plot f1g1.m

[Pgen min,Pgen max,PHI deg,R,Pgen]=pgen plot f1g1(Scatter pow,Scatter fg,...

u1,c1,u2,c2,alpha,rho1,rho2,cmap switcher,r min,r max,r step,angle number,name)

This function calculates and plots the scattered acoustic power over the incident acoustic power ηsi as a function of the amplitude ratio between the Riemann invariants at the inlet

||g1||

||f1|| and their phase difference φ (see eq. (3.37)). The function creates polar and Cartesian plots and has the same input arguments as pgen plot f1g1.m and one additional argument Scatter fg, because this tool needs S and Sf g as input matrices to computeηsi as a function of f1 and g1.

(31)

5. Illustrative Examples

5.1. Uniform Tube with Non-Viscous Adiabatic Mean Flow

The transfer matrix of non-viscous adiabatic flow is given by U. Neunert [5]:

 f2 g2

=

exp (−ik+l) 0 0 exp (ikl)

 f1 g1

, (5.1)

where the wave number for non-viscous flow is given by:

k±= 2πf

c±u. (5.2)

At first, the analytical solution for the value of the dissipated acoustic power is derived. It is expected that such a system doesn’t dissipate or generate acoustic power at all. To compute Pdiss eq. (3.22) is used:

Pdiss = ¯ata−¯btb=||a||2− ||b||2,

where a and b are functions of the Riemann invariants according to eq. A.6 and A.7. That leads to

Pdiss= (c1 +u1)2Y11f1+ (c2−u2)2Y22g2−(c1−u1)2Y11g1−(c2+u2)2Y22f2, (5.3) where

1f1 =||f1||2

¯

g1g1 =||g1||22f2 =f1exp (−ik+l)f1exp −ik+l

= ¯f1f1exp ik+l

exp −ik+l

=||f1||2

¯

g2g2 =g1exp (ikl)g1exp ikl

=||g1||2.

There is no area change, the flow is adiabatic and non-viscous: A1 =A2 =A, c1 =c2 =c, u1 =u2 =u, ρ12 =ρ and, consequently, Y1 =Y2 =Y.

That leads to

Pdiss =Y (c+u)2||f1||2+ (c−u)2||g1||2−(c−u)2||g1||2−(c+u)2||f1||2

= 0.

Referenzen

ÄHNLICHE DOKUMENTE

• Now we need to know Newton’s gravitational potential, φ, and the scalar curvature perturbation, ψ!. • Einstein’s equations - let’s look up any

• Now we need to know Newton’s gravitational potential, φ, and the scalar curvature perturbation, ψ!. • Einstein’s equations - let’s look up any

• Any restricted chase implementation is sound and complete for CT std ∀∀ , not just for decidable fragments thereof. • Datalog-first is often implemented already (as a

We remark that for complete simple games, a class in between weighted and simple games, a power index (called Shift index) based on counting so-called shift- minimal winning

The answer, according to Hawkins, has its roots in persuasion, communication and argumentation... Mainstream realist and liberal explanations of international institutions

Stable gas condensate (oil), motor gasoline, diesel fuel, TS-1 engine jet fuel, liquefi ed gas, WFLH, PHF, GCLD Methanol production plantООО SibmetakhimTomsk1983750 thousand tons

(These are not costs without merit: because the embedded applications run in their own processes, even if they crash, the embedder can continue running.) While these

First, that Byzantium was in great danger because of the Osmanlis Turks, and second, that Manuel II Palaiologos kept his personal dignity in spite of this danger and the