Init_Solution_mult (initialize on subdomains) + finer mesh
This commit is contained in:
parent
b1303a8b4a
commit
bd4477f062
7 changed files with 46889 additions and 2124 deletions
|
|
@ -57,8 +57,9 @@ int main(int argc, char **argv )
|
|||
|
||||
// Initialize temperature
|
||||
vector<double> uv(SK.Nrows(), 0.0); // temperature
|
||||
mesh.SetValues(uv, [](double x, double y) -> double { return 18; } ); // initial temperature of every domain
|
||||
|
||||
mesh.Init_Solution_mult(uv, 0, [](double x, double y) -> double { return 18; }); // mug
|
||||
mesh.Init_Solution_mult(uv, 1, [](double x, double y) -> double { return 80; }); // fluid
|
||||
mesh.Init_Solution_mult(uv, 2, [](double x, double y) -> double { return 18; }); // air
|
||||
|
||||
// Apply BC
|
||||
SK.ApplyDirichletBC(uv, fv);
|
||||
|
|
@ -70,7 +71,7 @@ int main(int argc, char **argv )
|
|||
|
||||
auto t3 = system_clock::now(); // start timer
|
||||
|
||||
JacobiSolve(SK, fv, uv ); // solve the system of equations
|
||||
// JacobiSolve(SK, fv, uv ); // solve the system of equations
|
||||
|
||||
auto t4 = system_clock::now(); // stop timer
|
||||
auto duration = duration_cast<microseconds>(t4 - t3); // duration in microseconds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue