61 std::stringstream outString;
63 std::vector<double> crdVecSolid1(solidAgent->
Coordinates());
64 std::vector<double> crdVecFluid1(fluidAgent->
Coordinates());
66 outString <<
"Solid Coodinates are : " << std::endl;
67 for (
int i = 0; i < crdVecSolid1.size()/3; i++)
68 outString << crdVecSolid1[i*3] <<
" "
69 << crdVecSolid1[i*3+1] <<
" "
70 << crdVecSolid1[i*3+2] << std::endl;
72 std::cout << outString.str() << std::endl;
75 outString <<
" Fluid Coodinates are : " << std::endl;
76 for (
int i = 0; i < crdVecFluid1.size()/3; i++)
77 outString << crdVecFluid1[i*3] <<
" "
78 << crdVecFluid1[i*3+1] <<
" "
79 << crdVecFluid1[i*3+2] << std::endl;
81 std::cout << outString.str() << std::endl;
88 double *fluidDisp1 = NULL;
89 double *fluidDisp2 = NULL;
90 double *solidDisp1 = NULL;
91 double *solidDisp2 = NULL;
99 outString <<
"Fluid displacements before transfer: " << std::endl;
100 for (
int i = 0; i < numberFluidNodes; i++)
101 outString << fluidDisp1[i*3] <<
" "
102 << fluidDisp1[i*3+1] <<
" "
103 << fluidDisp1[i*3+2] << std::endl;
105 std::cout << outString.str() << std::endl;
108 outString <<
" Solid displacements before transfer " << std::endl;
109 outString <<
"Number of nodes: " << numberSolidNodes << std::endl;
110 for (
int i = 0; i < numberSolidNodes; i++)
111 outString << solidDisp1[i*3] <<
" "
112 << solidDisp1[i*3+1] <<
" "
113 << solidDisp1[i*3+2] << std::endl;
115 std::cout << outString.str() << std::endl;
120 transferAgent->Interpolate(
"Displacements",
"solidDisplacement");
126 outString <<
"Number of fluid nodes: " << numberFluidNodes <<std::endl;
127 outString <<
"Fluid displacements after transfer : " << std::endl;
128 for (
int i = 0; i < numberFluidNodes; i++)
129 outString << fluidDisp2[i*3] <<
" "
130 << fluidDisp2[i*3+1] <<
" "
131 << fluidDisp2[i*3+2] << std::endl;
133 outString <<
"Number of solid nodes: " << numberFluidNodes <<std::endl;
134 outString <<
"solid displacements after transfer : " << std::endl;
135 for (
int i = 0; i < numberSolidNodes; i++)
136 outString << solidDisp2[i*3] <<
" "
137 << solidDisp2[i*3+1] <<
" "
138 << solidDisp2[i*3+2] << std::endl;
139 std::cout << outString.str() << std::endl;
144 std::vector<double> crdVecSolid2(solidAgent->
Coordinates());
145 std::vector<double> crdVecFluid2(fluidAgent->
Coordinates());
146 outString <<
"Fluid Coodinate Updates : " << std::endl;
147 for (
int i = 0; i < crdVecFluid2.size(); i = i + 3)
150 outString << crdVecFluid2[i] - crdVecFluid1[i] <<
" "
151 << crdVecFluid2[i+1] - crdVecFluid1[i+1]<<
" "
152 << crdVecFluid2[i+2] - crdVecFluid1[i+2]<< std::endl;
155 std::cout << outString.str() << std::endl;
158 outString <<
"Solid Coodinate Updates : " << std::endl;
159 for (
int i = 0; i < crdVecSolid2.size(); i = i + 3)
161 outString << crdVecSolid2[i] - crdVecSolid1[i] <<
" "
162 << crdVecSolid2[i+1] - crdVecSolid1[i+1]<<
" "
163 << crdVecSolid2[i+2] - crdVecSolid1[i+2]<< std::endl;
166 std::cout << outString.str() << std::endl;
solidagent * structuresAgent
transferagent * transferAgent
std::string structuresInterfaceName
const std::vector< double > & Coordinates() const
std::string fluidsInterfaceName
const std::vector< double > & Coordinates() const