16 #ifndef SIMULATOR_BUILDER_H
17 #define SIMULATOR_BUILDER_H
26 #include <boost/smart_ptr.hpp>
27 #include <boost/program_options.hpp>
30 #include <deal.II/base/timer.h>
31 #include <deal.II/base/utilities.h>
42 #include "FCST_TEST_SUITE.h"
230 boost::shared_ptr <FuelCell::ApplicationCore::ApplicationData>
data;
233 boost::shared_ptr <FuelCell::ApplicationCore::OptimizationBlockMatrixApplication<dim> >
app_lin;
236 boost::shared_ptr <FuelCell::ApplicationCore::ApplicationWrapper>
newton;
241 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:236
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:341
boost::shared_ptr< std::ofstream > log_file
Stores a pointer to the log file object.
Definition: simulator_builder.h:268
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:216
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:274
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...
boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data
Data structure storing information to be shared between applications.
Definition: simulator_builder.h:230
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:311
Definition: simulator_builder.h:58
std::string analysis_type
Decision varible for selecting the type of analysis.
Definition: simulator_builder.h:299
This class is used to output data or to initialize and launch simulations.
Definition: simulator_builder.h:77
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:233
This application is used to perform a parametric study for a given fuel cell model.
Definition: parametric_study.h:96
std::string input_file
Stores the name of the input file with the application selector data.
Definition: simulator_builder.h:256
const std::string program_name
Local varible for the program name.
Definition: simulator_builder.h:213
bool dakota_use
Variable set in parse_inputs which determines whether the program is being called from DAKOTA...
Definition: simulator_builder.h:320
Definition: simulator_builder.h:59
void convert_file(std::string main_file)
Opens project specified by main file.
This application is used to compute the polarization curve for a given fuel cell model.
Definition: polarization_curve.h:101
Definition: simulator_builder.h:60
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:346
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:247
bool save_transfer_files
Set to true if you want to keep the mesh and solution from the simulation.
Definition: simulator_builder.h:303
boost::shared_ptr< FuelCell::ApplicationCore::AdaptiveRefinement< dim > > solver
Pointer to a solver application which applies adaptive refinement to the grid.
Definition: simulator_builder.h:241
virtual void run()
Run the simulation.
bool dakota_direct
Decision varible for using the direct dakota interface.
Definition: simulator_builder.h:325
std::string optimization_parameter_file_name
Stores the name of the parameter file containing the optimization data.
Definition: simulator_builder.h:329
~SimulatorBuilder()
Destructor.
ParameterHandler param
Parameter handler object that will be used to store all input data for the application.
Definition: simulator_builder.h:225
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.
FileConversionOption
Definition: simulator_builder.h:56
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:351
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:335