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
std::vector<double> avgCoord ( int  first,
int  second,
int  third,
int  fourth,
fluidagent fluidAgent 
)
inline

Definition at line 1213 of file ElmerFoamFSITest.H.

References openfoamagent::Coordinates().

Referenced by TestingObject< ResultsType >::Test__TransferLoadsToStructures().

1213  {
1214  std::vector<double> Cord(3);
1215  // X direction
1216  Cord[0] = (fluidAgent->Coordinates()[3*first] + fluidAgent->Coordinates()[3*second] + fluidAgent->Coordinates()[3*third] + fluidAgent->Coordinates()[3*fourth] ) / 4;
1217  // Y direction
1218  Cord[1] = (fluidAgent->Coordinates()[3*first+1] + fluidAgent->Coordinates()[3*second+1] + fluidAgent->Coordinates()[3*third+1] + fluidAgent->Coordinates()[3*fourth+1] ) / 4;
1219  // Z direction
1220  Cord[2] = (fluidAgent->Coordinates()[3*first+2] + fluidAgent->Coordinates()[3*second+2] + fluidAgent->Coordinates()[3*third+2] + fluidAgent->Coordinates()[3*fourth+2] ) / 4;
1221  return Cord;
1222  }
const std::vector< double > & Coordinates() const
Definition: OpenFoamAgent.H:63

Here is the call graph for this function:

Here is the caller graph for this function: