-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle_triangles.py
48 lines (37 loc) · 1.29 KB
/
circle_triangles.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 28 13:55:56 2018
@author: Administrador
"""
import defGeometrie
import systeme
import affichages
#initial conditions
h=1
v=1
phiref=1
p0=1
rho=1
ht = 1
#circular obstacle
canalcirc = defGeometrie.canalcircle(50,50,25,25,10)
phi, VX, VY, P = systeme.sol(canalcirc, h=h, v=v, phiref=phiref, p0=p0, rho=rho)
nom = 'Obstacle Circulaire'
affichages.affPotentiel(phi, canalcirc, nom=nom)
affichages.affPression(P.round(2), canalcirc, nom=nom)
affichages.affCourant2(VX, VY, canalcirc, ht=ht, nom=nom)
affichages.affVitesse(VX, VY, canalcirc)
affichages.affCourant2(VX, VY, canalcirc, ht=ht,
nom=nom+'(comparaison ht={})'.format(ht1),
methode = 'comparaison')
#triangular obstacle
canaltri = defGeometrie.canaltriang(50,50,25,25,7)
phi, VX, VY, P = systeme.sol(canaltri, h=h, v=v, phiref=phiref, p0=p0, rho=rho)
nom = 'Obstacle Triangulaire'
affichages.affPotentiel(phi, canaltri, nom=nom)
affichages.affPression(P.round(2), canaltri, nom=nom)
affichages.affCourant2(VX, VY, canaltri, ht=ht, nom=nom)
affichages.affVitesse(VX, VY, canaltri)
affichages.affCourant2(VX, VY, canaltri, ht=ht,
nom=nom+'(comparaison ht={})'.format(ht1),
methode = 'comparaison')