#include "grins_config.h"
#include <iostream>
#include "grins/runner.h"
#include "libmesh/exact_solution.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 36 of file vorticity_qoi.C.
References GRINS::Simulation::get_qoi_value(), GRINS::Runner::get_simulation(), GRINS::Runner::init(), and GRINS::Runner::run().
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;
libMesh::Number get_qoi_value(unsigned int qoi_index) const
Class to encapsulate initializing and running GRINS Simulation.