GRINS-0.6.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 () |
std::tr1::shared_ptr< libMesh::EquationSystems > | get_equation_system () |
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 | attach_neumann_bc_funcs (std::map< GRINS::PhysicsName, GRINS::NBCContainer > neumann_bcs, GRINS::MultiphysicsSystem *system) |
void | attach_dirichlet_bc_funcs (std::multimap< GRINS::PhysicsName, GRINS::DBCContainer > dbc_map, GRINS::MultiphysicsSystem *system) |
void | init_multiphysics_system (const GetPot &input, SimulationBuilder &sim_builder) |
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... | |
void | check_for_unused_vars (const GetPot &input, bool warning_only) |
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... | |
Protected Attributes | |
std::tr1::shared_ptr< libMesh::UnstructuredMesh > | _mesh |
std::tr1::shared_ptr< libMesh::EquationSystems > | _equation_system |
std::tr1::shared_ptr< GRINS::Solver > | _solver |
std::string | _system_name |
GRINS::Multiphysics system name. More... | |
GRINS::MultiphysicsSystem * | _multiphysics_system |
std::tr1::shared_ptr< GRINS::Visualization > | _vis |
std::tr1::shared_ptr< PostProcessedQuantities< libMesh::Real > > | _postprocessing |
bool | _print_mesh_info |
bool | _print_log_info |
bool | _print_equation_system_info |
bool | _print_perflog |
bool | _print_qoi |
bool | _print_scalars |
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 |
std::tr1::shared_ptr< libMesh::ErrorEstimator > | _error_estimator |
ParameterManager | _adjoint_parameters |
ParameterManager | _forward_parameters |
bool | _do_adjoint_solve |
Private Member Functions | |
Simulation () | |
Definition at line 62 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 | ||
) |
|
virtual |
Definition at line 140 of file simulation.C.
|
private |
|
protected |
Definition at line 492 of file simulation.C.
References GRINS::MultiphysicsSystem::get_physics().
Referenced by init_multiphysics_system().
|
protected |
Definition at line 473 of file simulation.C.
References GRINS::MultiphysicsSystem::get_physics().
Referenced by init_multiphysics_system().
|
protected |
Helper function.
Definition at line 529 of file simulation.C.
Referenced by init_adjoint_solve().
|
protected |
std::tr1::shared_ptr< libMesh::EquationSystems > GRINS::Simulation::get_equation_system | ( | ) |
Definition at line 422 of file simulation.C.
References _equation_system.
Referenced by main().
|
inline |
Definition at line 176 of file simulation.h.
References _system_name.
libMesh::Number GRINS::Simulation::get_qoi_value | ( | unsigned int | qoi_index | ) | const |
Definition at line 427 of file simulation.C.
References _multiphysics_system, and GRINS::CompositeQoI::get_qoi_value().
|
protected |
Helper function.
Definition at line 506 of file simulation.C.
References _do_adjoint_solve, _multiphysics_system, and check_for_adjoint_solve().
|
protected |
Helper function.
Definition at line 145 of file simulation.C.
References _equation_system, _multiphysics_system, _postprocessing, _print_log_info, _solver, attach_dirichlet_bc_funcs(), attach_neumann_bc_funcs(), GRINS::MultiphysicsSystem::attach_physics_list(), GRINS::SimulationBuilder::build_dirichlet_bcs(), GRINS::SimulationBuilder::build_neumann_bcs(), GRINS::SimulationBuilder::build_physics(), GRINS::MultiphysicsSystem::read_input_options(), and GRINS::MultiphysicsSystem::register_postprocessing_vars().
|
protected |
Helper function.
Definition at line 204 of file simulation.C.
References _adjoint_parameters, _forward_parameters, _multiphysics_system, and GRINS::ParameterManager::initialize().
|
protected |
Helper function.
Definition at line 181 of file simulation.C.
References _multiphysics_system, _print_qoi, and GRINS::SimulationBuilder::build_qoi().
|
protected |
Helper function.
Definition at line 257 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 411 of file simulation.C.
References _equation_system, _mesh, _print_equation_system_info, and _print_mesh_info.
Referenced by run().
|
protected |
Definition at line 433 of file simulation.C.
References _equation_system.
Referenced by init_restart().
void GRINS::Simulation::run | ( | ) |
Definition at line 303 of file simulation.C.
References _adjoint_parameters, _do_adjoint_solve, _equation_system, _error_estimator, _forward_parameters, _multiphysics_system, _output_adjoint, _output_residual, _output_residual_sensitivities, _output_solution_sensitivities, _output_vis, _postprocessing, _print_log_info, _print_qoi, _print_scalars, _solver, _timesteps_per_perflog, _timesteps_per_vis, _vis, GRINS::SolverContext::do_adjoint_solve, GRINS::SolverContext::equation_system, GRINS::SolverContext::error_estimator, GRINS::SolverContext::output_adjoint, GRINS::CompositeQoI::output_qoi(), 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_qoi, GRINS::SolverContext::print_scalars, print_sim_info(), GRINS::SolverContext::system, GRINS::SolverContext::timesteps_per_perflog, GRINS::SolverContext::timesteps_per_vis, and GRINS::SolverContext::vis.
Referenced by main(), and run().
|
protected |
Definition at line 162 of file simulation.h.
Referenced by init_params(), and run().
|
protected |
Definition at line 167 of file simulation.h.
Referenced by init_adjoint_solve(), and run().
|
protected |
Definition at line 128 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 160 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 164 of file simulation.h.
Referenced by init_params(), and run().
|
protected |
Definition at line 126 of file simulation.h.
Referenced by init_restart(), and print_sim_info().
|
protected |
Definition at line 136 of file simulation.h.
Referenced by get_qoi_value(), init_adjoint_solve(), init_multiphysics_system(), init_params(), init_qois(), and run().
|
protected |
Definition at line 152 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 153 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 154 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 155 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 151 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 140 of file simulation.h.
Referenced by init_multiphysics_system(), and run().
|
protected |
Definition at line 145 of file simulation.h.
Referenced by print_sim_info().
|
protected |
Definition at line 144 of file simulation.h.
Referenced by init_multiphysics_system(), and run().
|
protected |
Definition at line 143 of file simulation.h.
Referenced by print_sim_info().
|
protected |
Definition at line 146 of file simulation.h.
|
protected |
Definition at line 147 of file simulation.h.
Referenced by init_qois(), and run().
|
protected |
Definition at line 148 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 130 of file simulation.h.
Referenced by init_multiphysics_system(), and run().
|
protected |
GRINS::Multiphysics system name.
Definition at line 133 of file simulation.h.
Referenced by get_multiphysics_system_name().
|
protected |
Definition at line 158 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 157 of file simulation.h.
Referenced by run().
|
protected |
Definition at line 138 of file simulation.h.
Referenced by run().