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::TrapezoidQuadrature.
result | ElmerModuleDriver::TestResults object to store test results. |
This function implements a simple test of the function ElmerModuleDriver::TrapezoidQuadrature - which is designed to integrate a function, f, over an n-way partitioned 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 179 of file ElmerModuleDriverTest.H.
References ElmerModuleDriver::TestFixture::F1(), ElmerModuleDriver::TestFixture::F2(), TestingObject< ResultsType >::N, and ElmerModuleDriver::TrapezoidQuadrature().
Referenced by TestingObject< ResultsType >::Process(), and TestingObject< ResultsType >::RunTest().