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 @@ -250,11 +250,16 @@ def _mesh_summary_output_min_max(
250
250
]:
251
251
geom_id_col = "face_id"
252
252
else :
253
- # For whatever reason there seem to be more values reported in the
254
- # summary output data than actual cells in the geometry.
253
+ geom_id_col = "cell_id"
254
+ # The 2D mesh output data contains values for more cells than are actually
255
+ # in the mesh. The the true number of cells for a mesh is found in the table:
256
+ # "/Geometry/2D Flow Areas/Attributes". The number of cells in the 2D output
257
+ # data instead matches the number of cells in the "Cells Center Coordinate"
258
+ # array, which contains extra points along the perimeter of the mesh. These
259
+ # extra points are appended to the end of the mesh data and contain bogus
260
+ # output values (e.g., 0.0, NaN). We need to filter out these bogus values.
255
261
values = values [:cell_count ]
256
262
times = times [:cell_count ]
257
- geom_id_col = "cell_id"
258
263
df = DataFrame (
259
264
{
260
265
"mesh_name" : [mesh_name ] * len (values ),
You can’t perform that action at this time.
0 commit comments