Initalize function for the fsiCoupler and agents.
618 std::string fluidDir;
619 std::string simStaticDir;
620 fluidDir = IRAD::Sys::CWD() +
"/SimpleStatic/fluid";
621 simStaticDir = IRAD::Sys::CWD() +
"/SimpleStatic";
623 std::cout <<
"GetInputData failed 2!" << std::endl;
625 std::cout <<
"Could not find directory for running tests" << std::endl;
627 if(!(IRAD::Sys::FILEEXISTS(fluidDir)||(IRAD::Sys::FILEEXISTS(simStaticDir)))){
628 std::cout <<
"SimpleStatic / fluid Folders do not exists!" << std::endl;
632 IntDir = IRAD::Sys::ChDir(simStaticDir);
634 std::cout <<
"GetInputData Error: Could not change directory to "
635 << fluidDir <<
". Exiting (fail). " << std::endl;
637 std::system(
"chmod 755 Allclean Allrun AllrunPar makeLinks makeSerialLinks removeSerialLinks");
638 std::system(
"./Allclean");
639 std::system(
"./Allrun");
640 IntDir = IRAD::Sys::ChDir(fluidDir);
642 std::cout <<
"GetInputData Error: Could not change directory to "
643 << fluidDir <<
". Exiting (fail). " << std::endl;
647 std::string fluidSolverName(
"OpenFoamFSI");
648 std::string solidSolverName(
"ElmerCSC");
649 std::string transferServiceName(
"SurfX");
650 std::string runMode(
"1");
652 std::cout <<
"COM loading all modules" << std::endl;
653 COM_load_module(fluidSolverName.c_str(),
"FluidsComponentInterface");
654 COM_load_module(solidSolverName.c_str(),
"StructuresComponentInterface");
655 COM_load_module(
"SurfUtil",
"SurfUtil");
656 COM_load_module(
"Simpal",
"Simpal");
666 std::cout <<
"fsiCouplerAgentsInitialize Successful!" << std::endl;
int verblevel
track verbosity level for tests
fsicoupling fsiCoupler
Instantiation of class for use with the fsiCoupler & Agent tests.
void SetRunMode(const std::string &inMode)
std::vector< std::string > componentInterfaceNames
solidagent * TeststructuresAgent
For use with the ElmerStructure and OpenFoamFluids tests.
void SetVerbLevel(int verb)
fluidagent * TestfluidsAgent