Skip to content
Extraits de code Groupes Projets
Valider 7e4e1441 rédigé par Lilian Vanderveken's avatar Lilian Vanderveken
Parcourir les fichiers

02/02/21

parent 6dbe5863
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -88,7 +88,7 @@ def CN(U0,x,h,N,T,k,M,B,D,bc):
#Paramètres problème
L=1.
T=0.1
B=0
B=1
D=1
m=1
......
......@@ -103,7 +103,7 @@ bc=[0,0]
a=1./4.
b=3./4.
U0=Create_Init(x,a,b,1)
lmb=10
lmb=0.5
U_EAv,lmb,t=EulAvant(U0,x,T,lmb,bc)
U_EAr,lmb,t=EulArriere(U0,x,T,lmb,bc)
U_CN,lmb,t=CN(U0,x,T,lmb,bc)
......@@ -127,9 +127,8 @@ for i in range(int(M/2)):
plt.xlabel('x')
plt.ylabel('y')
plt.ylim((0.,1.2))
plt.savefig('diff_2/diff_2_%d.png'%(i+1))
plt.close()
#plt.savefig('diff_2/diff_2_%d.png'%(i+1))
#plt.close()
plt.pause(0.8)
plt.clf()
......
# TP_LPHYS1303
Codes pour le cours LPHYS1303
\ No newline at end of file
Codes pour le cours LPHYS1303
#Installation jupyter lab
1. pip3 install jupyterlab ou équivalent
2. lancer avec la commande jupyter -lab
3. Pour rendre les graphes interactifs:
sudo apt-get install -y nodejs
sudo apt-get install -y npm
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter lab build
jupyter labextension install jupyter-matplotlib
jupyter nbextension enable --py widgetsnbextension
JupyterLal=3 est sorti en janvier plutot utiliser celui-là
Fichier ajouté
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter