GRINS-0.8.0
|
#include <solver.h>
Public Member Functions | |
Solver (const GetPot &input) | |
virtual | ~Solver () |
virtual void | initialize (const GetPot &input, SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system) |
virtual void | solve (SolverContext &context)=0 |
virtual void | adjoint_qoi_parameter_sensitivity (SolverContext &, const libMesh::QoISet &, const libMesh::ParameterVector &, libMesh::SensitivityData &) const |
virtual void | forward_qoi_parameter_sensitivity (SolverContext &, const libMesh::QoISet &, const libMesh::ParameterVector &, libMesh::SensitivityData &) const |
void | steady_adjoint_solve (SolverContext &context) |
Do steady version of adjoint solve. More... | |
void | print_scalar_vars (SolverContext &context) |
void | print_qoi (SolverContext &context) |
Protected Member Functions | |
void | set_solver_options (libMesh::DiffSolver &solver) |
virtual void | init_time_solver (GRINS::MultiphysicsSystem *system)=0 |
Protected Attributes | |
unsigned int | _max_nonlinear_iterations |
double | _relative_step_tolerance |
double | _absolute_step_tolerance |
double | _relative_residual_tolerance |
double | _absolute_residual_tolerance |
double | _initial_linear_tolerance |
double | _minimum_linear_tolerance |
unsigned int | _max_linear_iterations |
bool | _continue_after_backtrack_failure |
bool | _continue_after_max_iterations |
bool | _require_residual_reduction |
bool | _solver_quiet |
bool | _solver_verbose |
GRINS::Solver::Solver | ( | const GetPot & | input | ) |
Definition at line 48 of file solver.C.
|
inlinevirtual |
Reimplemented in GRINS::SteadyMeshAdaptiveSolver, and GRINS::SteadySolver.
|
inlinevirtual |
Reimplemented in GRINS::SteadyMeshAdaptiveSolver, and GRINS::SteadySolver.
|
protectedpure virtual |
Implemented in GRINS::SteadyMeshAdaptiveSolver, GRINS::SteadySolver, and GRINS::UnsteadySolver.
Referenced by initialize().
|
virtual |
Definition at line 72 of file solver.C.
References init_time_solver(), and set_solver_options().
void GRINS::Solver::print_qoi | ( | SolverContext & | context | ) |
Definition at line 155 of file solver.C.
References GRINS::SolverContext::qoi_output, and GRINS::SolverContext::system.
Referenced by GRINS::SteadyMeshAdaptiveSolver::solve(), and GRINS::UnsteadyMeshAdaptiveSolver::solve().
void GRINS::Solver::print_scalar_vars | ( | SolverContext & | context | ) |
Definition at line 133 of file solver.C.
References GRINS::SolverContext::system.
Referenced by GRINS::SteadySolver::solve(), GRINS::UnsteadySolver::solve(), and GRINS::UnsteadyMeshAdaptiveSolver::solve().
|
protected |
Definition at line 92 of file solver.C.
References _absolute_residual_tolerance, _absolute_step_tolerance, _continue_after_backtrack_failure, _continue_after_max_iterations, _initial_linear_tolerance, _max_linear_iterations, _max_nonlinear_iterations, _minimum_linear_tolerance, _relative_residual_tolerance, _relative_step_tolerance, _require_residual_reduction, _solver_quiet, and _solver_verbose.
Referenced by initialize().
|
pure virtual |
Implemented in GRINS::SteadyMeshAdaptiveSolver, GRINS::UnsteadyMeshAdaptiveSolver, GRINS::UnsteadySolver, and GRINS::SteadySolver.
void GRINS::Solver::steady_adjoint_solve | ( | SolverContext & | context | ) |
Do steady version of adjoint solve.
We put this here since we may want to reuse this in multiple different steady solves.
Definition at line 123 of file solver.C.
References GRINS::SolverContext::system.
Referenced by GRINS::SteadySolver::solve(), and GRINS::SteadyMeshAdaptiveSolver::solve().
|
protected |
Definition at line 100 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 93 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 104 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 105 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 101 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 103 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 91 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 102 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 98 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 92 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 106 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 109 of file solver.h.
Referenced by set_solver_options().
|
protected |
Definition at line 110 of file solver.h.
Referenced by set_solver_options().