File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -337,11 +337,16 @@ def _mesh_summary_output_min_max(
337
337
]:
338
338
geom_id_col = "face_id"
339
339
else :
340
- # For whatever reason there seem to be more values reported in the
341
- # summary output data than actual cells in the geometry.
340
+ geom_id_col = "cell_id"
341
+ # The 2D mesh output data contains values for more cells than are actually
342
+ # in the mesh. The the true number of cells for a mesh is found in the table:
343
+ # "/Geometry/2D Flow Areas/Attributes". The number of cells in the 2D output
344
+ # data instead matches the number of cells in the "Cells Center Coordinate"
345
+ # array, which contains extra points along the perimeter of the mesh. These
346
+ # extra points are appended to the end of the mesh data and contain bogus
347
+ # output values (e.g., 0.0, NaN). We need to filter out these bogus values.
342
348
values = values [:cell_count ]
343
349
times = times [:cell_count ]
344
- geom_id_col = "cell_id"
345
350
df = DataFrame (
346
351
{
347
352
"mesh_name" : [mesh_name ] * len (values ),
You can’t perform that action at this time.
0 commit comments