15 #define BOOST_ALLOW_DEPRECATED_HEADERS
17 #include <deal.II/base/function.h>
18 #include <deal.II/grid/grid_generator.h>
19 #include <deal.II/grid/grid_in.h>
21 #include <deal.II/numerics/fe_field_function.h>
23 #include "exact_solution.hpp"
24 #include "settings.hpp"
25 #include "static_scalar_solver.hpp"
27 #define TMR(__name) TimerOutput::Scope timer_section(timer, __name)
29 using namespace StaticScalarSolver;
56 SolverPLS(
unsigned int p,
unsigned int r, std::string fname)
65 project_exact_solution)
69 TimerOutput::OutputFrequency tf =
70 (print_time_tables) ? TimerOutput::summary : TimerOutput::never;
72 TimerOutput timer(std::cout, tf, TimerOutput::cpu_and_wall_times_grouped);
84 const std::string fname;
88 virtual void make_mesh() override final;
89 virtual
void fill_dirichlet_stack() override final;
90 virtual
void solve() override final;
102 if (log_cg_convergence)
103 control.enable_history_data();
105 GrowingVectorMemory<Vector<double>> memory;
106 SolverCG<Vector<double>> cg(control, memory);
108 PreconditionJacobi<SparseMatrix<double>> preconditioner;
118 if (log_cg_convergence) {
119 const std::vector<double> history_data = control.get_history_data();
121 std::ofstream ofs(fname +
"_cg_convergence.csv");
124 for (
auto item : history_data) {
125 ofs << i <<
", " << item <<
"\n";
Describes the exact solution, , of the Planes of symmetry (pls/) numerical experiment in two and thre...
Global settings for the Planes of symmetry (pls/) numerical experiment.
Implements the Planes of symmetry (pls/) numerical experiment.
SolverPLS(unsigned int p, unsigned int r, std::string fname)
Solves static scalar boundary value problem.
void run()
Runs the simulation.