grid refinement on, eval needs update to use new grid, solver not converging on time

This commit is contained in:
Vasco C. B. Ferreira
2026-07-08 17:45:52 +02:00
parent 6f26a6357c
commit b9da81076c
4 changed files with 85 additions and 33 deletions
+6 -3
View File
@@ -3,6 +3,7 @@
#include <cmath>
#include <cstdlib>
#include <string>
namespace Parameters {
constexpr unsigned int DIMENSION = 1;
@@ -24,7 +25,7 @@ constexpr double DV = std::abs(V_DOMAIN_RIGHT - V_DOMAIN_LEFT) / NV;
// deal.ii options
constexpr unsigned int GLOBAL_REFINEMENT = 6;
constexpr unsigned int FE_DEGREE = 2;
constexpr unsigned int CONVERGENCE_ITERATIONS = 5000;
constexpr unsigned int CONVERGENCE_ITERATIONS = 10000;
constexpr double CONVERGENCE_LIMIT = 1e-8;
constexpr double EPS = 0.01;
@@ -32,13 +33,15 @@ constexpr double WAVE_NR = 0.5;
constexpr double F0_FACTOR = 0.39894228040143267793994; // 1/sqrt(2pi)
// NUFI options
constexpr double DT = 1. / 8.;
constexpr double DT = 1. / 10.;
constexpr unsigned int TMAX = 100;
constexpr unsigned int REFINE_FREQUENCY = 5;
// Plotting options
constexpr int PLOT_FREQUENCY = 4;
constexpr int PLOT_FREQUENCY = 5;
constexpr size_t PLOT_NX = CALC_NX;
constexpr double PLOT_DX = LX / PLOT_NX;
const std::string PLOT_DIR = "results/";
} // namespace Parameters
#endif