Unstructured Euler Solver (Cybo)
Unstructured Euler Solver (Cybo)
Unstructured Euler Solver (Cybo)
u
v
E
, F
x
=
u
u
2
+ p
uv
u(E + p)
, F
y
=
v
uv
v
2
+ p
v(E + p)
, (2)
E =
p
( 1)
+
1
2
u
i
u
i
(3)
We solve then using a simple integration and in weak form as:
Udt +
(F
x
dy F
y
dx) = 0 (4)
We can discretely solve this by summing the edge contributions to each node
k as:
k
A
U
n
t
+
1
2
(F
k+1
x
+F
k
x
)(y
k+1
y
k
) (F
k+1
y
+F
k
y
)(x
k+1
x
k
)
= 0
(5)
Were k are the nodes which surround a particular point n, as in gure 2 and S
is the area. We the above approximations, we can now readily solve the discrete
approximation to the Euler equation. The source code (written in fortran 90) can
be provided by means a simple svn repository checkout by issuing: svn checkout
http://cybo.googlecode.com/svn/trunk/ euler2d.
3
3 Results
3.1 Circular Arc
Transonic ow (M
= 0.9) over a 5% thick (at 50% chord) circular arc bump was
computed. Results showing contours of Mach number and pressure are below. In
both plots, a supersonic region is visible over the bump (although the shock is
visibly diuse due to the use of rst order scalar articial diusion). The surface
pressure distribution shows that the shock is captured in approximately 5 points.
Since the method is low order (especially the shock capturing scheme), a fairly ne
triangulation was used.
(a) (b)
0.5 0 0.5 1 1.5
0.5
0
0.5
1
Xaxis
C
p
(c) (d)
Figure 4: 5% Cicular arc foil. M
= 0.9
4
3.2 NACA 0012
Transonic ow (M
was also
computed. Contours of Mach number and pressure show a supersonic region on
the upper surface of the airfoil. Again, due to the lower order of the method a
relatively ne mesh was used to allow for a reasonable shock.
(a) (b)
0.5 0 0.5 1 1.5
1
0.5
0
0.5
1
1.5
Xaxis
C
p
(c) (d)
Figure 5: NACA 0012. M
= 0.75, = 10
.
5