diff options
author | Ilhan Özgen Xian <iozgen@lbl.gov> | 2021-06-03 18:12:20 -0700 |
---|---|---|
committer | Ilhan Özgen Xian <iozgen@lbl.gov> | 2021-06-03 18:12:20 -0700 |
commit | 2ebc62d44c12056846555ac48043e3f4d6e82b54 (patch) | |
tree | bdd48d3dbc9fd868d89fa14617e37a56610198e5 | |
parent | 2301e6585df79b4cc59da6705fe194fb0751ef57 (diff) |
minor changes to how agent advects
-rw-r--r-- | agent.cpp | 9 | ||||
-rw-r--r-- | header.hpp | 2 |
2 files changed, 1 insertions, 10 deletions
@@ -103,13 +103,8 @@ void Agent::advance_surface(Mesh* mesh, double rel_dt, size_t step) velocity[i] = location->get_velocity(i); velocity_slope[i] = rel_dt * (location->get_velocity_next(i) - velocity[i]); velocity[i] = velocity[i] + velocity_slope[i]; - // std::cout << "v0[" << i << "] = " << velocity[i] << " v1[" << i << "] = " << location->get_velocity_next(i) << std::endl; - // std::cout << "rel_dt: " << rel_dt << std::endl; - // std::cout << "interpolated velocity " << i << " on surface: " << velocity[i] << " m/s" << std::endl; } - - // CFL criteria double length = location->get_characteristic_length(); double velocity_norm = sqrt(velocity[0]*velocity[0] + velocity[1]*velocity[1]); @@ -203,10 +198,6 @@ void Agent::advance_subsurface(Mesh* mesh, double rel_dt, size_t step) velocity[i] = location->get_velocity(i); velocity_slope[i] = rel_dt * (location->get_velocity_next(i) - velocity[i]); velocity[i] = velocity[i] + velocity_slope[i]; - // std::cout << "v0[" << i << "] = " << velocity[i] << " v1[" << i << "] = " << location->get_velocity_next(i) << std::endl; - // std::cout << "dv0[" << i << "] = " << velocity_slope[i] << std::endl; - // std::cout << "rel_dt: " << rel_dt << std::endl; - // std::cout << "interpolated velocity " << i << " on subsurface: " << velocity[i] << " m/s" << std::endl; } // CFL criteria @@ -19,7 +19,7 @@ #define CLASSIC_SCHEME 1 -#define MAXTIMESTEP 86400.0 // (s) one day +#define MAXTIMESTEP 864000.0 // (s) ten days #define EPS 1.0e-10 #define CFL 0.5 |