Sei sulla pagina 1di 57

 ρ ρu ρE

∂ρ + (ρu)

∂t

∂x

= 0

V j

∂ρ

∂t

dv + V j

(ρu)

∂x

dv = 0

ρ j ρ j

t

V j + ρ jd u j+1 A j+1 ρ js u j A j = 0

ρ jd ρ js u

ρ
j −ρ j
u j > 0, u j+1 > 0 ⇒
u j < 0, u j+1 > 0 ⇒
u j < 0, u j+1 < 0 ⇒
V j + ρ
− ρ
= 0
j u j+1 A j+1
j−1 u j A j
ρ
∆t
j −ρ j
V j + ρ
ρ
j u j A j = 0
j u j+1 A j+1 −
ρ
∆t
j −ρ j
V j + ρ
− ρ
j u j A j = 0
j+1 u j+1 A j+1
ρ
∆t
j −ρ j
u
> 0, u j+1 < 0 ⇒
V j + ρ
= 0
j
j+1 u j+1 A j+1 − ρ
∆t
j−1 u j A j
ρ j − ρ j
∆t
V j + −u j A j
0
+ u j+1 A j+1
ρ
ρ
j−1
j +
j+1 = 0
0
−u j A j
u j+1 A j+1 ρ

−u j A j
∆t
∆t
0
+ u j+1 A j+1
ρ
+ 1 ρ
ρ
j−1
j +
j+1 = ρ j
0
V
−u j A j
V
V
j
j
u j+1 A j+1 ∆t
j
uA 1
0
dt
V dt 0 +1
0
0
···
0
0
0
−uA
uA 1
0
V 0
−uA 1
uA 2
0
 
dt
dt
V dt 1 +1
0
···
0
0
0
0
−uA
uA 2
V
V 1
1
1
−uA 2
uA 3
dt
0
dt
0
V dt 2 +1
···
0
0
0
−uA
uA 3
0
V 2
2
V 2
−uA 3
uA 4
dt
0
0
V dt 3 +1 ···
0
0
0
0
−uA
V 3
3
···
···
···
···
···
···
···
···
uA n−2
0
dt
dt
0
0
0
0
···
0
            
−uA
uA n−2
V
n−3 V n−3 +1
n−3
 
dt
uA n−1
0
−uA n−2
dt
0
0
0
0
···
−uA
0
uA n−1
V n−2
n−2 V n−2 +1
  
uA
n
−uA n−1
dt
0
0
0
0
···
0
−uA
0
V n−1
n−1
ρ
uA 0 ρ in
0
dt
ρ
0
0
V
0
ρ
0
1
ρ
 
 
1
 
 
   
ρ
0
ρ
2
2
 
  
 
0
ρ
ρ
3
3
.
=
 
 
+
···
···
···
      
0
ρ
ρ
n−3
n−3
           
     
0
ρ
     
n−2
ρ
    
 
             
n−2
                
0
ρ
dt
n−1
−uA n ρ out
ρ
V
n−1
n−1

dt

V

n2

dt

V

n1

+1

 

    

            

.

ρ

01 = ρ

1 = ρ in

ρ

(n1)+1 = ρ

n = ρ out

·

  

        

1, 0

0, 1

0

0

0

0

0

2, 0

1, 1

0, 2

0

0

0

2, 1

1, 2

0, 3

0

0

0

2, 2

1, 3

0

·

·

·

·

·

·

0

0

1, n 3

0, n 2

0

2, n 3

1, n 2

0, n 1

0

0

0

0

0

2, n 2

1, n 1

   

 

    

·

 

 

     

S

0

S

1

S

2

S

3

·

·

·

S

n3

S

n2

S

n1

 

 

 

   

=

S 0

S

1

S

2

S

3

·

·

·

S n3

S n2

S n1

         

+

Q

0

Q

1

Q

2

Q

3

·

·

·

Q

n3

Q

n2

Q

n1

 

 

 

   

 

 

     

    

u 1 A 1

u

0 A 0

u 1 A 1

0

0

u

1

A 1

u

2 A 2

u

1 A 1

0

u 2 A 2

0

0

0

u

2

A 2

u

3 A 3

u

2 A 2

0

0

u 3 A 3

0

0

0

u

3 A 3

0

u

4 A 4

u 3 A 3

0

0

0

0

0

0

···

···

0

uA n2

uA

n3

uA n2

0

0

0

0

0

0

0

0

uA

n2

0

uA n1

uA

n2

0

uA

n1

uA n1

0

uA

uA

n1

n

        

      

∗∗
− − ∗
∗ −

(ρu)

+ (ρu 2 )

∂x

∂P

∂t

∂x

+

= 0

V j

∂ρu

∂t

dv + V j

(ρu 2 )

∂x

dv + V j

∂P

∂x

