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.
|
Project-specific testing object. More...
Project-specific testing object.
The project-specific testing object encapsulates all tests for the project. This is the interface to all testing available for the given project. It implements the interface given by IRAD::Util::TestingObject.
Every project should define a "TestingObject" which implements (or interfaces) all of the tests for the project. If necessary (e.g. for parallel tests through batch systems), this is the object responsible for spawning off children processes to conduct parallel tests and for gathering the results of those tests.
Definition at line 80 of file ElmerFoamFSITest.H.
#include <ElmerFoamFSITest.H>
Public Member Functions | |
TestingObject () | |
Default constructor. More... | |
virtual void | Epilogue () |
Tears down the testing fixtures if needed. More... | |
virtual void | Prologue () |
Sets up the data fixtures for the tests. More... | |
double | F1 (double x) |
Simple test function fixture returns . More... | |
double | F2 (double x) |
Simple test function fixture returns . More... | |
virtual void | Test__ExampleFunction (ResultsType &result) |
Test for ElmerFoamFSI::ExampleFunction. More... | |
virtual void | Test__TrapezoidQuadrature (ResultsType &result) |
Test for ElmerFoamFSI::TrapezoidQuadrature. More... | |
virtual void | Test__MidPointQuadrature (ResultsType &result) |
Test for ElmerFoamFSI::MidPointQuadrature. More... | |
virtual void | Test__ElmerModuleLoad (ResultsType &result) |
virtual void | Test__OFModuleLoad (ResultsType &result) |
virtual void | Test__ElmerHandlesCheck (ResultsType &result) |
void | SetSourceDirPath (std::string input) |
Sets the string value of the testing source directory. More... | |
virtual int | GetInputData (std::string suffix, std::string TestDir) |
virtual int | __helper () |
virtual void | Test__GetInput (ResultsType &result) |
virtual void | Test__fsiCouplerAgentsInitialize () |
Initalize function for the fsiCoupler and agents. More... | |
virtual void | Test__FsiCoupler (ResultsType &result) |
Test the functionality of the fsiCoupler. More... | |
virtual void | Test__ElmerStructures (ResultsType &result) |
Run an initialization check to make sure that the ElmerStructures are running as they should. More... | |
virtual void | Test__OpenFoamFluids (ResultsType &result) |
Run an initialization check to make sure the OpenFoamFluids are running as they should. More... | |
virtual void | Test__TransferDisplacementsToFluid (ResultsType &result) |
Test for fsiCoupling::TrasferDisplacementsToFluid function. More... | |
virtual void | Test__FluidAgentRun (ResultsType &result) |
Test for fluidAgent->Run() function. More... | |
bool | tractionCheck (double *tractions, int isize) |
bool | double_equals (double a, double b, double epsilon=.001) |
std::vector< double > | avgCoord (int first, int second, int third, int fourth, fluidagent *fluidAgent) |
virtual void | Test__TransferLoadsToStructures (ResultsType &result) |
Test for TransferLoadsToStructures() function. More... | |
virtual void | Test__SolidAgentRun (ResultsType &result) |
Test for solidAgent->Run() function. More... | |
bool | DisplacementCheck (double *disp, int size) |
virtual void | Process (ResultsType &result) |
Runs all tests implemented by the ElmerFoamFSI::TestingObject. More... | |
virtual void | RunTest (const std::string &name, ResultsType &result) |
Runs a test specified by name. More... | |
virtual void | ProcessTests (std::list< std::string > &test_names, ResultsType &result) |
Runs a list of tests specified by name. More... | |
Protected Attributes | |
std::string | ExampleTestFixture |
A sample string test fixture. More... | |
std::vector< int > | N |
A set of values for testing quadrature methods. More... | |
std::string | SourceDirPath |
TestGlobalType | global |
std::vector< std::string > | componentInterfaceNames |
fsicoupling | fsiCoupler |
Instantiation of class for use with the fsiCoupler & Agent tests. More... | |
solidagent * | TeststructuresAgent |
For use with the ElmerStructure and OpenFoamFluids tests. More... | |
fluidagent * | TestfluidsAgent |
int | verblevel |
track verbosity level for tests More... | |
Private Types | |
typedef std::string | StackType |
typedef IRAD::Profiler::ProfilerObj | ProfilerType |
typedef IRAD::Global::GlobalObj < StackType, int, ProfilerType > | TestGlobalType |
typedef IRAD::Util::TestingObject < ResultsType > | TestingObjectBaseType |