GRINS-0.8.0
|
#include <simulation.h>
Public Member Functions | |
Simulation (const GetPot &input, SimulationBuilder &sim_builder, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD) | |
Simulation (const GetPot &input, GetPot &command_line, SimulationBuilder &sim_builder, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD) | |
virtual | ~Simulation () |
void | run () |
void | print_sim_info () |
SharedPtr< libMesh::EquationSystems > | get_equation_system () |
MultiphysicsSystem * | get_multiphysics_system () |
const MultiphysicsSystem * | get_multiphysics_system () const |
libMesh::Number | get_qoi_value (unsigned int qoi_index) const |
const std::string & | get_multiphysics_system_name () const |
Protected Member Functions | |
void | read_restart (const GetPot &input) |
void | init_multiphysics_system (const GetPot &input) |
Helper function. More... | |
void | init_qois (const GetPot &input, SimulationBuilder &sim_builder) |
Helper function. More... | |
void | init_params (const GetPot &input, SimulationBuilder &sim_builder) |
Helper function. More... | |
void | init_restart (const GetPot &input, SimulationBuilder &sim_builder, const libMesh::Parallel::Communicator &comm) |
Helper function. More... | |
bool | check_for_adjoint_solve (const GetPot &input) const |
Helper function. More... | |
void | init_adjoint_solve (const GetPot &input, bool output_adjoint) |
Helper function. More... | |
void | build_error_estimator (const GetPot &input) |
void | build_solver (const GetPot &input) |
Protected Attributes | |
SharedPtr< libMesh::UnstructuredMesh > | _mesh |
SharedPtr< libMesh::EquationSystems > | _equation_system |
libMesh::UniquePtr< GRINS::Solver > | _solver |
std::string | _system_name |
GRINS::Multiphysics system name. More... | |
GRINS::MultiphysicsSystem * | _multiphysics_system |
SharedPtr< GRINS::Visualization > | _vis |
SharedPtr< PostProcessedQuantities< libMesh::Real > > | _postprocessing |
bool | _print_mesh_info |
bool | _print_log_info |
bool | _print_equation_system_info |
bool | _print_constraint_info |
bool | _print_perflog |
bool | _print_scalars |
SharedPtr< QoIOutput > | _qoi_output |
bool | _output_vis |
bool | _output_adjoint |
bool | _output_residual |
bool | _output_residual_sensitivities |
bool | _output_solution_sensitivities |
unsigned int | _timesteps_per_vis |
unsigned int | _timesteps_per_perflog |
ErrorEstimatorOptions | _error_estimator_options |
SharedPtr< libMesh::ErrorEstimator > | _error_estimator |
ParameterManager | _adjoint_parameters |
ParameterManager | _forward_parameters |
bool | _do_adjoint_solve |
bool | _have_restart |
Private Member Functions | |
Simulation () | |
Definition at line 58 of file simulation.h.
GRINS::Simulation::Simulation | ( | const GetPot & | input, |
SimulationBuilder & | sim_builder, | ||
const libMesh::Parallel::Communicator &comm | LIBMESH_CAN_DEFAULT_TO_COMMWORLD | ||
) |
GRINS::Simulation::Simulation | ( | const GetPot & | input, |
GetPot & | command_line, | ||
SimulationBuilder & | sim_builder, | ||
const libMesh::Parallel::Communicator &comm | LIBMESH_CAN_DEFAULT_TO_COMMWORLD | ||
) |
|
inlinevirtual |
Definition at line 73 of file simulation.h.
|
private |
|
protected |
Definition at line 491 of file simulation.C.
References _error_estimator, _error_estimator_options, _multiphysics_system, GRINS::FactoryAbstract< libMesh::ErrorEstimator >::build(), GRINS::ErrorEstimatorOptions::estimator_type(), GRINS::ErrorEstimatorFactoryBase::set_estimator_options(), GRINS::FactoryWithGetPot< libMesh::ErrorEstimator >::set_getpot(), and GRINS::ErrorEstimatorFactoryBase::set_system().
|
protected |
Definition at line 503 of file simulation.C.
References _solver, GRINS::FactoryAbstract< Solver >::build(), GRINS::FactoryWithGetPot< Solver >::set_getpot(), and GRINS::SolverParsing::solver_type().
|
protected |
Helper function.
Definition at line 469 of file simulation.C.
References _adjoint_parameters, _error_estimator_options, GRINS::StrategiesParsing::do_adjoint_solve(), GRINS::ErrorEstimatorOptions::estimator_requires_adjoint(), GRINS::ErrorEstimatorOptions::estimator_type(), and GRINS::ParameterManager::parameter_vector.
Referenced by init_adjoint_solve().
SharedPtr< libMesh::EquationSystems > GRINS::Simulation::get_equation_system | ( | ) |
Definition at line 393 of file simulation.C.
References _equation_system.
Referenced by main(), and run().
|
inline |
Definition at line 179 of file simulation.h.
References _multiphysics_system.
Referenced by main().
|
inline |
Definition at line 172 of file simulation.h.
References _multiphysics_system.
|
inline |
Definition at line 185 of file simulation.h.
References _system_name.
Referenced by main().
libMesh::Number GRINS::Simulation::get_qoi_value | ( | unsigned int | qoi_index | ) | const |
Definition at line 398 of file simulation.C.
References _multiphysics_system, and GRINS::CompositeQoI::get_qoi_value().
Referenced by main().
|
protected |
Helper function.
Definition at line 446 of file simulation.C.
References _do_adjoint_solve, _multiphysics_system, and check_for_adjoint_solve().
|
protected |
Helper function.
Definition at line 142 of file simulation.C.
References _equation_system, _multiphysics_system, _postprocessing, _print_log_info, _solver, GRINS::MultiphysicsSystem::attach_physics_list(), GRINS::PhysicsBuilder::build_physics_map(), GRINS::VariableBuilder::build_variables(), GRINS::StrategiesParsing::extra_quadrature_order(), GRINS::MultiphysicsSystem::read_input_options(), and GRINS::MultiphysicsSystem::register_postprocessing_vars().
|
protected |
Helper function.
Definition at line 199 of file simulation.C.
References _adjoint_parameters, _forward_parameters, _multiphysics_system, and GRINS::ParameterManager::initialize().
|
protected |
Helper function.
Definition at line 178 of file simulation.C.
References _multiphysics_system, _qoi_output, and GRINS::SimulationBuilder::build_qoi().
|
protected |
Helper function.
Definition at line 252 of file simulation.C.
References _equation_system, _mesh, GRINS::MeshBuilder::do_mesh_refinement_from_input(), GRINS::SimulationBuilder::mesh_builder(), and read_restart().
void GRINS::Simulation::print_sim_info | ( | ) |
Definition at line 376 of file simulation.C.
References _equation_system, _mesh, _multiphysics_system, _print_constraint_info, _print_equation_system_info, and _print_mesh_info.
Referenced by run().
|
protected |
Definition at line 404 of file simulation.C.
References _equation_system, _have_restart, and GRINS::SimulationParsing::restart_file().
Referenced by init_restart().
void GRINS::Simulation::run | ( | ) |
Definition at line 267 of file simulation.C.
References _adjoint_parameters, _do_adjoint_solve, _equation_system, _error_estimator, _forward_parameters, _have_restart, _multiphysics_system, _output_adjoint, _output_residual, _output_residual_sensitivities, _output_solution_sensitivities, _output_vis, _postprocessing, _print_log_info, _print_scalars, _qoi_output, _solver, _timesteps_per_perflog, _timesteps_per_vis, _vis, GRINS::SolverContext::do_adjoint_solve, GRINS::SolverContext::equation_system, GRINS::SolverContext::error_estimator, GRINS::SolverContext::have_restart, GRINS::SolverContext::output_adjoint, GRINS::SolverContext::output_residual, GRINS::SolverContext::output_residual_sensitivities, GRINS::SolverContext::output_solution_sensitivities, GRINS::SolverContext::output_vis, GRINS::ParameterManager::parameter_vector, GRINS::SolverContext::postprocessing, GRINS::SolverContext::print_perflog, GRINS::SolverContext::print_scalars, print_sim_info(), GRINS::SolverContext::qoi_output, GRINS::SolverContext::system, GRINS::SolverContext::timesteps_per_perflog, GRINS::SolverContext::timesteps_per_vis, and GRINS::SolverContext::vis.
|
protected |
Definition at line 155 of file simulation.h.
Referenced by check_for_adjoint_solve(), init_params(), and run().
|
protected |
Definition at line 160 of file simulation.h.
Referenced by init_adjoint_solve(), and run().
|
protected |
Definition at line 117 of file simulation.h.
Referenced by get_equation_system(), init_multiphysics_system(), init_restart(), print_sim_info(), read_restart(), and run().
|
protected |
Definition at line 153 of file simulation.h.
Referenced by build_error_estimator(), and run().
|
protected |
Definition at line 152 of file simulation.h.
Referenced by build_error_estimator(), and check_for_adjoint_solve().
|
protected |
Definition at line 157 of file simulation.h.
Referenced by init_params(), and run().
|
protected |
Definition at line 162 of file simulation.h.
Referenced by read_restart(), and run().
|
protected |
Definition at line 115 of file simulation.h.
Referenced by init_restart(), and print_sim_info().
|
protected |
Definition at line 125 of file simulation.h.
Referenced by build_error_estimator(), get_multiphysics_system(), get_qoi_value(), init_adjoint_solve(), init_multiphysics_system(), init_params(), init_qois(), print_sim_info(), and run().
|
protected |
Definition at line 144 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 145 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 146 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 147 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 143 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 129 of file simulation.h.
Referenced by init_multiphysics_system(), and run().
|
protected |
Definition at line 135 of file simulation.h.
Referenced by print_sim_info().
|
protected |
Definition at line 134 of file simulation.h.
Referenced by print_sim_info().
|
protected |
Definition at line 133 of file simulation.h.
Referenced by init_multiphysics_system(), and run().
|
protected |
Definition at line 132 of file simulation.h.
Referenced by print_sim_info().
|
protected |
Definition at line 136 of file simulation.h.
|
protected |
Definition at line 137 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 140 of file simulation.h.
Referenced by init_qois(), and run().
|
protected |
Definition at line 119 of file simulation.h.
Referenced by build_solver(), init_multiphysics_system(), and run().
|
protected |
GRINS::Multiphysics system name.
Definition at line 122 of file simulation.h.
Referenced by get_multiphysics_system_name().
|
protected |
Definition at line 150 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 149 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 127 of file simulation.h.
Referenced by run().