Hello All,
1) In the tutorial of deal.ii , an example of wave equation in 2D is given in step-23. Does changing ( WaveEquation<2> wave_equation_solver) to (WaveEquation<1 or 3> wave_equation_solver) change the dimension of wave equation and will it be working fine.
If not please specify how can we change 2D wave equation to 1D and 3D or if there are examples of 1D and 3D please let me know.
2) How can we change the input data size of the wave equation.
template <int dim>
void WaveEquation<dim>::solve_u()
{
SolverControl solver_control(1000, 1e-8 * system_rhs.l2_norm());
SolverCG<Vector<double>> cg(solver_control);
cg.solve(matrix_u, solution_u, system_rhs, PreconditionIdentity());
std::cout << " u-equation: " << solver_control.last_step()
<< " CG iterations." << std::endl;
}
I tried changing 1000 to 10,000 and 100,000 But the time taken by the program is still the same.
Thanks.