Skip to content
Extraits de code Groupes Projets
Valider 95d8387c rédigé par Clément CAZENAVE's avatar Clément CAZENAVE
Parcourir les fichiers

Update tab.cpp

parent ade30b54
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -23,14 +23,14 @@ int** settab(Materiaux mat, int u0, double f) ...@@ -23,14 +23,14 @@ int** settab(Materiaux mat, int u0, double f)
double dt, dx; double dt, dx;
dt= T/100.; dt= T/100.;
dx= L/100.; dx= L/100.;
int** temp; double** temp;
double coef_1= mat.getlambda()/(dx*dx); double coef_1= mat.getlambda()/(dx*dx);
double coef_2= dt/(mat.getc()*mat.getkho()); double coef_2= dt/(mat.getc()*mat.getkho());
double F=16*f*f; double F=16*f*f;
temp = new int*[100]; temp = new double*[100];
for (int i = 0; i < 100; i++) for (int i = 0; i < 100; i++)
temp[i] = new int[101]; temp[i] = new double[101];
for (int j = 0; j < 101; j++){ for (int j = 0; j < 101; j++){
temp[0][j]=u0; temp[0][j]=u0;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter