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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros Groups Pages
virtual void Test__FsiCoupler ( ResultsType &  result)
inlinevirtual

Test the functionality of the fsiCoupler.

Definition at line 695 of file ElmerFoamFSITest.H.

References TestingObject< ResultsType >::componentInterfaceNames, TestingObject< ResultsType >::fsiCoupler, fsicoupling::getVariable(), fsicoupling::Initialize(), and TestingObject< ResultsType >::Test__fsiCouplerAgentsInitialize().

Referenced by TestingObject< ResultsType >::Process(), and TestingObject< ResultsType >::RunTest().

695  {
696  double time_final = 0.05;
697  double timestep = 2.0e-3;
698  bool works = true;
699 
700  //Call the Agents Initialize function above
701  //as well as the Initialize function of fsiCoupler
702  std::cout << "Initalizing..." << std::endl;
704  fsiCoupler.Initialize(componentInterfaceNames, time_final, timestep);
705  std::cout << "Initialize Completed!" << std::endl;
706 
707  //test to make sure that classInterfaceNames are populated
708  //correctly to match componentInterfaceNames
709  std::vector<std::string> classInterfaceNames;
710  classInterfaceNames = fsiCoupler.getVariable();
711 
712  for(int i = 0; i < componentInterfaceNames.size(); i++){
713  if(componentInterfaceNames.at(i) != classInterfaceNames.at(i)){
714  works = false;
715  break;
716  }
717  }
718  result.UpdateResult("fsiCoupler:Works",works);
719  }
fsicoupling fsiCoupler
Instantiation of class for use with the fsiCoupler &amp; Agent tests.
virtual void Test__fsiCouplerAgentsInitialize()
Initalize function for the fsiCoupler and agents.
std::vector< std::string > getVariable()
Helper function that allows access to protected data members.
Definition: FsiCoupling.H:694
std::vector< std::string > componentInterfaceNames
virtual int Initialize(std::vector< std::string > &componentInterfaceNames, double finalTime, double timeStep)
Definition: FsiCoupling.H:498

Here is the call graph for this function:

Here is the caller graph for this function: