ElmerFoamFSI
2.0
ElmerFoamFSI is fluid-solid interaction simulation application built up from OpenFOAM CFD and Elmer CSM coupled through the IMPACT multiphysics software integration infrastructure.
|
|
inlinevirtual |
Test for ElmerModuleDriver::MidPointQuadrature.
result | ElmerModuleDriver::TestResults object to store test results. |
This function implements a simple test of the function ElmerModuleDriver::MidPointQuadrature - which is designed to integrate a function, f, over an interval .
The test first makes sure that the method integrates a linear function exactly, and then that the error term has the proper dependence on the spacings.
Definition at line 231 of file ElmerModuleDriverTest.H.
References ElmerModuleDriver::TestFixture::F1(), ElmerModuleDriver::TestFixture::F2(), ElmerModuleDriver::MidPointQuadrature(), and TestingObject< ResultsType >::N.
Referenced by TestingObject< ResultsType >::Process(), and TestingObject< ResultsType >::RunTest().