#include "grins_config.h"
#include <iostream>
#include "grins/runner.h"
#include "libmesh/parallel.h"
Go to the source code of this file.
|
libMesh::Real | initial_values (const libMesh::Point &p, const libMesh::Parameters ¶ms, const std::string &system_name, const std::string &unknown_name) |
|
int | main (int argc, char *argv[]) |
|
libMesh::Real initial_values |
( |
const libMesh::Point & |
p, |
|
|
const libMesh::Parameters & |
params, |
|
|
const std::string & |
system_name, |
|
|
const std::string & |
unknown_name |
|
) |
| |
Definition at line 77 of file 3d_low_mach_jacobians.C.
Referenced by main().
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");
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 40 of file 3d_low_mach_jacobians.C.
References GRINS::Simulation::get_equation_system(), GRINS::Runner::get_input_file(), GRINS::Runner::get_simulation(), GRINS::Runner::init(), initial_values(), and GRINS::Runner::run().
45 const GetPot & inputfile = grins.get_input_file();
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");
SharedPtr< libMesh::EquationSystems > get_equation_system()
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.