![]() |
|
Classes | |
class | TwoMeshFluxAdvectionDiffusionProblem< ELEMENT > |
Namespaces | |
TanhSolnForAdvectionDiffusion | |
Functions | |
void | TanhSolnForAdvectionDiffusion::get_exact_u (const Vector< double > &x, Vector< double > &u) |
Exact solution as a Vector. More... | |
void | TanhSolnForAdvectionDiffusion::get_exact_u (const Vector< double > &x, double &u) |
Exact solution as a scalar. More... | |
void | TanhSolnForAdvectionDiffusion::source_function (const Vector< double > &x_vect, double &source) |
Source function required to make the solution above an exact solution. More... | |
void | TanhSolnForAdvectionDiffusion::prescribed_flux_on_fixed_x_boundary (const Vector< double > &x, double &flux) |
Flux required by the exact solution on a boundary on which x is fixed. More... | |
void | TanhSolnForAdvectionDiffusion::wind_function (const Vector< double > &x, Vector< double > &wind) |
Wind. More... | |
void | run_it (LinearSolver *linear_solver_pt) |
int | main (int argc, char *argv[]) |
Check out various iterative linear solvers on an advection diffusion problem. Command line arg specifies the solver.
Possible endless loop for memory leak testing
References oomph::CommandLineArgs::Argc, oomph::CommandLineArgs::Argv, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, TanhSolnForAdvectionDiffusion::Peclet, oomph::IterativeLinearSolver::preconditioner_pt(), run_it(), Flag_definition::setup(), and oomph::IterativeLinearSolver::tolerance().
void run_it | ( | LinearSolver * | linear_solver_pt | ) |
Run 2D AdvectionDiffusion problem with flux boundary conditions, using the iterative linear solver and preconditioner specified via the pointers.
References oomph::DoubleVector::build(), oomph::LinearSolver::disable_resolve(), oomph::DistributableLinearAlgebraObject::distribution_pt(), oomph::LinearSolver::enable_resolve(), calibrate::error, i, oomph::DoubleVector::initialise(), matrix(), oomph::IterativeLinearSolver::max_iter(), Eigen::ArrayBase< Derived >::pow(), problem, oomph::LinearSolver::resolve(), oomph::DocInfo::set_directory(), BiharmonicTestFunctions1::solution(), oomph::LinearSolver::solve(), TanhSolnForAdvectionDiffusion::source_function(), sqrt(), and TanhSolnForAdvectionDiffusion::wind_function().
Referenced by main().