dv = 0

(ρu) j (ρu) j

t

V j + (ρu) jd u j+1 A j+1 (ρu) js u j A j +

1

P j P j1 + P j+1

x j x j1

P j

x j+1 x j

2

V j = 0

(ρu) jd (ρu) js ρu

(ρu) j − (ρu) j
V j + −u j A j
0
+ u j+1 A j+1
(ρu)
(ρu)
(ρu)
j−1
j +
j+1 +
∆t
0
−u j A j
u j+1
A j+1
1
P j − P j−1
+ P j+1 − P j
+
V j = 0
2
x j − x j−1
x j+1 − x j
−u j A j
∆t
∆t
0
+ u j+1 A j+1
(ρu)
+ 1 (ρu)
(ρu)
j−1
j +
j+1 =
0
V
−u j A j
V
V
j
j
u j+1 A j+1 ∆t
j
1
P j−1
− P j + P j − P j+1
= (ρu) j +
∆t
2
x j − x j−1
x j+1 − x j
(ρu) 0−1
= (ρu)
−1 = u 0 ρ in
P 0−1 = P in
(ρu)
n = u n ρ out
∧ P n = P out
(n−1)+1 = (ρu)

uA

uA 0

1

uA 1

0

dt

V 0 +1

dt

V 1

0

0

···

0

0

0

uA 1

0

dt

V

0

uA 2

uA

1

dt

V 1 +1

uA 2

0

dt

V 2

0

···

0

0

0

0

uA 2

0

dt

V

1

uA 3

uA

2

dt

V 2 +1

uA 3

0

dt

V 3

···

0

0

0

0

···

0

···

uA 3

0

dt

V

2

···

uA 4

uA

3

dt

V

3

+1 ···

···

···

0

···

0

0

···

···

0

0

0

0

0

0

0

0

0

0

0

0

···

uA n2

uA

n3

dt

V n3 +1

uA n2

0

dt

V n2

0

···

···

uA

0

n2

dt

V n3

uA n1

uA

n2

dt

V n2 +1

uA n1

0

dt

V n1

0

uA

0

n1 V n

uA

uA

n1

n

d

V

n

.

(ρu)

0

(ρu)

1

(ρu)

2

(ρu)

3

···

(ρu)

n3

(ρu)

n2

(ρu)

n1

=

(ρu)

0

(ρu)

1

(ρu)

1

(ρu)

2

(ρu)

3

···

(ρu)

n3

(ρu)

n2

(ρu)

n1

+

1

2

P in P 0 ) + P 0 P 1

2(x 0 x¯ 0

x 1 x 0

+ u

2

0

A 0 ρ in

V

0

0

1

2

1

2

P 0 P 1 +

x 1 x 0

P 0 P 1 +

x 1 x 0

P 1 P 2

x 2 x 1

P 1 P 2

x 2 x 1

dt

dt

1

2

1

2

P 1 P 2 +

x 2 x 1

P 2 P 3 +

x 3 x 2

P 2 P 3

x 3 x 2

P 3 P 4

x 4 x 3

dt

dt

dt

···

1

2

P n4 P n3

x n3 x n4

+

P n3 P n2

x n2 x n3

dt

1

2

P n3 P n2

x n2 x n3

+

P n2 P n1

x n1 x n2

dt

1 P n2 P n1

2

x n1 x n2

+

P n1 P out

2(¯x n x n1

)

0

u

2

n A n ρ out

V

n1

dt

·

1, 0

0, 1

0

0

0

0

0

2, 0

1, 1

0, 2

0

0

0

2, 1

1, 2

0, 3

0

0

0

2, 2

1, 3

0

·

·

·

·

·

·

0

0

1, n 3

0, n 2

0

2, n 3

1, n 2

0, n 1

0

0

0

0

0

2, n 2

1, n 1

·

S

0

S

1

S

2

S

3

·

·

·

S

n3

S

n2

S

n1

=

S 0

S

1

S

2

S

3

·

·

·

S n3

S n2

S n1

+

Q

0

Q

1

Q

2

Q

3

·

·

·

Q

n3

Q

n2

Q

n1

u 1 A 1

u

0 A 0

u 1 A 1

0

0

u

1

A 1

u 2 A 2

u

1 A 1

0

u 2 A 2

0

0

0

u

2

A 2

u 3 A 3

u

2 A 2

0

0

u 3 A 3

0

0

0

u

3 A 3

0

u 4 A 4

u 3 A 3

0

0

0

0

0

0

···

···

0

uA n2

uA

n3

uA n2

0

0

0

0

0

0

0

0

uA

n2

0

uA n1

uA

n2

0

uA

n1

uA n1

0

uA

uA

n1

n

∗∗
∗ − −
− −
− −

 − ∗ − − − − − − − − ∗ ∗ −