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.
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/7d54e428-1fb3-4bb9-a5d8-bd9284ad53b7n%40googlegroups.com.