17 #ifndef SIMULATOR_BUILDER_H
18 #define SIMULATOR_BUILDER_H
29 #include <boost/smart_ptr.hpp>
30 #include <boost/program_options.hpp>
32 #include <base/timer.h>
33 #include <base/utilities.h>
47 #include "FCST_TEST_SUITE.h"
222 boost::shared_ptr <FuelCell::ApplicationCore::OptimizationBlockMatrixApplication<dim> >
app_lin;
225 boost::shared_ptr <FuelCell::ApplicationCore::ApplicationWrapper>
newton;
230 boost::shared_ptr <FuelCell::ApplicationCore::AdaptiveRefinement<dim> >
solver;
boost::shared_ptr< FuelCell::ApplicationCore::ApplicationWrapper > newton
Pointer to the non-linear solver.
Definition: simulator_builder.h:225
void run_optimization()
Set up the required optimization objects (i.e.
std::string dakota_parameters
Variable set in parse_inputs which stores the name of the parameter file if the simulation is being c...
Definition: simulator_builder.h:330
boost::shared_ptr< std::ofstream > log_file
Stores a pointer to the log file object.
Definition: simulator_builder.h:257
void output_default_other(std::string main_file)
Outputs the AdaptiveRefinement and DakotaApplication parameters options to files "data.xml" and "opt.xml" in current working directory.
const std::string program_version
Local variable for the program version.
Definition: simulator_builder.h:210
void print_timer_info() const
Print timer info.
std::string simulator_parameter_file_name
Stores the name of the parameter file containing the physical data for the simulation.
Definition: simulator_builder.h:263
void open_logfile(const std::string &)
Member function used to attach the deal.II logfile to the application and provide the name of the fil...
void initialize(ParameterHandler ¶m)
Initialize the local variables declared by the parameter handler.
Timer timer
Object used to calculate the CPU and Run time for the simulation.
Definition: simulator_builder.h:300
std::string analysis_type
Decision varible for selecting the type of analysis.
Definition: simulator_builder.h:288
void convert_parameters(std::string main_file)
Opens project specified by /prm file.
This class is used to output data or to initialize and launch simulations.
Definition: simulator_builder.h:73
void print_logo() const
Member function that is used to print information about the program.
boost::shared_ptr< FuelCell::ApplicationCore::OptimizationBlockMatrixApplication< dim > > app_lin
Pointer where linear application is stored.
Definition: simulator_builder.h:222
This application is used to perform a parametric study for a given fuel cell model.
Definition: parametric_study.h:78
std::string input_file
Stores the name of the input file with the application selector data.
Definition: simulator_builder.h:245
const std::string program_name
Local varible for the program name.
Definition: simulator_builder.h:207
bool dakota_use
Variable set in parse_inputs which determines whether the program is being called from DAKOTA...
Definition: simulator_builder.h:309
This application is used to compute the polarization curve for a given fuel cell model.
Definition: polarization_curve.h:101
void scan()
Member function used to call the declaration of the parameters, initialize data and set the applicati...
FuelCell::PolarizationCurve< dim > curve
Polarization curve object.
Definition: simulator_builder.h:335
void run_test()
This routine is mainly used for testing single member functions in classes.
boost::shared_ptr< SimulationSelector< dim > > sim_selector
Object which stores the name of the application and solver Allows the user to select the application ...
Definition: simulator_builder.h:236
bool save_transfer_files
Set to true if you want to keep the mesh and solution from the simulation.
Definition: simulator_builder.h:292
boost::shared_ptr< FuelCell::ApplicationCore::AdaptiveRefinement< dim > > solver
Pointer to a solver application which applies adaptive refinement to the grid.
Definition: simulator_builder.h:230
virtual void run()
Run the simulation.
bool dakota_direct
Decision varible for using the direct dakota interface.
Definition: simulator_builder.h:314
std::string optimization_parameter_file_name
Stores the name of the parameter file containing the optimization data.
Definition: simulator_builder.h:318
~SimulatorBuilder()
Destructor.
ParameterHandler param
Parameter handler object that will be used to store all input data for the application.
Definition: simulator_builder.h:219
void declare_parameters(ParameterHandler ¶m) const
Declare all necessary parameters to read the input files.
SimulatorBuilder()
Constructor.
void parse_inputs(int argc, char *argv[])
Member function used to read in the command line and initialize the necessary data.
void output_default_main()
Outputs the SimulatorBuilder parameter options to file "main.xml" in current working directory...
FuelCell::ParametricStudy< dim > param_study
Polarization curve object.
Definition: simulator_builder.h:340
std::string dakota_results
Variable set in parse_inputs which stores the name of the results (responses) file if the simulation ...
Definition: simulator_builder.h:324