25 #include "grins_config.h"
33 #include "libmesh/parallel.h"
37 initial_values(
const libMesh::Point& p,
const libMesh::Parameters ¶ms,
38 const std::string& system_name,
const std::string& unknown_name );
40 int main(
int argc,
char* argv[])
48 std::string restart_file = inputfile(
"restart-options/restart_file",
"none" );
50 if( restart_file ==
"none" )
54 std::string system_name = inputfile(
"screen-options/system_name",
"GRINS" );
56 const libMesh::System& system = es->get_system(system_name);
58 libMesh::Parameters ¶ms = es->parameters;
59 libMesh::Real T_init = inputfile(
"Materials/TestMaterial/ReferenceTemperature/value", 0.0);
60 libMesh::Real p0_init = inputfile(
"Materials/TestMaterial/ThermodynamicPressure/value", 0.0);
62 libMesh::Real& dummy_T = params.set<libMesh::Real>(
"T_init");
65 libMesh::Real& dummy_p0 = params.set<libMesh::Real>(
"p0_init");
78 const std::string& ,
const std::string& unknown_name )
80 libMesh::Real value = 0.0;
82 if( unknown_name ==
"T" )
83 value = params.get<libMesh::Real>(
"T_init");
85 else if( unknown_name ==
"p0" )
86 value = params.get<libMesh::Real>(
"p0_init");
void init()
Initialize the Simulation objects.
SharedPtr< libMesh::EquationSystems > get_equation_system()
const GetPot & get_input_file() const
libMesh::Real initial_values(const libMesh::Point &p, const libMesh::Parameters ¶ms, const std::string &system_name, const std::string &unknown_name)
Class to encapsulate initializing and running GRINS Simulation.
int main(int argc, char *argv[])
void run()
Runs the simulation that was setup at construction time.
Simulation & get_simulation()