Skip to content
Snippets Groups Projects
Commit d3c0879b authored by Fanny CHOPOT's avatar Fanny CHOPOT
Browse files

corrections de Stephane et Emmanuel pour E

parent 26d1d0d2
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,7 @@ int main(int argc, char *argv[]) ...@@ -155,7 +155,7 @@ int main(int argc, char *argv[])
while((t<tmax) and (iteration<itermax)) { while((t<tmax) and (iteration<itermax)) {
//double dt = 0.4*acoustic_solver.acoustic_dt(Vj, cj); //double dt = 0.4*acoustic_solver.acoustic_dt(Vj, cj);
double dt = 0.4*finite_volumes_diffusion.diffusion_dt(rhoj, kj); double dt = 0.8*finite_volumes_diffusion.diffusion_dt(rhoj, kj);
if (t+dt>tmax) { if (t+dt>tmax) {
dt=tmax-t; dt=tmax-t;
......
...@@ -50,7 +50,7 @@ public: ...@@ -50,7 +50,7 @@ public:
// pas constant // pas constant
/*
Mesh(const Connectivity& connectivity) Mesh(const Connectivity& connectivity)
: m_connectivity(connectivity), : m_connectivity(connectivity),
m_xr("xr", connectivity.numberOfNodes()) m_xr("xr", connectivity.numberOfNodes())
...@@ -60,11 +60,11 @@ public: ...@@ -60,11 +60,11 @@ public:
m_xr[r][0] = r*delta_x; m_xr[r][0] = r*delta_x;
}); });
} }
*/
// pas non constant // pas non constant
/*
Mesh(const Connectivity& connectivity) Mesh(const Connectivity& connectivity)
: m_connectivity(connectivity), : m_connectivity(connectivity),
m_xr("xr", connectivity.numberOfNodes()) m_xr("xr", connectivity.numberOfNodes())
...@@ -85,7 +85,7 @@ public: ...@@ -85,7 +85,7 @@ public:
} }
}); });
} }
*/
~Mesh() ~Mesh()
{ {
......
...@@ -127,9 +127,14 @@ private: ...@@ -127,9 +127,14 @@ private:
} }
m_Gl(l) = (1./face_nb_cells(l))*Fl(l)*sum; m_Gl(l) = (1./face_nb_cells(l))*Fl(l)*sum;
}); });
// C'est juste un test, mais ca devrait marcher
m_Gl(0) = 0;
m_Gl(m_mesh.numberOfFaces()-1) = 0;
// m_Gl(0) = 0.5*m_Gl(0);
// m_Gl(m_mesh.numberOfFaces()-1) = 0.5*m_Gl(m_mesh.numberOfFaces()-1);
return m_Gl ; return m_Gl ;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment