26 #include "grins_config.h"
34 #include "libmesh/exact_solution.h"
36 int main(
int argc,
char* argv[])
49 const libMesh::Number exact_value = -0.5;
50 const libMesh::Number rel_error = std::fabs( (qoi - exact_value )/exact_value );
51 const libMesh::Number tol = 1.0e-11;
54 std::cerr <<
"Computed voriticity QoI mismatch greater than tolerance." << std::endl
55 <<
"Computed value = " << qoi << std::endl
56 <<
"Exact value = " << exact_value << std::endl
57 <<
"Relative error = " << rel_error << std::endl
58 <<
"Tolerance = " << tol << std::endl;
void init()
Initialize the Simulation objects.
int main(int argc, char *argv[])
libMesh::Number get_qoi_value(unsigned int qoi_index) const
Class to encapsulate initializing and running GRINS Simulation.
void run()
Runs the simulation that was setup at construction time.
Simulation & get_simulation()