View Issue Details

IDProjectCategoryView StatusLast Update
0004041OpenFOAMFeaturepublic2023-12-15 11:31
Reporterblttkgl Assigned Towill  
PrioritylowSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
PlatformUnixOSOtherOS Version(please specify)
Product Versiondev 
Fixed in Versiondev 
Summary0004041: Histogram function object headers are duplicate names
DescriptionThe histogram function object writes the column headers of both bin ranges and the histogram values as the name of the field that is being used in the histogram function object. While there is nothing wrong with the function object itself, this may create issues if the user is using e.g. python for data post-processing, which causes duplicate header issue.

I propose changing the header of the log from:

# <fieldName> <fieldName>

to

# bin_value <fieldName>

for easier post-processing and clearer description of the histogram data
TagsNo tags attached.

Activities

will

2023-12-15 11:31

manager   ~0013170

The first column are actually values of the field in question. It's the second column that is the proportion of the volume of the mesh occupied by that value. So, I think the most accurate header would be "# <fieldName> v/vTotal", or similar. I have made this change here:

https://github.com/OpenFOAM/OpenFOAM-dev/commit/5cf2109eff5da10150fe3416a281ef389c060f54

Issue History

Date Modified Username Field Change
2023-12-15 09:08 blttkgl New Issue
2023-12-15 11:31 will Assigned To => will
2023-12-15 11:31 will Status new => resolved
2023-12-15 11:31 will Resolution open => fixed
2023-12-15 11:31 will Fixed in Version => dev
2023-12-15 11:31 will Note Added: 0013170