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
bool tractionCheck ( double *  tractions,
int  isize 
)
inline

Definition at line 1044 of file ElmerFoamFSITest.H.

References TestingObject< ResultsType >::double_equals().

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

1044  {
1045  double tractionSave[isize];
1046 
1047  // Hard coding the value
1048  tractionSave[0] = 0;
1049  tractionSave[1] = -1;
1050  tractionSave[2] = 2.63292e-18;
1051  tractionSave[3] = 0;
1052  tractionSave[4] = -1;
1053  tractionSave[5] = 1.32171e-18;
1054  tractionSave[6] = 0;
1055  tractionSave[7] = -1;
1056  tractionSave[8] = 3.64051e-21;
1057  tractionSave[9] = 0;
1058  tractionSave[10] = -1;
1059  tractionSave[11] = 6.63492e-19;
1060  tractionSave[12] = 0;
1061  tractionSave[13] = -1;
1062  tractionSave[14] = 1.98684e-18;
1063  tractionSave[15] = 0;
1064  tractionSave[16] = -1;
1065  tractionSave[17] = 1.98606e-18;
1066  tractionSave[18] = 0;
1067  tractionSave[19] = -1;
1068  tractionSave[20] = 1.98645e-18;
1069  tractionSave[21] = 0;
1070  tractionSave[22] = -1;
1071  tractionSave[23] = 1.32296e-18;
1072  tractionSave[24] = 0;
1073  tractionSave[25] = -1;
1074  tractionSave[26] = 6.63492e-19;
1075  tractionSave[27] = 0;
1076  tractionSave[28] = -1;
1077  tractionSave[29] = 1.97793e-18;
1078  tractionSave[30] = 0;
1079  tractionSave[31] = -1;
1080  tractionSave[32] = 1.31444e-18;
1081  tractionSave[33] = 0;
1082  tractionSave[34] = -1;
1083  tractionSave[35] = 1.31606e-18;
1084  tractionSave[36] = 0;
1085  tractionSave[37] = -1;
1086  tractionSave[38] = 1.31808e-18;
1087  tractionSave[39] = 0;
1088  tractionSave[40] = -1;
1089  tractionSave[41] = 6.61478e-19;
1090  tractionSave[42] = 0;
1091  tractionSave[43] = -1;
1092  tractionSave[44] = 2.01408e-21;
1093  tractionSave[45] = 0;
1094  tractionSave[46] = -1;
1095  tractionSave[47] = -6.56599e-19;
1096  tractionSave[48] = 0;
1097  tractionSave[49] = -1;
1098  tractionSave[50] = -6.58225e-19;
1099  tractionSave[51] = 0;
1100  tractionSave[52] = -1;
1101  tractionSave[53] = -6.56211e-19;
1102  tractionSave[54] = 0;
1103  tractionSave[55] = -1;
1104  tractionSave[56] = -6.58225e-19;
1105  tractionSave[57] = 0;
1106  tractionSave[58] = -1;
1107  tractionSave[59] = 6.65506e-19;
1108  tractionSave[60] = 0;
1109  tractionSave[61] = -1;
1110  tractionSave[62] = 1.32172e-18;
1111  tractionSave[63] = 0;
1112  tractionSave[64] = -1;
1113  tractionSave[65] = 6.61478e-19;
1114  tractionSave[66] = 0;
1115  tractionSave[67] = -1;
1116  tractionSave[68] = 2.32349e-79;
1117  tractionSave[69] = 0;
1118  tractionSave[70] = -1;
1119  tractionSave[71] = 2.01408e-21;
1120  tractionSave[72] = 0;
1121  tractionSave[73] = -1;
1122  tractionSave[74] = 1.55135e-84;
1123  tractionSave[75] = 0;
1124  tractionSave[76] = -1;
1125  tractionSave[77] = -2.01408e-21;
1126  tractionSave[78] = 0;
1127  tractionSave[79] = -1;
1128  tractionSave[80] = -6.56599e-19;
1129  tractionSave[81] = 0;
1130  tractionSave[82] = -1;
1131  tractionSave[83] = -6.4893e-19;
1132  tractionSave[84] = 0;
1133  tractionSave[85] = -1;
1134  tractionSave[86] = -6.43663e-19;
1135  tractionSave[87] = 0;
1136  tractionSave[88] = -1;
1137  tractionSave[89] = -1.96577e-18;
1138  tractionSave[90] = 0;
1139  tractionSave[91] = -1;
1140  tractionSave[92] = -6.44051e-19;
1141  tractionSave[93] = 0;
1142  tractionSave[94] = -1;
1143  tractionSave[95] = 1.05339e-20;
1144  tractionSave[96] = 0;
1145  tractionSave[97] = -1;
1146  tractionSave[98] = 6.89339e-21;
1147  tractionSave[99] = 0;
1148  tractionSave[100] = -1;
1149  tractionSave[101] = -6.59852e-19;
1150  tractionSave[102] = 0;
1151  tractionSave[103] = -1;
1152  tractionSave[104] = -6.66745e-19;
1153  tractionSave[105] = 0;
1154  tractionSave[106] = -1;
1155  tractionSave[107] = -6.72787e-19;
1156  tractionSave[108] = 0;
1157  tractionSave[109] = -1;
1158  tractionSave[110] = -6.75652e-19;
1159  tractionSave[111] = 0;
1160  tractionSave[112] = -1;
1161  tractionSave[113] = -1.29356e-20;
1162  tractionSave[114] = 0;
1163  tractionSave[115] = -1;
1164  tractionSave[116] = -1.33349e-18;
1165  tractionSave[117] = 0;
1166  tractionSave[118] = -1;
1167  tractionSave[119] = -2.64994e-18;
1168  tractionSave[120] = 0;
1169  tractionSave[121] = -1;
1170  tractionSave[122] = -3.31142e-18;
1171  tractionSave[123] = 0;
1172  tractionSave[124] = -1;
1173  tractionSave[125] = -1.98645e-18;
1174  tractionSave[126] = 0;
1175  tractionSave[127] = -1;
1176  tractionSave[128] = -1.32296e-18;
1177  tractionSave[129] = 0;
1178  tractionSave[130] = -1;
1179  tractionSave[131] = 8.21297e-134;
1180  tractionSave[132] = 0;
1181  tractionSave[133] = -1;
1182  tractionSave[134] = 2.07766e-136;
1183  tractionSave[135] = 0;
1184  tractionSave[136] = -1;
1185  tractionSave[137] = -5.26695e-21;
1186  tractionSave[138] = 0;
1187  tractionSave[139] = -1;
1188  tractionSave[140] = -6.61478e-19;
1189  tractionSave[141] = 0;
1190  tractionSave[142] = -1;
1191  tractionSave[143] = -6.89339e-21;
1192  tractionSave[144] = 0;
1193  tractionSave[145] = -1;
1194  tractionSave[146] = -8.89947e-21;
1195  tractionSave[147] = 0;
1196  tractionSave[148] = -1;
1197  tractionSave[149] = -6.6386e-19;
1198 
1199  //When comparing double, exact comparison might not do the job. Hence im giving 5% error margin.
1200  for(int i = 0; i < isize; i++){
1201  if( !(double_equals(tractions[i],tractionSave[i]))){
1202  return false;
1203  }
1204  }
1205  return true;
1206  }
bool double_equals(double a, double b, double epsilon=.001)

Here is the call graph for this function:

Here is the caller graph for this function: