35 #define ReportLineInfo(line, file) \
36 if (line >= 0 && !file.empty()) \
38 Info<< " Line " << line << " of file '" << file << '\''; \
47 const int groupTypeId,
67 for (std::size_t coli = 14; coli < columns.size(); ++coli)
70 if (!readDouble(columns[coli].str(), dummy1))
73 in_ident = buffer.substr(columns[coli].first - buffer.begin());
76 Info<<
"Identifier: " << in_ident <<
nl;
84 typeId = groupTypeId % 100;
98 double in_x, in_y, in_z;
99 double in_len, in_dia;
107 "%d %lf %lf %lf %lf %lf %d %lf",
108 &in_typeId, &in_x, &in_y, &in_z,
109 &in_len, &in_dia, &in_orient,
115 Info<<
"Expected 8 items, but read in " << nread;
116 ReportLineInfo(lineNo, inputFile);
128 vbkge = 1.0 - in_poro;
148 Info<<
"Unexpected orientation " << in_orient;
149 ReportLineInfo(lineNo, inputFile);
164 double in_x, in_y, in_z;
165 double in_len, in_theta;
167 double in_wa, in_wb, in_poro;
168 double col_11, col_12, col_14;
175 "%d %lf %lf %lf %lf %lf %d %lf %lf %lf %lf %lf %d %lf",
176 &in_typeId, &in_x, &in_y, &in_z,
177 &in_len, &in_theta, &in_orient,
178 &in_wa, &in_wb, &in_poro,
179 &col_11, &col_12, &col_13, &col_14
184 Info<<
"Expected min 10 items, but read in " << nread;
185 ReportLineInfo(lineNo, inputFile);
201 while (in_theta > 180) in_theta -= 180;
202 while (in_theta < 0) in_theta += 180;
238 Info<<
"Unexpected orientation " << in_orient;
239 ReportLineInfo(lineNo, inputFile);
277 Info<<
"... changed to type cuboid" <<
nl;
294 double in_x, in_y, in_z;
295 double in_delx, in_dely, in_delz;
296 double in_poro, in_porox, in_poroy, in_poroz;
299 double in_blowoff_time = 0;
305 "%d %lf %lf %lf %lf %lf %lf %lf %lf %lf %lf %lf %d %lf",
306 &in_typeId, &in_x, &in_y, &in_z,
307 &in_delx, &in_dely, &in_delz,
308 &in_poro, &in_porox, &in_poroy, &in_poroz,
309 &col_12, &col_13, &in_blowoff_time
316 Info<<
"Expected 14 items, but read in " << nread;
317 ReportLineInfo(lineNo, inputFile);
326 vbkge = 1.0 - in_poro;
327 xbkge = 1.0 - in_porox;
328 ybkge = 1.0 - in_poroy;
329 zbkge = 1.0 - in_poroz;
342 Info<<
"Type " <<
typeId <<
" is porous (setting to blockage).";
343 ReportLineInfo(lineNo, inputFile);
358 <<
"RECT_PATCH without a patch name"
370 Info<<
"Type " <<
typeId <<
" has non-zero thickness.";
371 ReportLineInfo(lineNo, inputFile);
384 <<
": blowoff-type 1 not yet implemented.";
385 ReportLineInfo(lineNo, inputFile);
389 Info<<
"Type " <<
typeId <<
" has blowoff time set,"
390 <<
" not set to blow off cell-by-cell";
391 ReportLineInfo(lineNo, inputFile);
404 Info<<
"Blowoff pressure (" << col_12
405 <<
") too high for blowoff type "
407 ReportLineInfo(lineNo, inputFile);
412 Info<<
"Problem with blowoff parameters";
413 ReportLineInfo(lineNo, inputFile);
414 Info<<
"Col12 " << col_12
459 Info<<
"Ignition cell type ignored";
460 ReportLineInfo(lineNo, inputFile);
466 ReportLineInfo(lineNo, inputFile);